/* Yula Studios home — editorial studio shell */
:root {
  --home-ink: #f7fafc;
  --home-muted: #a5b4c7;
  --home-panel: rgba(8, 13, 22, .72);
  --home-panel-strong: rgba(10, 17, 28, .9);
  --home-line: rgba(255, 255, 255, .12);
  --home-orange: #ff9b4a;
  --home-cyan: #69e6e8;
  --home-violet: #b69cff;
}

body.project-home #scroll-progress {
  height: 3px !important;
  background: linear-gradient(90deg, var(--home-orange), var(--home-cyan), var(--home-violet), var(--home-orange)) !important;
  background-size: 240% 100%;
  box-shadow: 0 0 16px rgba(105,230,232,.5);
  animation: progressSpectrum 7s linear infinite;
}

@keyframes progressSpectrum { to { background-position: 240% 0; } }

body.project-home {
  background: #05070d;
  color: var(--home-ink);
}

body.project-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 155, 74, .15), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(105, 230, 232, .12), transparent 25%),
    linear-gradient(180deg, rgba(4, 7, 14, .12), rgba(4, 7, 14, .9) 75%, #05070d);
}

body.project-home #global-bg-container {
  opacity: .72;
  filter: saturate(.82) contrast(1.05);
}

body.project-home #global-bg-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, .76), transparent 40%, rgba(5, 7, 13, .34)),
    linear-gradient(180deg, rgba(5, 7, 13, .08), rgba(5, 7, 13, .88));
}

body.project-home .nav {
  background: rgba(5, 8, 15, .7) !important;
  border-bottom-color: rgba(255, 255, 255, .1) !important;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

body.project-home .nav.scrolled {
  box-shadow: 0 14px 38px rgba(0,0,0,.2), inset 0 -1px 0 rgba(105,230,232,.12);
}

body.project-home .nav-inner {
  min-height: 74px;
}

body.project-home .nav-logo {
  letter-spacing: .12em;
}

/* Primary navigation polish: one calm bar, clear destinations, no visual noise. */
body.project-home .nav-inner {
  padding-inline: 18px;
}

body.project-home .nav-logo {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: color .2s ease, transform .2s ease;
}

body.project-home .nav-logo:hover {
  transform: translateY(-1px);
}

body.project-home .nav-logo-icon img {
  border: 0 !important;
  box-shadow: none !important;
}

body.project-home .nav-links {
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  background: rgba(3,7,13,.42);
}

body.project-home .nav-links > li > a,
body.project-home .nav-spotlight-pill,
body.project-home .nav-sound-toggle,
body.project-home .nav-lang-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #b9c7d9;
  font-size: .8rem;
  letter-spacing: .025em;
}

body.project-home .nav-links > li > a::after { display: none; }
body.project-home .nav-links > li > a:hover,
body.project-home .nav-spotlight-pill:hover,
body.project-home .nav-sound-toggle:hover,
body.project-home .nav-lang-btn:hover {
  color: #f7fbff !important;
  border-color: rgba(105,230,232,.24);
  background: rgba(105,230,232,.09);
}

body.project-home .nav-item-dropdown:hover .nav-dropdown-toggle {
  color: #f7fbff;
  background: rgba(255,255,255,.07);
}

body.project-home .nav-dropdown-menu {
  top: calc(100% + 12px);
  right: 0;
  width: min(440px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(9,15,25,.96);
  box-shadow: 0 22px 60px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

body.project-home .dropdown-item {
  gap: 12px;
  padding: 12px;
  border-radius: 13px;
}

body.project-home .dropdown-item:hover {
  background: rgba(105,230,232,.08);
}

body.project-home .nav-cta {
  min-height: 40px;
  padding-inline: 16px;
  border: 1px solid rgba(255,155,74,.52);
  border-radius: 11px;
  background: linear-gradient(135deg, #ffab5b, #e86d39) !important;
  box-shadow: 0 8px 20px rgba(232,109,57,.2);
}

body.project-home .nav-cta:hover {
  box-shadow: 0 12px 28px rgba(232,109,57,.34);
}

body.project-home .nav-links button:focus-visible,
body.project-home .nav-links a:focus-visible,
body.project-home .nav-logo:focus-visible,
body.project-home .hamburger:focus-visible {
  outline: 3px solid rgba(105,230,232,.72);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  body.project-home .nav-links { gap: 2px; }
  body.project-home .nav-links > li > a,
  body.project-home .nav-spotlight-pill,
  body.project-home .nav-sound-toggle,
  body.project-home .nav-lang-btn { padding-inline: 9px; font-size: .76rem; }
  body.project-home .nav-logo { font-size: 1rem; }
}

@media (max-width: 760px) {
  body.project-home .nav-inner { padding-inline: 12px; }
  body.project-home .nav-logo-icon { width: 29px !important; height: 29px !important; }
}

@media (prefers-reduced-data: reduce) {
  body.project-home #embers-canvas,
  body.project-home #hero-canvas { display: none !important; }
}

body.project-home #hero {
  min-height: min(820px, calc(100vh - 74px));
  padding: clamp(84px, 12vw, 150px) 20px clamp(72px, 10vw, 128px);
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 1400px;
}

/* Lively 3D studio atmosphere: layered depth without stealing focus from the CTA. */
body.project-home #hero::before,
body.project-home #hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(105,230,232,.16);
  border-radius: 50%;
  transform: translateZ(0);
  animation: homeOrbit 18s ease-in-out infinite;
}

body.project-home #hero::before {
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  right: -16vw;
  top: 10%;
  box-shadow: 0 0 100px rgba(105,230,232,.08), inset 0 0 80px rgba(182,156,255,.05);
}

body.project-home #hero::after {
  width: min(32vw, 430px);
  height: min(32vw, 430px);
  left: -10vw;
  bottom: 5%;
  border-color: rgba(255,155,74,.14);
  animation-delay: -8s;
}

@keyframes homeOrbit {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); opacity: .55; }
  50% { transform: translate3d(0,-18px,0) rotate(8deg) scale(1.04); opacity: 1; }
}

/* Ultra motion atmosphere: two soft light bodies move behind the content in GPU space. */
body.project-home #hero {
  background:
    radial-gradient(circle at 18% 78%, rgba(255,155,74,.09), transparent 25%),
    radial-gradient(circle at 82% 20%, rgba(105,230,232,.1), transparent 28%);
  background-size: 130% 130%;
  animation: heroAurora 18s ease-in-out infinite alternate;
}

body.project-home .hero-bg::before,
body.project-home .hero-bg::after {
  content: "";
  position: absolute;
  width: min(34vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: .42;
  mix-blend-mode: screen;
}

body.project-home .hero-bg::before {
  top: 8%; right: 2%;
  background: radial-gradient(circle at 35% 35%, rgba(105,230,232,.3), rgba(105,230,232,.08) 28%, transparent 68%);
  animation: heroOrbCyan 12s ease-in-out infinite;
}

body.project-home .hero-bg::after {
  left: -3%; bottom: 2%;
  background: radial-gradient(circle at 65% 38%, rgba(255,155,74,.28), rgba(182,156,255,.08) 30%, transparent 68%);
  animation: heroOrbWarm 15s ease-in-out -4s infinite;
}

@keyframes heroAurora { from { background-position: 0% 20%; } to { background-position: 100% 78%; } }
@keyframes heroOrbCyan {
  0%, 100% { transform: translate3d(0,0,0) scale(.82); opacity: .2; }
  50% { transform: translate3d(-8%,12%,0) scale(1.14); opacity: .52; }
}
@keyframes heroOrbWarm {
  0%, 100% { transform: translate3d(0,0,0) scale(.9); opacity: .18; }
  50% { transform: translate3d(13%,-10%,0) scale(1.12); opacity: .48; }
}

body.project-home .hero-bg {
  opacity: .42;
  transform: scale(1.04) translateZ(0);
  filter: saturate(.68) contrast(1.12);
  animation: heroDepth 22s ease-in-out infinite alternate;
}

@keyframes heroDepth {
  from { transform: scale(1.04) translate3d(-.4%, 0, 0); }
  to { transform: scale(1.1) translate3d(.6%, -1%, 0); }
}

body.project-home .hero-gradient-bottom {
  background: linear-gradient(180deg, transparent 42%, #05070d 100%) !important;
}

body.project-home .hero-content {
  width: min(1120px, 100%);
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), transparent 32%), rgba(7, 12, 21, .55);
  box-shadow: 0 32px 100px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  transform: perspective(1400px) rotateX(1.5deg) translateZ(0);
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
  animation: heroPanelIn .9s cubic-bezier(.16,1,.3,1) both, heroPanelFloat 10s ease-in-out 1s infinite;
}

/* Premium motion layer: a slow light sweep and a depth grid make the hero feel alive
   without turning the content into a distracting animation demo. */
body.project-home .hero-content::before,
body.project-home .hero-content::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: inherit;
}

body.project-home .hero-content::before {
  inset: 1px;
  background: linear-gradient(112deg, transparent 18%, rgba(105,230,232,.12) 38%, rgba(255,155,74,.14) 48%, transparent 65%);
  background-size: 220% 100%;
  mix-blend-mode: screen;
  opacity: .5;
  animation: heroLightSweep 8s ease-in-out infinite;
}

body.project-home .hero-content::after {
  inset: auto 8% -26px;
  height: 58px;
  background: radial-gradient(ellipse, rgba(105,230,232,.25), transparent 68%);
  filter: blur(14px);
  opacity: .55;
  animation: heroShadowPulse 5s ease-in-out infinite;
}

/* Graphic upgrade: a restrained holographic emblem and a perspective floor give the
   hero a real visual stage while keeping the copy sharp and readable. */
body.project-home .hero-logo-container {
  position: relative;
  isolation: isolate;
  filter: drop-shadow(0 18px 32px rgba(255,155,74,.16));
}

body.project-home .hero-logo-container::before,
body.project-home .hero-logo-container::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: -1;
}

body.project-home .hero-logo-container::before {
  inset: -13px;
  border: 1px solid transparent;
  background: conic-gradient(from 0deg, rgba(255,155,74,.08), rgba(255,155,74,.85), rgba(105,230,232,.75), rgba(182,156,255,.14), rgba(255,155,74,.08)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: logoRingSpin 11s linear infinite;
}

body.project-home .hero-logo-container::after {
  inset: -30px;
  background: radial-gradient(circle, rgba(255,155,74,.2), rgba(105,230,232,.08) 34%, transparent 70%);
  filter: blur(12px);
  animation: logoHalo 4s ease-in-out infinite;
}

@keyframes logoRingSpin { to { transform: rotate(360deg); } }
@keyframes logoHalo {
  0%, 100% { transform: scale(.86); opacity: .34; }
  50% { transform: scale(1.14); opacity: .82; }
}

body.project-home .hero-gradient-bottom::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -52%;
  height: 125%;
  pointer-events: none;
  transform: perspective(520px) rotateX(62deg) translateZ(0);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(105,230,232,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,155,74,.1) 1px, transparent 1px);
  background-size: 54px 42px;
  opacity: .18;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  animation: floorGridDrift 12s linear infinite;
}

@keyframes floorGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 42px, 54px 0; }
}

@keyframes heroLightSweep {
  0%, 18% { background-position: 130% 0; opacity: .18; }
  48%, 70% { background-position: 0% 0; opacity: .62; }
  100% { background-position: -120% 0; opacity: .12; }
}

@keyframes heroShadowPulse {
  0%, 100% { transform: scaleX(.86); opacity: .34; }
  50% { transform: scaleX(1.08); opacity: .7; }
}

body.project-home .hero-logo-container {
  animation: heroLogoLift 5s ease-in-out .6s infinite;
  transform-origin: 50% 85%;
  translate: var(--hero-parallax-x, 0px) var(--hero-parallax-y, 0px);
  transition: translate .25s cubic-bezier(.16,1,.3,1);
}

@keyframes heroLogoLift {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

body.project-home .hero-badge,
body.project-home .hero-live-badge {
  animation: badgeBreath 4.5s ease-in-out infinite;
}

body.project-home .hero-live-badge:nth-child(2) { animation-delay: -.9s; }
body.project-home .hero-live-badge:nth-child(3) { animation-delay: -1.8s; }
body.project-home .hero-live-badge:nth-child(4) { animation-delay: -2.7s; }

@keyframes badgeBreath {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(105,230,232,0); }
  50% { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(105,230,232,.12); }
}

body.project-home .hero-search-wrap > div:first-child {
  position: relative;
  overflow: hidden;
}

body.project-home .hero-search-wrap > div:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  left: -34%;
  width: 24%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-18deg);
  animation: searchGlint 6.5s ease-in-out 1.8s infinite;
}

@keyframes searchGlint {
  0%, 45% { left: -34%; opacity: 0; }
  56% { opacity: 1; }
  72%, 100% { left: 120%; opacity: 0; }
}

body.project-home .hero-buttons .btn-primary {
  animation: primaryCtaPulse 4s ease-in-out 2.2s infinite;
}

@keyframes primaryCtaPulse {
  0%, 74%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.1); }
  82% { box-shadow: 0 15px 36px rgba(255,155,74,.22), 0 0 0 5px rgba(255,155,74,.07), inset 0 1px 0 rgba(255,255,255,.14); }
}

body.project-home .project-card,
body.project-home .tool-card,
body.project-home .stat-card {
  will-change: transform;
}

body.project-home .project-card::before,
body.project-home .tool-card::before,
body.project-home .stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 28% 72%, rgba(105,230,232,.06));
  opacity: .35;
  transition: opacity .3s ease;
}

body.project-home .project-card:hover::before,
body.project-home .tool-card:hover::before,
body.project-home .stat-card:hover::before { opacity: .8; }

@keyframes heroPanelIn {
  from { opacity: 0; transform: perspective(1400px) rotateX(5deg) translateY(18px) scale(.985); }
  to { opacity: 1; transform: perspective(1400px) rotateX(1.5deg) translateY(0) scale(1); }
}

@keyframes heroPanelFloat {
  0%, 100% { transform: perspective(1400px) rotateX(1.5deg) rotateY(0deg) translateY(0); }
  50% { transform: perspective(1400px) rotateX(1.5deg) rotateY(-.5deg) translateY(-5px); }
}

@keyframes heroFramePulse {
  0%, 100% { border-color: rgba(255,255,255,.13); box-shadow: 0 32px 100px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.1); }
  50% { border-color: rgba(105,230,232,.24); box-shadow: 0 38px 110px rgba(0,0,0,.52), 0 0 70px rgba(105,230,232,.07), inset 0 1px 0 rgba(255,255,255,.16); }
}

body.project-home .hero-content {
  animation: heroPanelIn .9s cubic-bezier(.16,1,.3,1) both, heroPanelFloat 10s ease-in-out 1s infinite, heroFramePulse 6s ease-in-out 2s infinite;
}

body.project-home .hero-title {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: clamp(4rem, 12vw, 9.2rem) !important;
  font-weight: 900 !important;
  line-height: .96 !important;
  letter-spacing: -.09em !important;
  padding: .08em .04em .14em;
  overflow: visible !important;
  text-wrap: balance;
}

body.project-home .hero-title .yula {
  background: linear-gradient(135deg, #fff6e9 12%, var(--home-orange) 62%, #ef6e35);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-inline: .025em;
  text-shadow: 0 14px 42px rgba(255,155,74,.16);
  animation: titleGlow 6s ease-in-out infinite, titleFloat 7s ease-in-out .9s infinite;
  transform-origin: 50% 70%;
}

@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255,155,74,0)); }
  50% { filter: drop-shadow(0 12px 26px rgba(255,155,74,.18)); }
}

@keyframes titleFloat {
  0%, 100% { transform: translate3d(0,0,0) rotateX(0deg) rotateZ(0deg); }
  50% { transform: translate3d(0,-5px,0) rotateX(2deg) rotateZ(-.35deg); }
}

body.project-home .hero-title .studios {
  display: block;
  margin-top: .12em;
  color: #edf5ff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .26em;
  font-weight: 700;
  letter-spacing: .42em;
  line-height: 1;
  padding-left: .42em;
  text-transform: uppercase;
  animation: studioReveal 1.1s cubic-bezier(.16,1,.3,1) 1.35s both, studioBreath 5s ease-in-out 2.8s infinite;
}

body.project-home .hero-title {
  position: relative;
  isolation: isolate;
  translate: var(--hero-parallax-x, 0px) var(--hero-parallax-y, 0px);
  transition: translate .2s cubic-bezier(.16,1,.3,1);
}

body.project-home .hero-live-badge,
body.project-home .hero-badge,
body.project-home .hero-slogan,
body.project-home .hero-desc,
body.project-home .hero-search-wrap,
body.project-home .hero-buttons {
  translate: var(--hero-parallax-x, 0px) var(--hero-parallax-y, 0px);
  transition: translate .3s cubic-bezier(.16,1,.3,1);
}

body.project-home .hero-live-badge { transform: translateZ(16px); }
body.project-home .hero-title { transform: translateZ(34px); }
body.project-home .hero-search-wrap { transform: translateZ(20px); }
body.project-home .hero-buttons { transform: translateZ(14px); }

body.project-home .hero-title::after {
  content: "";
  display: block;
  width: min(220px, 34vw);
  height: 2px;
  margin: clamp(18px, 2.5vw, 28px) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--home-orange), var(--home-cyan), transparent);
  box-shadow: 0 0 22px rgba(105,230,232,.38);
  transform-origin: center;
  animation: titleLineScan 4.8s ease-in-out 2.4s infinite;
}

@keyframes titleLineScan {
  0%, 100% { transform: scaleX(.42); opacity: .32; filter: blur(.5px); }
  50% { transform: scaleX(1); opacity: 1; filter: blur(0); }
}

body.project-home .hero-title .yula::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.7) 48%, transparent 60%);
  background-size: 220% 100%;
  mix-blend-mode: overlay;
  animation: titleGloss 7s ease-in-out 2.8s infinite;
}

/* Keep the gloss inside the gradient text itself; never paint a rectangular overlay. */
body.project-home .hero-title .yula {
  background-image: linear-gradient(105deg, #fff6e9 0%, var(--home-orange) 36%, #fff4df 49%, #ef6e35 65%, #fff6e9 100%);
  background-size: 220% 100%;
  animation: titleGlow 6s ease-in-out infinite, titleFloat 7s ease-in-out .9s infinite, titleSurfaceGloss 7s ease-in-out 2.8s infinite;
}

body.project-home .hero-title .yula::after { display: none; }

@keyframes titleSurfaceGloss {
  0%, 58% { background-position: 130% 0; }
  72%, 100% { background-position: -120% 0; }
}

body.project-home .hero-title .yula {
  animation: titleGlow 6s ease-in-out infinite, titleFloat 7s ease-in-out .9s infinite, titleSurfaceGloss 7s ease-in-out 2.8s infinite, titleDepth 5s ease-in-out 2s infinite;
}

@keyframes titleDepth {
  0%, 100% { text-shadow: 0 14px 42px rgba(255,155,74,.16), 0 0 0 rgba(105,230,232,0); }
  50% { text-shadow: 0 18px 46px rgba(255,155,74,.25), 0 0 24px rgba(105,230,232,.16); }
}

@keyframes titleGloss {
  0%, 58% { background-position: 130% 0; opacity: 0; }
  66% { opacity: .9; }
  78%, 100% { background-position: -120% 0; opacity: 0; }
}

@keyframes studioReveal {
  from { opacity: 0; letter-spacing: .8em; transform: translateY(10px); filter: blur(5px); }
  to { opacity: .92; letter-spacing: .42em; transform: translateY(0); filter: blur(0); }
}

@keyframes studioBreath {
  0%, 100% { opacity: .78; text-shadow: 0 0 0 rgba(105,230,232,0); }
  50% { opacity: 1; text-shadow: 0 0 22px rgba(105,230,232,.28); }
}

body.project-home .hero-slogan {
  animation: sloganRise 1s cubic-bezier(.16,1,.3,1) 1.7s both, sloganGlow 6s ease-in-out 3.1s infinite;
}

@keyframes sloganRise {
  from { opacity: 0; transform: translateY(18px); letter-spacing: .02em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: .08em; }
}

@keyframes sloganGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(255,155,74,0); }
  50% { text-shadow: 0 0 26px rgba(255,155,74,.2); }
}

body.project-home .hero-desc {
  animation: copyRise 1s cubic-bezier(.16,1,.3,1) 1.95s both;
}

@keyframes copyRise {
  from { opacity: 0; transform: translateY(14px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

body.project-home .hero-slogan {
  max-width: 720px;
  margin-inline: auto;
  color: #e4edf7;
  font-size: clamp(1.12rem, 2.1vw, 1.46rem);
  line-height: 1.45;
}

body.project-home .hero-desc {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.72;
}

body.project-home .hero-search-wrap > div:first-child {
  min-height: 58px;
  background: rgba(4, 9, 16, .82) !important;
  border-color: rgba(105, 230, 232, .34) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1) !important;
}

body.project-home .hero-buttons {
  gap: 12px !important;
}

body.project-home .hero-buttons .btn-primary,
body.project-home .hero-buttons .btn-secondary {
  min-height: 48px;
  border-radius: 14px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.project-home .hero-buttons .btn-primary:hover,
body.project-home .hero-buttons .btn-secondary:hover {
  transform: translateY(-2px);
}

body.project-home .hero-pill-link,
body.project-home .hero-pill-lucky {
  animation: pillHover 6s ease-in-out infinite;
}
body.project-home .hero-pill-link:nth-child(2) { animation-delay: -.7s; }
body.project-home .hero-pill-link:nth-child(3) { animation-delay: -1.4s; }
body.project-home .hero-pill-link:nth-child(4) { animation-delay: -2.1s; }
body.project-home .hero-pill-lucky { animation-delay: -2.8s; }
@keyframes pillHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

body.project-home .hero-buttons .btn-primary,
body.project-home .hero-buttons .btn-secondary,
body.project-home .hero-pill-link,
body.project-home .hero-pill-lucky {
  transform: translateZ(0);
  box-shadow: 0 12px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.1);
}

body.project-home .project-card,
body.project-home .tool-card,
body.project-home .stat-card {
  transform: perspective(900px) translateZ(0);
  transition: transform .28s cubic-bezier(.16,1,.3,1), border-color .28s ease, box-shadow .28s ease;
}

body.project-home .project-card:hover,
body.project-home .tool-card:hover,
body.project-home .stat-card:hover {
  transform: perspective(900px) translateY(-7px) rotateX(1deg) rotateY(-1deg);
}

body.project-home .hero-pill-link,
body.project-home .hero-pill-lucky {
  border-color: rgba(255,255,255,.13) !important;
  background: rgba(8, 14, 24, .62) !important;
  color: #cbd8e8 !important;
  backdrop-filter: blur(10px);
}

body.project-home #about,
body.project-home #ecosystem,
body.project-home #quick-tools,
body.project-home #contact {
  position: relative;
}

body.project-home .section-container,
body.project-home .section-inner {
  position: relative;
}

body.project-home .section-tag,
body.project-home .section-label {
  color: var(--home-orange) !important;
}

body.project-home .reveal > h2,
body.project-home #ecosystem h2,
body.project-home #quick-tools h2 {
  letter-spacing: -.045em !important;
}

body.project-home .stat-card,
body.project-home .project-card,
body.project-home .tool-card,
body.project-home .home-tool-demo,
body.project-home .newsletter-card,
body.project-home .contact-form {
  border-color: var(--home-line) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.055), transparent 40%), var(--home-panel) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.07);
}

body.project-home .project-card:hover,
body.project-home .tool-card:hover,
body.project-home .stat-card:hover {
  border-color: rgba(105,230,232,.38) !important;
  box-shadow: 0 26px 70px rgba(0,0,0,.32), 0 0 30px rgba(105,230,232,.08);
}

body.project-home input,
body.project-home textarea,
body.project-home select {
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(3, 8, 15, .72) !important;
}

/* Performance guardrails: keep the premium look while limiting paint and layout work. */
body.project-home .bento-card,
body.project-home .app-card,
body.project-home .why-card,
body.project-home .blog-card,
body.project-home .tech-item {
  transform-style: preserve-3d;
  transition: transform .36s cubic-bezier(.16,1,.3,1), box-shadow .36s ease, border-color .36s ease;
}

body.project-home .app-card:hover,
body.project-home .why-card:hover,
body.project-home .blog-card:hover,
body.project-home .tech-item:hover {
  transform: perspective(900px) translateY(-8px) rotateX(1deg) rotateY(-1deg) translateZ(5px);
  border-color: rgba(105,230,232,.35) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.34), 0 0 32px rgba(105,230,232,.08) !important;
}

body.project-home .section-tag {
  position: relative;
  text-shadow: 0 0 18px rgba(255,155,74,.2);
}

body.project-home .section-tag::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--home-orange), transparent);
  animation: sectionSignal 3.8s ease-in-out infinite;
}

@keyframes sectionSignal {
  0%, 100% { width: 18px; opacity: .35; }
  50% { width: 48px; opacity: 1; }
}

body.project-home #hero,
body.project-home .hero-content,
body.project-home .hero-bg {
  contain: layout paint;
}

body.project-home .hero-bg,
body.project-home .hero-bg::before,
body.project-home .hero-bg::after,
body.project-home #hero::before,
body.project-home #hero::after,
body.project-home .hero-logo-container::before,
body.project-home .hero-logo-container::after,
body.project-home .hero-gradient-bottom::before {
  will-change: transform, opacity;
}

body.project-home .hero-bg,
body.project-home .hero-gradient-bottom,
body.project-home .hero-bg canvas {
  pointer-events: none;
}

body.project-home .hero-bg canvas {
  contain: strict;
}

body.project-home .hero-title .yula {
  will-change: transform, filter, background-position;
}

@media (max-width: 760px) {
  /* Mobile performance budget: keep the atmosphere, remove continuous paint work. */
  body.project-home #global-bg-container,
  body.project-home .nav,
  body.project-home .hero-search-wrap > div:first-child,
  body.project-home .hero-badge,
  body.project-home .hero-live-badge,
  body.project-home .hero-pill-link,
  body.project-home .hero-pill-lucky {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.project-home #global-bg-container {
    filter: none;
    transform: none;
    transition: none;
  }
  body.project-home #global-bg-container .bg-layer {
    transition: opacity .35s ease;
    transform: none;
    filter: brightness(.72) saturate(.94);
    will-change: opacity;
  }
  body.project-home #embers-canvas,
  body.project-home #hero-canvas {
    display: none;
  }
  body.project-home .hero-bg::before,
  body.project-home .hero-bg::after,
  body.project-home #hero::before,
  body.project-home #hero::after,
  body.project-home .hero-content::before,
  body.project-home .hero-content::after,
  body.project-home .hero-logo-container::before,
  body.project-home .hero-logo-container::after,
  body.project-home .hero-gradient-bottom::before {
    animation: none !important;
  }
  body.project-home .hero-logo-container::before,
  body.project-home .hero-logo-container::after,
  body.project-home .hero-gradient-bottom::before {
    display: none;
  }
  body.project-home .mascot-avatar,
  body.project-home .mascot-avatar::before {
    animation: none !important;
  }
  body.project-home .mascot-speech {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(12, 15, 23, .96) !important;
  }
  body.project-home .hero-bg canvas {
    display: none;
  }
  body.project-home .hero-bg::before,
  body.project-home .hero-bg::after { opacity: .22; filter: blur(1px); }
  body.project-home .hero-content::before { opacity: .28; }
  body.project-home .hero-logo-container::after { filter: blur(8px); }
  body.project-home .hero-gradient-bottom::before { opacity: .1; background-size: 44px 34px; }
  body.project-home .hero-bg canvas { opacity: .82; }
  body.project-home #hero { padding: 58px 12px 58px; }
  body.project-home .hero-content { border-radius: 22px; padding: 18px 14px 24px; transform: none; animation: heroPanelIn .7s cubic-bezier(.16,1,.3,1) both; }
  body.project-home .hero-title { font-size: clamp(3.2rem, 17vw, 6rem) !important; line-height: .98 !important; letter-spacing: -.08em !important; }
  body.project-home .hero-title .studios { font-size: .25em; letter-spacing: .3em; padding-left: .3em; }
  body.project-home .hero-desc { font-size: .98rem; }
  body.project-home .hero-search-wrap > div:first-child { border-radius: 18px !important; padding-inline: 14px !important; }
  body.project-home .hero-search-wrap kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.project-home #scroll-progress { animation: none !important; }
  body.project-home #hero,
  body.project-home .hero-bg::before,
  body.project-home .hero-bg::after,
  body.project-home #hero::before,
  body.project-home #hero::after,
  body.project-home .hero-bg,
  body.project-home .hero-content,
  body.project-home .hero-title .yula,
  body.project-home .hero-pill-link,
  body.project-home .hero-pill-lucky { animation: none !important; }
  body.project-home .hero-title .studios,
  body.project-home .hero-slogan,
  body.project-home .hero-desc { animation: none !important; }
  body.project-home .hero-title::after,
  body.project-home .hero-title .yula::after { animation: none !important; }
  body.project-home .hero-content::before,
  body.project-home .hero-content::after,
  body.project-home .hero-logo-container::before,
  body.project-home .hero-logo-container::after,
  body.project-home .hero-gradient-bottom::before,
  body.project-home .hero-logo-container,
  body.project-home .hero-badge,
  body.project-home .hero-live-badge,
  body.project-home .hero-search-wrap > div:first-child::after,
  body.project-home .hero-buttons .btn-primary { animation: none !important; }
  body.project-home .section-tag::after { animation: none !important; }
  body.project-home .app-card,
  body.project-home .why-card,
  body.project-home .blog-card,
  body.project-home .tech-item { transition: none !important; }
  body.project-home .hero-content { transform: none !important; }
  body.project-home .hero-logo-container,
  body.project-home .hero-title,
  body.project-home .hero-live-badge,
  body.project-home .hero-badge,
  body.project-home .hero-slogan,
  body.project-home .hero-desc,
  body.project-home .hero-search-wrap,
  body.project-home .hero-buttons { translate: none !important; }
  body.project-home .hero-buttons .btn-primary,
  body.project-home .hero-buttons .btn-secondary { transition: none; }
}

@media (prefers-reduced-data: reduce) {
  body.project-home #embers-canvas,
  body.project-home #hero-canvas {
    display: none !important;
  }

  body.project-home .hero-bg,
  body.project-home .hero-bg::before,
  body.project-home .hero-bg::after,
  body.project-home #hero::before,
  body.project-home #hero::after,
  body.project-home .hero-content::before,
  body.project-home .hero-content::after,
  body.project-home .hero-logo-container::before,
  body.project-home .hero-logo-container::after,
  body.project-home .hero-gradient-bottom::before,
  body.project-home .hero-title .yula,
  body.project-home .hero-pill-link,
  body.project-home .hero-pill-lucky {
    animation: none !important;
    transition: none !important;
  }

  body.project-home #global-bg-container {
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile compositor budget: keep overlays crisp without forcing full-screen blur layers. */
@media (max-width: 760px) {
  body.project-home main > section:not(#hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 560px;
  }

  body.project-home :is(.spotlight-backdrop, #feedbackModal, #hotkeysModal, #yulaGlobalNavModal) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(3, 7, 13, .96) !important;
  }

  body.project-home :is(.spotlight-dialog, #feedbackModal > div, #hotkeysModal > div) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.project-home .yula-global-dock {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(8, 12, 20, .96) !important;
  }
}

/* Cinematic entry reveal: the loading wordmark resolves into the living site. */
body.project-home #global-bg-container {
  opacity: .76;
  filter: blur(9px) saturate(.86);
  transform: scale(1.035);
  transition: opacity 1.45s ease, filter 1.45s ease, transform 1.75s cubic-bezier(.16,1,.3,1);
}
body.project-home.site-reveal #global-bg-container {
  opacity: 1;
  filter: blur(0) saturate(1);
  transform: scale(1);
}
body.project-home #global-bg-container::after {
  transition: opacity 1.35s ease;
}
body.project-home.site-reveal #global-bg-container::after { opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  body.project-home #global-bg-container,
  body.project-home.site-reveal #global-bg-container { opacity: 1; filter: none; transform: none; transition: none; }
}
