/* =====================================================================
   HSMCVN 2.0 — "Aurora Editorial Dark" design system
   Hand-authored, zero-dependency. Native CSS scroll-driven motion +
   cross-document View Transitions. Honors prefers-reduced-motion.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* canvas — near-black with a cool undertone */
  --bg:         #07070c;
  --bg-2:       #0a0a12;
  --surface:    #0e0e18;
  --surface-1:  #12121e;
  --surface-2:  #181826;
  --surface-3:  #20202f;
  --line:       rgba(255,255,255,0.08);
  --line-2:     rgba(255,255,255,0.14);

  /* aurora accents */
  --iris:       #8b7bf7;
  --iris-soft:  #a89bff;
  --cyan:       #4fd6ee;
  --cyan-soft:  #7fe6f5;
  --amber:      #f6b65c;
  --rose:       #f48fb1;

  /* semantic */
  --accent:     var(--iris);
  --on-accent:  #0a0612;

  /* type */
  --text:       #f2f0f8;
  --text-dim:   #bdb8cc;
  --text-mute:  #948fab;   /* AA 4.5:1 on near-black */

  /* fonts */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Schibsted Grotesk', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* metrics */
  --max:    1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 18px;
  --radius-sm: 12px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* gradients */
  --aurora: linear-gradient(100deg, var(--iris-soft), var(--cyan-soft) 45%, var(--amber));
  --aurora-2: linear-gradient(120deg, var(--iris), var(--cyan) 60%, var(--amber));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--iris); color: #fff; }

/* ---------- Atmosphere: aurora mesh + grain ---------- */
.atmos {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(50vw 50vw at 8% -6%,  rgba(139,123,247,0.30), transparent 60%),
    radial-gradient(46vw 46vw at 96% 6%,  rgba(79,214,238,0.22),  transparent 60%),
    radial-gradient(60vw 55vw at 70% 108%, rgba(246,182,92,0.16), transparent 60%),
    radial-gradient(40vw 40vw at 30% 120%, rgba(244,143,177,0.14), transparent 60%);
  filter: saturate(118%);
  animation: aurora 24s var(--ease-in-out) infinite alternate;
}
.atmos::after { /* subtle moving mesh sheen */
  content: ""; position: absolute; inset: -20%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent, rgba(139,123,247,0.06), transparent, rgba(79,214,238,0.05), transparent);
  animation: spin 60s linear infinite;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%,2%,0) scale(1.14); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.grain {
  position: fixed; inset: -50%; z-index: -2; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)} 10%{transform:translate(-4%,-3%)} 30%{transform:translate(3%,-5%)}
  50%{transform:translate(-3%,4%)} 70%{transform:translate(4%,3%)} 90%{transform:translate(-2%,2%)}
}
/* faint vignette to focus content */
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(0,0,0,0.5)); }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; translate: -50% -50%; mix-blend-mode: difference;
}
.cursor-dot  { width: 7px; height: 7px; background: #fff; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.55);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
.cursor-ring.is-hot { width: 66px; height: 66px; background: rgba(255,255,255,0.12); border-color: #fff; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 12vw, 168px); position: relative; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan-soft);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan-soft); opacity: .7; }
.lead { color: var(--text-dim); max-width: 58ch; font-size: clamp(17px, 1.4vw, 21px); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(46px, 9.5vw, 132px); line-height: 0.94;
  letter-spacing: -0.025em; font-optical-sizing: auto;
  font-variation-settings: "opsz" 120, "SOFT" 0, "WONK" 0;
}
.h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5.5vw, 66px); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(27px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.015em; }
.h3 { font-family: var(--font-body); font-weight: 600; font-size: clamp(19px, 2vw, 25px); line-height: 1.25; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }
.grad { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent;
        background-size: 200% auto; animation: hue 8s linear infinite; }
@keyframes hue { to { background-position: 200% center; } }
.text-dim { color: var(--text-dim); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-variation-settings: "opsz" 40, "SOFT" 60, "WONK" 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; padding: 15px 26px; border-radius: 999px;
  color: var(--on-accent); background: var(--aurora-2); background-size: 200% auto;
  border: 1px solid transparent; overflow: hidden; isolation: isolate;
  will-change: transform; transition: background-position .6s var(--ease), box-shadow .4s var(--ease);
  box-shadow: 0 8px 30px -10px rgba(139,123,247,0.6);
}
.btn:hover { background-position: 100% center; box-shadow: 0 10px 40px -8px rgba(79,214,238,0.55); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(4px,-4px); }
.btn--ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border-color: var(--line-2); box-shadow: none; backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); box-shadow: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease), background .4s var(--ease);
  view-transition-name: nav;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.wordmark .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--aurora-2);
  box-shadow: 0 0 14px 2px rgba(139,123,247,0.7); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__link { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--text-dim);
  position: relative; padding-block: 6px; transition: color .3s var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--aurora-2); transition: width .35s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0; padding: 22px var(--gutter); gap: 18px;
    background: var(--surface); border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(150px, 22vh, 240px) clamp(56px, 9vw, 110px); }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 70px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; } }
.hero .display { margin-block: 18px 26px; }

/* kinetic headline */
.kinetic { display: inline; }
.kinetic .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.kinetic .word > span { display: inline-block; transform: translateY(110%);
  animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i,0) * 75ms + 120ms); }
@keyframes rise { to { transform: translateY(0); } }

/* glass frame for hero media */
.frame { position: relative; border-radius: var(--radius); border: 1px solid var(--line-2);
  overflow: hidden; background: rgba(18,18,30,0.6); backdrop-filter: blur(10px);
  box-shadow: 0 50px 140px -40px rgba(0,0,0,0.85), 0 0 90px -30px rgba(139,123,247,0.35);
  view-transition-name: hero-frame; }
.frame::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 1s var(--ease); }
.frame:hover::before { transform: translateX(100%); }
.frame__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.frame__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }

/* ---------- Work showcase (auto-scrolling reel inside hero frame) ---------- */
.showcase { overflow: hidden; position: relative; }
.showcase__track { display: flex; width: max-content; animation: showscroll 32s linear infinite; }
.showcase:hover .showcase__track, .showcase:focus-within .showcase__track { animation-play-state: paused; }
.shot { position: relative; flex: 0 0 auto; width: min(82vw, 540px); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
}
.shot figcaption .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--aurora-2); flex: none; }
@keyframes showscroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .showcase { overflow-x: auto; scroll-snap-type: x mandatory; }
  .showcase__track { animation: none; }
  .shot { scroll-snap-align: start; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(10,10,18,0.5);
  overflow: hidden; padding-block: 18px; backdrop-filter: blur(4px); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: scrollx 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display);
  font-style: italic; font-weight: 400; font-size: 26px; color: var(--text); white-space: nowrap; opacity: .85; }
.marquee__item .mk { width: 7px; height: 7px; border-radius: 50%; background: var(--aurora-2); flex: none; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.shead { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(40px, 5vw, 68px); max-width: 62ch; }
.shead--center { align-items: center; text-align: center; margin-inline: auto; }

/* ---------- Glass cards / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.card {
  position: relative; grid-column: span 12; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px);
  overflow: hidden; isolation: isolate; backdrop-filter: blur(6px);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
@media (min-width: 760px) {
  .card.col-8{grid-column:span 8} .card.col-7{grid-column:span 7} .card.col-6{grid-column:span 6}
  .card.col-5{grid-column:span 5} .card.col-4{grid-column:span 4} .card.col-3{grid-column:span 3}
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(139,123,247,0.16), transparent 60%);
  transition: opacity .4s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(168,155,255,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-4px);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__index { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--cyan-soft); display: block; margin-bottom: 20px; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 22px; background: rgba(139,123,247,0.12); border: 1px solid var(--line-2); color: var(--iris-soft); }
.card__icon svg { width: 24px; height: 24px; }
.card p { color: var(--text-dim); margin-top: 12px; max-width: 48ch; }
.card__ghost { position: absolute; right: -16px; bottom: -34px; font-size: 190px; line-height: 1; color: #fff; opacity: 0.03; pointer-events: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; padding: 6px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--cyan-soft); background: rgba(79,214,238,0.06); }
.card__link { font-family: var(--font-mono); font-size: 12.5px; color: var(--iris-soft); margin-top: 26px;
  display: inline-flex; gap: 6px; align-items: center; transition: gap .3s var(--ease); }
.card:hover .card__link { gap: 12px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: clamp(20px,3vw,48px); }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px,6vw,80px);
  letter-spacing: -0.03em; line-height: 1; }
.stat__num .suffix { background: var(--aurora-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); margin-top: 14px; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: clamp(16px,2vw,24px); grid-template-columns: 1fr; }
@media (min-width: 860px){ .steps{ grid-template-columns: repeat(3,1fr);} }
.step { position: relative; border-radius: var(--radius); padding: clamp(24px,3vw,36px);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line); transition: border-color .4s var(--ease); }
.step:hover { border-color: var(--line-2); }
.step__no { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 14px; color: var(--iris-soft);
  margin-bottom: 22px; transition: background .4s var(--ease), color .4s var(--ease); }
.step:hover .step__no { background: var(--aurora-2); color: var(--on-accent); }
.step ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.step li { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); }
.step li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aurora-2); flex: none; }

/* ---------- Feature split ---------- */
.split { display: grid; gap: clamp(28px,5vw,64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 920px){ .split{ grid-template-columns: 1fr 1fr; } .split--flip .split__media{ order:-1; } }
.checklist { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .ic { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(79,214,238,0.12); color: var(--cyan-soft); border: 1px solid var(--line-2); margin-top: 2px; }
.checklist .ic svg { width: 14px; height: 14px; }
.checklist b { font-weight: 600; }
.checklist p { color: var(--text-dim); margin-top: 2px; font-size: 15px; }

/* ---------- Spec table ---------- */
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(6px); }
.spec table { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: 20px clamp(16px,2vw,28px); text-align: left; }
.spec thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan-soft); background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line); }
.spec tbody tr { border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.spec tbody tr:last-child { border-bottom: 0; }
.spec tbody tr:hover { background: rgba(255,255,255,0.025); }
.spec td:first-child { font-weight: 600; }
.spec td.hl { color: var(--text); font-family: var(--font-mono); font-size: 14px; }
.spec td.weak { color: var(--text-mute); }

/* ---------- CTA band ---------- */
.ctaband { position: relative; overflow: hidden; border-radius: calc(var(--radius)*1.4);
  border: 1px solid var(--line-2); padding: clamp(40px,6vw,84px);
  background: radial-gradient(120% 160% at 0% 0%, rgba(139,123,247,0.35), transparent 55%),
              radial-gradient(120% 160% at 100% 100%, rgba(79,214,238,0.28), transparent 55%),
              var(--surface-1);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.ctaband .glow { position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 120%, rgba(246,182,92,0.18), transparent 60%); pointer-events: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(16px,2vw,24px); grid-template-columns: 1fr; }
@media (min-width: 760px){ .contact-grid{ grid-template-columns: repeat(3,1fr);} }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  border-radius: var(--radius); padding: clamp(28px,3vw,40px);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.contact-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.contact-card img { width: 170px; height: 170px; border-radius: 12px; background:#fff; padding: 8px; }
.contact-card .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(8,8,14,0.6); padding-block: clamp(48px,6vw,84px); }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px){ .footer__grid{ grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 20px; }
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer a { color: var(--text-mute); font-size: 14px; transition: color .3s var(--ease); }
.footer a:hover { color: var(--cyan-soft); }
.footer__bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__bar span { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }

/* =====================================================================
   Reveal motion — native scroll-driven where supported, JS fallback.
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 1; transform: none; animation: reveal-in linear both;
      animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .reveal.in { transition: none; }
    @keyframes reveal-in { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
    .parallax { animation: parallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes parallax { from { transform: translateY(44px); } to { transform: translateY(-44px); } }
  }
}
.stagger > * { --d: calc(var(--n,0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .kinetic .word > span { animation: none; transform: none; }
  .atmos, .atmos::after, .grain, .marquee__track, .frame::before, .grad, .stat__num .suffix { animation: none; }
}

/* ---------- View transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root){ animation: vt-out .35s var(--ease) both; }
::view-transition-new(root){ animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root){ animation: none; }
}

/* ---------- Utilities ---------- */
.grid-2 { display: grid; gap: clamp(20px,3vw,40px); grid-template-columns: 1fr; }
@media (min-width: 860px){ .grid-2{ grid-template-columns: 1fr 1fr; } }
.mt-s{margin-top:16px}.mt-m{margin-top:28px}.mt-l{margin-top:44px}
.center{text-align:center}
.panel { border:1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,3vw,40px);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); backdrop-filter: blur(6px); }
