/* KIVORA main.css (single entry file). tastemaker stamp:
   grammar "Lens-threaded scenes" · nav: micro bar + diagonal panel · hero: layered depth O-lens ·
   close: giant wordmark + marquee · signature detail: headline period = KO centre dot ·
   palette: brand board (locked, not generated) · contrast: all text pairs >= 4.5:1 (plan P1).
   Rule: colours only from the tokens below; transparency only via color-mix() of tokens. */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #05070F;
  --bg-glow: #101C52;
  --text: #E6EAF0;
  --text-2: #8B95A7;
  --accent: #78A4F9;
  --glow: #3AA0FF;
  --brand: #1A2EFF;
  --white: #FFFFFF;

  --input: color-mix(in srgb, var(--bg-glow) 60%, var(--bg));
  --surface: color-mix(in srgb, var(--bg-glow) 45%, var(--bg));
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --line-strong: var(--text-2);
  --grad: linear-gradient(45deg, var(--brand), var(--accent) 65%, var(--white));

  --f-display: "Cal Sans", sans-serif;
  --f-text: "Inter", system-ui, sans-serif;

  --fs-hero: clamp(2.5rem, 0.9rem + 4.6vw, 6.5rem);
  --fs-h1: clamp(2.25rem, 1rem + 4vw, 5rem);
  --fs-h2: clamp(2rem, 1rem + 4vw, 5rem);
  --fs-h2s: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-label: 0.8125rem;
  --fs-giant: clamp(3rem, 16.5vw, 26rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 192px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 12vw, 192px);
  --max: 1440px;
  --head-h: 72px;

  --r-chip: 6px; --r-card: 14px; --r-reel: 28px; --r-pill: 999px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}
@media (max-width: 767px) { :root { --head-h: 64px; } }

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Cal Sans"; src: url("../fonts/cal-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; hyphens: auto; overflow-wrap: break-word; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; font: 400 var(--fs-body)/1.6 var(--f-text); letter-spacing: 0.005em; background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--brand); color: var(--white); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--s4); top: var(--s4); z-index: 200; background: var(--brand); color: var(--white); padding: var(--s3) var(--s5); border-radius: var(--r-pill); font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* type */
.h1, .h2, .h3, .hero__title, .brand__word, .ending__word, .site-foot__word, .kpi__value, .process__num, .svc__n, .step__n { font-family: var(--f-display); font-weight: 600; font-synthesis: none; }
.h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; margin-bottom: var(--s5); }
.h2--s { font-size: var(--fs-h2s); margin-bottom: var(--s4); }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text); max-width: 38em; text-wrap: pretty; }
p { max-width: 68ch; text-wrap: pretty; }
.h1, .h2, .h3, .hero__title { overflow-wrap: break-word; } /* last resort; long words carry soft hyphens from the generator */
.dot { color: var(--accent); }
.eyebrow, .hero__label, .site-foot__h, .reel__format, .concept__cat, .case__cat, .badge { font: 500 var(--fs-label)/1.3 var(--f-text); text-transform: uppercase; letter-spacing: 0.12em; }
.eyebrow { color: var(--accent); margin-bottom: var(--s4); }
.slogan { font: 500 0.8125rem/1.4 var(--f-text); text-transform: uppercase; letter-spacing: 0.3em; color: var(--text-2); hyphens: manual; }
.placeholder { border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: var(--s5); color: var(--text-2); max-width: 68ch; }

/* ------------------------------------------------------------------ components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 56px; padding: 0 28px; border-radius: var(--r-pill); font: 600 1rem/1.2 var(--f-text); text-decoration: none; border: 1px solid transparent; cursor: pointer; hyphens: manual; white-space: nowrap; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.btn--primary { background: var(--brand); color: var(--white); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--large { min-height: 64px; padding: 0 36px; font-size: 1.0625rem; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px -8px var(--glow); }
  .btn--secondary:hover { border-color: var(--accent); color: var(--accent); }
}
.link-arrow { display: inline-flex; gap: var(--s2); align-items: center; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: translateX(4px); } .link-arrow:hover { text-decoration: underline; } }
.badge { position: absolute; top: var(--s3); left: var(--s3); z-index: 2; background: var(--accent); color: var(--bg); padding: 5px 8px; border-radius: var(--r-chip); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; }
.badge--static { position: static; display: inline-block; }
.ticks { display: grid; gap: var(--s3); margin: var(--s5) 0 var(--s6); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s5) 0; }
.chip { flex: none; white-space: nowrap; hyphens: manual; -webkit-hyphens: manual; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.chip[aria-pressed="true"], .chip--check:has(input:checked) { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
.chip[aria-pressed="true"]::before, .chip--check:has(input:checked) span::before { content: "✓"; margin-right: 4px; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--accent); } }
.media-toggle { position: absolute; z-index: 6; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); font-size: 0.875rem; cursor: pointer; backdrop-filter: blur(8px); }

/* ------------------------------------------------------------------ header + menu */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: 0 var(--gutter); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--text); text-decoration: none; padding: 8px 0; min-height: 44px; }
.brand__mark { width: 32px; height: 32px; }
.brand__word { font-size: 1.125rem; letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: var(--s6); }
.site-nav__list { display: flex; gap: var(--s5); }
.site-nav__list a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 10px 0; display: inline-block; }
.site-nav__list a[aria-current="page"] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .site-nav__list a:hover { color: var(--accent); } }
.menu-toggle { display: none; align-items: center; gap: var(--s3); min-height: 44px; padding: 0 4px 0 12px; background: transparent; border: 0; cursor: pointer; font-weight: 600; }
.menu-toggle__icon { position: relative; width: 22px; height: 12px; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--text); transition: transform 300ms var(--ease-out); }
.menu-toggle__icon::before { top: 0; } .menu-toggle__icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1023px) {
  html:not(.js) .site-head { height: auto; flex-wrap: wrap; padding-block: var(--s2); position: absolute; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: var(--s3); }
  html:not(.js) .site-nav__list { flex-wrap: wrap; gap: var(--s4); }
  html:not(.js) .site-nav__cta { display: none; }
  .js .menu-toggle { display: inline-flex; position: relative; z-index: 60; }
  .js .site-nav { position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s7); padding: var(--head-h) var(--gutter) var(--s8); background: radial-gradient(80% 60% at 90% 10%, var(--bg-glow), transparent 70%), var(--bg); clip-path: polygon(0 0, 0 0, -40% 100%, -40% 100%); visibility: hidden; transition: clip-path 600ms var(--ease-io), visibility 0s linear 600ms; }
  .js .site-nav[data-open] { clip-path: polygon(0 0, 140% 0, 100% 100%, -40% 100%); visibility: visible; transition: clip-path 600ms var(--ease-io), visibility 0s; }
  .js .site-nav__list { flex-direction: column; gap: var(--s3); }
  .js .site-nav__list a { font: 600 clamp(2rem, 9vw, 3.5rem)/1.15 var(--f-display); letter-spacing: -0.01em; }
  .js .site-nav__cta { min-height: 56px; padding: 0 28px; font-size: 1rem; }
}

/* sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta { display: block; position: fixed; inset: auto 0 0; z-index: 45; padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform 300ms var(--ease-out); }
  .sticky-cta .btn { width: 100%; }
  .js .sticky-cta[data-hidden] { transform: translateY(110%); }
  .has-sticky .site-foot { padding-bottom: calc(var(--s10) + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------------ layout */
main { display: block; }
.page-head, .svc-list, .band, .cta-block, .concepts, .case, .contact, .prose, .faq__inner, .nf { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.page-head { padding-top: calc(var(--head-h) + var(--s9)); padding-bottom: var(--s8); }
.page-head .lead { margin-top: var(--s5); }
.page-head--legal { padding-bottom: var(--s6); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: 0.875rem; color: var(--text-2); margin-bottom: var(--s6); }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--text-2); }
.crumbs a { color: var(--text-2); }
.crumbs [aria-current] { color: var(--text); }
.band { padding-block: var(--s9); border-top: 1px solid var(--line); }
.band--split { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .band--split { grid-template-columns: 1fr 2fr; } }
.band--glow { border: 0; border-radius: var(--r-reel); padding: var(--s9) clamp(24px, 6vw, 96px); margin-block: var(--s9); background: radial-gradient(70% 90% at 85% 10%, var(--bg-glow), transparent 70%), var(--surface); }
.cta-block { padding-block: var(--section); text-align: center; display: grid; justify-items: center; gap: var(--s5); }
.cta-block .h2 { margin: 0; }
.prose { padding-bottom: var(--section); display: grid; gap: var(--s4); }
.prose .h2 { margin-top: var(--s6); }

/* ------------------------------------------------------------------ act 1 hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--head-h) + var(--s5)) var(--gutter) var(--s7); overflow: clip; isolation: isolate; }
.hero__glow { position: absolute; inset: -10%; z-index: -1; background:
  radial-gradient(45% 38% at 50% 40%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 72%),
  radial-gradient(30% 30% at 68% 30%, color-mix(in srgb, var(--glow) 16%, transparent), transparent 70%),
  radial-gradient(60% 50% at 30% 70%, color-mix(in srgb, var(--bg-glow) 90%, transparent), transparent 70%); }
.motion .hero__glow { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3%, -2%, 0) scale(1.06); } }
.hero__stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--s6); width: 100%; }
.hero__symbol { position: relative; width: min(46vw, 59svh); }
.hero__ko { position: relative; z-index: 2; }
.hero__ko img { width: 100%; }
.hero__lens { position: absolute; z-index: 1; left: var(--lens-x); top: var(--lens-y); width: var(--lens-d); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden; background: var(--bg-glow); }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__rec { position: absolute; z-index: 3; right: 20%; top: 18%; width: clamp(8px, 1vw, 14px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--glow); }
.motion .hero__rec { animation: rec 2.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.35; } }
.cursor { position: absolute; z-index: 4; display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--r-pill); background: var(--bg-glow); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font: 500 0.8125rem/1.2 var(--f-text); white-space: nowrap; hyphens: manual; }
.cursor::before { content: ""; position: absolute; width: 14px; height: 14px; background: var(--accent); clip-path: polygon(0 0, 100% 45%, 45% 55%, 30% 100%); }
.cursor--1 { left: -8%; top: 4%; } .cursor--1::before { left: -12px; top: -12px; }
.cursor--2 { right: -10%; top: 2%; } .cursor--2::before { left: -12px; top: -12px; }
.cursor--3 { right: -6%; bottom: 0; } .cursor--3::before { left: -12px; top: -12px; }
.motion .cursor { animation: float 6s ease-in-out infinite alternate; }
.motion .cursor--2 { animation-delay: -2s; } .motion .cursor--3 { animation-delay: -4s; }
@keyframes float { to { translate: 0 -10px; } }
.hero__text { text-align: center; display: grid; justify-items: center; gap: var(--s6); }
.hero__h1 { display: grid; gap: var(--s4); }
.hero__label { color: var(--accent); letter-spacing: 0.3em; font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.9375rem); hyphens: manual; }
.hero__title { font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; max-width: 13ch; }
.hero__fg { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__fg img { width: 100%; height: 100%; object-fit: cover; }
.hero__toggle { right: var(--gutter); bottom: var(--s5); }
@media (max-width: 767px) {
  .hero { padding-top: calc(var(--head-h) + var(--s5)); padding-bottom: var(--s9); }
  .hero__symbol { width: min(80vw, 50svh); margin-inline: auto; }
  .hero__stage { gap: var(--s5); }
  .cursor { font-size: 0.75rem; padding: 5px 10px; }
  .cursor--1 { left: -2%; top: -6%; } .cursor--2 { right: -2%; top: -12%; } .cursor--3 { right: 0; bottom: -10%; }
  .hero__toggle { bottom: var(--s5); right: 50%; translate: 50% 0; font-size: 0.8125rem; }
}

/* ------------------------------------------------------------------ act stages (pinned only with .scenes: motion allowed and min-width 1024px) */
/* layers for everything the scroll score moves exist from the start, so a scene never waits for a new layer to be rasterised on its first frame */
.scenes .hero.is-near [data-plane="symbol"], .scenes .hero.is-near [data-plane="text"], .scenes .services.is-near .svc-card:not(:first-child), .scenes .process.is-near .process__fill, .scenes .work.is-near .reel, .scenes .work.is-near .work__launcher, .scenes .formats.is-near .format { will-change: transform, opacity; }
/* only sections within about one viewport of the screen carry will-change: bounded layer memory (Firefox budget) */
.act { position: relative; }
.act__stage { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-block: var(--section); }
.scenes .act[data-act="stack"], .scenes .act[data-act="steps"], .scenes .act[data-act="burst"], .scenes .act[data-act="gallery"] { height: var(--act-h); }
.scenes .act[data-act] > .act__stage { position: sticky; top: 0; height: 100svh; padding-block: calc(var(--head-h) + var(--s6)) var(--s6); overflow: clip; }

/* act 2: services stack */
.services { --act-h: 180svh; }
.services__stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
.services__head .lead { margin-bottom: var(--s5); }
.answer { border-left: 2px solid var(--accent); padding-left: var(--s4); margin: var(--s5) 0; max-width: 34em; }
.answer__h { font: 600 1rem/1.4 var(--f-text); margin-bottom: var(--s1); }
.answer p { color: var(--text-2); font-size: 0.9375rem; }
.services__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.svc-card { position: relative; display: grid; align-content: start; gap: var(--s4); padding: clamp(20px, 5vw, 32px); border-radius: var(--r-reel); background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--bg-glow) 85%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); min-height: 360px; }
.svc-card p { color: var(--text-2); }
.svc-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; }
@media (min-width: 1024px) {
  .services__stage { grid-template-columns: 5fr 7fr; align-items: center; }
  .scenes .services__cards { position: relative; height: min(460px, 62svh); }
  .scenes .services .svc-card { position: absolute; inset: 0; margin-left: calc(var(--i) * 28px); margin-top: calc(var(--i) * 20px); box-shadow: 0 -20px 60px -30px var(--bg); }
}
.svc-vis { min-height: 120px; display: flex; align-items: center; }
.svc-vis--plan { gap: var(--s2); flex-wrap: wrap; }
.svc-vis--plan span { padding: 10px 14px; border-radius: var(--r-pill); border: 1px solid var(--accent); color: var(--text); font-size: 0.875rem; font-weight: 500; }
.svc-vis--plan i { width: 22px; height: 2px; background: var(--grad); }
.svc-vis--phones { gap: var(--s3); align-items: flex-end; }
.mini-phone { position: relative; width: 74px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line-strong); aspect-ratio: 9 / 16; }
.mini-phone:nth-child(2) { width: 84px; }
.mini-phone picture, .mini-phone img { width: 100%; height: 100%; object-fit: cover; }
.mini-phone b { position: absolute; left: 6px; bottom: 6px; font-size: 0.625rem; font-weight: 600; background: var(--bg); color: var(--text); padding: 2px 5px; border-radius: 4px; }
.svc-vis--growth { flex-direction: column; align-items: stretch; gap: var(--s2); }
.svc-vis--growth svg { width: 100%; max-width: 280px; height: auto; overflow: visible; }
.svc-vis__grid { stroke: var(--line); fill: none; }
.svc-vis__line { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; }
.svc-vis--growth circle { fill: var(--accent); }
.svc-vis--growth .svc-vis__end { fill: var(--white); }
.svc-vis--growth > span { display: flex; justify-content: space-between; max-width: 280px; font-size: 0.75rem; color: var(--text-2); }

/* act 3: process */
.process { --act-h: 160svh; }
.process__stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
.process__num { display: none; }
.process__list { position: relative; padding-left: var(--s7); }
.process__track { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.process__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--brand), var(--accent) 65%, var(--white)); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.steps { display: grid; gap: var(--s5); }
.step { position: relative; display: grid; gap: var(--s2); }
.step::before { content: ""; position: absolute; left: calc(-1 * var(--s7) + 6px); top: 0.45em; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.step.is-on::before { background: var(--accent); box-shadow: 0 0 14px var(--glow); }
.step__n { font-size: 0.875rem; color: var(--accent); letter-spacing: 0.04em; }
.step p { color: var(--text-2); }
.scenes .step { opacity: var(--o, 1); transition: opacity 300ms var(--ease-out); }
@media (min-width: 1024px) {
  .process__stage { grid-template-columns: 5fr 7fr; align-items: center; }
  /* clean rolling numerals: solid, tabular, one line visible through a clipped window, brand dot after the number */
  .scenes .process__num { display: flex; align-items: flex-end; font-size: clamp(7rem, 15vw, 15rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
  .process__window { display: block; height: 1em; overflow: clip; }
  .process__roll { display: flex; flex-direction: column; transition: transform 600ms var(--ease-out); }
  .process__roll span { display: block; height: 1em; line-height: 1; }
  .process__num .dot { line-height: 1; margin-left: -0.04em; }
  .scenes .process__stage { padding-bottom: 12svh; }
}

/* act 4: work (peak) */
.work { --act-h: 360svh; z-index: 1; } /* act 5 starts 200svh before the end: its clipped lead-in runs under the wall, the last 100 are the portal */
.work__stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.work__head .h2 { font-size: clamp(2rem, 0.8rem + 2.6vw, 3.75rem); }
.work__head .lead { max-width: 26em; }
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.reel { position: relative; }
.reel__link { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-reel); overflow: hidden; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.reel__media, .reel__media picture, .reel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__link::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 92%, transparent)); }
.reel__meta { position: absolute; z-index: 2; left: var(--s4); right: var(--s4); bottom: var(--s4); display: grid; gap: 2px; }
.reel__format { color: var(--accent); font-size: 0.6875rem; }
.reel__brand { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.reel__line { font-size: 0.8125rem; color: var(--text); }
.reel__cover { position: absolute; z-index: 1; inset: 18% 12% auto; font: 600 clamp(1.1rem, 1.6vw, 1.6rem)/1.1 var(--f-display); color: var(--white); text-wrap: balance; hyphens: auto; }
.reel.is-dim .reel__link { filter: grayscale(1) brightness(0.25); }
.reel__link { transition: filter 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .reel__link img { transition: transform 600ms var(--ease-out); } .reel__link:hover img { transform: scale(1.04); } }
.work__launcher { display: none; }
@media (min-width: 768px) { .wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .work__stage { grid-template-columns: 5fr 7fr; align-items: start; }
  .wall { grid-template-columns: repeat(4, 1fr); }
  .scenes .work__head { position: relative; z-index: 3; align-self: center; }
  .scenes .wall { position: relative; margin-top: calc(-1 * var(--s6)); }
  .scenes .work__launcher { display: block; position: absolute; z-index: 4; left: calc(5 / 12 * 100% + 7 / 24 * 100%); top: 50%; width: 140px; translate: -50% -50%; pointer-events: none; }
}

/* act 5: founding (portal) */
.founding { position: relative; z-index: 2; }
.founding__stage { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: calc(var(--head-h) + var(--s7)) var(--gutter) var(--s8); background: radial-gradient(60% 60% at 80% 30%, var(--bg-glow), transparent 70%), radial-gradient(40% 40% at 15% 80%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%), var(--bg); }
.founding__inner { width: 100%; max-width: var(--max); display: grid; gap: var(--s7); align-items: center; }
.founding__ko { width: min(70vw, 460px); justify-self: center; }
@media (min-width: 900px) { .founding__inner { grid-template-columns: 7fr 5fr; } }
.portal-ring { display: none; }
.scenes .founding { position: relative; z-index: 2; margin-top: -200svh; height: 270svh; } /* its stage sticks by CSS alone, so it never trails the scroll */
.founding .h2 { font-size: clamp(2rem, 1rem + 3.2vw, 4.25rem); }
.scenes .founding__stage { position: sticky; top: 0; height: 100svh; clip-path: circle(var(--r, 0px) at var(--ox, 50%) var(--oy, 50%)); }
.scenes .portal-ring { display: block; position: fixed; z-index: 3; left: var(--ox, 50%); top: var(--oy, 50%); width: 100vmax; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, transparent 61.5%, var(--bg) 62.5%); mask: radial-gradient(circle, transparent 61.5%, var(--bg) 62.5%); pointer-events: none; opacity: 0; transform: scale(0.01); }


/* act 6: formats */
.formats { --act-h: 160svh; z-index: 2; background: var(--bg); }
.formats__stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
.formats__head { display: grid; gap: var(--s4); align-items: end; }
.formats__head .h2 { margin: 0; }
.formats__head .btn { justify-self: start; }
.formats__viewport { overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--s4); scrollbar-width: thin; }
.formats__row { display: flex; gap: var(--s6); width: max-content; }
.format { width: clamp(220px, 19vw, 290px); scroll-snap-align: start; display: grid; gap: var(--s5); }
.format__text { display: grid; gap: var(--s2); }
.format__text p { color: var(--text-2); }
.format__text .h3 { font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem); }
.format__icon { display: block; width: 32px; height: 32px; }
.format__icon img { width: 32px; height: 32px; }
@media (min-width: 1024px) {
  .formats__head { grid-template-columns: 1fr auto; }
  .format { width: clamp(420px, 36vw, 560px); grid-template-columns: minmax(180px, min(44%, 36svh)) minmax(0, 1fr); align-items: end; gap: var(--s5); }
  .scenes .formats__viewport { overflow: visible; margin: 0; padding: 0; }
  .scenes .formats__stage { align-content: center; }
}

/* phone mockups */
.phone { position: relative; aspect-ratio: 400 / 820; width: 100%; }
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.phone__screen { position: absolute; inset: 2% 4%; border-radius: 11% / 5.4%; overflow: hidden; background: var(--surface); }
.phone__screen picture, .phone__screen > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone--small { width: min(100%, 200px); }
.phone .badge { top: 9%; left: 8%; }
.ph-ui { position: absolute; inset: 0; z-index: 1; }
.ph-ui--reel .ph-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; translate: -50% -50%; border-radius: 50%; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--text); }
.ph-ui--reel .ph-play::after { content: ""; position: absolute; left: 20px; top: 15px; border-left: 16px solid var(--text); border-block: 11px solid transparent; }
.ph-bar { position: absolute; left: 8%; right: 8%; bottom: 6%; height: 3px; background: color-mix(in srgb, var(--text) 30%, transparent); border-radius: 2px; }
.ph-bar i { display: block; width: 38%; height: 100%; background: var(--accent); border-radius: 2px; }
.ph-ui--cover { display: grid; align-content: center; padding: 14%; background: color-mix(in srgb, var(--bg) 35%, transparent); }
.ph-ui--cover b { font: 600 1.15rem/1.15 var(--f-display); color: var(--white); text-wrap: balance; }
.ph-dots { position: absolute; left: 0; right: 0; bottom: 7%; display: flex; justify-content: center; gap: 6px; }
.ph-dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--text) 40%, transparent); }
.ph-dots i:first-child { background: var(--accent); }
.ph-segs { position: absolute; top: 9%; left: 8%; right: 8%; display: flex; gap: 4px; }
.ph-segs i { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--text) 35%, transparent); }
.ph-segs i:first-child { background: var(--text); }
.ph-poll { position: absolute; left: 10%; right: 10%; top: 44%; display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--white); color: var(--bg); text-align: center; font-size: 0.75rem; font-weight: 600; }
.ph-poll b { font-size: 0.8125rem; }
.ph-poll span { border-radius: 8px; padding: 6px; background: color-mix(in srgb, var(--accent) 35%, var(--white)); }
.ph-ui--brand { display: grid; align-content: center; justify-items: center; gap: 14px; padding: 12%; background: radial-gradient(80% 60% at 50% 30%, var(--bg-glow), var(--bg)); text-align: center; }
.ph-ui--brand img { width: 56px; height: 56px; }
.ph-ui--brand b { font: 600 0.95rem/1.2 var(--f-display); color: var(--text); }
.ph-swatches { display: flex; gap: 5px; }
.ph-swatches i { width: 18px; height: 18px; border-radius: 5px; }
.ph-swatches i:nth-child(1) { background: var(--bg); border: 1px solid var(--line-strong); }
.ph-swatches i:nth-child(2) { background: var(--brand); }
.ph-swatches i:nth-child(3) { background: var(--accent); }
.ph-swatches i:nth-child(4) { background: var(--text); }
.ph-swatches i:nth-child(5) { background: var(--text-2); }
.ph-type { font: 600 2.4rem/1 var(--f-display); color: var(--accent); }

/* act 7: faq (authored silence) */
.faq { position: relative; z-index: 2; background: var(--bg); padding-block: var(--section); }
.faq__inner { max-width: 960px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: var(--s5) 0; cursor: pointer; list-style: none; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__q { font: 600 clamp(1.0625rem, 1rem + 0.5vw, 1.375rem)/1.35 var(--f-text); }
.qa__icon { flex: none; position: relative; width: 20px; height: 20px; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--accent); transition: transform 200ms var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa p { padding-bottom: var(--s5); color: var(--text-2); }
.qa[open] p { animation: fadein 200ms var(--ease-out); }
@keyframes fadein { from { opacity: 0; } }
.faq__more { margin-top: var(--s6); }

/* act 8: ending */
.ending { position: relative; z-index: 2; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; overflow: clip; isolation: isolate; background: var(--bg); }
.ending__bg { position: absolute; inset: 0; z-index: -2; }
.ending__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.ending::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 45%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%), linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 40%, transparent) 40%, var(--bg)); }
.ending__inner { align-self: center; justify-self: center; text-align: center; display: grid; justify-items: center; gap: var(--s5); padding: calc(var(--head-h) + var(--s8)) var(--gutter) var(--s7); }
.ending__inner .h2 { margin: 0; }
.ending__word { font-size: var(--fs-giant); line-height: 0.82; letter-spacing: 0.08em; text-align: center; color: var(--text); white-space: nowrap; margin-right: -0.08em; hyphens: manual; user-select: none; }
.marquee { position: relative; background: var(--brand); overflow: clip; }
.marquee__link { display: block; color: var(--white); text-decoration: none; padding: var(--s5) 0; }
.marquee__track { display: flex; width: max-content; gap: var(--s8); padding-right: var(--s8); font: 600 clamp(1.5rem, 1rem + 2.5vw, 3rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; hyphens: manual; }
.motion .marquee__track { animation: marquee 28s linear infinite; }
.marquee__link:focus-visible .marquee__track { animation-play-state: paused; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .marquee__link:hover .marquee__track { animation-play-state: paused; } .marquee__link:hover span { text-decoration: underline; text-decoration-thickness: 3px; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ footer */
.site-foot { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: var(--s9) var(--gutter) var(--s7); }
.site-foot__grid { width: min(100%, var(--max)); margin-inline: auto; display: grid; gap: var(--s7); }
@media (min-width: 900px) { .site-foot__grid { grid-template-columns: 2fr 1fr 1.4fr 1fr; } }
.site-foot__word { font-size: 1.75rem; letter-spacing: 0.08em; margin-bottom: var(--s3); }
.site-foot__offer { margin-top: var(--s4); color: var(--text-2); font-size: 0.9375rem; }
.site-foot__h { color: var(--text-2); margin-bottom: var(--s4); }
.site-foot ul { display: grid; gap: var(--s2); }
.site-foot a { color: var(--text); text-decoration: none; display: inline-block; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .site-foot a:hover { color: var(--accent); text-decoration: underline; } }
.site-foot__muted { color: var(--text-2); font-size: 0.875rem; }
.site-foot__note { width: min(100%, var(--max)); margin: var(--s8) auto 0; padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.875rem; max-width: none; }

/* ------------------------------------------------------------------ sub pages */
.svc-list { display: grid; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); padding-block: var(--s9); border-top: 1px solid var(--line); align-items: center; scroll-margin-top: var(--head-h); }
.svc__n { display: block; color: var(--accent); font-size: 1rem; margin-bottom: var(--s4); }
.svc__text .lead { margin-bottom: var(--s2); }
.svc__vis { min-height: 280px; align-content: center; }
@media (min-width: 900px) { .svc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .svc:nth-child(even) .svc__vis { order: -1; } }
.steps--grid { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .steps--grid { grid-template-columns: repeat(4, 1fr); } }
.steps--grid .step::before { display: none; }
.format-icons { display: grid; gap: var(--s6); }
@media (min-width: 700px) { .format-icons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .format-icons { grid-template-columns: repeat(4, 1fr); } }
.format-icons li { display: grid; gap: var(--s3); }
.format-icons p { color: var(--text-2); }

.concepts { display: grid; gap: var(--s7) var(--s5); padding-bottom: var(--s9); }
@media (min-width: 700px) { .concepts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .concepts { grid-template-columns: repeat(3, 1fr); } }
.concept[hidden] { display: none; }
.concept__link { display: grid; gap: var(--s3); color: var(--text); text-decoration: none; }
.concept__media { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.concept__media picture, .concept__media img { width: 100%; height: 100%; object-fit: cover; }
.concept__cat { color: var(--accent); margin-top: var(--s2); }
.concept__idea { color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .concept__media img { transition: transform 600ms var(--ease-out); } .concept__link:hover img { transform: scale(1.03); } .concept__link:hover .concept__name { color: var(--accent); } }

.case__head { display: grid; gap: var(--s7); padding-top: calc(var(--head-h) + var(--s8)); align-items: center; }
@media (min-width: 900px) { .case__head { grid-template-columns: 7fr 5fr; } }
.case__labels { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.case__cat { color: var(--text-2); }
.case__idea { color: var(--accent); }
.case__h1 { margin-bottom: var(--s5); }
.case__note { margin-top: var(--s4); color: var(--text-2); font-size: 0.9375rem; }
.case__visual { border-radius: var(--r-reel); overflow: hidden; }
.case__body { display: grid; gap: var(--s8); padding-block: var(--s9); }
@media (min-width: 900px) { .case__body { grid-template-columns: 1fr 1fr; } }
.case__formats { padding-block: var(--s8); border-top: 1px solid var(--line); }
.case-formats { display: grid; gap: var(--s7); margin-top: var(--s6); }
@media (min-width: 700px) { .case-formats { grid-template-columns: repeat(3, 1fr); } }
.case-format { display: grid; gap: var(--s3); align-content: start; }
.case-format p { color: var(--text-2); }
.case__kpi { padding-block: var(--s8); border-top: 1px solid var(--line); }
.kpi { display: grid; gap: var(--s2); margin-top: var(--s4); }
.kpi__value { font-size: clamp(3.5rem, 2rem + 6vw, 8rem); line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.kpi__label { font-size: var(--fs-lead); color: var(--text); }
.case__links { display: grid; gap: var(--s4); padding-block: var(--s8); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .case__links { grid-template-columns: repeat(3, 1fr); } }
.case__link { display: grid; gap: var(--s1); padding: var(--s5); border-radius: var(--r-card); border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; }
.case__link span { color: var(--text-2); font-size: 0.875rem; }
.case__link b { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
@media (hover: hover) and (pointer: fine) { .case__link { transition: border-color 200ms var(--ease-out); } .case__link:hover { border-color: var(--accent); } }

.team { display: grid; gap: var(--s6); margin-top: var(--s6); }
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, minmax(0, 340px)); } }
.person { display: grid; gap: var(--s3); }
.person p { color: var(--text-2); }
.person__portrait { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 340px; border-radius: var(--r-reel); background: radial-gradient(60% 60% at 30% 30%, var(--bg-glow), var(--bg)); border: 1px solid var(--line); overflow: hidden; }
.person__portrait::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, transparent 61%, var(--bg) 62%); mask: radial-gradient(circle, transparent 61%, var(--bg) 62%); }
.person__portrait span { position: relative; font: 600 clamp(3rem, 8vw, 5rem)/1 var(--f-display); color: var(--text); }
.values { display: grid; gap: var(--s7); margin-top: var(--s6); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { display: grid; gap: var(--s3); }
.values p { color: var(--text-2); }

.contact { display: grid; gap: var(--s8); padding-top: calc(var(--head-h) + var(--s8)); padding-bottom: var(--section); }
@media (min-width: 1024px) { .contact { grid-template-columns: 5fr 7fr; align-items: start; } .contact__aside { position: sticky; top: calc(var(--head-h) + var(--s6)); } }
.contact__aside .lead { margin: var(--s5) 0; }
.contact__direct { margin-bottom: var(--s7); }
.mini-steps { counter-reset: s; display: grid; gap: var(--s4); }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); color: var(--text-2); }
.mini-steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: 0.8125rem; font-weight: 600; }
.form, .form-success { display: grid; gap: var(--s5); padding: clamp(24px, 4vw, 48px); border-radius: var(--r-reel); background: var(--surface); border: 1px solid var(--line); }
.form .h2 { margin: 0; }
.field { display: grid; gap: var(--s2); border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; padding: 0; }
.req, .opt { color: var(--text-2); font-weight: 400; font-size: 0.875rem; }
.field input:not([type="checkbox"]), .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--line-strong); background: var(--input); color: var(--text); font: inherit; transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .field input:not([type="checkbox"]):hover, .field textarea:hover { border-color: var(--text); } }
.field input:not([type="checkbox"]):focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.field [aria-invalid="true"] { border: 2px solid var(--accent) !important; }
.field__error { display: flex; gap: var(--s2); align-items: flex-start; color: var(--text); font-size: 0.9375rem; font-weight: 500; }
.field__error::before { content: "⚠"; color: var(--accent); }
.field__error[hidden] { display: none; }
.chip-set { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.chip--check { position: relative; }
.field .chip--check { padding: 0 18px; font-weight: 500; }
.chip--check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip--check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.field--chips[data-invalid] .chip { border-color: var(--accent); border-width: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; cursor: pointer; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.form__summary { padding: var(--s4); border-radius: var(--r-card); border: 2px solid var(--accent); font-weight: 500; }
.form__summary[hidden], .form[hidden], .form-success[hidden] { display: none; }
.form__nojs { color: var(--text-2); }
.form .btn { justify-self: start; }
.form-success { justify-items: start; }
.form-success__title { font: 600 var(--fs-h2s)/1.15 var(--f-display); }
.form-success__demo { color: var(--text-2); border-left: 2px solid var(--accent); padding-left: var(--s4); }
.page-contact .site-foot { padding-bottom: var(--s7); }

.credits { display: grid; gap: var(--s4); }
.credits li { display: grid; gap: 2px; padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.credits span { color: var(--text-2); }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; align-content: center; gap: var(--s5); text-align: center; padding-top: var(--head-h); }
.nf__o { position: relative; width: clamp(140px, 22vw, 260px); aspect-ratio: 1; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, transparent 61.5%, var(--bg) 62.5%); mask: radial-gradient(circle, transparent 61.5%, var(--bg) 62.5%); }
.nf__links { display: flex; gap: var(--s5); justify-content: center; flex-wrap: wrap; }
.nf__links a { display: inline-block; padding: 10px 4px; }

/* grain */
.grain { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: url("../img/koernung.webp"); opacity: 0.7; }

/* ------------------------------------------------------------------ reduced motion: calm static fallback */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
