/* Silent Academy Lover: The Quiet Index */
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("/fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* TOKENS:START (generated by silent-academy-lover-src/ds/tokens.py, do not edit by hand) */
/* Tier 1: primitives. 11-step OKLCH scales, even perceived lightness (L ladder 0.975..0.2). */
:root {
  --ink-50: #F7F7F3;
  --ink-100: #EEEEEA;
  --ink-200: #DDDDD8;
  --ink-300: #C4C4C0;
  --ink-400: #A6A6A2;
  --ink-500: #8B8B87;
  --ink-600: #72726E;
  --ink-700: #5A5A56;
  --ink-800: #41413E;
  --ink-900: #2A2A27;
  --ink-950: #0E0E0C;
  --paper-50: #FAF6EE;
  --paper-100: #F1EEE7;
  --paper-200: #E0DCD4;
  --paper-300: #C7C4BC;
  --paper-400: #A9A69E;
  --paper-500: #8E8A83;
  --paper-600: #74716A;
  --paper-700: #5C5952;
  --paper-800: #44413A;
  --paper-900: #2D2A23;
  --paper-950: #181610;
  --vermilion-50: #FFF4F1;
  --vermilion-100: #FFE8E3;
  --vermilion-200: #FFD0C5;
  --vermilion-300: #FFAC9A;
  --vermilion-400: #FF775C;
  --vermilion-500: #E5482A;
  --vermilion-600: #C73518;
  --vermilion-700: #A1240A;
  --vermilion-800: #781805;
  --vermilion-900: #4F1106;
  --vermilion-950: #280C07;
  --stone-50: #FCF6EE;
  --stone-100: #F3EDE5;
  --stone-200: #E4DBD0;
  --stone-300: #CCC2B8;
  --stone-400: #AEA49A;
  --stone-500: #92897F;
  --stone-600: #797066;
  --stone-700: #60584F;
  --stone-800: #474037;
  --stone-900: #2E2924;
  --stone-950: #1A1510;
}
/* Tier 2: semantic tokens. Components use only these. Light theme. */
:root {
  --bg: #F1EEE7;
  --surface: #E0DCD4;
  --surface-raised: #FAF6EE;
  --text: #0E0E0C;
  --text-muted: #5A5A56;
  --border: #CCC2B8;
  --border-strong: #0E0E0C;
  --accent: #E5482A;
  --accent-hover: #FF775C;
  --accent-ink: #0E0E0C;
  --accent-text: #A1240A;
  --focus: #C73518;
  --error: #781805;
  --inverse-bg: #0E0E0C;
  --inverse-surface: #2A2A27;
  --inverse-text: #F1EEE7;
  --inverse-muted: #A9A69E;
  --inverse-border: #5A5A56;
  --inverse-accent: #FF775C;
  --illus-generic-bg: #E9E9EC;
  --illus-generic-text: #4A4D57;
  --illus-generic-rule: #C9CAD1;
  --illus-generic-fill: #DCDDE2;
  --illus-generic-btn: #5E6F93;
  --illus-generic-on: #FFFFFF;
  --illus-generic-mute: #5E616B;
  color-scheme: light;
}
/* Dark theme: re-mapped, not inverted. Raised surfaces get lighter; accent drops chroma so it does not vibrate on ink. */
:root[data-theme="dark"] {
  --bg: #0E0E0C;
  --surface: #2A2A27;
  --surface-raised: #41413E;
  --text: #F1EEE7;
  --text-muted: #AFACA4;
  --border: #474037;
  --border-strong: #F1EEE7;
  --accent: #E16148;
  --accent-hover: #FF775C;
  --accent-ink: #0E0E0C;
  --accent-text: #FF775C;
  --focus: #FF775C;
  --error: #FFAC9A;
  --inverse-bg: #F1EEE7;
  --inverse-surface: #E0DCD4;
  --inverse-text: #0E0E0C;
  --inverse-muted: #5A5A56;
  --inverse-border: #CCC2B8;
  --inverse-accent: #A1240A;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0C;
    --surface: #2A2A27;
    --surface-raised: #41413E;
    --text: #F1EEE7;
    --text-muted: #AFACA4;
    --border: #474037;
    --border-strong: #F1EEE7;
    --accent: #E16148;
    --accent-hover: #FF775C;
    --accent-ink: #0E0E0C;
    --accent-text: #FF775C;
    --focus: #FF775C;
    --error: #FFAC9A;
    --inverse-bg: #F1EEE7;
    --inverse-surface: #E0DCD4;
    --inverse-text: #0E0E0C;
    --inverse-muted: #5A5A56;
    --inverse-border: #CCC2B8;
    --inverse-accent: #A1240A;
    color-scheme: dark;
  }
}
/* TOKENS:END */
:root {
  --serif: "Instrument Serif", "Times New Roman", serif;
  --heavy: "Archivo Black", "Arial Black", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 2.6vw, 2.5rem);
  /* type scale: 7 steps. Archivo Black words inside serif display lines take .74em as an optical x-height correction, not a step. */
  --fs-xs: 1.125rem; --fs-body: 1.375rem; --fs-md: clamp(1.5rem, 2.6vw, 2.5rem); --fs-lg: clamp(2.25rem, 4.5vw, 4.5rem); --fs-xl: clamp(2.75rem, 6.5vw, 6.5rem);
  --fs-display: calc((100vw - 2 * var(--pad)) * .0735); --fs-mega: clamp(4rem, 15vw, 16rem);
  --bar-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, 0, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 1rem); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.375rem/1.35 var(--serif); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 1.125rem; line-height: 1.4; letter-spacing: -0.01em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -4rem; z-index: 100; background: var(--text); color: var(--bg); padding: .75rem 1rem; font: 1.125rem var(--mono); }
.skip:focus { top: 1rem; }

/* ---------- Logo (v3 Dotted grotesk, inline symbols use currentColor) ---------- */
.logo { text-decoration: none; display: inline-flex; align-items: center; color: var(--text); }
.logo__h { height: 1.3rem; width: auto; aspect-ratio: 1329.3 / 64; }
.logo { flex-shrink: 0; }
.logo__st { display: none; height: 2.5rem; width: 6.87rem; flex-shrink: 0; }
@media (max-width: 47.99rem) { .logo__h { display: none; } .logo__st { display: block; } }

/* ---------- Top bar: ruled mono columns ---------- */
.bar { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1.5rem; height: var(--bar-h); padding: 0 var(--pad) .9rem; background: var(--bg); }
.bar__nav { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 1.5rem; }
.bar__col { font: 400 1.125rem/1 var(--mono); text-decoration: none; padding-bottom: .6rem; border-bottom: 1px solid var(--text); white-space: nowrap; display: flex; align-items: center; gap: .5rem; transition: color .2s; }
.bar__col:hover { color: var(--accent-text); }
.bar__n { color: var(--text-muted); }
.bar__dot, .cta__dot { width: .55em; height: .55em; border-radius: 50%; background: var(--accent); flex: none; }
.bar__meta { display: flex; align-items: center; gap: 1rem; font: 400 1.125rem/1 var(--mono); padding-bottom: .6rem; border-bottom: 1px solid var(--text); }
.bar__clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__theme, .bar__menu { background: none; border: 0; padding: .25rem 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; min-height: 2.75rem; }
.bar__menu { display: none; }
.menu { position: fixed; inset: var(--bar-h) 0 auto 0; background: var(--inverse-bg); color: var(--inverse-text); padding: 1.5rem var(--pad) 2.5rem; display: grid; gap: .25rem; }
.menu[hidden] { display: none; }
.menu a { font: 400 var(--fs-md)/1.15 var(--serif); text-transform: uppercase; text-decoration: none; display: flex; gap: 1rem; align-items: baseline; padding: .35rem 0; border-bottom: 1px solid var(--inverse-border); }
.menu span { font: 1.125rem var(--mono); color: var(--inverse-accent); }
@media (max-width: 99.99rem) { .bar__n { display: none; } }
@media (max-width: 83.99rem) {
  .bar { grid-template-columns: auto 1fr; }
  .bar__nav { display: none; }
  .bar__menu { display: inline-block; }
  .bar__meta { justify-self: end; border-bottom: 0; }
}
@media (max-width: 47.99rem) { .bar { gap: .75rem; } .bar__meta { gap: .75rem; font-size: 1rem; } }
@media (max-width: 29.99rem) { .logo__st { height: 1.875rem; width: 5.15rem; } .bar__meta { gap: .5rem; font-size: .875rem; } }

/* ---------- Shared section furniture ---------- */
section { position: relative; padding: clamp(5rem, 11vw, 10rem) var(--pad); }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); max-width: 70rem; }
.sec-num { color: var(--accent-text); }
.sec-title { font: 400 var(--fs-xl)/.92 var(--serif); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.sec-note { color: var(--text-muted); max-width: 40ch; }
.link { font: 1.125rem var(--mono); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent-text); }

/* ---------- CTA ---------- */
.cta { display: inline-flex; align-items: center; gap: .9rem; min-height: 3.75rem; padding: 0 1.75rem; background: var(--text); color: var(--bg); text-decoration: none; font: 400 1.125rem/1 var(--mono); border: 0; cursor: pointer; clip-path: polygon(0 0, calc(100% - .9rem) 0, 100% .9rem, 100% 100%, .9rem 100%, 0 calc(100% - .9rem)); transition: background .25s; will-change: transform; }
.cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
.cta:hover .cta__dot { background: var(--accent-ink); }
.cta__t { display: inline-block; }
.cta--big { min-height: 4.75rem; font-size: var(--fs-xs); padding: 0 2.25rem; }

/* ---------- Hero: justified mixed sentence ---------- */
.hero { padding-top: clamp(3rem, 7vw, 6.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); min-height: calc(100svh - var(--bar-h)); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.hero__kicker { color: var(--text-muted); }
.hero__title { font: 400 var(--fs-display)/.84 var(--serif); text-transform: uppercase; letter-spacing: -.005em; margin: 0; }
.hero__title .ln { display: flex; justify-content: space-between; align-items: baseline; column-gap: .18em; overflow: clip; padding-block: .03em .04em; }
.hero__title .hl { display: contents; }
.hero__title .w { display: inline-block; white-space: nowrap; }
.hero__title .b { font-family: var(--heavy); font-size: .74em; letter-spacing: -.035em; line-height: 1; }
.hero__title .dot { width: .52em; height: .52em; border-radius: 50%; background: var(--accent); align-self: center; }
.hero__foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; border-top: 1px solid var(--text); padding-top: 1.25rem; }
.hero__terms { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .5rem 2.5rem; }
.idx { color: var(--accent-text); }
@media (max-width: 47.99rem) {
  .hero { min-height: auto; gap: 2.25rem; padding-top: 2.5rem; }
  :root { --fs-display: calc((100vw - 2 * var(--pad)) * .13); }
  .hero__title { line-height: .86; }
  .hero__title .ln { display: contents; }
  .hero__title .hl { display: flex; justify-content: space-between; align-items: baseline; column-gap: .18em; overflow: clip; padding-block: .03em .04em; }
  .hero__title .b { font-size: .7em; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__terms { grid-template-columns: 1fr; }
  .cta { width: 100%; justify-content: center; }
}
/* load reveal (CSS, needs no JS) */
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.mo .hero__title .w { animation: rise 1.1s var(--ease) both; }
.mo .hero__title .ln:nth-child(2) .w { animation-delay: .09s; }
.mo .hero__title .ln:nth-child(3) .w { animation-delay: .18s; }
.mo .hero__title .ln:nth-child(4) .w { animation-delay: .27s; }
.mo .hero__foot, .mo .hero__kicker { animation: fade .9s .55s both; }
/* reduced motion: the same reveal as a fade, nothing travels */
.rm .hero__title .w { animation: fade 1.1s var(--ease) both; }
.rm .hero__title .ln:nth-child(2) .w { animation-delay: .09s; }
.rm .hero__title .ln:nth-child(3) .w { animation-delay: .18s; }
.rm .hero__title .ln:nth-child(4) .w { animation-delay: .27s; }
.rm .hero__foot, .rm .hero__kicker { animation: fade .9s .55s both; }
.settled .hero__title .w, .settled .hero__foot, .settled .hero__kicker { animation: none; }

/* ---------- Spotlight ---------- */
.spot { background: var(--inverse-bg); color: var(--inverse-text); --text-muted: var(--inverse-muted); }
.spot .sec-num { color: var(--inverse-accent); }
.spot__stage { position: relative; display: grid; border-top: 1px solid var(--inverse-border); border-bottom: 1px solid var(--inverse-border); padding: clamp(2rem, 5vw, 4rem) 0; }
.spot__base, .spot__top { grid-area: 1 / 1; }
.spot__base { font: 400 var(--fs-lg)/1 var(--serif); color: var(--inverse-muted); }
.spot__top { grid-area: 2 / 1; margin-top: 1.5rem; }
.spot--static .spot__toggle { display: inline-flex; justify-self: start; margin-top: 1.5rem; background: none; border: 1px solid currentColor; color: inherit; padding: .7rem 1rem; cursor: pointer; min-height: 2.75rem; }
.spot--static.is-full .spot__base { display: none; }
.spot--static.is-full .spot__top { grid-area: 1 / 1; margin-top: 0; }
/* The cursor hint shows only in cursor mode: html.mo + (hover: hover) and (pointer: fine), set as .spot--cursor by main.js */
.spot__hint { display: none; }
@media (hover: hover) and (pointer: fine) { .mo .spot--cursor .spot__hint { display: inline; } }
.spot__line { font: 400 var(--fs-lg)/1 var(--serif); color: var(--inverse-text); }
.spot__stars { color: var(--inverse-accent); }
.spot__stars { font-size: .6em; vertical-align: .2em; letter-spacing: .05em; }
.spot__toggle { display: none; }
.spot__cap { margin-top: 1.25rem; color: var(--text-muted); max-width: 52ch; }
.spot--live .spot__top { grid-area: 1 / 1; margin: 0; background: var(--inverse-bg); color: var(--inverse-text); -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 98%, transparent 100%); mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 98%, transparent 100%); padding: inherit; margin-block: calc(-1 * clamp(2rem, 5vw, 4rem)); padding-block: clamp(2rem, 5vw, 4rem); }
.spot--live .spot__line { color: var(--inverse-text); }
.spot--live .spot__toggle { display: inline-flex; justify-self: start; margin-top: 1.5rem; background: none; border: 1px solid currentColor; color: inherit; padding: .7rem 1rem; cursor: pointer; min-height: 2.75rem; position: relative; z-index: 2; }
.spot--cursor .spot__stage { cursor: crosshair; }

/* ---------- Gaps: spec sheet + stacking index cards ---------- */
.gaps { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.gaps__side { position: sticky; top: calc(var(--bar-h) + 2rem); display: grid; gap: 1.5rem; }
.gaps__intro { max-width: 32ch; }
.gaps__index { border-top: 1px solid var(--text); }
.gaps__index li { display: flex; gap: 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--border); transition: color .3s; }
.gaps__index li span { color: var(--accent-text); min-width: 2.5rem; }
.gaps__index li.is-on { color: var(--text); }
.gaps__index.is-live li:not(.is-on) { color: var(--text-muted); }
.gaps__stack { display: grid; gap: 14vh; padding-bottom: 6vh; }
.card { position: sticky; top: calc(var(--bar-h) + 2rem + var(--i) * 1.6rem); min-height: min(32rem, 72svh); background: var(--inverse-bg); color: var(--inverse-text); padding: clamp(1.5rem, 3vw, 2.75rem); display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.25rem; clip-path: polygon(0 0, calc(100% - 2.5rem) 0, 100% 2.5rem, 100% 100%, 2.5rem 100%, 0 calc(100% - 2.5rem)); transform-origin: 50% 0; will-change: transform; }
.card__top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--inverse-border); }
.card__top span:first-child { color: var(--inverse-accent); }
.card__title { font: 400 var(--fs-lg)/.95 var(--serif); text-transform: uppercase; max-width: 16ch; }
.card__body { max-width: 34ch; align-self: start; }
.card__spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--inverse-border); padding-top: .9rem; }
.card__spec dt { color: var(--inverse-muted); }
.card--rank { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.card--rank .card__top span:first-child { color: var(--accent-text); }
.card--rank .card__top, .card--rank .card__spec { border-color: var(--border); }
.card--rank .card__spec dt { color: var(--text-muted); }
@media (max-width: 63.99rem) {
  .gaps { grid-template-columns: 1fr; }
  .gaps__side { position: static; }
  .gaps__index { display: none; }
  .gaps__stack { gap: 1.5rem; }
  .card { top: calc(var(--bar-h) + 1rem + var(--i) * .9rem); min-height: 24rem; }
}

/* ---------- Before / after ---------- */
.cmp { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; border: 1px solid var(--text); overflow: hidden; touch-action: pan-y; user-select: none; }
.cmp__pane { position: absolute; inset: 0; padding: 4cqw; display: grid; align-content: start; gap: 2.4cqw; }
.cmp__tag { position: absolute; bottom: 2cqw; font-size: clamp(.8rem, 1.4cqw, 1.125rem); padding: .3em .6em; z-index: 2; }
.cmp__old { background: var(--illus-generic-bg); color: var(--illus-generic-text); font-family: Arial, Helvetica, sans-serif; }
.cmp__old .cmp__tag { left: 2cqw; background: var(--illus-generic-text); color: var(--illus-generic-on); }
.old__nav { display: flex; gap: 3cqw; font-size: 1.6cqw; align-items: center; border-bottom: 1px solid var(--illus-generic-rule); padding-bottom: 1.5cqw; }
.old__logo { font-weight: 700; background: var(--illus-generic-rule); padding: .3em .8em; margin-right: auto; }
.old__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; align-items: center; }
.old__img { aspect-ratio: 4/3; background: repeating-linear-gradient(45deg, var(--illus-generic-rule) 0 1cqw, var(--illus-generic-fill) 1cqw 2cqw); display: grid; place-items: center; font-size: 1.6cqw; color: var(--illus-generic-mute); }
.old__h { font-size: 3.6cqw; font-weight: 700; color: var(--illus-generic-text); line-height: 1.1; }
.old__p { font-size: 1.6cqw; line-height: 1.5; margin: 1.5cqw 0; }
.old__btn { display: inline-block; background: var(--illus-generic-btn); color: var(--illus-generic-on); padding: .8cqw 2cqw; font-size: 1.5cqw; border-radius: .6cqw; }
.old__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.old__cols span { height: 6cqw; background: var(--illus-generic-fill); }
.cmp__new { background: var(--surface-raised); color: var(--text); clip-path: inset(0 0 0 var(--p)); }
.cmp__new .cmp__tag { right: 2cqw; background: var(--inverse-bg); color: var(--inverse-text); }
.new__nav { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border-strong); padding-bottom: 1.5cqw; }
.new__name { font: 400 2.6cqw/1 var(--heavy); text-transform: uppercase; }
.new__call { background: var(--accent); color: var(--accent-ink); padding: .8cqw 1.8cqw; font: 1.6cqw var(--mono); }
.new__stars { font-size: 2.4cqw; color: var(--accent-text); }
.new__stars .mono { font-size: 1.5cqw; color: var(--text); margin-left: 1cqw; }
.new__h { font: 400 6.4cqw/.95 var(--serif); max-width: 22ch; }
.new__row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1.5cqw; }
.new__photo, .new__map { aspect-ratio: 4/3; background: var(--surface); display: grid; place-items: center; font: 1.4cqw var(--mono); position: relative; }
.new__map { background: repeating-linear-gradient(0deg, transparent 0 2.4cqw, var(--border) 2.4cqw calc(2.4cqw + 1px)), repeating-linear-gradient(90deg, transparent 0 2.4cqw, var(--border) 2.4cqw calc(2.4cqw + 1px)); }
.new__map i { position: absolute; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--accent); top: 35%; left: 48%; }
.new__btns { display: flex; gap: 1.5cqw; }
.new__btns span { background: var(--inverse-bg); color: var(--inverse-text); padding: 1cqw 2.4cqw; font: 1.6cqw var(--mono); }
.new__btns span + span { background: var(--accent); color: var(--accent-ink); }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3rem; margin-left: -1.5rem; cursor: ew-resize; display: grid; place-items: center; z-index: 3; touch-action: none; }
.cmp__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--accent); }
.cmp__grip { position: relative; background: var(--accent); color: var(--accent-ink); padding: .6rem .8rem; font-size: 1.125rem; }
.cmp__handle:focus-visible { outline: none; }
.cmp__handle:focus-visible .cmp__grip { outline: 2px solid var(--text); outline-offset: 3px; }
@media (max-width: 47.99rem) {
  .cmp { aspect-ratio: 3 / 4; }
  .cmp__pane { padding: 5cqw; gap: 4cqw; }
  .old__nav { font-size: 3.2cqw; } .old__hero { grid-template-columns: 1fr; } .old__h { font-size: 7cqw; } .old__p { font-size: 3.4cqw; } .old__btn { font-size: 3.2cqw; padding: 1.6cqw 3.6cqw; } .old__img { font-size: 3.2cqw; aspect-ratio: 16/9; } .old__cols { display: none; }
  .new__name { font-size: 4.6cqw; } .new__call, .new__btns span { font-size: 3.2cqw; padding: 2cqw 3.6cqw; } .new__stars { font-size: 4.4cqw; } .new__stars .mono { font-size: 3cqw; display: block; margin: 1cqw 0 0; } .new__h { font-size: 11cqw; } .new__photo, .new__map { font-size: 2.8cqw; } .new__row { grid-template-columns: 1fr 1fr; } .new__map { grid-column: 1 / -1; aspect-ratio: 16/7; }
  .cmp__tag { font-size: 3cqw; }
}

/* ---------- Services: index list with bracket frames ---------- */
.idx-list { border-top: 1px solid var(--text); }
.row { position: relative; display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 2.5rem; padding: clamp(1.5rem, 3vw, 2.5rem) 1.5rem; border-bottom: 1px solid var(--border); }
.row__n { color: var(--accent-text); padding-top: .35rem; }
.row__t { font: 400 var(--fs-md)/.98 var(--heavy); text-transform: uppercase; letter-spacing: -.03em; transition: translate .5s var(--ease); }
.row__d { display: grid; gap: 1rem; max-width: 40ch; }
.row__inc { display: grid; gap: .45rem; }
.row__inc li { padding-left: 1.25rem; position: relative; }
.row__inc li::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; background: var(--accent); }
.row__price { font-style: italic; }
.row::before, .row::after { content: ""; position: absolute; top: .6rem; bottom: .6rem; width: 1.1rem; border: 3px solid var(--accent); opacity: 0; transition: opacity .3s, transform .5s var(--ease); pointer-events: none; }
.row::before { left: 0; border-right: 0; transform: translateX(-.75rem); }
.row::after { right: 0; border-left: 0; transform: translateX(.75rem); }
.row:hover::before, .row:hover::after, .row:focus-within::before, .row:focus-within::after { opacity: 1; transform: none; }
.row:hover .row__t, .row:focus-within .row__t { translate: .75rem 0; }
@media (max-width: 63.99rem) {
  .row { grid-template-columns: 3.5rem 1fr; padding-inline: 1rem; }
  .row__d { grid-column: 2; }
}

/* ---------- Split-flap board ---------- */
.board { background: var(--inverse-bg); color: var(--inverse-text); }
.flap { display: grid; gap: 1.5rem; }
.flap__lead { font: 400 var(--fs-xl)/.9 var(--serif); text-transform: uppercase; }
.flap__cells { display: grid; grid-template-columns: repeat(var(--n, 11), minmax(0, 1fr)); gap: .5vw; }
.cell { position: relative; aspect-ratio: 3 / 4; perspective: 40rem; container-type: inline-size; transition: box-shadow .3s; }
.cell .h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--inverse-surface); backface-visibility: hidden; transition: background-color .3s; }
.cell .h--t { top: 0; transform-origin: 50% 100%; border-bottom: 1px solid var(--inverse-bg); }
.cell .h--b { bottom: 0; transform-origin: 50% 0; border-top: 1px solid var(--inverse-bg); }
.cell .h i { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font: 400 62cqw/1 var(--heavy); font-style: normal; color: var(--inverse-text); }
.cell .h--t i { top: 0; }
.cell .h--b i { bottom: 0; }
.cell .h--f1, .cell .h--f2 { visibility: hidden; z-index: 2; }
.cell .h--f1 { z-index: 3; }
.cell.is-flipping .h--f1, .cell.is-flipping .h--f2 { visibility: visible; }
.cell.is-blank .h { background: color-mix(in oklab, var(--inverse-surface) 55%, var(--inverse-bg)); }
.cell.is-sig .h i { color: var(--inverse-accent); }
.flap.is-landed .cell.is-sig { animation: flap-pulse 1.4s var(--ease) both; }
.flap.is-landed .cell.is-sig:nth-child(n) { animation-delay: calc(var(--k, 0) * 40ms); }
@keyframes flap-pulse { 0% { box-shadow: 0 0 0 0 var(--inverse-accent); } 25% { box-shadow: 0 0 0 3px var(--inverse-accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.board__hook { margin-top: clamp(1.75rem, 3.5vw, 3rem); max-width: 36ch; font: 400 var(--fs-md)/1.15 var(--serif); color: var(--inverse-muted); text-wrap: pretty; }
.board__hook strong { font-weight: 400; color: var(--inverse-text); }
.board__list { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; border-top: 1px solid var(--inverse-border); }
.board__list li { padding: 1.1rem 0; border-bottom: 1px solid var(--inverse-border); }
.board__list .mono { display: block; color: var(--inverse-accent); margin-bottom: .25rem; text-transform: uppercase; }
@media (max-width: 63.99rem) { .board__list { grid-template-columns: 1fr; } .flap__cells { gap: 4px; } }

/* ---------- Process: a three-step rail; the vermilion line only runs from one Day marker to the next ---------- */
.process__intro { max-width: 40ch; font: 400 var(--fs-body)/1.4 var(--serif); color: var(--text-muted); }
.days { --dg: 2.5rem; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--dg); border-top: 1px solid var(--text); }
.day { position: relative; display: grid; align-content: start; gap: 1rem; padding: clamp(2.5rem, 4vw, 3.5rem) 0 0; }
.day__pin { position: absolute; left: 0; top: calc(-.45rem - .5px); width: .9rem; height: .9rem; border-radius: 50%; background: var(--accent); z-index: 2; }
.day:not(:last-child)::after { content: ""; position: absolute; left: .45rem; top: -1.5px; width: calc(100% + var(--dg)); height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .9s var(--ease); z-index: 1; }
.day:nth-child(2)::after { transition-delay: .6s; }
.days.is-drawn .day::after { transform: none; }
.day__n { font: 400 var(--fs-xl)/.85 var(--serif); text-transform: uppercase; }
.day__t { font: 400 var(--fs-md)/1 var(--heavy); text-transform: uppercase; letter-spacing: -.02em; }
.day__d { max-width: 34ch; font: 400 var(--fs-body)/1.4 var(--serif); }
@media (max-width: 63.99rem) {
  .days { grid-template-columns: 1fr; border-top: 0; }
  .day { padding: 2rem 0 2.25rem 2.5rem; border-top: 1px solid var(--border); }
  .day:first-child { border-top-color: var(--text); }
  .day__pin { top: 2.6rem; }
  .day:not(:last-child)::after { left: calc(.45rem - 1px); top: calc(2.6rem + .45rem); width: 2px; height: 100%; transform: scaleY(0); transform-origin: center top; }
}

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--text); position: relative; z-index: 2; }
.qa { border-bottom: 1px solid var(--border); background: var(--bg); }
.qa summary { list-style: none; display: grid; grid-template-columns: 6rem 1fr 2.75rem; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0 1.5rem 4rem; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa__n { color: var(--accent-text); }
.qa__q { font: 400 var(--fs-md)/1.05 var(--serif); }
.qa__icon { position: relative; width: 1.25rem; height: 1.25rem; justify-self: end; align-self: center; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .4s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa summary:hover .qa__q { color: var(--accent-text); }
.qa__a { padding: 0 0 1.75rem calc(4rem + 7.5rem); max-width: calc(4rem + 7.5rem + 46ch); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
@media (max-width: 63.99rem) {
  .qa summary { grid-template-columns: 1fr 2.75rem; padding-left: 3rem; gap: .5rem 1rem; }
  .qa__n { grid-column: 1 / -1; }
  .qa__a { padding-left: 3rem; }
}

/* ---------- Contact ---------- */
.contact { z-index: 2; position: relative; overflow-x: clip; background: var(--accent); color: var(--accent-ink); --text: var(--accent-ink); --text-muted: var(--accent-ink); --accent-text: var(--accent-ink); --border-strong: var(--accent-ink); --focus: var(--accent-ink); }
.contact .sec-num { color: var(--accent-ink); }
.contact .cta { background: var(--accent-ink); color: var(--accent); }
.contact .cta__dot { background: var(--accent); }
.contact .cta:hover { background: var(--accent-ink); color: var(--accent); outline: 2px solid var(--accent-ink); outline-offset: 4px; }
.contact ::selection { background: var(--accent-ink); color: var(--accent); }
.contact__title { font: 400 var(--fs-mega)/.82 var(--serif); text-transform: uppercase; margin: 1rem 0 clamp(2.5rem, 5vw, 4rem); }
.contact__title .ln { display: block; overflow: clip; padding-bottom: .04em; }
.contact__title .w { display: inline-block; }
.contact__title .b { font-family: var(--heavy); font-size: .74em; letter-spacing: -.04em; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__lead { display: grid; gap: 2rem; justify-items: start; max-width: 36ch; }
.contact__num a { text-underline-offset: .3em; }
.form { display: grid; gap: .6rem; border-top: 1px solid var(--text); padding-top: 1.5rem; }
.form__intro { margin-bottom: 1rem; }
.form label { color: var(--text-muted); margin-top: .75rem; }
.form input { background: transparent; border: 0; border-bottom: 1px solid var(--text); padding: .7rem 0; font: 400 var(--fs-body) var(--serif); border-radius: 0; }
.form input:focus { outline: none; border-bottom: 3px solid var(--accent-ink); }
.form input[aria-invalid="true"] { border-bottom: 3px double var(--accent-ink); }
.form__err { color: var(--accent-ink); font-weight: 700; font: 1.125rem var(--mono); }
.cta--form { margin-top: 1.5rem; justify-self: start; }
.form__status:not(:empty) { font: 1.125rem var(--mono); padding: .75rem 0; }
.form__status.is-error { color: var(--accent-ink); font-weight: 700; }
.form__privacy { color: var(--text-muted); }
@media (max-width: 63.99rem) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer wordmark ---------- */
.foot { padding: clamp(4rem, 8vw, 7rem) var(--pad) 2rem; border-top: 1px solid var(--text); }
.foot__mark { position: relative; text-transform: uppercase; user-select: none; }
.wm { display: block; width: 100%; height: auto; aspect-ratio: 511.2 / 186; color: var(--text); overflow: visible; }
.wm--fill { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 97%, transparent 100%); mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 97%, transparent 100%); }
.foot__row { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--text); }
.foot__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { color: var(--accent-text); }
.foot__legal { color: var(--text-muted); grid-column: 1 / -1; }
@media (max-width: 63.99rem) { .foot__row { grid-template-columns: 1fr; } .foot__nav { flex-direction: column; } }

/* ---------- Motion hooks ---------- */
.gs .wipe { clip-path: inset(0 0 0 0); }
.skew { will-change: transform; }

/* Reduced motion (OS setting or the header toggle): fades and draws stay, travel goes */
.rm .row__t { transition: none; }
.rm .row:hover .row__t, .rm .row:focus-within .row__t { translate: none; }
.rm .row::before, .rm .row::after { transform: none; transition: opacity .3s; }
.rm .qa::details-content { transition: none; }
.rm .cta:active { transform: none; }
.no-js .bar__motion { display: none; }

/* lint polish */
.cmp__handle:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.qa__q, .row__t, .card__title, .day__t, .sec-title { text-wrap: balance; }
.cta:active { transform: translateY(1px); }

/* wide screens: hero and page keep 64px from the edges */
@media (min-width: 1700px) { :root { --pad: 4rem; } }
/* illustration text never below 13px on phones */
@media (max-width: 48rem) {
  .cmp__tag, .old__nav, .old__p, .old__btn, .old__img, .new__call, .new__btns span, .new__stars .mono, .new__photo, .new__map { font-size: max(.875rem, 3.2cqw); }
}

/* phones: no wide justified gaps in the hero */
@media (max-width: 47.99rem) { .hero__title .hl { justify-content: flex-start; } }

/* ---------- Email connector ---------- */
.cta .ico-mail { width: 1.35em; height: 1.35em; flex: none; color: var(--accent); }
.cta:hover .ico-mail { color: var(--accent-ink); }
.contact .cta .ico-mail { color: var(--accent); }
.contact__after { margin-top: 1.25rem; max-width: 36ch; font: 400 1.125rem/1.45 var(--mono); }
html.mail-open { overflow: hidden; }
.mailpick { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--pad); }
.mailpick[hidden] { display: none; }
.mailpick__scrim { position: absolute; inset: 0; background: color-mix(in oklab, var(--inverse-bg) 62%, transparent); opacity: 0; transition: opacity .25s; }
.mailpick__panel { position: relative; width: min(100%, 28rem); background: var(--bg); color: var(--text); border: 1px solid var(--text); padding: 1.75rem 1.75rem 1.5rem; display: grid; gap: .9rem; transform: translateY(1rem); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.mailpick.is-on .mailpick__scrim { opacity: 1; }
.mailpick.is-on .mailpick__panel { transform: none; opacity: 1; }
.mailpick__k { color: var(--accent-text); font-size: 1rem; }
.mailpick__t { font: 400 var(--fs-md)/1 var(--serif); text-transform: uppercase; margin: 0; }
.mailpick__opts { display: grid; border-top: 1px solid var(--text); }
.mailpick__o { display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem; padding: 0 .25rem; background: none; border: 0; border-bottom: 1px solid var(--border); color: inherit; font: 400 1.125rem/1 var(--mono); text-align: left; cursor: pointer; }
.mailpick__o:hover, .mailpick__o:focus-visible { color: var(--accent-text); }
.mailpick__o:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mailpick__a { width: 1rem; height: 1rem; flex: none; }
.mailpick__n { color: var(--text-muted); font-size: 1rem; line-height: 1.45; }
.mailpick__x { justify-self: start; background: none; border: 0; padding: .5rem 0; min-height: 2.75rem; color: inherit; font: 400 1rem var(--mono); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
@media (max-width: 47.99rem) {
  .mailpick { place-items: end stretch; padding: 0; }
  .mailpick__panel { width: 100%; border-width: 1px 0 0; padding: 1.5rem var(--pad) calc(1.25rem + env(safe-area-inset-bottom)); transform: translateY(100%); }
}
.rm .mailpick__panel, .rm .mailpick.is-on .mailpick__panel { transform: none; }
.rm .flap.is-landed .cell.is-sig { animation: none; }
@media (min-width: 48rem) { .contact__lead { max-width: 40ch; } .cta__t { white-space: nowrap; } }
.bar__motion { white-space: nowrap; }
/* Phones: the state reads as a small square (filled = motion on); the words stay for screen readers */
@media (max-width: 29.99rem) {
  .bar__motion { display: inline-flex; align-items: center; gap: .3em; }
  .bar__motion::after { content: ""; width: .6em; height: .6em; border: 1px solid currentColor; box-sizing: border-box; }
  .bar__motion[aria-pressed="true"]::after { background: currentColor; }
  .bar__mstate { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.contact__addr { margin: 0; max-width: 40ch; font: 400 1.125rem/1.45 var(--mono); }
.contact__addr[hidden] { display: none; }
.contact__mail { color: inherit; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.contact__mail:hover { text-decoration-thickness: 2px; }
