/* ============================================================
   layout.css — nav, heroes, marquee, sections, footer
   ============================================================ */

.no-motion *, .no-motion *::before, .no-motion *::after {
  animation: none !important; transition: none !important;
}
.no-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ---------------- NAV ---------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav-solid { background: rgba(242,234,217,.82); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(34,29,22,.08); }
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.nav-logo img { height: 32px; width: auto; display: block; transition: transform .4s var(--ease); }
.nav-logo:hover img { transform: rotate(-6deg) scale(1.05); }
.nav-word { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--ink); white-space: nowrap; }
.nav-light .nav-word { color: var(--on-dark); }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-links a { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--ink-soft); white-space: nowrap;
  text-decoration: none; padding: 9px 14px; border-radius: var(--r-pill); transition: color .2s, background .2s; position: relative; }
.nav-links a:hover { color: var(--ink); background: rgba(34,29,22,.06); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-light .nav-links a { color: var(--on-dark-soft); }
.nav-light .nav-links a:hover, .nav-light .nav-links a.is-active { color: var(--on-dark); background: rgba(243,236,221,.1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 11px 20px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-light .nav-burger span { background: var(--on-dark); }
.nav-drawer { display: none; }

@media (max-width: 1180px) { .nav-word { display: none; } }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav-drawer { display: flex; flex-direction: column; max-height: 0; overflow: hidden;
    background: rgba(242,234,217,.97); backdrop-filter: blur(14px); transition: max-height .4s var(--ease); }
  .nav-open .nav-drawer { max-height: 60vh; box-shadow: 0 16px 30px rgba(34,29,22,.12); }
  .nav-drawer a { font-family: var(--mono); font-size: 15px; color: var(--ink); text-decoration: none;
    padding: 16px var(--gutter); border-top: 1px solid rgba(34,29,22,.08); }
  .nav-open .nav-burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-burger span:nth-child(2){ opacity: 0; }
  .nav-open .nav-burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

/* ---------------- HERO shared ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; }
.hero-inner, .hero-imm-inner, .hero-play-inner { position: relative; z-index: 3; width: 100%; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-foot { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; gap: 16px; }
.hero-foot .mono-label:last-child { text-align: right; }
@media (max-width: 680px){ .hero-foot .mono-label:last-child{ display:none; } }

/* ---- A · EDITORIAL ---- */
.hero-editorial { padding-top: 96px; }
.hero-eyebrow { opacity: 0; animation: fadeUp .8s var(--ease-out) .1s forwards; }
.hero-title { margin: 22px 0 0; max-width: 16ch; }
.hero-title em { font-style: italic; color: var(--accent-deep); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .w { display: inline-block; transform: translateY(108%); animation: lineUp .9s var(--ease-out) forwards; }
.hero-title .line:nth-child(1) .w { animation-delay: .12s; }
.hero-title .line:nth-child(2) .w { animation-delay: .22s; }
.hero-title .line:nth-child(3) .w { animation-delay: .32s; }
.hero-lede { margin: 26px 0 0; opacity: 0; animation: fadeUp .8s var(--ease-out) .5s forwards; }
.hero-editorial .hero-ctas { opacity: 0; animation: fadeUp .8s var(--ease-out) .62s forwards; }
.hero-ghost { position: absolute; right: -8%; top: 50%; height: 116%; width: auto;
  transform: translateY(-50%) translate(calc(var(--mx,0) * -26px), calc(var(--my,0) * -22px));
  opacity: .05; z-index: 0; pointer-events: none; transition: transform .4s var(--ease); }
.float-shape { position: absolute; z-index: 1; border-radius: 28% 72% 64% 36% / 40% 38% 62% 60%;
  background: var(--accent); opacity: .16; filter: blur(.3px);
  transition: transform .5s var(--ease); pointer-events: none; }
.fs1 { width: 120px; height: 120px; right: 14%; top: 20%; background: var(--accent);
  transform: translate(calc(var(--mx,0)*38px), calc(var(--my,0)*30px)); }
.fs2 { width: 70px; height: 70px; right: 30%; bottom: 22%; background: var(--ink); opacity: .08;
  border-radius: 50%; transform: translate(calc(var(--mx,0)*-30px), calc(var(--my,0)*26px)); }
.fs3 { width: 54px; height: 54px; right: 9%; bottom: 30%; background: var(--accent-deep); opacity: .2;
  border-radius: 12px; transform: translate(calc(var(--mx,0)*22px), calc(var(--my,0)*-30px)) rotate(18deg); }
.fs4 { width: 30px; height: 30px; right: 40%; top: 28%; background: var(--ink); opacity: .1;
  transform: translate(calc(var(--mx,0)*-40px), calc(var(--my,0)*-22px)); }
@media (max-width: 760px){ .hero-ghost{ opacity:.04; height: 80%; } .float-shape{ display:none; } }

/* ---- B · IMMERSIVE ---- */
.hero-immersive { text-align: center; align-items: center; }
.hero-imm-inner { display: flex; flex-direction: column; align-items: center; }
.hero-mark { height: clamp(120px, 22vh, 230px); width: auto;
  transform: translate(calc(var(--mx,0)*16px), calc(var(--my,0)*14px));
  transition: transform .5s var(--ease);
  filter: drop-shadow(0 18px 50px rgba(0,0,0,.55));
  opacity: 0; animation: markIn 1.1s var(--ease-out) .1s forwards; }
.hero-imm-eyebrow { margin: 26px 0 0; opacity: 0; animation: fadeUp .8s var(--ease-out) .5s forwards; }
.hero-imm-title { margin: 16px 0 0; opacity: 0; animation: fadeUp .8s var(--ease-out) .62s forwards; }
.hero-immersive .hero-ctas { justify-content: center; opacity: 0; animation: fadeUp .8s var(--ease-out) .74s forwards; }
.glow { position: absolute; left: 50%; top: 42%; width: 90vw; height: 90vw; max-width: 1100px; max-height: 1100px;
  transform: translate(-50%,-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent) 0%, transparent 60%);
  opacity: .5; animation: glowPulse 7s ease-in-out infinite; }
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.motes span { position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-soft); opacity: .5; animation: drift linear infinite; }
.on-dark-foot .mono-label { color: var(--on-dark-faint); }

/* ---- C · PLAYFUL ---- */
.hero-playful { justify-content: center; padding-top: 90px; }
.hero-play-title { margin: 22px 0 0; }
.rotator { display: inline-block; position: relative; }
.rotator-word { display: inline-block; color: var(--accent-deep); animation: rotWord .6s var(--ease-out); }
.hero-playful .hero-ctas { opacity: 0; animation: fadeUp .8s var(--ease-out) .3s forwards; }
.hero-play-marquee { position: absolute; bottom: 64px; left: 0; right: 0; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: clamp(34px, 7vw, 84px);
  color: transparent; -webkit-text-stroke: 1.4px rgba(34,29,22,.22); }
.sticker { position: absolute; z-index: 1; color: var(--accent); font-size: 70px; opacity: .8;
  animation: floaty 6s ease-in-out infinite; }
.st1 { top: 18%; right: 16%; animation-delay: 0s; }
.st2 { bottom: 30%; right: 24%; font-size: 54px; color: var(--ink); opacity: .14; animation-delay: -2s; }
.st3 { top: 30%; right: 36%; font-size: 40px; color: var(--accent-deep); animation-delay: -4s; }
@media (max-width: 760px){ .sticker{ display:none; } }

/* ---------------- MARQUEE ---------------- */
.marquee { overflow: hidden; white-space: nowrap; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; align-items: center; animation: scrollX linear infinite; will-change: transform; }
.marquee-item { display: inline-flex; align-items: center; }
.marquee-sep { margin: 0 .35em; opacity: .5; }

/* ---------------- WORLD ---------------- */
.world-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-top: 26px; }
.world-statement { max-width: 18ch; }
.world-aside { padding-bottom: 8px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(48px, 7vw, 90px); background: rgba(243,236,221,.12); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(243,236,221,.12); }
.value { background: var(--espresso); padding: 32px 28px 38px; display: flex; flex-direction: column; gap: 12px;
  transition: background .35s var(--ease); }
.value:hover { background: var(--espresso-2); }
.value-k { color: var(--accent-soft); }
.value-t { font-size: clamp(20px, 1.6vw, 26px); }
.value-d { color: var(--on-dark-soft); font-size: 15px; line-height: 1.55; margin: 0; }
@media (max-width: 960px){ .world-grid{ grid-template-columns: 1fr; gap: 20px; } .values-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .values-grid{ grid-template-columns: 1fr; } }

/* ---------------- PROJECT ---------------- */
.project-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.project-stage { position: relative; }
.project-art { width: 100%; box-shadow: var(--shadow-pop); }
.project-art-parallax { position: absolute; inset: -10%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%);
  transform: translateY(calc((var(--p,0) - .5) * -60px)); }
.project-tags { display: flex; flex-wrap: wrap; gap: 10px; position: absolute; left: 20px; bottom: 20px; right: 20px; }
.project-tags .chip { background: rgba(242,234,217,.92); backdrop-filter: blur(6px); box-shadow: var(--shadow-soft);
  white-space: nowrap; flex: 0 0 auto; }
.project-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; margin-top: 44px; align-items: center; }
.project-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 860px){ .project-grid{ grid-template-columns: 1fr; gap: 28px; } }

.project-thumbs { display: flex; flex-direction: column; gap: 20px; }
.focus-list { display: flex; flex-direction: column; gap: 12px; }
.focus-item { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.4; color: var(--ink); }
.focus-dot { color: var(--accent); font-weight: 700; }

/* ---------------- DEVLOG ---------------- */
.devlog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.devlog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { cursor: pointer; display: flex; flex-direction: column; gap: 16px; }
.post-lead { grid-column: span 3; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.post-img { width: 100%; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post:hover .post-img { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.post-title { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.12; letter-spacing: -.01em; }
.post:hover .post-title, .post:hover .display-m { color: var(--accent-deep); transition: color .25s; }
@media (max-width: 860px){ .devlog-grid{ grid-template-columns: 1fr 1fr; } .post-lead{ grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 560px){ .devlog-grid{ grid-template-columns: 1fr; } .post-lead{ grid-column: span 1; } }

/* ---------------- GAMES (catalog) ---------------- */
.games-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.games-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.game-card { display: flex; flex-direction: column; background: var(--paper-2); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.game-featured { grid-column: span 2; flex-direction: row; }
.game-cover { width: 100%; position: relative; border-radius: 0; }
.game-featured .game-cover { width: 56%; flex: 0 0 56%; align-self: stretch; }
.game-status { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(242,234,217,.92); backdrop-filter: blur(6px); box-shadow: var(--shadow-soft); color: var(--ink); }
.game-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status-dev .dot { background: var(--accent); animation: blink 2.4s ease-in-out infinite; }
.status-live .dot { background: #5f9e6a; }
.status-soon .dot { background: var(--ink-faint); }
.game-info { display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 30px 30px 28px; flex: 1; }
.game-featured .game-info { padding: 44px 44px 40px; }
.game-codename { color: var(--accent-deep); }
.game-title { margin: 12px 0 0; }
.game-tagline { color: var(--ink-soft); margin: 12px 0 0; font-size: 15.5px; line-height: 1.5; max-width: 42ch; }
.game-platforms { display: flex; flex-wrap: wrap; gap: 9px; }
/* ghost slot — where the next game lands */
.game-ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(34,29,22,.14);
  border-radius: var(--r-lg); }
.game-ghost:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 2px var(--accent); }
.game-ghost-inner { display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 220px; height: 100%; padding: 40px; }
.game-ghost-mark { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1;
  color: var(--accent-deep); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px rgba(34,29,22,.14); transition: .3s; }
.game-ghost:hover .game-ghost-mark { box-shadow: inset 0 0 0 2px var(--accent); transform: rotate(90deg); }
.game-ghost-title { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink);
  white-space: nowrap; margin: 18px 0 5px; }
.game-ghost-sub { color: var(--ink-faint); }
@media (max-width: 860px){
  .games-head { grid-template-columns: 1fr; gap: 14px; }
  .games-list { grid-template-columns: 1fr; }
  .game-featured { grid-column: span 1; flex-direction: column; }
  .game-featured .game-cover { width: 100%; flex: none; }
  .game-featured .game-info { padding: 30px; }
}

/* ---------------- FOUNDER (solo) ---------------- */
.founder-head { margin-bottom: 48px; }
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.founder-portrait { position: relative; }
.founder-img { width: 100%; }
.founder-card { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.founder-name { color: var(--on-dark); }
.founder-role { color: var(--accent-soft); }
.founder-copy { display: flex; flex-direction: column; gap: 22px; }
.founder-note { color: var(--on-dark-soft); margin: 0; max-width: 54ch; }
.founder-note:first-child { color: var(--on-dark); font-size: clamp(19px, 1.7vw, 23px); }
.founder-hats { display: flex; flex-direction: column; gap: 12px; }
.founder-hats-label { color: var(--on-dark-faint); }
.hats-row { display: flex; flex-wrap: wrap; gap: 9px; }
.founder-sign { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--accent-soft); margin: 4px 0 0; }
@media (max-width: 860px){ .founder-grid { grid-template-columns: 1fr; gap: 32px; } .founder-img { max-width: 360px; } }

/* ---------------- TEAM ---------------- */
.team-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.member { margin: 0; }
.member-img { width: 100%; transition: transform .45s var(--ease); filter: grayscale(.3); }
.member:hover .member-img { transform: translateY(-5px); filter: grayscale(0); }
.member figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; }
.member-name { font-family: var(--display); font-weight: 700; font-size: 16px; }
.member-role { color: var(--on-dark-faint); }
.facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: clamp(48px,7vw,80px);
  border-top: 1px solid rgba(243,236,221,.14); padding-top: 40px; }
.fact { display: flex; flex-direction: column; gap: 8px; }
.fact-k { color: var(--on-dark-faint); }
.fact-v { color: var(--on-dark); }
@media (max-width: 960px){ .team-head{ grid-template-columns: 1fr; gap: 16px; } .team-grid{ grid-template-columns: repeat(3,1fr); } .facts{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .team-grid{ grid-template-columns: repeat(2,1fr); } }

/* ---------------- WISHLIST CTA ---------------- */
.wishlist { position: relative; padding: 0; overflow: hidden; isolation: isolate;
  background: var(--espresso); }
.wishlist-art { position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  z-index: -2; transform: scale(1.04); }
.wishlist-veil { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,16,12,.94) 0%, rgba(20,16,12,.78) 42%, rgba(20,16,12,.18) 78%, rgba(20,16,12,.05) 100%),
    linear-gradient(0deg, rgba(20,16,12,.6) 0%, rgba(20,16,12,0) 40%); }
.wishlist-inner { position: relative; min-height: clamp(440px, 56vw, 620px);
  display: flex; align-items: center; padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px); }
.wishlist-copy { max-width: min(620px, 60%); }
.wishlist-eyebrow { color: var(--accent); }
.wishlist-title { margin-top: 16px; color: var(--on-dark);
  text-shadow: 0 4px 30px rgba(20,16,12,.55); }
.wishlist-lede { color: var(--on-dark-soft); margin-top: 22px; max-width: 42ch; }
.wishlist-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-ghost-light { background: rgba(243,236,221,.06); color: var(--on-dark);
  box-shadow: inset 0 0 0 1.5px rgba(243,236,221,.35); backdrop-filter: blur(2px); }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); transform: translateY(-2px); }
@media (max-width: 640px){
  .wishlist-veil { background:
    linear-gradient(0deg, rgba(20,16,12,.96) 0%, rgba(20,16,12,.72) 50%, rgba(20,16,12,.42) 100%); }
  .wishlist-copy { max-width: none; }
}

/* ---------------- CONTACT ---------------- */
.contact-top { text-align: left; margin-bottom: 48px; }
.contact-title { margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.contact-card { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--espresso-2); border-radius: var(--r-lg); padding: 34px 32px 38px;
  box-shadow: inset 0 0 0 1px rgba(243,236,221,.08); transition: transform .35s var(--ease), background .35s; overflow: hidden; }
.contact-card:hover { transform: translateY(-4px); background: var(--espresso-3); }
.contact-k { color: var(--accent-soft); }
.contact-t { color: var(--on-dark); overflow-wrap: anywhere; word-break: break-word; line-height: 1.18; padding-right: 26px; }
.contact-d { color: var(--on-dark-soft); font-size: 15px; }
.contact-arrow { position: absolute; top: 28px; right: 30px; font-size: 22px; color: var(--on-dark-faint);
  transition: transform .35s var(--ease), color .25s; }
.contact-card:hover .contact-arrow { transform: translate(4px,-4px); color: var(--accent); }
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--espresso); padding-top: clamp(56px, 8vw, 96px); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; padding-bottom: 56px; }
.footer-tag { color: var(--on-dark-soft); max-width: 30ch; margin: 22px 0 0; font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .mono-label { color: var(--on-dark-faint); margin-bottom: 4px; }
.footer-col a { color: var(--on-dark-soft); text-decoration: none; font-size: 15px; transition: color .2s; width: fit-content; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 40px;
  border-top: 1px solid rgba(243,236,221,.12); }
.footer-base .mono-label { color: var(--on-dark-faint); }
@media (max-width: 760px){ .footer-inner{ grid-template-columns: 1fr; gap: 36px; } .footer-base{ flex-direction: column; gap: 8px; } }

/* ---------------- keyframes ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: translateY(0); } }
@keyframes markIn { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes glowPulse { 0%,100% { opacity: .4; transform: translate(-50%,-50%) scale(1); } 50% { opacity: .6; transform: translate(-50%,-50%) scale(1.08); } }
@keyframes drift { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .6; } 90% { opacity: .6; } 100% { transform: translateY(-120px) translateX(20px); opacity: 0; } }
@keyframes rotWord { from { opacity: 0; transform: translateY(14px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(8deg); } }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Failsafe end-state — applied 1.6s after mount in case entrance keyframes
   never play (throttled/offscreen iframe). Keeps content from being invisible. */
.anim-done .hero-eyebrow, .anim-done .hero-lede, .anim-done .hero-editorial .hero-ctas,
.anim-done .hero-imm-eyebrow, .anim-done .hero-imm-title, .anim-done .hero-immersive .hero-ctas,
.anim-done .hero-playful .hero-ctas { opacity: 1 !important; }
.anim-done .hero-title .w { opacity: 1 !important; transform: none !important; animation: none !important; }
.anim-done .hero-mark { opacity: 1 !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-title .w, .hero-eyebrow, .hero-lede, .hero-mark, .hero-imm-eyebrow, .hero-imm-title,
  .hero-ctas, .float-shape, .glow, .motes span, .sticker { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-title .w { transform: none !important; }
}
