/* SEVNworks — shell, tokens and shared components.
   Type: Newsreader (display serif, optical sizes) · Schibsted Grotesk (text) · DM Mono (labels, data). */

:root {
  --ink: #0B0B0C; --ink-2: #111110; --ink-3: #171715; --ink-4: #201F1C;
  --paper: #F2EFE9; --paper-2: #E8E3D9; --paper-3: #DDD6C9; --surface-paper: #FAF8F4;
  --on-ink: #EDE9E1; --on-ink-2: #A9A49A; --on-ink-3: #85817A;
  --on-paper: #121211; --on-paper-2: #59554D;
  --line-ink: rgba(237, 233, 225, .11); --line-ink-2: rgba(237, 233, 225, .22);
  --line-paper: rgba(18, 18, 17, .13); --line-paper-2: rgba(18, 18, 17, .3);
  /* Studio brand: SEVN chartreuse (see _shared/brand/README.md). --signal is the mark colour and the accent: fills,
     buttons (always with ink text), rules, focus rings and text on ink. Chartreuse text fails on paper (1.2:1), so
     --signal-text switches to ink inside paper and signal bands. */
  --signal: #D4FF3F; --signal-2: #E6FF8E; --signal-hover: #F0FFBF;
  --signal-text: var(--signal);
  --danger: #A3271A;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1480px;
  --hd: 72px;
  /* Motion tokens (editorial, premium): quick to answer, unhurried to settle. See README › Motion & micro-interactions. */
  --dur-1: 140ms;  /* hover, press */
  --dur-2: 220ms;  /* state changes: toggles, tabs, selection */
  --dur-3: 360ms;  /* entering content, panels, menus */
  --dur-4: 480ms;  /* the slowest routine move: image zoom, preview cross-dissolve */
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* enter: confident arrival */
  --ease-in: cubic-bezier(.5, 0, .75, 0);    /* exit */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: linear(0, .07, .221, .398, .568, .713, .827, .91, .967, 1.002, 1.02, 1.028, 1.029, 1.026, 1.021, 1.016, 1.011, 1.007, 1.004, 1.002, 1.001, 1, .999, .999, 1); /* gentle, ~3% overshoot */
  --dur-spring: 420ms;
  --ease: var(--ease-out);
  --accent: var(--signal); --accent-ink: var(--on-paper);
  /* band defaults (dark) */
  --bg: var(--ink); --fg: var(--on-ink); --fg-2: var(--on-ink-2); --fg-3: var(--on-ink-3);
  --line: var(--line-ink); --line-2: var(--line-ink-2); --surface: var(--ink-3); --focus: var(--signal);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body {
  margin: 0; background: var(--ink); color: var(--on-ink);
  font: 400 17px/1.6 var(--sans); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::after { /* film grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
picture { display: contents; } /* AVIF wrapper from tools/lib.mjs img(): the <img> lays out as if it were the direct child */
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 200; background: var(--signal); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; transform: translateY(-80px); transition: transform var(--dur-2) var(--ease-out); }
.skip:focus { transform: none; }

/* ---------- bands ---------- */
.band { position: relative; background: var(--bg); color: var(--fg); padding-block: clamp(80px, 9vw, 136px); }
.band--ink { --bg: var(--ink); --fg: var(--on-ink); --fg-2: var(--on-ink-2); --fg-3: var(--on-ink-3); --line: var(--line-ink); --line-2: var(--line-ink-2); --surface: var(--ink-3); --focus: var(--signal); color-scheme: dark; }
.band--paper, .band--paper2, .band--signal { --signal-text: var(--on-paper); --fg: var(--on-paper); --fg-2: var(--on-paper-2); --fg-3: #69645C; --line: var(--line-paper); --line-2: var(--line-paper-2); --surface: var(--surface-paper); --focus: var(--on-paper); color-scheme: light; }
.band--paper { --bg: var(--paper); }
.band--paper2 { --bg: var(--paper-2); }
.band--signal { --bg: var(--signal); --signal-text: var(--ink); --fg-2: #2E3505; --fg-3: #3F4710; --line: rgba(11, 11, 12, .18); --line-2: rgba(11, 11, 12, .4); }

/* ---------- type ---------- */
.display {
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(3.1rem, 7vw, 6rem); line-height: .95; letter-spacing: -.038em; text-wrap: balance;
}
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 300; letter-spacing: -.03em; }
.display--page { font-size: clamp(2.9rem, 6.2vw, 5.6rem); max-width: 15ch; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.35rem, 4.6vw, 4.1rem); line-height: 1.0; letter-spacing: -.032em; text-wrap: balance; }
.h2 em { color: var(--fg-2); }
.band--signal .h2 em { color: inherit; }
.h2--statement { font-size: clamp(2rem, 3.3vw, 3.1rem); line-height: 1.06; }
.h2--xl { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.lede { font-size: clamp(1.05rem, 1.25vw, 1.22rem); line-height: 1.6; color: var(--fg-2); max-width: 54ch; text-wrap: pretty; }
.lede--wide { max-width: 62ch; margin-top: 32px; }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }
.small { font-size: .9rem; color: var(--fg-2); }
.mono.small { font-size: .72rem; }
.tag-note { color: var(--fg-3); font-size: .68rem; margin-top: 18px; }
.u { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }

.sec-rule { display: block; height: 0; border: 0; border-top: 1px solid var(--line-2); margin: 0 0 clamp(44px, 6vw, 96px); }
.sec-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-intro .h2 { grid-column: 1 / span 7; }
.sec-intro .lede { grid-column: 8 / -1; justify-self: end; }
@media (max-width: 900px) { .sec-intro .h2, .sec-intro .lede { grid-column: 1 / -1; justify-self: start; } }

/* ---------- icons ---------- */
.ico-arrow { width: 1em; height: 1em; flex: none; transition: transform var(--dur-2) var(--ease-out); }
.ico-chev { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease-out); }
.ico-plus { width: 18px; height: 18px; flex: none; transition: transform var(--dur-3) var(--ease-out); }

/* ---------- buttons & links ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--fg); --b-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font: 500 15px/1 var(--sans); letter-spacing: -.005em;
  white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring), translate var(--dur-3) var(--ease-out);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--b-hover, rgba(127, 127, 127, .12)); transform: translateY(101%); transition: transform var(--dur-3) var(--ease-out); border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn:hover .ico-arrow { transform: translateX(3px); }
.btn:hover .ico-arrow--out { transform: translate(2px, -2px); }
.btn:active { transform: scale(.97); transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out), translate var(--dur-3) var(--ease-out); }
.btn--signal { --b-bg: var(--signal); --b-fg: var(--ink); --b-bd: var(--signal); --b-hover: var(--signal-hover); }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--ink); --b-bd: var(--accent); --b-hover: rgba(255, 255, 255, .35); }
.btn--line { --b-hover: rgba(237, 233, 225, .1); }
.btn--ghost { --b-bd: var(--line-2); --b-hover: rgba(237, 233, 225, .08); }
.btn--ink { --b-bg: var(--on-paper); --b-fg: var(--paper); --b-bd: var(--on-paper); --b-hover: #34322D; }
.btn--ghost-ink { --b-fg: var(--on-paper); --b-bd: var(--line-paper-2); --b-hover: rgba(18, 18, 17, .07); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 500; font-size: 15px; color: var(--fg);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px no-repeat; transition: background-size var(--dur-3) var(--ease-out); }
.link-arrow:hover, .link-arrow:focus-visible { background-size: calc(100% - 1.5em) 1px; }
.link-arrow:hover .ico-arrow, .link-arrow:focus-visible .ico-arrow { transform: translateX(4px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 32px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--a, var(--signal)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a, var(--signal)) 20%, transparent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 400 .68rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.pill--quiet { color: var(--fg-2); border-style: dashed; }
.pill--real { --a: var(--signal); border-color: var(--signal); color: var(--on-ink); }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hd); color: var(--on-ink); transition: background-color var(--dur-3) var(--ease-out), border-color var(--dur-3), backdrop-filter var(--dur-3); border-bottom: 1px solid transparent; }
.hd.is-scrolled, .hd.is-open { background: rgba(11, 11, 12, .8); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--line-ink); }
.hd__in { display: flex; align-items: center; gap: 24px; height: 100%; }
/* Lockup: the SEVN mark + wordmark (viewBox 0 0 112 138). The mark is sized from the type (1.5em tall) and nudged so the
   house walls start at the wordmark's cap height: the roof rises above it like an apex overshoot and the exhaust bars
   hang below the baseline like a descender. Chartreuse on ink; ink (currentColor) on paper. */
.brand { display: inline-flex; align-items: center; gap: .42em; min-height: 44px; font: 600 18px/1 var(--sans); letter-spacing: -.03em; color: var(--on-ink); }
.brand__mark { height: 1.5em; width: 1.217em; flex: none; color: var(--signal); transform: translateY(-.035em); transition: transform var(--dur-spring) var(--spring); }
/* Lockup hover: the mark lifts off by ~2px and settles back with a gentle spring. Movement only, never colour or
   effects on the mark itself (brand rule); gated by reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .brand__mark, .brand:focus-visible .brand__mark { transform: translateY(calc(-.035em - 2px)); transition: transform var(--dur-3) var(--ease-out); }
  .brand:active .brand__mark { transform: translateY(-.035em); transition-duration: var(--dur-1); }
}
.brand__word em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -.02em; margin-left: 1px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--on-ink-2); font-size: 15px; transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.nav__link:hover, .nav__link[aria-current], .nav__btn[aria-expanded="true"], .nav__btn[data-current] { color: var(--on-ink); }
.nav__link:hover { background: rgba(237, 233, 225, .06); }
.nav__link[aria-current]::after, .nav__btn[data-current]::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--signal); margin-left: 2px; }
.nav__btn[aria-expanded="true"] .ico-chev { transform: rotate(180deg); }
.hd__cta { margin-left: 6px; }
.hd__menu { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line-ink-2); font-size: 14px; color: var(--on-ink); }
.burger { position: relative; width: 32px; height: 32px; display: grid; place-items: center; }
.burger i { position: absolute; width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--dur-3) var(--ease-out); }
.burger i:first-child { transform: translateY(-3px); }
.burger i:last-child { transform: translateY(3px); }
.hd__menu[aria-expanded="true"] .burger i:first-child { transform: rotate(45deg); }
.hd__menu[aria-expanded="true"] .burger i:last-child { transform: rotate(-45deg); }

.mega { position: absolute; top: 100%; left: 0; right: 0; background: #121211; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); border-block: 1px solid var(--line-ink); padding: 28px 0 36px; transform-origin: 50% 0; animation: megaIn var(--dur-3) var(--ease-out); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
.mega.is-closing { animation: megaOut var(--dur-2) var(--ease-in) forwards; pointer-events: none; }
@keyframes megaOut { to { opacity: 0; transform: translateY(-4px); } }
.mega__grid > li, .mega__side { animation: megaItem var(--dur-3) var(--ease-out) both; }
.mega__grid > li:nth-child(2) { animation-delay: 25ms; } .mega__grid > li:nth-child(3) { animation-delay: 50ms; } .mega__grid > li:nth-child(4) { animation-delay: 75ms; }
.mega__grid > li:nth-child(5) { animation-delay: 100ms; } .mega__grid > li:nth-child(6) { animation-delay: 125ms; } .mega__side { animation-delay: 90ms; }
@keyframes megaItem { from { opacity: 0; transform: translateY(6px); } }
.mega__in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 40px; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mega__item { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; padding: 18px 18px 20px; border-radius: 12px; border: 1px solid transparent; transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring); height: 100%; }
.mega__item .dot { transform: translateY(-1px); transition: box-shadow var(--dur-2) var(--ease-out); }
.mega__item:hover, .mega__item:focus-visible { background: var(--ink-4); border-color: var(--line-ink); }
.mega__item:hover .dot, .mega__item:focus-visible .dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--a) 25%, transparent); }
.mega__item:active { transform: scale(.985); transition-duration: var(--dur-1); }
.mega__tag { transition: color var(--dur-2) var(--ease-out); }
.mega__item:hover .mega__tag, .mega__item:focus-visible .mega__tag { color: var(--on-ink); }
.mega__name { font-weight: 500; font-size: 16px; color: var(--on-ink); }
.mega__tag { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--on-ink-2); }
.mega__side { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 32px; border-left: 1px solid var(--line-ink); color: var(--on-ink); }
.mega__lede { font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; color: var(--on-ink); margin-bottom: 14px; }

.mnav { position: fixed; inset: var(--hd) 0 0; z-index: 55; background: var(--ink); color: var(--on-ink); overflow-y: auto; overscroll-behavior: contain; animation: mnavIn var(--dur-3) var(--ease-out); }
.mnav.is-closing { animation: mnavOut var(--dur-2) var(--ease-in) forwards; pointer-events: none; }
@keyframes mnavOut { to { opacity: 0; } }
@keyframes mnavIn { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.mnav__in { padding-block: 28px 48px; display: flex; flex-direction: column; min-height: 100%; }
.mnav__label { color: var(--on-ink-3); margin-bottom: 8px; }
.mnav__products li a { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid var(--line-ink); font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.02em; }
.mnav__products .mnav__all { font-family: var(--sans); font-size: 15px; color: var(--on-ink-2); gap: 8px; border-bottom: 0; }
.mnav__main { margin-top: 24px; }
.mnav__main a { display: flex; min-height: 56px; align-items: center; font-family: var(--serif); font-size: 2.2rem; letter-spacing: -.03em; font-weight: 300; }
.mnav__cta { margin-top: 32px; width: 100%; }
.mnav__foot { color: var(--on-ink-3); margin-top: auto; padding-top: 32px; }
.mnav .mnav__in > * { animation: mnavItem var(--dur-3) var(--ease-out) both; }
.mnav .mnav__in > :nth-child(2) { animation-delay: 40ms; } .mnav .mnav__in > :nth-child(3) { animation-delay: 80ms; } .mnav .mnav__in > :nth-child(n+4) { animation-delay: 120ms; }
@keyframes mnavItem { from { opacity: 0; transform: translateY(8px); } }
body.nav-open { overflow: hidden; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .hd__menu { display: inline-flex; margin-left: 12px; }
  .hd__cta { margin-left: auto; }
}
@media (max-width: 560px) {
  :root { --hd: 64px; }
  .hd__cta { display: none; }
  .hd__menu { margin-left: auto; }
}

/* ---------- footer ---------- */
.ft { background: var(--ink); color: var(--on-ink); padding: clamp(88px, 10vw, 140px) 0 40px; border-top: 1px solid var(--line-ink); }
.ft__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(56px, 7vw, 96px); }
.ft__statement { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; max-width: 26ch; }
.ft__statement em { color: var(--on-ink-2); }
.ft__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 40px; border-top: 1px solid var(--line-ink); }
.ft__h { color: var(--on-ink-3); margin-bottom: 14px; font-weight: 400; }
.ft__cols li { color: var(--on-ink-2); font-size: 15px; }
.ft__cols a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; transition: color var(--dur-2) var(--ease-out), background-size var(--dur-3) var(--ease-out);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 7px) / 0 1px no-repeat; }
.ft__cols a:hover, .ft__cols a:focus-visible { color: var(--on-ink); background-size: 100% 1px; }
.ft__cols a .dot { transition: box-shadow var(--dur-2) var(--ease-out); }
.ft__cols a:hover .dot, .ft__cols a:focus-visible .dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--a) 25%, transparent); }
.ft__cols li:not(:has(a)) { min-height: 36px; display: flex; align-items: center; }
.ft__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line-ink); }
.ft__base p { color: var(--on-ink-3); font-size: 13px; max-width: 70ch; }
@media (max-width: 760px) { .ft__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; }
.js .rv.in { opacity: 1; }
/* Page heroes are the first paint (and the LCP), so they never wait for JS: visible at once, rising into place
   with CSS alone. Transform-only, so it doesn't delay LCP or count as layout shift. site.js skips them. */
.js .page-hero .rv { opacity: 1; animation: hero-rise .6s var(--ease-out) backwards; }
.js .page-hero .rv + .rv { animation-delay: .06s; }
.js .page-hero .rv + .rv + .rv { animation-delay: .12s; }
@keyframes hero-rise { from { transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none; filter: none; transition: opacity .3s linear; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- page hero ---------- */
.page-hero { padding-top: calc(var(--hd) + clamp(72px, 11vw, 160px)); padding-bottom: clamp(72px, 9vw, 128px); overflow: hidden; }
.page-hero--tight { padding-bottom: clamp(56px, 6vw, 88px); }
.page-hero::before { content: ''; position: absolute; right: -10vw; top: -20vw; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 9%, transparent), transparent); pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--fg-2); margin-bottom: clamp(32px, 4vw, 56px); }
.crumbs a { transition: color var(--dur-1) var(--ease-out); } .crumbs a:hover, .crumbs a:focus-visible { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }

/* ---------- filters (home capability map + products index) ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips__l { width: 104px; color: var(--fg-3); flex: none; }
.fchip { position: relative; z-index: 1; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--fg); transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring); }
.fchip:hover { border-color: var(--fg); }
.fchip:active { transform: scale(.96); transition-duration: var(--dur-1); }
.fchip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters__count { color: var(--fg-2); margin-top: 6px; }
.filters--sticky { position: sticky; top: var(--hd); z-index: 5; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding-block: 20px; margin-top: -20px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chips__l { width: auto; margin-right: 6px; }
  .fchip { flex: none; scroll-snap-align: start; }
  .filters--sticky { position: static; }
}

/* ---------- browser frame + live previews ---------- */
.browser { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line-ink-2); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .3); transition: border-radius var(--dur-4) var(--ease-out); margin-inline: auto; max-width: 100%; }
.browser__chrome { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line-ink); background: #141412; }
.browser__chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(237, 233, 225, .16); }
.browser__url { flex: 1; text-align: center; color: var(--on-ink-3); text-transform: none; letter-spacing: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 50px; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #121211; }
.browser[data-device="mobile"] { max-width: 380px; border-radius: 34px; padding: 10px; background: #1b1a18; }
.browser[data-device="mobile"] .browser__chrome { display: none; }
.browser[data-device="mobile"] .browser__screen { aspect-ratio: 390 / 844; border-radius: 26px; }
.pv { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--dur-4) var(--ease-out), visibility 0s var(--dur-4); }
.pv.is-on { transition-delay: 0s; }
.pv.is-on { opacity: 1; visibility: visible; }
.pv iframe { max-width: none; position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; opacity: 0; transition: opacity var(--dur-4) var(--ease-out); }
.pv.is-loaded iframe { opacity: 1; }
.pv__fallback { position: absolute; inset: 0; }
.pv__fallback .art { width: 100%; height: 100%; }
.pv__fb-copy { position: absolute; left: 24px; bottom: 22px; right: 24px; color: var(--on-ink); }
.pv__fb-name { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; }
.pv__fb-copy .mono { color: var(--on-ink-2); margin-top: 6px; }
.pv.is-failed .pv__fb-copy .mono { color: var(--signal-text); }
.seg { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg__b { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring); }
.seg__b:active { transform: scale(.96); transition-duration: var(--dur-1); }
.seg__b:hover, .seg__b:focus-visible { color: var(--fg); }
.seg__b[aria-selected="true"], .seg__b[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg__b .dot { width: 7px; height: 7px; }

/* ---------- shared editorial blocks ---------- */
.cs-two { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.cs-two > :first-child { grid-column: 1 / span 5; }
.cs-two > :last-child { grid-column: 7 / -1; }
@media (max-width: 900px) { .cs-two > :first-child, .cs-two > :last-child { grid-column: 1 / -1; } }
.prose p { font-size: clamp(1.08rem, 1.35vw, 1.28rem); line-height: 1.62; color: var(--fg-2); max-width: 60ch; text-wrap: pretty; }
.prose p:first-child { color: var(--fg); }
.prose p + p { margin-top: 1.1em; }
/* Services FAQ: question (serif) then answer, as plain readable text for people and answer engines */
.faq__list h3 { color: var(--fg); margin: 1.7em 0 .45em; max-width: 30ch; }
.faq__list h3:first-child { margin-top: 0; }
.prose .cta-row { margin-top: 36px; }
.prose--dark p:first-child { color: var(--on-ink); }
.pages-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pages-list li { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--fg-2); }
.ticks li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); font-size: 1.04rem; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 24px; width: 16px; height: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) translate(2px, -4px); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; margin-top: clamp(48px, 6vw, 88px); }
.principles li { border-top: 1px solid var(--line-2); padding-top: 20px; }
.principles .mono { color: var(--signal-text); }
.principles--light .mono { color: var(--fg-3); }
.principles h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.12; letter-spacing: -.02em; margin: 18px 0 12px; max-width: 18ch; }
.principles p { color: var(--fg-2); max-width: 42ch; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; gap: 40px; } }

/* start CTA band (home + services) */
.start-cta__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: end; }
.start-cta__grid > :first-child { grid-column: 1 / span 7; }
.start-cta__grid > :last-child { grid-column: 8 / -1; }
.start-cta .lede { color: var(--fg-2); }
.choice { margin-top: 32px; border-bottom: 1px solid var(--line-2); }
.choice a { display: flex; justify-content: space-between; align-items: center; min-height: 72px; border-top: 1px solid var(--line-2); font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.02em;  }
.choice a > span { transition: transform var(--dur-3) var(--ease-out); }
.choice a:hover > span, .choice a:focus-visible > span { transform: translateX(14px); }
.choice .ico-arrow { width: 22px; height: 22px; }
.choice a:hover .ico-arrow, .choice a:focus-visible .ico-arrow { transform: translateX(6px); }
@media (max-width: 900px) { .start-cta__grid > :first-child, .start-cta__grid > :last-child { grid-column: 1 / -1; } }

/* Legal documents (privacy/, terms/): the owner's text verbatim, set as a readable, numbered, anchored document. */
.legal__updated { margin-top: 28px; color: var(--fg-2); text-transform: none; letter-spacing: 0; font-size: .82rem; }
.legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.legal__toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--hd) + 32px); }
.legal__toc-h { color: var(--fg-3); margin-bottom: 12px; }
.legal__toc ol { border-top: 1px solid var(--line-2); }
.legal__toc a { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: baseline; gap: 4px; min-height: 40px; padding: 9px 0 9px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.35; color: var(--fg-2);
  transition: color var(--dur-2) var(--ease-out); }
.legal__toc a .mono { font-size: .64rem; color: var(--fg-3); }
.legal__toc a::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--fg); transform: scaleY(0); transition: transform var(--dur-3) var(--ease-out); }
.legal__toc a:hover, .legal__toc a:focus-visible, .legal__toc a[aria-current] { color: var(--fg); }
.legal__toc a[aria-current]::before { transform: none; }
.legal__doc { grid-column: 5 / -1; max-width: 70ch; }
.legal__sec { padding-top: 8px; }
.legal__sec + .legal__sec { margin-top: 48px; }
.legal__h2 { position: relative; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.12; letter-spacing: -.022em; padding-top: 22px; margin-bottom: 18px; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--hd) + 24px); }
.legal__h3 { position: relative; font-weight: 600; font-size: 1.08rem; margin: 28px 0 10px; scroll-margin-top: calc(var(--hd) + 24px); }
.legal__n { display: inline-block; min-width: 2.6em; color: var(--fg-3); font-size: .7rem; vertical-align: .3em; }
.legal__h3 .legal__n { vertical-align: .1em; }
.legal__doc p, .legal__list li { color: var(--fg-2); font-size: 1.05rem; line-height: 1.65; text-wrap: pretty; }
.legal__doc p + p, .legal__doc p + .legal__list, .legal__list + p { margin-top: 1em; }
.legal__doc strong { color: var(--fg); font-weight: 600; }
.legal__list { margin-top: .6em; }
.legal__list li { position: relative; padding: 6px 0 6px 22px; }
.legal__list li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 1px; background: var(--fg-3); }
.legal__contact { font-style: normal; margin-top: 20px; padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.legal__contact p { margin: 0 !important; color: var(--fg); }
.legal__contact p:first-child { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; }
/* section anchors: appear on hover/focus of the heading, copy the link on click (legal.js) */
.legal__anchor { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 6px; border-radius: 8px; vertical-align: middle; color: var(--fg-3); opacity: 0; transition: opacity var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring); }
.legal__anchor svg { width: 16px; height: 16px; }
.legal__h2:hover .legal__anchor, .legal__h3:hover .legal__anchor, .legal__anchor:focus-visible, .legal__anchor.is-copied { opacity: 1; }
.legal__anchor:hover { color: var(--fg); background: rgba(18, 18, 17, .06); }
.legal__anchor:active { transform: scale(.9); transition-duration: var(--dur-1); }
@media (hover: none) { .legal__anchor { opacity: .6; } }
.legal__copied { position: absolute; right: 0; top: 22px; display: inline-flex; align-items: center; white-space: nowrap; padding: 7px 11px; border-radius: 999px; background: var(--on-paper); color: var(--paper); font: 400 .64rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; pointer-events: none; animation: okIn var(--dur-2) var(--ease-out); }
.legal__copied.is-out { opacity: 0; transition: opacity var(--dur-2) var(--ease-in); }
.legal__h3 .legal__copied { top: -4px; }
@media (max-width: 900px) {
  .legal__toc { position: static; grid-column: 1 / -1; }
  .legal__toc ol { columns: 2; column-gap: 24px; }
  .legal__toc li { break-inside: avoid; }
  .legal__doc { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .legal__toc ol { columns: 1; } }

/* company details */
.ft__legal { display: grid; gap: 6px; }
.ft__legal p:first-child { color: var(--on-ink-2); }
.alt-contact { margin-top: 28px; color: var(--fg-2); text-transform: none; letter-spacing: 0; font-size: .82rem; }
.alt-contact a { color: var(--fg); }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line-2); }
.contact-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.contact-list dt { color: var(--fg-3); }
.contact-list dd { font-size: 1.05rem; }
.contact-list .link-arrow { font-size: 1.05rem; font-weight: 400; }
@media (max-width: 520px) { .contact-list > div { grid-template-columns: 1fr; gap: 0; padding: 10px 0; } }

/* ================= DELIVERY ================= */
.stages { border-bottom: 1px solid var(--line-2); }
.stage details { border-top: 1px solid var(--line-2); }
.stage summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 3fr) minmax(0, 6fr) 40px; gap: 16px 24px; align-items: baseline; padding: 30px 0; min-height: 44px; }
.stage summary::-webkit-details-marker { display: none; }
.stage summary > * { transition: transform var(--dur-3) var(--ease-out); }
.stage summary:hover > :not(.ico-plus), .stage summary:focus-visible > :not(.ico-plus) { transform: translateX(10px); }
.stage__n { color: var(--fg-3); }
.stage__t { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.03em; line-height: 1; }
.stage__d { color: var(--fg-2); max-width: 60ch; }
.stage .ico-plus { justify-self: end; width: 22px; height: 22px; }
.stage details[open] .ico-plus { transform: rotate(45deg); }
.stage__body { display: grid; grid-template-columns: 64px minmax(0, 3fr) minmax(0, 6fr) 40px; gap: 24px; padding-bottom: 36px; }
.stage__body > :first-child { grid-column: 2; }
.stage__body > :last-child { grid-column: 3; }
.stage__h { color: var(--fg-3); margin-bottom: 10px; font-weight: 400; }
.stage__body li { padding: 8px 0; border-top: 1px solid var(--line); }
.stage__body p { color: var(--fg-2); }
@media (max-width: 760px) {
  .stage summary { grid-template-columns: 40px 1fr 28px; }
  .stage__d { grid-column: 2 / -1; grid-row: 2; }
  .stage__body { grid-template-columns: 1fr; padding-left: 56px; }
  .stage__body > :first-child, .stage__body > :last-child { grid-column: 1; }
}

/* ================= PRODUCTS INDEX ================= */
.plist { display: grid; }
.prow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line-2); align-items: center; }
.prow:first-child { border-top: 0; }
.prow.is-off { display: none; }
.prow__art { grid-column: 1 / span 5; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #121211; position: relative; }
.prow__art .art { width: 100%; height: 100%; transition: transform var(--dur-4) var(--ease-out); }
.prow:hover .prow__art .art, .prow:focus-within .prow__art .art { transform: scale(1.04); }
.prow__body { grid-column: 7 / -1; }
.prow__n { color: var(--fg-3); margin-bottom: 18px; }
.prow__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -.032em; line-height: 1; margin-top: 20px; }
.prow__tag { font-size: 1.2rem; margin-top: 12px; max-width: 40ch; }
.prow__journey { color: var(--fg-2); margin-top: 10px; max-width: 54ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tags li { font: 400 .62rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(18, 18, 17, .06); }
.tags .tags__ind { background: transparent; border: 1px dashed var(--line-2); }
.prow .pill .dot, .band--paper .pill .dot { background: var(--ai, var(--a)); }
.band--paper .pill, .band--paper2 .pill { color: var(--on-paper); }
.empty { padding: 64px 0; display: grid; gap: 20px; justify-items: start; border-top: 1px solid var(--line-2); }
@media (max-width: 900px) { .prow__art, .prow__body { grid-column: 1 / -1; } }

/* ================= CASE STUDY ================= */
.is-case { --signal-case: var(--accent); }
.cs-hero { padding-top: calc(var(--hd) + clamp(56px, 8vw, 120px)); padding-bottom: 0; overflow: hidden; }
.cs-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 80% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.cs-hero__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: center; }
.cs-hero__copy { grid-column: 1 / span 6; }
.cs-hero__copy .gcard__meta { margin-bottom: 26px; }
.cs-hero .display--page { max-width: none; }
.cs-hero__tag { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; color: var(--accent); margin-top: 20px; max-width: 22ch; }
.cs-hero__art { grid-column: 8 / -1; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-ink); box-shadow: 0 60px 120px -60px color-mix(in srgb, var(--accent) 45%, transparent); }
.cs-hero__art .art { width: 100%; height: 100%; }
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line-ink-2); }
.cs-facts > div { padding: 22px 24px 40px 0; }
.cs-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-ink); }
.cs-facts dt { color: var(--on-ink-3); }
.cs-facts dd { margin-top: 12px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.3; letter-spacing: -.01em; }
.cs-facts dd span { display: block; font-family: var(--sans); font-size: 14px; color: var(--on-ink-2); margin-top: 6px; letter-spacing: 0; }
@media (max-width: 1000px) { .cs-hero__copy, .cs-hero__art { grid-column: 1 / -1; } .cs-facts { grid-template-columns: 1fr 1fr; } .cs-facts > div:nth-child(3) { padding-left: 0; border-left: 0; } .cs-facts > div { border-top: 1px solid var(--line-ink); } }
@media (max-width: 560px) { .cs-facts { grid-template-columns: 1fr; } .cs-facts > div + div { padding-left: 0; border-left: 0; } .cs-facts > div { padding-bottom: 24px; } }

.wf { border-bottom: 1px solid var(--line-2); }
.wf__head, .wf__row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.wf__head { color: var(--fg-3); padding-bottom: 12px; }
.wf__row { position: relative; padding: 26px 0; border-top: 1px solid var(--line-2); align-items: start; }
.wf__row::before { content: ''; position: absolute; left: -16px; right: -16px; top: 0; bottom: 0; background: var(--surface); opacity: 0; transition: opacity var(--dur-2) var(--ease-out); z-index: -1; border-radius: 8px; }
.wf__row:hover::before { opacity: 1; }
.wf__n { font-size: 1rem; color: var(--accent-ink); font-weight: 500; padding-top: 2px; }
.wf__c { font-size: 15.5px; line-height: 1.5; color: var(--fg-2); }
.wf__act { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; color: var(--fg); letter-spacing: -.01em; }
.wf__rev { padding-left: 16px; position: relative; }
.wf__rev::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent-ink); }
.wf__out { font-weight: 500; color: var(--fg); }
.wf__out::before { content: '→ '; color: var(--accent-ink); }
.wf__l { display: none; }
.wf__keys { margin-top: 20px; color: var(--fg-3); text-transform: none; letter-spacing: 0; }
@media (max-width: 900px) {
  .wf__head { display: none; }
  .wf__row { grid-template-columns: 48px 1fr; gap: 10px 16px; }
  .wf__c { grid-column: 2; }
  .wf__n { grid-row: 1 / span 4; }
  .wf__l { display: block; color: var(--fg-3); font-weight: 400; font-family: var(--mono); font-size: .6rem; margin-bottom: 2px; }
  .wf__out::before { content: ''; }
  .wf__rev { padding-left: 0; } .wf__rev::before { display: none; }
}

.rsl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 5vw, 72px); }
.rsl__h { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -.02em; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.rsl__mark { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.rsl__mark--real { background: var(--accent-ink); }
.rsl__mark--sim { border: 1.5px dashed var(--accent-ink); }
.rsl__mark--lim { border: 1.5px solid var(--fg-2); background: linear-gradient(135deg, transparent 45%, var(--fg-2) 45% 55%, transparent 55%); }
.rsl li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) { .rsl { grid-template-columns: 1fr; } }

.caps { border-bottom: 1px solid var(--line-2); margin-bottom: 20px; }
.caps a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 32px; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line-2); }
.caps a > span { transition: transform var(--dur-3) var(--ease-out); }
.caps a:hover > span, .caps a:focus-visible > span { transform: translateX(12px); }
.caps__t { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1; }
.caps__n { color: var(--fg-2); }
.caps .ico-arrow { width: 22px; height: 22px; justify-self: end; }
.caps a:hover .ico-arrow, .caps a:focus-visible .ico-arrow { transform: translateX(6px); }
@media (max-width: 700px) { .caps a { grid-template-columns: 1fr 24px; } .caps__n { grid-column: 1; } .caps .ico-arrow { grid-row: 1; grid-column: 2; } }

.cs-cta { overflow: hidden; }
.cs-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 70% at 15% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.cs-cta__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: end; }
.cs-cta__grid > :first-child { grid-column: 1 / span 6; }
.cs-cta__grid > :last-child { grid-column: 8 / -1; }
.cs-cta .h2 em { color: var(--accent); }
.next { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: end; margin-top: clamp(80px, 9vw, 140px); padding-top: 28px; border-top: 1px solid var(--line-ink-2); }
.next .mono { color: var(--on-ink-3); grid-column: 1 / -1; }
.next__name { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.035em; line-height: 1.05; }
.next__name .dot { width: 14px; height: 14px; }
.next__tag { grid-column: 1; color: var(--on-ink-2); }
.next .ico-arrow { grid-column: 2; grid-row: 2 / span 2; width: 40px; height: 40px; }
.next .ico-arrow { transition-duration: var(--dur-3); }
.next:hover .ico-arrow, .next:focus-visible .ico-arrow { transform: translateX(10px); }
.next__name .dot { transition: box-shadow var(--dur-3) var(--ease-out); }
.next:hover .next__name .dot, .next:focus-visible .next__name .dot { box-shadow: 0 0 0 7px color-mix(in srgb, var(--a, var(--accent)) 25%, transparent); }
@media (max-width: 900px) { .cs-cta__grid > :first-child, .cs-cta__grid > :last-child { grid-column: 1 / -1; } }

/* ================= WEBSITES ================= */
.sites { padding-top: 0; }
.site { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line-ink); }
.site:first-child { border-top: 0; padding-top: 0; }
.site__meta { grid-column: 1 / span 4; position: sticky; top: calc(var(--hd) + 32px); align-self: start; }
.site__n { color: var(--a); }
.site__name { margin-top: 14px; font-size: clamp(2rem, 3vw, 2.8rem); }
.site__line { color: var(--on-ink-2); margin-top: 8px; }
.site__sum { margin-top: 20px; color: var(--on-ink-2); font-size: 15px; }
.site__tpl { margin-top: 14px; color: var(--on-ink-2); font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.site__tpl .mono { color: var(--a); }
.site__frame { grid-column: 5 / -1; display: grid; gap: 14px; justify-items: end; }
.site__frame .browser { width: 100%; }
.site__frame .browser[data-device="mobile"] { width: min(380px, 100%); }
@media (max-width: 1000px) { .site__meta, .site__frame { grid-column: 1 / -1; position: static; } .site__frame { justify-items: start; } }

/* ================= SERVICES ================= */
.svc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; }
.svc__grid > :first-child { grid-column: 1 / span 6; }
.svc__grid > :last-child { grid-column: 8 / -1; }
.svc__grid .lede { margin-top: 28px; }
.svc__eg { margin-top: 28px; color: var(--fg-2); }
@media (max-width: 900px) { .svc__grid > :first-child, .svc__grid > :last-child { grid-column: 1 / -1; } }

/* ================= START FORM ================= */
.brief { padding-top: clamp(56px, 6vw, 96px); }
.brief__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.form { grid-column: 1 / span 8; }
.brief__aside { grid-column: 9 / -1; position: sticky; top: calc(var(--hd) + 24px); }
.aside-card { background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 32px; --fg-2: var(--on-ink-2); }
.aside-card .h3 { margin-top: 22px; }
.aside-card .small { color: var(--on-ink-2); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-ink); }
.next-steps { counter-reset: n; margin-top: 16px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; padding: 10px 0; border-top: 1px solid var(--line-ink); color: var(--on-ink-2); font-size: 15px; }
.next-steps li::before { content: counter(n, decimal-leading-zero); font: 400 .7rem var(--mono); color: var(--signal-text); padding-top: 4px; }
.q { border: 0; padding: 32px 0 0; margin: 0 0 48px; border-top: 1px solid var(--line-2); min-width: 0; }
.q legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.025em; line-height: 1.1; margin-bottom: 24px; padding: 0; }
.q legend + * { clear: both; }
.q__n { color: var(--fg-3); font-size: .72rem; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box { display: grid; gap: 6px; height: 100%; padding: 22px 20px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring); }
.opt__t { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.02em; }
.opt__d { font-size: 14px; color: var(--fg-2); }
.opt:hover .opt__box { border-color: var(--fg); }
.opt input:checked + .opt__box { border-color: var(--on-paper); box-shadow: inset 0 0 0 1px var(--on-paper); background: #fff; }
.opt input:checked + .opt__box .opt__t::after { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--on-paper); margin-left: 10px; transform: translateY(-3px); }
.opt input:focus-visible + .opt__box, .check input:focus-visible + span { outline: 2px solid var(--on-paper); outline-offset: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fld { display: grid; gap: 8px; margin-bottom: 18px; }
.fld label { font-weight: 500; font-size: 15px; }
.opt-l { font-weight: 400; color: var(--fg-3); font-size: 13px; margin-left: 4px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--on-paper); font-size: 16px; transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.fld textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23121211' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--fg-2); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--on-paper); box-shadow: 0 0 0 3px rgba(18, 18, 17, .12); }
.fld [aria-invalid="true"] { border-color: var(--danger); }
.fld ::placeholder { color: #8A857C; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.check { position: relative; display: inline-flex; cursor: pointer; }
.check > span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring); }
.check:hover > span { border-color: var(--fg); }
.check input:checked + span { background: var(--on-paper); color: var(--paper); border-color: var(--on-paper); }
.check--consent { display: flex; margin-top: 8px; }
.check--consent > span { border-radius: 12px; padding: 14px 16px 14px 46px; position: relative; line-height: 1.45; display: block; }
.check--consent > span::before { content: ''; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid currentColor; }
.check--consent input:checked + span::after { content: ''; position: absolute; left: 21px; top: 18px; width: 8px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.check--consent input:checked + span { background: var(--surface); color: var(--on-paper); }
.check--consent input:checked + span::before { background: var(--on-paper); }
.check--consent input:checked + span::after { border-color: var(--paper); }
.err { color: var(--danger); font-size: 14px; margin-top: 4px; }
.hp { display: none; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.form__status { color: var(--fg-2); }
.form__status.is-err { color: var(--danger); }
@media (max-width: 1000px) { .form, .brief__aside { grid-column: 1 / -1; position: static; } }
@media (max-width: 700px) { .cards3, .row2 { grid-template-columns: 1fr; } }

/* thanks */
.thanks { max-width: 920px; }
.summary { margin: 28px 0 8px; border-bottom: 1px solid var(--line-2); }
.summary > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.summary dt { font: 400 .7rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); padding-top: 3px; }
.summary dd { font-size: 1.05rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { background: var(--signal); color: var(--ink); padding: 14px 16px; border-radius: 10px; margin-top: 20px; text-transform: none; letter-spacing: 0; font-size: .8rem; line-height: 1.5; }
@media (max-width: 600px) { .summary > div { grid-template-columns: 1fr; gap: 4px; } }

/* demo page */
.dm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.dm-reset { display: grid; gap: 10px; justify-items: start; }
.dm-reset strong { color: var(--on-ink); font-weight: 500; }
.ws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ws__item { display: flex; flex-direction: column; padding: 28px; border-radius: 16px; background: var(--ink-3); border: 1px solid var(--line-ink); transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
.ws__item:hover, .ws__item:focus-within { border-color: color-mix(in srgb, var(--a) 50%, transparent); }
@media (hover: hover) and (pointer: fine) { .ws__item:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, var(--a) 12%, transparent); } }
.ws__top { display: flex; align-items: center; gap: 12px; }
.ws__top h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -.02em; }
.ws__j { color: var(--on-ink-2); margin-top: 12px; font-size: 15px; flex: 1; }
.ws__state { color: var(--on-ink-3); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-ink); }
.ws__state.is-live { color: var(--a); }
.ws .cta-row { margin-top: 18px; }
@media (max-width: 1000px) { .ws { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ws { grid-template-columns: 1fr; } }

/* 404 */
.nf { min-height: 100svh; display: grid; align-items: center; padding-top: calc(var(--hd) + 40px); }
.nf__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.nf__code { color: var(--signal-text); margin-bottom: 28px; }
.nf .lede { margin-top: 28px; }
.nf__art { width: 100%; max-width: 420px; color: var(--on-ink); justify-self: end; }
@media (max-width: 800px) { .nf__grid { grid-template-columns: 1fr; } .nf__art { justify-self: start; max-width: 280px; } }

/* single-column collapse for every 12-col grid on small screens (prevents gap overflow) */
@media (max-width: 900px) {
  .sec-intro, .cs-two, .start-cta__grid, .existing__grid, .cs-hero__grid, .cs-cta__grid, .svc__grid, .brief__grid, .site, .prow, .hero__grid, .gal { grid-template-columns: minmax(0, 1fr); }
  .sec-intro > *, .cs-two > *, .start-cta__grid > *, .existing__grid > *, .cs-hero__grid > *, .cs-cta__grid > *, .svc__grid > *, .brief__grid > *, .site > *, .prow > *, .hero__grid > *, .gal > * { grid-column: 1 / -1 !important; }
}
@media (max-width: 1080px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .hero__grid > * { grid-column: 1 / -1; } }
.aside-card .pill { color: var(--on-ink); }
.page-hero .pill { margin-bottom: 28px; }

/* ---------- product imagery (round 2) ---------- */
.pimg { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--ink-3); }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.pimg__tag { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(11, 11, 12, .66); color: #E6E1D8; font-size: .56rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gcard:hover .pimg img, .prow:hover .pimg img, .gcard:focus-within .pimg img, .prow:focus-within .pimg img { transform: scale(1.04); }
.cs-hero__art .pimg img { will-change: transform; }

/* about: studio image */
.studio-fig { padding-block: 0 clamp(56px, 7vw, 96px); }
.studio-fig__f { margin: 0; height: min(78vh, 760px); overflow: hidden; background: var(--ink-3); }
.studio-fig__f img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.studio-fig__cap { margin-top: 16px; color: var(--on-ink-3); font-size: .6rem; }
@media (max-width: 700px) { .studio-fig__f { height: 62vh; } }

/* =====================================================================================================
   MOTION & MICRO-INTERACTIONS
   Editorial and premium: answers in 140 ms, settles in 360 ms, never bounces more than a few percent.
   Only transform, opacity, clip-path, filter and colour animate. JS-driven pieces live in assets/js/micro.js.
   ===================================================================================================== */

/* Focus rings ease in: the ring tightens onto the control instead of snapping on. */
:focus-visible, .opt input:focus-visible + .opt__box, .check input:focus-visible + span { animation: focusIn var(--dur-2) var(--ease-out); }
@keyframes focusIn { from { outline-offset: 7px; outline-color: transparent; } }

/* Inline text links: the underline wipes away and redraws from the left. */
@media (prefers-reduced-motion: no-preference) {
  .u:hover, .u:focus-visible { animation: uDraw var(--dur-4) var(--ease-out); }
}
@keyframes uDraw { 0% { background-size: 100% 1px; background-position: 100% 100%; } 40% { background-size: 0 1px; background-position: 100% 100%; } 41% { background-position: 0 100%; background-size: 0 1px; } 100% { background-size: 100% 1px; background-position: 0 100%; } }
.link-arrow:hover .ico-arrow--out, .link-arrow:focus-visible .ico-arrow--out, .btn:focus-visible .ico-arrow--out { transform: translate(2px, -2px); }
.btn:focus-visible .ico-arrow:not(.ico-arrow--out) { transform: translateX(3px); }

/* Primary nav: one hairline indicator that rests on the current page and slides to whatever you point at or focus. */
.nav__ind { position: absolute; left: 0; top: 0; width: 100px; height: 1.5px; border-radius: 2px; background: var(--signal); transform-origin: 0 50%; opacity: 0; pointer-events: none;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.nav__ind.is-on { opacity: 1; }
.nav__ind.no-anim { transition: none; }
.nav.has-ind .nav__link[aria-current]::after, .nav.has-ind .nav__btn[data-current]::after { opacity: 0; }
.nav__link:active { transform: scale(.97); }
.nav__link { transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring); }
.hd__menu { transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring); }
.hd__menu:hover { border-color: var(--on-ink-2); }
.hd__menu:active { transform: scale(.96); transition-duration: var(--dur-1); }

/* Selection pill that slides between chips / segmented buttons (fully rounded, so the ends never distort as it resizes).
   micro.js adds .has-pill and the .slide-pill layer; without JS the pressed control keeps its own fill. */
.chips { position: relative; }
.slide-pill { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; background: var(--fg); pointer-events: none;
  transition: transform var(--dur-3) var(--ease-out), width var(--dur-3) var(--ease-out), height var(--dur-3) var(--ease-out); }
.slide-pill.no-anim { transition: none; }
.has-pill > .fchip[aria-pressed="true"], .has-pill > .seg__b[aria-selected="true"], .has-pill > .seg__b[aria-pressed="true"] { background-color: transparent; border-color: transparent; }
/* labels change colour in step with the sliding pill, so text never sits light-on-paper mid-slide */
.has-pill > .fchip, .has-pill > .seg__b { transition: color var(--dur-3) var(--ease-io), border-color var(--dur-2) var(--ease-out), transform var(--dur-spring) var(--spring); }

/* Filter count: a brief highlight on the changed figure. */
.filters__count.is-chg { animation: countFlash var(--dur-4) var(--ease-out); }
@keyframes countFlash { from { color: var(--fg); } }

/* Accordions (<details>): smooth expand on grid rows, content settles in, icon rotates. Progressive: browsers without
   ::details-content simply open and close. Each body is wrapped in .acc so its padding is clipped with it. */
@supports selector(::details-content) {
  .step details::details-content, .stage details::details-content {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-3) var(--ease-out), content-visibility var(--dur-3) allow-discrete;
  }
  .step details[open]::details-content, .stage details[open]::details-content { grid-template-rows: 1fr; }
}
.acc { min-height: 0; overflow: hidden; }
.step details[open] .acc > *, .stage details[open] .acc > * { animation: accIn var(--dur-3) var(--ease-out); }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } }
.stage summary:active .ico-plus, .step summary:active .ico-plus { scale: .85; }
.ico-plus { transition: transform var(--dur-3) var(--ease-out), scale var(--dur-spring) var(--spring); }

/* ---------- forms ---------- */
.fld > label { transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); transform-origin: 0 50%; }
.fld:focus-within > label { transform: translateY(-2px); }
.fld [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); border-color: var(--danger); }
.err:not([hidden]) { animation: errIn var(--dur-2) var(--ease-out); }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } }
.is-nudge { animation: nudge 320ms var(--ease-out); }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 60% { transform: translateX(3px); } 85% { transform: translateX(-1px); } }
.opt:active .opt__box { transform: scale(.985); transition-duration: var(--dur-1); }
.opt input:checked + .opt__box .opt__t::after { animation: dotIn var(--dur-spring) var(--spring); }
@keyframes dotIn { from { transform: translateY(-3px) scale(0); } }
.check:active > span { transform: scale(.96); transition-duration: var(--dur-1); }
.check--consent:active > span { transform: scale(.99); }
.check--consent > span::before { transition: background-color var(--dur-2) var(--ease-out); }
.check--consent input:checked + span::after { animation: tickWipe var(--dur-3) var(--ease-out) 40ms both; }
@keyframes tickWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* Submit: a real wait only (the network request on the live site) turns the arrow into a spinner. */
.btn .spin { display: none; width: 1em; height: 1em; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading { cursor: progress; }
.btn.is-loading .spin { display: block; }
.btn.is-loading .ico-arrow { display: none; }
.btn:disabled { opacity: .72; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Thanks: the check mark draws itself once. */
.tick { display: block; width: 56px; height: 56px; margin-bottom: 28px; color: var(--signal); }
.tick circle, .tick path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .tick circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--dur-4) var(--ease-out) 120ms forwards; }
  .tick path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--dur-3) var(--ease-out) 420ms forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Confirmed buttons (demo Reset now): the label swaps for a drawn check, then returns. */
.btn__ok { display: inline-flex; align-items: center; gap: .5em; animation: okIn var(--dur-2) var(--ease-out); }
.btn__ok svg { width: 1em; height: 1em; flex: none; }
.btn__ok path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--dur-3) var(--ease-out) 60ms forwards; }
@keyframes okIn { from { opacity: 0; transform: translateY(4px); } }
.btn--ghost.is-confirmed, .btn--line.is-confirmed { --b-bd: currentColor; }

/* 404: the plan outline draws itself, then the missing room fades in. */
.nf__lines > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 700ms var(--ease-out) 150ms forwards; }
.nf__room { animation: fadeIn var(--dur-3) var(--ease-out) 650ms both; }
@keyframes fadeIn { from { opacity: 0; } }

/* Reduced motion: keep colour and opacity feedback (gently), remove movement, scale and drawing. */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before, .fchip, .seg__b, .nav__link, .nav__ind, .mega__item, .mega__tag, .opt__box, .check > span, .fld input, .fld select, .fld textarea,
  .ft__cols a, .crumbs a, .field, .stepper__b, .ws__item, .wf__row::before, .hd, .pv, .pv iframe {
    transition-property: color, background-color, border-color, box-shadow, opacity, visibility !important; transition-duration: var(--dur-2) !important;
  }
  .btn::before { transform: none; opacity: 0; }
  .btn:hover::before { opacity: 1; }
  .btn { translate: none !important; }
  .ico-arrow, .ico-plus, .choice a > span, .caps a > span, .stage summary > *, .pimg img, .prow__art .art, .gcard__art .art, .fld > label,
  .btn:active, .fchip:active, .seg__b:active, .nav__link:active, .hd__menu:active, .mega__item:active, .opt:active .opt__box, .check:active > span,
  .ws__item:hover { transform: none !important; scale: none !important; }
  .nav__btn[aria-expanded="true"] .ico-chev { transform: rotate(180deg); }
  .stage details[open] .ico-plus, .step details[open] .ico-plus { transform: rotate(45deg) !important; }
}
