/* aiunum.com — "the drafting desk": paper, ink, one vermilion cursor, cobalt blueprint lines.
   Mobile first (360 px up). No external requests. Motion is opt-out: everything below works with it off. */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* ---------- typed custom properties: these are what the morphs animate ---------- */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --n { syntax: "<integer>"; inherits: true; initial-value: 0; }
@property --wipe { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --draw { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --rise { syntax: "<length>"; inherits: false; initial-value: 0px; }

:root {
  color-scheme: light dark;
  --paper: #f3efe6;
  --paper-2: #e9e3d5;
  --card: #fbf9f4;
  --ink: #14161b;
  --ink-2: #474a54;
  --line: rgb(20 22 27 / 0.16);
  --grid: rgb(47 107 255 / 0.07);
  --signal: #ff4d1c;
  --signal-ink: #b22e08;
  --cobalt: #2f6bff;
  --cobalt-ink: #1c49c9;
  --ok: #0c6b46;
  --on-signal: #14161b;
  --shadow: 6px 6px 0 var(--ink);
  --gut: 16px;
  --wrap: 1180px;
  --r: 14px;
  --display: "Bricolage", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", "Noto Sans Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101216;
    --paper-2: #181b21;
    --card: #1b1e25;
    --ink: #f1ede4;
    --ink-2: #b9b6ad;
    --line: rgb(241 237 228 / 0.2);
    --grid: rgb(120 160 255 / 0.07);
    --signal-ink: #ff8a66;
    --cobalt-ink: #9db9ff;
    --ok: #6bd6a6;
    --shadow: 6px 6px 0 #000;
  }
}
@media (min-width: 760px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("/static/img/bg-paper-tile.webp"); /* s-sprites batch 4: seamless paper tile with its 24 px cobalt grid built in (2x asset) */
  background-size: 600px 600px;
  background-repeat: repeat;
  font: 400 1.0625rem/1.55 var(--body);
  overflow-x: clip;
}
@media (prefers-color-scheme: dark) { body { background-image: url("/static/img/bg-paper-tile-dark.webp"); } }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--display); font-stretch: 86%; line-height: 1; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 11.5vw, 6.2rem); font-weight: 750; line-height: 0.92; }
h2 { font-size: clamp(1.9rem, 6.4vw, 3.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3.6vw, 1.5rem); font-weight: 650; line-height: 1.1; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--signal-ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--on-signal); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: var(--gut); top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 0.5rem; color: var(--paper); }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.eyebrow { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); display: flex; gap: 0.5rem; align-items: center; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.lede { font-size: clamp(1.1rem, 3.6vw, 1.35rem); line-height: 1.45; color: var(--ink-2); max-width: 38ch; }
.muted { color: var(--ink-2); }
.stack > * + * { margin-top: var(--gap, 1rem); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.25rem;
  font: 650 1rem/1 var(--display); font-stretch: 92%; letter-spacing: 0;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: translate 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s;
}
.btn:hover { color: var(--fg); translate: -2px -2px; box-shadow: 4px 4px 0 var(--ink); }
.btn:active { translate: 0 0; box-shadow: none; }
.btn--signal { --bg: var(--signal); --fg: var(--on-signal); border-color: #14161b; }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--small { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
/* the main call to action wears a slow conic ring; --spin is a typed angle, so the gradient itself animates */
.btn--ring { position: relative; isolation: isolate; }
.btn--ring::before {
  content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--spin), transparent 0 62%, var(--cobalt) 78%, var(--signal) 92%, transparent 100%);
  padding: 2.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--ink); }
.site-head__in { display: flex; align-items: center; gap: 0.75rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0.35rem; font: 800 1.45rem/1 var(--display); font-stretch: 80%; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 1.15rem; height: 1.15rem; color: var(--signal); transition: translate 0.3s var(--ease), rotate 0.3s var(--ease); }
.brand:hover svg { translate: 3px -3px; rotate: -8deg; }
.brand small { font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.5rem; margin-left: 0.35rem; }
.nav { display: none; gap: 0.25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; text-decoration: none; font-weight: 550; border-radius: 999px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.menu {
  position: fixed; inset: 68px var(--gut) auto var(--gut); margin: 0; padding: 0.5rem; width: auto;
  border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  opacity: 0; translate: 0 -8px; transition: opacity 0.2s, translate 0.2s var(--ease), display 0.2s allow-discrete, overlay 0.2s allow-discrete;
}
.menu:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .menu:popover-open { opacity: 0; translate: 0 -8px; } }
.menu a { display: flex; align-items: center; min-height: 52px; padding: 0 0.9rem; font: 650 1.25rem/1 var(--display); text-decoration: none; border-radius: 10px; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.head-cta { display: none; }
@media (min-width: 420px) { .head-cta { display: inline-flex; } }
@media (min-width: 860px) {
  .nav { display: flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- sections ---------- */
main { display: block; }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2rem, 6vw, 4rem); }
.section__head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 5vw, 3rem); max-width: 46rem; }
/* a band is the same system with the tokens turned over, so everything inside it adapts by itself */
.band {
  --paper: #14161b; --paper-2: #1d2027; --card: #1b1e25; --ink: #f1ede4; --ink-2: #b9b6ad; --line: rgb(241 237 228 / 0.22);
  --signal-ink: #ff8a66; --cobalt-ink: #9db9ff; --ok: #6bd6a6; --shadow: 6px 6px 0 #000;
  background: var(--paper); color: var(--ink);
}
@media (prefers-color-scheme: dark) { .band { --paper: #000; --card: #101216; --paper-2: #14161b; } }
.band :focus-visible { outline-color: #9db9ff; }

/* ---------- browser frame ---------- */
.frame { border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: clip; }
.frame__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.7rem; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); }
.frame__bar i:first-child { background: var(--signal); }
.frame__url { margin-left: 0.4rem; flex: 1; min-width: 0; font: 500 0.75rem/1 var(--mono); color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2rem, 6vw, 3.5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.25rem; justify-items: start; }
.hero h1 em { font-style: normal; color: var(--signal-ink); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.09em; background: var(--signal); transform-origin: left; scale: var(--draw) 1; border-radius: 99px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero__note { font-size: 0.9375rem; color: var(--ink-2); max-width: 44ch; }
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .hero h1 { font-size: clamp(3.6rem, 6.6vw, 6.4rem); }
}

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--signal); color: var(--on-signal); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .i-play, .icon-btn[aria-pressed="true"] .i-pause { display: none; }
.icon-btn[aria-pressed="true"] .i-play { display: block; }

/* ---------- step rail (home + how) ---------- */
.rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; position: relative; }
.rail::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.rail::after { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--signal); transform-origin: top; scale: 1 var(--draw); }
.rail li { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 0 1rem; padding-block: 0.9rem; }
.rail li::before { content: counter(step); grid-row: span 2; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); font: 700 1.05rem/1 var(--display); color: var(--ink); }
.rail h3 { align-self: end; }
.rail p { grid-column: 2; color: var(--ink-2); margin-top: 0.3rem; max-width: 56ch; }
.rail .mono { color: var(--cobalt-ink); display: block; margin-top: 0.35rem; }
@media (min-width: 900px) {
  .rail--wide { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
  .rail--wide::before, .rail--wide::after { display: none; }
}

/* ---------- work cards (container queries) ---------- */
.work-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.work-grid--feature > :first-child { grid-column: 1 / -1; }
.work { container: work / inline-size; }
.work__in { position: relative; display: grid; gap: 1.1rem; }
.work__media { position: relative; display: block; text-decoration: none; }
.work__shot { position: relative; aspect-ratio: 3 / 2; overflow: clip; }
.work__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* hover / focus: the old page wipes back in from the left; --wipe is a typed percentage so clip-path can transition from it */
.work__old { clip-path: inset(0 calc(100% - var(--wipe)) 0 0); transition: --wipe 0.7s var(--ease); }
.work__media:is(:hover, :focus-visible) .work__old { --wipe: 100%; }
.work__media::after { content: "Before"; position: absolute; left: 0.6rem; bottom: 0.6rem; font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 0.3rem 0.5rem; border-radius: 6px; opacity: 0; transition: opacity 0.3s; }
.work__media:is(:hover, :focus-visible)::after { opacity: 1; }
.slip { position: absolute; right: -0.25rem; bottom: -1.1rem; width: clamp(96px, 34%, 150px); rotate: 4deg; background: #fff; color: #14161b; border: 2px solid #14161b; padding: 4px 4px 0; box-shadow: 3px 3px 0 #14161b; transition: rotate 0.4s var(--ease), translate 0.4s var(--ease); }
.slip img { aspect-ratio: 3 / 2; object-fit: cover; object-position: top; width: 100%; filter: saturate(0.85); }
.slip span { display: block; font: 500 0.625rem/1 var(--mono); padding: 0.3rem 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work__media:is(:hover, :focus-visible) .slip { rotate: -2deg; translate: 0 -4px; }
.work__body { display: grid; gap: 0.5rem; padding-right: 0.25rem; }
.work__body h3 { font-size: clamp(1.5rem, 6cqi, 2.2rem); }
.work__body h3 a { text-decoration: none; }
.work__body h3 a::after { content: "\2192"; color: var(--signal-ink); display: inline-block; margin-left: 0.25em; transition: translate 0.25s var(--ease); }
.work__body h3 a:hover::after { translate: 5px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.chip { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.02em; padding: 0.4rem 0.6rem; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--card); }
.chip--flag { border-color: var(--cobalt-ink); color: var(--cobalt-ink); }
.chip--private { border-color: var(--signal-ink); color: var(--signal-ink); }
.work__facts { display: none; }
@container work (min-width: 640px) {
  .work__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
  .work__body { gap: 0.9rem; }
  .work__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem; margin: 0.4rem 0 0; }
  .work__facts div { display: grid; gap: 0.15rem; }
  .work__facts dt { font: 500 0.6875rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
  .work__facts dd { margin: 0; font: 700 1.6rem/1 var(--display); }
}

/* ---------- detail page ---------- */
.crumb { display: inline-flex; align-items: center; min-height: 44px; gap: 0.4rem; font: 500 0.8125rem/1 var(--mono); text-decoration: none; color: var(--ink-2); }
.crumb:hover { color: var(--signal-ink); }
.case-head { padding-block: 1rem clamp(2rem, 5vw, 3rem); display: grid; gap: 1.1rem; }
.case-head h1 { font-size: clamp(2.4rem, 10vw, 5.2rem); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; padding: 0.9rem 1rem; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); font-size: 0.9375rem; line-height: 1.45; }
.notice svg { width: 22px; height: 22px; color: var(--signal-ink); margin-top: 0.1rem; }
.notice strong { display: block; }
.notice--label { border-style: dashed; }
.pair { display: grid; gap: 2.2rem; align-items: start; }
.pair__old { position: relative; width: min(100%, 300px); justify-self: start; rotate: -2deg; background: #fff; color: #14161b; border: 2px solid #14161b; padding: 8px 8px 0; box-shadow: 5px 5px 0 #14161b; margin: 0 0 0 0.25rem; }
.pair__old::before { content: ""; position: absolute; top: -12px; left: 50%; width: 64px; height: 22px; translate: -50% 0; rotate: -3deg; background: color-mix(in srgb, var(--signal) 70%, transparent); }
.pair__old img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.pair__old figcaption { font: 500 0.75rem/1.35 var(--mono); padding: 0.5rem 0.1rem 0.6rem; }
.pair__old b { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.pair__new { margin: 0; min-width: 0; }
.pair__new figcaption, .compare figcaption, .phone figcaption { font-size: 0.875rem; color: var(--ink-2); margin-top: 1rem; }
@media (min-width: 900px) {
  .pair { grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; }
  .pair__old { margin-top: 3rem; width: 100%; }
}

/* before / after: one typed variable drives the clip, the handle and the tags */
.compare { margin: 0; }
.compare__stage { position: relative; aspect-ratio: 3 / 2; overflow: clip; touch-action: pan-y; }
.compare__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; user-select: none; -webkit-user-drag: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--signal); }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 0; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 22px no-repeat; border: 2px solid #14161b; }
.compare__tag { position: absolute; top: 0.6rem; font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.55rem; border-radius: 6px; background: #14161b; color: #f3efe6; pointer-events: none; }
.compare__tag--b { left: 0.6rem; }
.compare__tag--a { right: 0.6rem; background: var(--signal); color: #14161b; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare__stage:has(.compare__range:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* scorecard */
.score { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); container: score / inline-size; }
.sc { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1.5px solid var(--line); --n: var(--to); }
.sc__label { font-weight: 600; }
.sc__vals { font-family: var(--mono); font-size: 0.875rem; color: var(--ink-2); white-space: nowrap; text-align: right; }
.sc__vals s { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.sc__vals strong { font: 750 clamp(1.5rem, 7cqi, 2.4rem)/1 var(--display); color: var(--ink); margin-left: 0.35rem; font-variant-numeric: tabular-nums; }
.sc__live::before { counter-reset: n var(--n); content: counter(n); }
.sc__bar { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 6px); position: relative; overflow: clip; }
.sc__bar i { position: absolute; inset: 0 auto 0 0; width: max(10px, calc(var(--n) / var(--from) * 100%)); background: var(--signal); border-radius: 99px; }
.sc--flag .sc__vals strong { color: var(--ok); }
.score-note { font-size: 0.875rem; color: var(--ink-2); margin-top: 1rem; }
.split { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .split--even { grid-template-columns: 1fr 1fr; } .split > .sticky { position: sticky; top: 6rem; } }

/* time-lapse */
.lapse { display: grid; gap: 1.5rem; }
.lapse__stage { position: relative; }
.lapse__view { position: relative; aspect-ratio: 3 / 2; overflow: clip; background: var(--paper-2); transition: scale 0.6s var(--ease), border-radius 0.6s; transform-origin: 50% 40%; }
.lapse__view > img, .lapse__skel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.6s, clip-path 1.5s var(--ease), filter 0.6s; }
.lapse__skel { background: var(--paper); display: grid; grid-template: 12% 1fr 28% / 1fr 1fr; gap: 4%; padding: 5%; }
.lapse__skel i { border: 2px dashed var(--cobalt); border-radius: 8px; }
.lapse__skel i:first-child { grid-column: 1 / -1; }
.lapse__skel i:last-child { grid-column: 1 / -1; }
.js .lapse[data-step] .lapse__wire, .js .lapse[data-step] .lapse__after { opacity: 0; }
.js .lapse[data-step] .lapse__after { clip-path: inset(0 0 100% 0); }
.js .lapse:is([data-step="1"]) .lapse__before { filter: grayscale(0.6) contrast(0.9); }
.js .lapse:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .lapse__wire { opacity: 1; }
.js .lapse:is([data-step="3"], [data-step="4"], [data-step="5"]) .lapse__after { opacity: 1; clip-path: inset(0 0 0 0); }
.js .lapse[data-step="5"] .lapse__view { scale: 0.84; border-radius: 10px; outline: 2px solid var(--ink); }
.lapse__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.js .lapse[data-step="0"].is-live .lapse__flash { animation: flash 0.7s ease-out; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.lapse__scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--signal); box-shadow: 0 0 0 1px #14161b; opacity: 0; }
.js .lapse[data-step="3"].is-live .lapse__scan { animation: scan 1.5s var(--ease) both; }
@keyframes scan { 0% { top: 0; opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.pin { position: absolute; z-index: 2; display: flex; align-items: center; gap: 0.35rem; translate: -11px -11px; opacity: 0; scale: 0.4; transition: opacity 0.3s, scale 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); pointer-events: none; }
.pin::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--signal); border: 2px solid #14161b; box-shadow: 0 0 0 5px rgb(255 77 28 / 0.25); }
.pin span { font: 600 0.6875rem/1.15 var(--mono); background: #14161b; color: #f3efe6; padding: 0.3rem 0.45rem; border-radius: 6px; max-width: 16ch; }
.pin--left { flex-direction: row-reverse; translate: calc(-100% + 11px) -11px; }
.js .lapse[data-step="1"] .pin { opacity: 1; scale: 1; }
.pin:nth-child(2) { transition-delay: 0.25s; } .pin:nth-child(3) { transition-delay: 0.5s; }
.lapse:not([data-step]) .pin { display: none; }
.lapse__checks { position: absolute; inset: auto 0.6rem 0.6rem auto; display: flex; flex-wrap: wrap; justify-content: end; gap: 0.35rem; z-index: 2; }
.lapse__checks span { font: 600 0.6875rem/1 var(--mono); background: var(--card); color: var(--ok); border: 2px solid currentColor; border-radius: 999px; padding: 0.35rem 0.55rem; opacity: 0; translate: 0 8px; transition: opacity 0.3s, translate 0.4s var(--ease); }
.lapse__checks span:nth-child(2) { transition-delay: 0.2s; } .lapse__checks span:nth-child(3) { transition-delay: 0.4s; }
.js .lapse:is([data-step="4"]) .lapse__checks span { opacity: 1; translate: 0 0; }
.lapse__stamp { position: absolute; z-index: 3; left: 50%; top: 6%; translate: -50% 0; rotate: -3deg; white-space: nowrap; font: 700 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); background: var(--card); border: 2px solid currentColor; border-radius: 6px; padding: 0.4rem 0.6rem; opacity: 0; scale: 1.6; transition: opacity 0.25s 0.35s, scale 0.35s 0.35s var(--ease); }
.js .lapse[data-step="5"] .lapse__stamp { opacity: 1; scale: 1; }
.lapse__ctrl { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.lapse__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; counter-reset: ls; }
.lapse__steps li { counter-increment: ls; }
.lapse__steps button { width: 100%; display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.5rem; align-items: center; min-height: 48px; padding: 0.5rem 0.75rem; text-align: left; font: 600 1rem/1.2 var(--body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.lapse__steps button::before { content: counter(ls, decimal-leading-zero); font: 500 0.75rem/1 var(--mono); color: var(--ink-2); }
.lapse__steps button small { font: 500 0.75rem/1 var(--mono); color: var(--ink-2); }
.lapse__steps button[aria-pressed="true"] { border-color: var(--ink); border-width: 2px; box-shadow: 3px 3px 0 var(--signal); }
.lapse__steps button[aria-pressed="true"]::before { color: var(--signal-ink); }
.lapse__steps p { font-size: 0.9375rem; color: var(--ink-2); padding: 0.5rem 0.75rem 0.6rem 3.25rem; }
.js .lapse__steps li:not(.is-on) p { display: none; }
html:not(.js) .lapse__ctrl > .icon-btn { display: none; }
html:not(.js) .lapse__steps button { pointer-events: none; }
@media (min-width: 900px) { .lapse { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; } }

/* decisions */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: card; }
.card { counter-increment: card; display: grid; gap: 0.6rem; align-content: start; padding: 1.25rem; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); }
.card::before { content: counter(card, decimal-leading-zero); font: 500 0.75rem/1 var(--mono); color: var(--signal-ink); }
.card p { color: var(--ink-2); font-size: 0.9688rem; }
.card .mono { color: var(--cobalt-ink); }
.card--plain::before { display: none; }

/* phone */
.phone { margin: 0; display: grid; justify-items: center; }
.phone__body { width: min(100%, 300px); border: 2px solid var(--ink); border-radius: 34px; padding: 10px; background: var(--ink); box-shadow: var(--shadow); }
.phone__body img { border-radius: 24px; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; padding: clamp(1.1rem, 4vw, 2rem); border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 650; }
.field .hint { font-size: 0.875rem; color: var(--ink-2); }
.field input:not([type="checkbox"]), .field textarea, .field select { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--signal-ink); box-shadow: 0 0 0 3px rgb(255 77 28 / 0.25); }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; align-items: start; font-size: 0.9375rem; line-height: 1.45; }
.check input { width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--signal); }
.consent { border: 1.5px dashed var(--line); border-radius: 10px; padding: 0.9rem 1rem; display: grid; gap: 0.7rem; font-size: 0.9063rem; }
.consent ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: 0.25rem; }
.hp { position: absolute; left: -200vw; }
.form__status { font-weight: 600; padding: 0.8rem 1rem; border-radius: 10px; border: 2px solid var(--ok); color: var(--ok); background: var(--paper); }
.form__status:empty { display: none; }
.form__status.is-error { border-color: var(--signal-ink); color: var(--signal-ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--signal-ink); box-shadow: 0 0 0 3px rgb(255 77 28 / 0.25); }
.form__preview, .form__note { font: 500 0.75rem/1.4 var(--mono); color: var(--signal-ink); }

/* ---------- prose pages ---------- */
.prose { max-width: 44rem; display: grid; gap: 1rem; }
.prose h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin-top: 1.5rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--signal-ink); }
.page-head { padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.page-head h1 { font-size: clamp(2.5rem, 10.5vw, 5.4rem); }
.portrait { margin: 0; }
.stack > .portrait { margin-top: 1.75rem; }
.portrait figcaption { font-size: 0.8125rem; color: color-mix(in srgb, currentColor 75%, transparent); margin-top: 0.9rem; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid currentColor; }
.rule-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; padding: 0.9rem 0; border-bottom: 1.5px solid var(--line); }
.rule-list svg { width: 22px; height: 22px; margin-top: 0.15rem; color: var(--signal); }

/* ---------- call to action band ---------- */
.cta { display: grid; gap: 1.5rem; justify-items: start; }
.cta h2 { font-size: clamp(2.3rem, 9.5vw, 5.5rem); line-height: 0.95; max-width: 14ch; }

/* ---------- footer ---------- */
.site-foot { border-top: 2px solid var(--ink); padding-block: 2.5rem 3rem; font-size: 0.9375rem; background: var(--paper); }
.site-foot__grid { display: grid; gap: 2rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot .elsewhere { grid-column: 1 / -1; }
.site-foot p { color: var(--ink-2); max-width: 60ch; }
.built { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font: 650 1.05rem/1 var(--display); text-decoration: none; }
.built svg { width: 18px; height: 18px; color: var(--signal); }
@media (min-width: 800px) { .site-foot__grid { grid-template-columns: 1.2fr 1fr; } }

/* ============================================================================================
   Motion. Everything in this block is progressive: without support, or with reduced motion,
   the page is already in its final state.
   ============================================================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* cross-document view transitions: the gallery picture becomes the case-study picture */
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease); }
  ::view-transition-old(root) { animation: vt-out 0.22s ease-in both; }
  ::view-transition-new(root) { animation: vt-in 0.4s 0.12s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; translate: 0 -12px; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 18px; } }
  .site-head { view-transition-name: site-head; }
  .site-foot { view-transition-name: site-foot; }

  .btn--ring::before { animation: spin 5s linear infinite; }
  @keyframes spin { to { --spin: 360deg; } }

  .hero h1 em::after { animation: draw 0.9s 0.5s var(--ease) both; }
  @keyframes draw { from { --draw: 0; } to { --draw: 1; } }

  @supports (animation-timeline: view()) {
    /* sections rise as they enter; a typed length so it can ride the scroll timeline */
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; translate: 0 var(--rise); }
    @keyframes rise { from { --rise: 36px; opacity: 0; } to { --rise: 0px; opacity: 1; } }

    /* the divider sweeps across as the comparison scrolls through the viewport; a drag takes over */
    .compare:not(.is-user) .compare__stage { animation: sweep linear both; animation-timeline: view(); animation-range: entry 35% cover 62%; }
    @keyframes sweep { from { --pos: 96%; } to { --pos: 30%; } }

    /* scorecard numbers count from the old value to the new one as the row scrolls in */
    .sc { animation: count linear both; animation-timeline: view(); animation-range: entry 30% cover 42%; }
    @keyframes count { from { --n: var(--from); } to { --n: var(--to); } }

    /* the step rail draws itself */
    .rail { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 60%; }

    /* the dated slip settles onto the desk */
    .pair__old { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes settle { from { rotate: -9deg; translate: -14px 22px; } to { rotate: -2deg; translate: 0 0; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media print { .site-head, .menu-btn { display: none; } body { background: #fff; } }

/* ============================================================================================
   Round 2: Unum as the face, a URL-first hook, and a pinned scroll story.
   Default CSS below is the plain layout (phones, reduced motion, browsers without scroll timelines).
   The pinned, layered version is added at the end, behind @supports and (prefers-reduced-motion: no-preference).
   ============================================================================================ */
.cut { margin: 0; position: relative; }
.cut img { width: 100%; height: auto; filter: drop-shadow(7px 9px 0 rgb(20 22 27 / 0.16)); }
.cut--photo { margin-top: 0.5rem; }
.cut--photo img { filter: none; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.cut--photo .ai-tag { left: 0.9rem; bottom: 0.9rem; translate: none; }
.strip { margin-inline: auto; }
.strip figcaption { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.8rem; }
.ai-tag { position: absolute; left: 50%; bottom: 0.4rem; translate: -50% 0; white-space: nowrap; font: 600 0.625rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.45rem; border-radius: 5px; background: #14161b; color: #f3efe6; }
.byline { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--ink-2); }
.byline img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }

/* hero */
.hook { display: grid; grid-template-columns: 1fr; gap: 0.5rem; width: 100%; max-width: 34rem; padding: 0.5rem; border: 2px solid var(--ink); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.hook input { min-height: 48px; min-width: 0; padding: 0.6rem 0.9rem; font: 500 1rem/1.2 var(--mono); color: var(--ink); background: transparent; border: 0; border-radius: 14px; }
.hook input::placeholder { color: var(--ink-2); opacity: 1; }
.hook .btn { width: 100%; }
@media (min-width: 520px) { .hook { grid-template-columns: 1fr auto; border-radius: 999px; } .hook .btn { width: auto; } .hook input { border-radius: 999px; } }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); border-block: 1.5px solid var(--ink); }
.trust li { display: grid; grid-template-columns: 24px 1fr; gap: 0.7rem; align-items: start; padding: 1rem 1rem 1rem 0; font-size: 0.9375rem; line-height: 1.35; }
.trust svg { width: 22px; height: 22px; color: var(--signal-ink); margin-top: 0.1rem; }
.trust b { display: block; }
.trust span { color: var(--ink-2); }
@media (min-width: 980px) {
}

/* story: six beats */
.story { position: relative; padding-block: clamp(3.5rem, 9vw, 6rem); overflow-x: clip; }
.story__head { display: grid; gap: 0.9rem; margin-bottom: clamp(2.5rem, 7vw, 4rem); }
.story__skip { justify-self: start; font: 500 0.8125rem/1 var(--mono); display: inline-flex; align-items: center; min-height: 44px; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(4.5rem, 14vw, 7rem); }
.beat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.beat__no { position: absolute; right: 0; top: -2.2rem; z-index: 0; font: 800 clamp(6rem, 34vw, 15rem)/0.8 var(--display); font-stretch: 78%; color: transparent; -webkit-text-stroke: 1.5px var(--line); user-select: none; }
.beat__copy { position: relative; z-index: 2; display: grid; gap: 0.7rem; max-width: 33rem; }
.beat__role { font: 600 0.8125rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); }
.beat h3 { font-size: clamp(2rem, 8vw, 3.6rem); font-weight: 720; line-height: 0.98; }
.beat__copy p:not(.beat__role) { color: var(--ink-2); font-size: 1.0625rem; }
.beat__copy .mono { color: var(--cobalt-ink); }
.beat__show { position: relative; z-index: 1; margin-bottom: 2.5rem; }
.beat__show .frame { width: 84%; }
.beat__view { position: relative; aspect-ratio: 3 / 2; overflow: clip; background: var(--paper-2); }
.beat__view > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.beat__unum { position: absolute; z-index: 3; right: -4%; bottom: -3.2rem; width: 40%; pointer-events: none; }
.beat .pin { opacity: 1; scale: 1; }
.beat .pin span { display: none; }
.readout { position: absolute; z-index: 2; left: 0.6rem; bottom: 0.6rem; display: grid; gap: 0.1rem; padding: 0.5rem 0.7rem; border-radius: 10px; background: #14161b; color: #f3efe6; --n: var(--to); }
.readout small { font: 500 0.625rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #b9b6ad; }
.readout b { font: 750 clamp(1.3rem, 5vw, 2rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.readout b::before { counter-reset: n var(--n); content: counter(n); }
.chipset { position: absolute; z-index: 2; inset: auto 0.6rem 0.6rem auto; display: flex; flex-wrap: wrap; justify-content: end; gap: 0.35rem; max-width: 70%; }
.chipset span { font: 600 0.6875rem/1 var(--mono); background: #fbf9f4; color: #0c6b46; border: 2px solid currentColor; border-radius: 999px; padding: 0.35rem 0.55rem; }
.stamp { position: absolute; z-index: 3; left: 50%; top: 42%; translate: -50% -50%; rotate: -6deg; white-space: nowrap; font: 750 clamp(0.9rem, 3.6vw, 1.5rem)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #b22e08; background: #fbf9f4; border: 3px solid currentColor; border-radius: 8px; padding: 0.6rem 0.9rem; }
.beat__scan { display: none; }
.story__rail { display: none; }
@media (min-width: 900px) {
  .beat { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: center; }
  .beat__show { margin-bottom: 0; }
  .beat__show .frame { width: 100%; }
  .beat__unum { right: auto; left: -20%; bottom: -3rem; width: 44%; }
  .beat .pin span { display: block; }
  .beat__no { right: auto; left: 30%; top: -4rem; }
}

/* the looks */
.looks { list-style: none; margin: 0; padding: 0.5rem var(--gut) 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(46vw, 210px); gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.looks li { scroll-snap-align: center; display: grid; gap: 0.5rem; }
.looks .cut { border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); overflow: clip; padding-top: 0.75rem; transition: translate 0.3s var(--ease), background-color 0.3s; }
.looks li:hover .cut { translate: 0 -6px; background: var(--signal); }
.looks b { font: 650 1.05rem/1.1 var(--display); }
.looks small { color: var(--ink-2); font-size: 0.8125rem; }
@media (min-width: 1100px) { .looks { grid-auto-columns: 1fr; overflow: visible; padding-inline: 0; width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; } }

/* meet Unum + crossover */
.cross { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; padding: 1rem; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; transition: translate 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.cross:hover { color: var(--ink); translate: -2px -2px; box-shadow: 4px 4px 0 var(--ink); }
.cross img { width: 96px; height: auto; }
.cross b { font: 650 1.15rem/1.15 var(--display); display: block; }
.cross span { font-size: 0.9063rem; color: var(--ink-2); }

/* offer + questions */
.offer { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.offer .card h3 { font-size: 1.35rem; }
.offer .card--price { background: var(--ink); color: var(--paper); }
.offer .card--price p { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.offer .card--price h3 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.draft { display: inline-block; font: 600 0.625rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.45rem; border-radius: 5px; border: 1.5px dashed currentColor; color: var(--signal-ink); vertical-align: middle; }
.card--price .draft { color: inherit; }
.faq { border-top: 2px solid var(--ink); interpolate-size: allow-keywords; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 1fr 28px; gap: 1rem; align-items: center; min-height: 60px; padding: 0.8rem 0; cursor: pointer; list-style: none; font: 650 clamp(1.1rem, 3.6vw, 1.4rem)/1.15 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(var(--ink) 0 0) center / 12px 2px no-repeat, linear-gradient(var(--ink) 0 0) center / 2px 12px no-repeat; transition: rotate 0.3s var(--ease), background-color 0.3s; }
.faq details[open] summary::after { rotate: 45deg; background-color: var(--signal); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 0 1.1rem; max-width: 62ch; color: var(--ink-2); }

/* horizontal gallery (plain version = the grid from round 1) */
.hgal__hint { display: none; }
.hgal__track { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.hgal { overflow-x: clip; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* hero: three layers leave at three speeds */
    @keyframes lift { to { translate: 0 -70px; } }
    @keyframes sink { to { translate: 0 40px; scale: 0.96; } }
    /* phones and plain layout: each beat still moves a little as it passes, on its own view timeline */
    .beat { view-timeline: --beat block; }
    .beat__unum { animation: drift linear both; animation-timeline: --beat; animation-range: entry 20% exit 80%; }
    .beat__no { animation: slow linear both; animation-timeline: --beat; animation-range: entry 0% exit 100%; }
    @keyframes drift { from { translate: 14% 0; } to { translate: -6% 0; } }
    @keyframes slow { from { translate: 0 30%; } to { translate: 0 -30%; } }
  }
}

/* ---------- the pinned story and the sideways gallery: wide, tall screens only ---------- */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) and (min-height: 620px) {
  @supports (animation-timeline: view()) {
    .story { height: calc(100svh + 6 * 85vh); padding-block: 0; view-timeline: --story block; }
    .story__pin { position: sticky; top: 0; height: 100svh; overflow: clip; display: grid; grid-template-rows: auto 1fr auto; padding-top: 62px; }
    .story__head { margin: 0; padding-block: 1.25rem 0; grid-template-columns: 1fr auto; align-items: end; }
    .story__head h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); grid-column: 1; }
    .story__head .eyebrow { grid-column: 1; }
    .story__skip { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
    .story__head .lede { display: none; }
    .beats { position: relative; display: block; }
    .beat {
      --r0: contain calc(var(--i) * 16.6667% - 2.5%); --r1: contain calc((var(--i) + 1) * 16.6667% + 2.5%);
      position: absolute; inset: 0; align-content: center; padding-bottom: 3rem; pointer-events: none;
      view-timeline: none;
      animation: beat linear both; animation-timeline: --story; animation-range: var(--r0) var(--r1);
    }
    .beat:nth-child(1) { --i: 0; animation-name: beat-first; } .beat:nth-child(2) { --i: 1; } .beat:nth-child(3) { --i: 2; }
    .beat:nth-child(4) { --i: 3; } .beat:nth-child(5) { --i: 4; } .beat:nth-child(6) { --i: 5; animation-name: beat-last; }
    @keyframes beat { 0% { opacity: 0; } 22% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
    @keyframes beat-first { 0%, 78% { opacity: 1; } 100% { opacity: 0; } }
    @keyframes beat-last { 0% { opacity: 0; } 22%, 100% { opacity: 1; } }
    .beat__copy, .beat__unum, .beat__no, .beat__show .frame, .beat :is(.pin, .readout, .beat__wire, .beat__after, .beat__scan, .stamp), .chipset span { animation: linear both; animation-timeline: --story; animation-range: var(--r0) var(--r1); }
    .beat__copy { animation-name: copy; }
    .beat__unum { animation-name: unum; left: -9%; width: 43%; bottom: -4.5rem; }
    .beat__show .frame { width: 79%; margin-left: 21%; }
    .beat__copy { max-width: 25rem; }
    .beat__no { animation-name: no; font-size: clamp(12rem, 30vw, 26rem); left: 26%; top: 6%; }
    .beat__show .frame { animation-name: frame; }
    @keyframes copy { 0% { translate: 0 70px; } 25% { translate: 0 0; } 75% { translate: 0 0; } 100% { translate: 0 -70px; } }
    @keyframes unum { 0% { translate: -18% 5%; scale: 0.94; } 28% { translate: 0 0; scale: 1; } 100% { translate: 9% 0; scale: 1; } }
    @keyframes no { 0% { translate: 0 24%; } 100% { translate: 0 -24%; } }
    @keyframes frame { 0% { scale: 0.94; rotate: 1.2deg; } 25% { scale: 1; rotate: 0deg; } 100% { scale: 1; } }
    .beat:nth-child(1) :is(.beat__copy, .beat__unum, .beat__show .frame) { animation-name: none; }
    /* 1 capture: a scan line reads the page */
    .beat__scan { display: block; position: absolute; z-index: 2; left: 0; right: 0; height: 3px; background: var(--cobalt); box-shadow: 0 0 0 100vmax rgb(47 107 255 / 0); animation-name: scanline; }
    @keyframes scanline { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 70% { top: 100%; opacity: 1; } 75%, 100% { top: 100%; opacity: 0; } }
    /* 2 audit: pins land one after another, the weight counts up */
    .beat .pin { animation-name: pin1; } .beat .pin:nth-child(2) { animation-name: pin2; } .beat .pin:nth-child(3) { animation-name: pin3; }
    @keyframes pin1 { 0%, 24% { opacity: 0; scale: 0.3; } 32%, 100% { opacity: 1; scale: 1; } }
    @keyframes pin2 { 0%, 36% { opacity: 0; scale: 0.3; } 44%, 100% { opacity: 1; scale: 1; } }
    @keyframes pin3 { 0%, 48% { opacity: 0; scale: 0.3; } 56%, 100% { opacity: 1; scale: 1; } }
    .readout { animation-name: weigh; }
    @keyframes weigh { 0%, 22% { --n: 0; } 62%, 100% { --n: var(--to); } }
    /* 3 brief: the wireframe is laid over the old page */
    .beat__wire { animation-name: lay; }
    @keyframes lay { 0%, 24% { opacity: 0; scale: 1.06; } 52%, 100% { opacity: 1; scale: 1; } }
    /* 4 build: the concept is drawn top to bottom */
    .beat:nth-child(4) .beat__after { animation-name: paint; }
    @keyframes paint { 0%, 22% { clip-path: inset(0 0 100% 0); } 68%, 100% { clip-path: inset(0 0 0 0); } }
    .beat:nth-child(4) .beat__scan { background: var(--signal); animation-name: paintline; }
    @keyframes paintline { 0%, 22% { top: 0; opacity: 1; } 68% { top: 100%; opacity: 1; } 70%, 100% { top: 100%; opacity: 0; } }
    /* 5 verify: three checks */
    .chipset span { animation-name: pin1; } .chipset span:nth-child(2) { animation-name: pin2; } .chipset span:nth-child(3) { animation-name: pin3; }
    /* 6 hand-over: stamped private */
    .stamp { animation-name: stampin; }
    @keyframes stampin { 0%, 30% { opacity: 0; scale: 2.2; } 42%, 100% { opacity: 1; scale: 1; } }
    /* progress rail */
    .story__rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; list-style: none; margin: 0; padding: 0 0 1.1rem; position: relative; font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
    .story__rail li { padding-top: 0.8rem; }
    .story__rail::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--line); }
    .story__rail::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--signal); transform-origin: left; animation: fill linear both; animation-timeline: --story; animation-range: contain 0% contain 100%; }
    @keyframes fill { from { scale: 0 1; } to { scale: 1 1; } }

    /* the cases pass sideways while the page is held */
    .hgal { height: calc(100svh + 150vh); view-timeline: --gal block; }
    .hgal__pin { position: sticky; top: 0; height: 100svh; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 2rem; padding-top: 62px; }
    .hgal .section__head { margin-bottom: 0; }
    .hgal { padding-block: 0; }
    .hgal .work-grid { display: flex; gap: 3rem; width: max-content; margin-inline: 0; padding-inline: max(var(--gut), (100vw - var(--wrap)) / 2); animation: pass linear both; animation-timeline: --gal; animation-range: contain 0% contain 100%; }
    .hgal .work { width: min(74vw, 920px); flex: none; }
    .hgal .work.reveal { animation: none; opacity: 1; }
    @keyframes pass { to { translate: calc(100vw - 100%) 0; } }
    .hgal__hint { display: block; font: 500 0.75rem/1 var(--mono); color: var(--ink-2); }
  }
}

/* ============================================================================================
   Round 3: the owner's journey. A dark hero where the page is designed live (swarm canvas),
   glitch-in headlines, a six-beat journey, a glass "site" object, and a depth lookbook.
   Plain layout first; motion is added at the end behind @supports and reduced-motion queries.
   ============================================================================================ */
.night { --paper: #0d0f14; --paper-2: #151821; --card: #171a22; --ink: #f1ede4; --ink-2: #b9b6ad; --line: rgb(241 237 228 / 0.2); --signal-ink: #ff8a66; --cobalt-ink: #9db9ff; --ok: #6bd6a6; --shadow: 6px 6px 0 #000;
  color: var(--ink); background-color: var(--paper);
  background-image: linear-gradient(rgb(91 140 255 / 0.09) 1px, transparent 1px), linear-gradient(90deg, rgb(91 140 255 / 0.09) 1px, transparent 1px), linear-gradient(rgb(91 140 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(91 140 255 / 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.night :focus-visible { outline-color: #9db9ff; }

/* glitch-in headline: two coloured copies slip and settle. The copies are aria-hidden; the heading text is real. */
.glitch { position: relative; display: inline-block; }
.glitch > span { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch > span:first-of-type { color: #00e5ff; }
.glitch > span:last-of-type { color: #ff2bd6; }

.hero3 { position: relative; overflow: clip; padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(5rem, 9vw, 6rem); view-timeline: --hero block; }
.hero3__grid { display: grid; gap: 2.25rem; align-items: center; }
.hero3__copy { display: grid; gap: 1.1rem; justify-items: start; position: relative; z-index: 2; }
.hero3 h1 { font-size: clamp(2.7rem, 12vw, 5.6rem); line-height: 0.92; }
.hero3 h1 em { font-style: normal; color: var(--signal); }
.hero3__show { position: relative; }
.swarm { position: relative; border: 1.5px solid rgb(91 140 255 / 0.55); border-radius: 14px; background: rgb(13 15 20 / 0.72); }
.swarm canvas { width: 100%; aspect-ratio: 4 / 5; display: block; }
.swarm::before { content: attr(data-label); position: absolute; left: 0.7rem; top: -0.62rem; padding: 0 0.4rem; font: 600 0.6875rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #9db9ff; background: var(--paper); }
.swarm .icon-btn { position: absolute; right: 0.6rem; top: 0.6rem; z-index: 2; background: #151821; color: #f1ede4; border-color: #f1ede4; }
.swarm noscript img, .swarm > img { width: 100%; border-radius: 12px; }
html:not(.js) .swarm canvas, html:not(.js) .swarm .icon-btn { display: none; }
.hero3__unum { position: absolute; z-index: 3; right: -5%; bottom: -5.2rem; width: 40%; pointer-events: none; }
.hero3 .cut img, .story .cut img, .lookbook .cut img { filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.55)); }
.hero3 .hook { background: #151821; }
@media (min-width: 560px) { .swarm canvas { aspect-ratio: 8 / 5; } .hero3__unum { width: 30%; right: -3%; } }
@media (min-width: 980px) {
  .hero3 { min-height: calc(100svh - 62px); display: grid; align-items: center; }
  .hero3__grid { grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: 2.5rem; }
  .hero3 h1 { font-size: clamp(3rem, 4.7vw, 4.8rem); }
  .hero3__unum { width: 27%; right: -4%; bottom: -5.5rem; }
}

/* journey beats: what sits beside the copy */
.beat__vis { position: relative; width: 84%; }
.beat__eg { font: 500 0.6875rem/1.3 var(--mono); color: var(--ink-2); margin-top: 0.6rem; }
.leavers { position: absolute; inset: 0; pointer-events: none; }
.leavers i { position: absolute; right: -4%; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: -14px 0 0 -3px rgb(255 77 28 / 0.5), -26px 0 0 -4px rgb(255 77 28 / 0.25); }
.leavers i:nth-child(1) { top: 22%; } .leavers i:nth-child(2) { top: 41%; right: -9%; } .leavers i:nth-child(3) { top: 58%; right: -2%; } .leavers i:nth-child(4) { top: 76%; right: -7%; }
.addr { display: grid; gap: 1rem; padding: clamp(1rem, 4vw, 2rem); border: 1.5px solid rgb(91 140 255 / 0.55); border-radius: 14px; background: rgb(13 15 20 / 0.72); }
.addr__box { display: flex; align-items: center; gap: 0.6rem; min-height: 56px; padding: 0 1rem; border: 2px solid var(--ink); border-radius: 999px; font: 500 clamp(0.8rem, 3.2vw, 1.15rem)/1 var(--mono); overflow: hidden; white-space: nowrap; }
.addr__box b { font-weight: 500; overflow: hidden; display: inline-block; max-width: 100%; }
.addr__box::after { content: ""; flex: none; width: 2px; height: 1.3em; background: var(--signal); }
.addr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.addr li { font: 600 0.75rem/1 var(--mono); padding: 0.45rem 0.6rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.addr__ok { justify-self: start; font: 700 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #6bd6a6; border: 2px solid currentColor; border-radius: 6px; padding: 0.45rem 0.6rem; rotate: -2deg; }
.beat .swarm { width: 84%; }
/* the glass "site": three panes in depth, each one result */
.glass { perspective: 1100px; width: 84%; }
.glass__spin { position: relative; display: grid; gap: 0.75rem; transform-style: preserve-3d; rotate: y -16deg; }
.pane { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; align-items: baseline; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid rgb(255 255 255 / 0.34); background: linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04) 45%, rgb(91 140 255 / 0.12)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 20px 40px rgb(0 0 0 / 0.35); }
.pane:nth-child(1) { translate: 0 0 70px; } .pane:nth-child(3) { translate: 0 0 -70px; }
.pane dt { font: 650 1.25rem/1.1 var(--display); }
.pane dd { margin: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); text-align: right; white-space: nowrap; }
.pane dd s { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.pane dd b { font: 750 clamp(1.4rem, 5vw, 2.1rem)/1 var(--display); color: var(--ink); margin-left: 0.4rem; }
.pane .pane__note { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); font: 400 0.875rem/1.4 var(--body); text-align: left; white-space: normal; }
.calm { display: grid; gap: 0.9rem; padding: clamp(1rem, 4vw, 1.75rem); border-radius: 14px; background: #f3efe6; color: #14161b; width: 84%; --ink-2: #474a54; }
.calm__week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
.calm__week span { display: grid; gap: 0.35rem; justify-items: center; padding: 0.6rem 0 0.9rem; border-radius: 8px; background: #e9e3d5; font: 600 0.6875rem/1 var(--mono); text-transform: uppercase; color: #474a54; }
.calm__week span::after { content: ""; width: 60%; height: 2.2rem; border-radius: 5px; border: 1.5px dashed rgb(20 22 27 / 0.25); }
.calm p { font: 650 1.1rem/1.2 var(--display); }
.calm__mail { display: grid; grid-template-columns: 72px 1fr; gap: 0.8rem; align-items: center; padding: 0.6rem; border: 2px solid #14161b; border-radius: 10px; background: #fbf9f4; }
.calm__mail img { border-radius: 5px; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.calm__mail small { display: block; font: 500 0.75rem/1.3 var(--mono); color: #474a54; }
.beat__cta { justify-self: start; margin-top: 0.4rem; }
.beat--yours .beat__show { min-height: 14rem; }
@media (min-width: 900px) { .beat .pin span { display: block; } }

/* the lookbook: Unum's looks at different depths; one walks to the front */
.lookbook { overflow: clip; }
.lookbook__grid { display: grid; gap: 2rem; }
.lookbook__stage { position: relative; height: clamp(380px, 110vw, 560px); perspective: 1200px; --mx: 0; --my: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.look { position: absolute; left: 50%; bottom: 0; width: clamp(200px, 56vw, 330px); margin: 0 0 0 calc(clamp(200px, 56vw, 330px) / -2); transform-origin: 50% 100%;
  translate: calc(var(--x, 0%) + var(--mx) * var(--k, 0) * 1px) calc(var(--y, 0%) + var(--my) * var(--k, 0) * 0.5px); scale: var(--s, 1); filter: blur(var(--b, 0px)); opacity: var(--o, 1); z-index: var(--zi, 1);
  transition: translate 0.9s var(--ease), scale 0.9s var(--ease), filter 0.9s, opacity 0.9s; }
.look img { filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.5)); }
.look[data-slot="0"] { --zi: 9; --k: 0; }
.look[data-slot="1"] { --x: -80%; --y: -4%; --s: 0.66; --b: 2.5px; --o: 0.85; --zi: 6; --k: -10; }
.look[data-slot="2"] { --x: 80%; --y: -4%; --s: 0.66; --b: 2.5px; --o: 0.85; --zi: 6; --k: 10; }
.look[data-slot="3"] { --x: -122%; --y: -22%; --s: 0.44; --b: 5px; --o: 0.6; --zi: 4; --k: -22; }
.look[data-slot="4"] { --x: 122%; --y: -22%; --s: 0.44; --b: 5px; --o: 0.6; --zi: 4; --k: 22; }
.look[data-slot="5"] { --x: -44%; --y: -50%; --s: 0.3; --b: 7px; --o: 0.42; --zi: 2; --k: -34; }
.look[data-slot="6"] { --x: 48%; --y: -54%; --s: 0.27; --b: 8px; --o: 0.4; --zi: 2; --k: 34; }
.look[data-slot="7"] { --x: 0%; --y: -74%; --s: 0.2; --b: 9px; --o: 0.3; --zi: 1; --k: 40; }
.lookbook__floor { position: absolute; left: 50%; bottom: -4%; width: min(90%, 520px); aspect-ratio: 5 / 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 77 28 / 0.45), transparent); }
.lookbook__tag { position: absolute; left: 50%; bottom: 0.5rem; translate: -50% 0; z-index: 10; }
.lookbook__tag.ai-tag { background: #f3efe6; color: #14161b; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem 0.5rem; }
.picks button { display: grid; gap: 0.3rem; width: 100%; padding: 0; border: 0; background: none; color: var(--ink-2); font: 600 0.6875rem/1.15 var(--mono); text-align: left; cursor: pointer; }
.picks img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 4%; border-radius: 10px; border: 2px solid var(--line); background: var(--card); }
.picks button[aria-pressed="true"] { color: var(--ink); }
.picks button[aria-pressed="true"] img { border-color: var(--signal); box-shadow: 3px 3px 0 var(--signal); }
html:not(.js) .picks { display: none; }
@media (min-width: 900px) {
  .lookbook__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 3rem; align-items: center; }
  .lookbook__stage { height: 600px; }
  .look { width: 350px; margin-left: -175px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* headline copies: slip, flicker, vanish. Once, on load, for the hero; on entry for the rest. */
  .glitch > span { animation: glitch-a 0.9s steps(1, end) 0.15s both; }
  .glitch > span:last-of-type { animation-name: glitch-b; }
  @keyframes glitch-a { 0% { opacity: 0.9; translate: -0.06em 0; clip-path: inset(8% 0 62% 0); } 20% { translate: 0.05em 0.02em; clip-path: inset(55% 0 12% 0); } 40% { translate: -0.03em 0; clip-path: inset(30% 0 40% 0); } 60% { translate: 0.04em 0; clip-path: inset(70% 0 6% 0); } 80% { opacity: 0.9; translate: -0.02em 0; clip-path: inset(15% 0 70% 0); } 100% { opacity: 0; translate: 0 0; } }
  @keyframes glitch-b { 0% { opacity: 0.9; translate: 0.07em 0; clip-path: inset(48% 0 20% 0); } 20% { translate: -0.04em 0; clip-path: inset(5% 0 78% 0); } 40% { translate: 0.05em -0.02em; clip-path: inset(62% 0 18% 0); } 60% { translate: -0.05em 0; clip-path: inset(22% 0 55% 0); } 80% { opacity: 0.9; translate: 0.02em 0; clip-path: inset(80% 0 4% 0); } 100% { opacity: 0; translate: 0 0; } }
  @supports (animation-timeline: view()) {
    h2 .glitch > span, h3 .glitch > span { animation-duration: auto; animation-delay: 0s; animation-timing-function: steps(1, end); animation-timeline: view(); animation-range: entry 20% entry 110%; }
    .hero3__unum { animation: lift linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero3 .swarm { animation: sink linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    /* plain layout: the glass turns and visitors drift off as the beat passes */
    .glass__spin { animation: turn linear both; animation-timeline: view(); animation-range: entry 10% exit 90%; }
    @keyframes turn { from { rotate: y -34deg; } to { rotate: y 18deg; } }
    .leavers i { animation: leave linear both; animation-timeline: view(); animation-range: entry 30% exit 70%; }
    @keyframes leave { from { translate: -260% 0; opacity: 0; } 30% { opacity: 1; } to { translate: 320% 0; opacity: 0; } }
    .addr__box b { animation: typing steps(34, end) both; animation-timeline: view(); animation-range: entry 35% cover 45%; }
    @keyframes typing { from { max-width: 0; } to { max-width: 100%; } }
    .lookbook__stage { view-timeline: --looks block; }
    .lookbook__floor { animation: glow linear both; animation-timeline: --looks; animation-range: entry 0% cover 60%; }
    @keyframes glow { from { opacity: 0; scale: 0.6 1; } to { opacity: 1; scale: 1 1; } }
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) and (min-height: 620px) {
  @supports (animation-timeline: view()) {
    .glass { width: 62%; margin-left: 30%; }
    .beat__vis, .beat .swarm, .calm { width: 79%; margin-left: 21%; }
    .beat__vis, .beat .swarm, .glass, .calm { animation: frame linear both; animation-timeline: --story; animation-range: var(--r0) var(--r1); }
    .beat:nth-child(1) .beat__vis { animation-name: none; }
    .beat h3 .glitch > span { animation-timeline: --story; animation-range: var(--r0) var(--r1); animation-name: glitch-in-a; animation-duration: auto; }
    .beat h3 .glitch > span:last-of-type { animation-name: glitch-in-b; }
    @keyframes glitch-in-a { 0%, 6% { opacity: 0; } 7% { opacity: 0.9; translate: -0.06em 0; clip-path: inset(8% 0 62% 0); } 12% { translate: 0.05em 0.02em; clip-path: inset(55% 0 12% 0); } 17% { translate: -0.03em 0; clip-path: inset(30% 0 40% 0); } 22% { opacity: 0.9; translate: 0.04em 0; clip-path: inset(70% 0 6% 0); } 26%, 100% { opacity: 0; } }
    @keyframes glitch-in-b { 0%, 6% { opacity: 0; } 7% { opacity: 0.9; translate: 0.07em 0; clip-path: inset(48% 0 20% 0); } 12% { translate: -0.04em 0; clip-path: inset(5% 0 78% 0); } 17% { translate: 0.05em -0.02em; clip-path: inset(62% 0 18% 0); } 22% { opacity: 0.9; translate: -0.05em 0; clip-path: inset(22% 0 55% 0); } 26%, 100% { opacity: 0; } }
    .glass__spin { animation: turn-pin linear both; animation-timeline: --story; animation-range: var(--r0) var(--r1); }
    @keyframes turn-pin { 0% { rotate: y -52deg; } 30% { rotate: y -18deg; } 100% { rotate: y 14deg; } }
    .pane { animation: pane linear both; animation-timeline: --story; animation-range: var(--r0) var(--r1); }
    .pane:nth-child(2) { animation-name: pane2; } .pane:nth-child(3) { animation-name: pane3; }
    @keyframes pane { 0%, 12% { opacity: 0; translate: 0 30px 220px; } 30%, 100% { opacity: 1; translate: 0 0 70px; } }
    @keyframes pane2 { 0%, 22% { opacity: 0; translate: 0 30px 150px; } 40%, 100% { opacity: 1; translate: 0 0 0; } }
    @keyframes pane3 { 0%, 32% { opacity: 0; translate: 0 30px 80px; } 50%, 100% { opacity: 1; translate: 0 0 -70px; } }
    .leavers i { animation: leave linear both; animation-timeline: --story; animation-range: var(--r0) var(--r1); }
    .leavers i:nth-child(2) { animation-name: leave2; } .leavers i:nth-child(3) { animation-name: leave3; } .leavers i:nth-child(4) { animation-name: leave2; }
    @keyframes leave2 { 0%, 25% { translate: -260% 0; opacity: 0; } 45% { opacity: 1; } 100% { translate: 420% 0; opacity: 0; } }
    @keyframes leave3 { 0%, 40% { translate: -260% 0; opacity: 0; } 60% { opacity: 1; } 100% { translate: 300% 0; opacity: 0; } }
    .addr__box b { animation: typing steps(34, end) both; animation-timeline: --story; animation-range: var(--r0) var(--r1); animation-name: typing-pin; }
    @keyframes typing-pin { 0%, 18% { max-width: 0; } 55%, 100% { max-width: 100%; } }
    .addr__ok { animation: stampin linear both; animation-timeline: --story; animation-range: var(--r0) var(--r1); }
    .calm__mail { animation: mail linear both; animation-timeline: --story; animation-range: var(--r0) var(--r1); }
    @keyframes mail { 0%, 35% { opacity: 0; translate: 0 24px; } 50%, 100% { opacity: 1; translate: 0 0; } }
    .beat__cta { animation: cta linear both; animation-timeline: --story; animation-range: var(--r0) var(--r1); pointer-events: auto; }
    @keyframes cta { 0%, 14% { visibility: hidden; } 15%, 100% { visibility: visible; } }
    .beat--yours .beat__unum { left: 12%; width: 46%; }
  }
}

/* ---------- language switch (EN / EL): fixed top right, only with JS; the header row leaves room for it ---------- */
.lang-switch { display: none; }
.js .lang-switch {
  display: inline-flex; position: fixed; z-index: 60; top: 13px;
  right: max(var(--gut), calc((100vw - var(--wrap)) / 2));
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden;
  font: 700 0.75rem/1 var(--mono); letter-spacing: 0.06em;
}
.lang-switch button { appearance: none; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; min-width: 2.4rem; min-height: 34px; padding: 0 0.55rem; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang-switch button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -4px; }
.js .site-head__in { padding-right: 5.6rem; }
.legal-note { margin: 0; padding: 0.7rem var(--gut); background: var(--paper-2); border-bottom: 1.5px solid var(--ink); font: 600 0.9rem/1.4 var(--body); text-align: center; }

/* /about/: Unum cut off at mid-thigh, sitting on the bottom edge of her frame so the crop reads as intended */
.about-split { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: start; }
.about-unum { margin: 0; position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 4 / 5; max-width: 26rem; width: 100%; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: var(--shadow); overflow: clip; }
.about-unum img { width: 100%; height: auto; display: block; }
@media (min-width: 900px) { .about-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } .about-unum { position: sticky; top: 6rem; } }
.about-unum .ai-tag { top: 0.7rem; bottom: auto; left: 0.7rem; translate: none; }

/* state art (s-sprites batch 4): 404, removal and rules pictures, with the AI-generated label */
.state-art { margin: 0; position: relative; width: 100%; max-width: 30rem; }
.state-art img { width: 100%; height: auto; border-radius: var(--r); }
.state-art .ai-tag { left: 0.7rem; bottom: 0.7rem; translate: none; }
.state-art--404 { max-width: 34rem; margin-top: 1.5rem; }

/* generated by build_aiunum.py */
.at-0ae5c50{left:36%;top:92%}
.at-4d2ffb0{left:28%;top:19%}
.at-54664c4{left:7%;top:75%}
.at-6d7289b{left:25%;top:28%}
.at-9674631{left:50%;top:21%}
.at-c5e588a{left:27%;top:66%}
.at-d2db11e{left:20%;top:86%}
.at-e324b16{left:17%;top:52%}
.at-f5f344f{left:69%;top:89%}
.sc-17f61fa{--from:3840;--to:212}
.sc-2e03e26{--from:74;--to:8}
.sc-4d836b2{--from:96;--to:9}
.sc-56986ec{--from:19;--to:4}
.sc-9ec3347{--from:131;--to:11}
.sc-a1cf300{--from:27;--to:4}
.sc-d2e82a5{--from:2960;--to:186}
.sc-dfd43a8{--from:12;--to:4}
.sc-f04445c{--from:412;--to:19}
.sc-f279cf6{--from:6120;--to:248}
.sc-f6ddc1f{--from:5;--to:0}
.sc-ff94203{--from:71;--to:0}
.vt-aa35c24{view-transition-name:shot-pedalwhistle-cycle-works}
.vt-bc9d328{view-transition-name:title-abacus-and-otter}
.vt-be5d7e5{view-transition-name:title-wobblewick-bakehouse}
.vt-c698f62{view-transition-name:title-pedalwhistle-cycle-works}
.vt-c86b8fd{view-transition-name:shot-abacus-and-otter}
.vt-cacd5ba{view-transition-name:shot-wobblewick-bakehouse}
