/* Ecapsa — concept B, "Engravings". Ink and paper; Goudy for the voice, system sans for the small print. */

@font-face { font-family: "Goudy"; src: url("shared/fonts/SortsMillGoudy-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Goudy"; src: url("shared/fonts/SortsMillGoudy-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #E6E1D6;
  --ink: #17150F;
  --mid: #8E887C;
  --deep: #2A2720;
  --page: #F6F3EC;
  --page-2: #FBF9F4;
  --rule: rgba(23, 21, 15, .16);
  --rule-paper: rgba(230, 225, 214, .18);

  --serif: "Goudy", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;

  --gutter: clamp(16px, 4.2vw, 60px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section: clamp(72px, 10vw, 144px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
b { font-weight: 600; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
em, i { font-style: italic; }
.sc { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--mid); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* plate captions — the illustrated-edition device */
.plate { font: italic 400 14px/1.35 var(--serif); letter-spacing: .005em; }
.plate i { font-style: italic; }
.plate__no { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; margin-right: 8px; position: relative; top: -1px; opacity: .8; }

/* device frame (iPhone 17 Pro-ish): thin dark bezel, radius ≈ .16 × width */
.phone {
  --pw: 300px;
  width: var(--pw); padding: calc(var(--pw) * .028);
  border-radius: calc(var(--pw) * .165);
  background: #0E0D0A;
  box-shadow: inset 0 0 0 1px #3A362D, 0 1px 0 rgba(255,255,255,.04), 0 30px 60px -24px rgba(10, 9, 6, .55), 0 10px 22px -12px rgba(10, 9, 6, .35);
}
.phone img { width: 100%; height: auto; border-radius: calc(var(--pw) * .138); }

/* badges: Apple clear space ≥ ¼ height → 10px gap minimum; we use 12 */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge { display: block; border-radius: 9px; }
.badge img { height: 44px; width: auto; }

/* reveal: opacity + 12px, once */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal[data-from="top"] { transform: translateY(-12px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ─────────────────────────────── top bar ─────────────────────────────── */
/* One element that morphs: at the top it is the hero's quiet nav (symbol + links on the plate); once you scroll it
   gathers into a compact panel with the full lockup, takes the ground of whatever section is beneath it (paper or ink),
   and marks the section you are in. On phones the panel opens downward into a menu. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bar {
  --bh: 84px; --bw: min(100%, var(--max) + 2 * var(--gutter));
  --sym: 24px; --pad: min(20px, calc(var(--gutter) - 6px));
  position: fixed; inset: 0 0 auto; z-index: 40; pointer-events: none;
  color: var(--paper);
}
.bar__in {
  pointer-events: auto; position: relative; margin: 0 auto; width: var(--bw);
  display: grid; grid-template-rows: var(--bh) 0fr; grid-template-columns: minmax(0, 1fr);
  padding: 0 var(--gutter); border-radius: 0;
  background: rgba(42, 39, 32, 0); box-shadow: 0 0 0 1px rgba(230, 225, 214, 0), 0 18px 40px -26px rgba(10, 9, 6, 0);
  transform: translateY(0);
  transition: width .7s var(--ease), padding .7s var(--ease), border-radius .7s var(--ease), transform .7s var(--ease),
              grid-template-rows .55s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease), color .45s var(--ease);
}
.bar__row { display: flex; align-items: center; gap: 28px; min-width: 0; overflow: visible; }
.bar__home { display: flex; align-items: center; height: 44px; text-decoration: none; flex: none; margin-right: auto; border-radius: 6px; }
/* the lockup, drawn as masks so it recolours with the bar (geometry from ecapsa-logo-horizontal: symbol 210 tall,
   wordmark at x 282.3, top 55, 639.8 × 147.1) */
.bar__sym, .bar__word { display: block; background: currentColor; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.bar__sym { --m: url("shared/logo/ecapsa-symbol-ink.svg"); width: calc(var(--sym) * .9241); height: var(--sym); flex: none; }
.bar__word {
  --m: url("img/ecapsa-wordmark-ink.svg");
  height: calc(var(--sym) * .7250); width: calc(var(--sym) * 3.0465);
  align-self: flex-start; margin-top: calc((44px - var(--sym)) / 2 + var(--sym) * .2371);
  clip-path: inset(0 100% 0 0); opacity: 0; max-width: 0; margin-left: 0;
  transition: clip-path .7s var(--ease) .08s, opacity .45s var(--ease) .08s, max-width .7s var(--ease), margin .7s var(--ease);
}
.bar__nav { position: relative; }
.bar__links { display: flex; gap: clamp(18px, 2.4vw, 32px); font-size: 13.5px; letter-spacing: .01em; }
.bar__links a { display: block; text-decoration: none; padding: 8px 0; opacity: .82; transition: opacity .25s; }
.bar__links a:hover, .bar__links a[aria-current="true"] { opacity: 1; }
.bar__ink { position: absolute; left: 0; bottom: 3px; height: 1px; width: 1px; background: currentColor; transform-origin: 0 50%; opacity: 0;
  transition: transform .55s var(--ease), opacity .3s var(--ease); }
.bar__cta {
  flex: none; font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: .01em;
  padding: 9px 15px; border-radius: 999px; background: var(--paper); color: var(--ink);
  max-width: 0; overflow: hidden; opacity: 0; margin-left: -28px; white-space: nowrap; padding-left: 0; padding-right: 0;
  transition: max-width .7s var(--ease), opacity .4s var(--ease), margin .7s var(--ease), padding .7s var(--ease), background-color .45s, color .45s;
}
.bar__menu { display: none; }
.bar__sheet { min-height: 0; overflow: hidden; }
.bar__sheet-in { padding: 8px 0 22px; opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.bar__big a { display: block; padding: 7px 0; font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.bar__badges { margin-top: 18px; }

/* at the top of the hero the links carry a soft shadow so they read on the engraving */
.bar:not(.is-compact) .bar__links { text-shadow: 0 0 14px rgba(23,21,15,.75), 0 0 3px rgba(23,21,15,.5); }

/* compact: the panel */
.bar.is-compact { --bh: 54px; --bw: calc(min(100%, var(--max) + 2 * var(--gutter)) - 2 * (var(--gutter) - var(--pad))); }
.bar.is-compact .bar__in { padding: 0 calc(var(--pad) - 12px) 0 var(--pad); border-radius: 16px; transform: translateY(15px); }
.bar.is-compact .bar__word, .bar.is-open .bar__word { clip-path: inset(0 0 0 0); opacity: 1; max-width: 80px; margin-left: calc(var(--sym) * .4198); }
.bar.is-compact .bar__cta { max-width: 120px; opacity: 1; margin-left: 0; padding-left: 15px; padding-right: 15px; }
.bar.is-compact .bar__links a { padding: 6px 0; }
/* the ground under it decides the tone */
.bar.is-compact.on-paper { color: var(--ink); }
.bar.is-compact.on-paper .bar__in { background: rgba(246, 243, 236, .97); box-shadow: 0 0 0 1px rgba(23, 21, 15, .08), 0 18px 40px -26px rgba(10, 9, 6, .55); }
.bar.is-compact.on-paper .bar__cta { background: var(--ink); color: var(--paper); }
.bar.is-compact.on-ink .bar__in { background: rgba(42, 39, 32, .97); box-shadow: 0 0 0 1px rgba(230, 225, 214, .1), 0 18px 40px -22px rgba(0, 0, 0, .7); }
.bar.has-spy .bar__ink { opacity: .9; }
.bar:not(.is-compact) .bar__ink { opacity: 0; }

/* ─────────────────────────────── hero ─────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  height: 100vh; height: 100svh; min-height: 700px; max-height: 1040px;
  background: var(--ink); color: var(--paper);
}
.hero__art { position: absolute; inset: -12px 0; z-index: -1; will-change: transform; transform: translate3d(0, var(--dy, 0px), 0); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

.hero__copy { position: relative; padding-top: clamp(128px, 15vh, 168px); }
.hero h1 {
  font-size: clamp(38px, 3.9vw, 58px); line-height: 1.02; letter-spacing: -.012em;
  max-width: 13em;
}
.hero h1 em { display: inline-block; margin-top: .04em; }
.hero__lede { margin-top: 24px; max-width: 27em; font-size: 17px; line-height: 1.5; color: rgba(230, 225, 214, .9); text-wrap: pretty; }
.hero__lede b { color: var(--paper); font-weight: 600; }
.hero .badges { margin-top: 28px; }

.hero__stage {
  position: absolute; inset: 0; pointer-events: none; container-type: inline-size;
  --mb: clamp(18px, 3.2vw, 46px);                                   /* wordmark bottom (descender) */
  --base: calc(var(--mb) + (100cqw - 2 * var(--gutter)) * .07356); /* its baseline: 47.06 / 639.76 */
  --xh: calc((100cqw - 2 * var(--gutter)) * .1563);                 /* its x-height: 100 / 639.76 */
  --hpw: clamp(220px, 20.5vw, 318px);                                /* phone width */
  --rise: .44;                                                       /* share of the phone above the letters */
}
.hero__mark {
  position: absolute; z-index: 2;
  left: var(--gutter); right: var(--gutter); bottom: var(--mb);
  width: calc(100% - 2 * var(--gutter)); height: auto;
  max-width: none;
}

/* plate captions on the engravings: larger, full paper, lifted off the hatching by a soft ink pool behind them */
.plate--art { position: relative; z-index: 1; color: var(--paper); font-size: 16.5px; line-height: 1.3; text-shadow: 0 1px 2px rgba(23,21,15,.9), 0 0 18px rgba(23,21,15,.85); }
.plate--art::before { content: ""; position: absolute; inset: -12px -36px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(18,17,14,.78), rgba(18,17,14,.5) 55%, rgba(18,17,14,0)); }
.plate--art .plate__no { font-size: 11px; opacity: 1; letter-spacing: .16em; margin-right: 10px; }
.hero__plate { position: absolute; left: var(--gutter); bottom: clamp(18px, 3.2vw, 46px); }

/* measured layout (main.js): the wordmark is as wide as the space under the copy allows, so it never climbs into
   the headline; the phone stands at the right end of the wordmark, its top level with the headline */
.hero.is-laid { height: var(--hh); min-height: 0; max-height: none; }
.hero.is-laid .hero__mark { left: var(--mx); right: auto; width: var(--mw); bottom: var(--mbl); }
.hero.is-laid .hero__plate { left: var(--mx); bottom: var(--plb); }

.js .hero__mark { opacity: 0; transition: opacity 1.1s var(--ease) .15s; }
.js .hero__mark { transform: translateY(12px); transition: opacity 1.1s var(--ease) .15s, transform 1.1s var(--ease) .15s; }
.js .hero.is-in .hero__mark { opacity: 1; transform: none; }

/* ─────────────────────────────── intro ─────────────────────────────── */
.intro { padding: var(--section) 0 clamp(64px, 8vw, 112px); }
.intro__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.intro__text {
  grid-column: 1 / span 9;
  font: 400 clamp(26px, 2.85vw, 41px)/1.2 var(--serif); letter-spacing: -.006em;
  text-wrap: pretty; hanging-punctuation: first;
}
.hand { position: relative; display: inline-block; }
.hand svg { position: absolute; left: -3%; width: 106%; height: .3em; bottom: .02em; overflow: visible; }
.hand path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 140; stroke-dashoffset: 0; }
.js .hand path { stroke-dashoffset: 140; transition: stroke-dashoffset 1s cubic-bezier(.6, .1, .3, 1) .5s; }
.js .intro__text.is-in .hand path { stroke-dashoffset: 0; }

.sidenote { grid-column: 10 / span 3; padding-top: 14px; border-top: 1px solid var(--rule); margin-top: .7em; max-width: 240px; justify-self: end; }
.sidenote p { font-size: 13px; line-height: 1.5; color: var(--deep); }
.sidenote i { font: italic 400 17px/1 var(--serif); }
.sidenote .sc { font-size: 10px; color: var(--mid); }

/* ─────────────────────────────── bento ─────────────────────────────── */
/* GRAU: few tiles, each one subject and one label. Two are full-bleed plates with the UI laid on them. */
.bento { padding-bottom: var(--section); }
.bento__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 12px; background: var(--page); }
.tile__title { font-size: clamp(24px, 2vw, 30px); line-height: 1.12; letter-spacing: -.008em; max-width: 12em; text-wrap: balance; }
.tile__copy p, .tile__label { font-size: 14px; line-height: 1.55; color: var(--deep); max-width: 30em; text-wrap: pretty; }
.tile__copy p { margin-top: 14px; max-width: 25em; }

.tile--reader { grid-column: span 7; min-height: 560px; padding: 40px 40px 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 32px; }
.tile__phone { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 4px; margin-bottom: -60px; }
.tile__phone .phone { --pw: clamp(220px, 20vw, 280px); }
.loupe { grid-column: 1; grid-row: 2; align-self: start; margin-top: 48px; max-width: 11em; font: 400 clamp(24px, 2.3vw, 33px)/1.55 var(--serif); letter-spacing: -.004em; color: var(--ink); text-wrap: balance; }
.loupe span { text-decoration-line: underline; text-underline-offset: .26em; text-decoration-skip-ink: none; }
.loupe .u-read { text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; }
.loupe .u-now { text-decoration-color: var(--ink); text-decoration-thickness: 3.5px; }

/* art tiles: the plate fills the tile; a thin ink strip carries one label and the plate caption */
.tile--art { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; }
.tile__artbox { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tile__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__over { flex: none; min-height: 68px; padding: 14px 16px 14px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.tile__over .plate { color: rgba(230,225,214,.8); }
.tile--art .tile__label { color: rgba(230,225,214,.78); max-width: 24em; }

.tile--quote { grid-column: span 5; }
.tile--quote .tile__art { object-position: 50% 12%; }
.tile--quote .tile__over .plate { flex: none; text-align: right; }
.quote { position: absolute; left: 24px; right: 24px; bottom: 24px; background: var(--page-2); color: var(--ink); border-radius: 10px; padding: 24px 28px 22px; box-shadow: 0 22px 44px -22px rgba(0,0,0,.75), 0 2px 6px -2px rgba(0,0,0,.3); }
.quote__mark { display: block; font: 400 92px/0.6 var(--serif); height: 34px; margin: 8px 0 0 -4px; color: var(--mid); }
.quote blockquote p { font: 400 clamp(22px, 1.9vw, 27px)/1.26 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.quote figcaption { margin-top: 16px; font-size: 12px; color: var(--mid); letter-spacing: .01em; }
.quote figcaption span { margin: 0 4px; }

.tile--classics { grid-column: span 12; display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; align-items: center; padding: 40px 0 40px 40px; gap: 24px; }
.classics__num { font: 400 clamp(64px, 7.4vw, 108px)/.9 var(--serif); letter-spacing: -.02em; }
.classics__text { margin-top: 14px; font: 400 clamp(19px, 1.6vw, 23px)/1.3 var(--serif); max-width: 15em; }
.classics__text .muted { display: block; margin-top: 8px; font: 14px/1.5 var(--sans); }
.strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 100%); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 100%); }
.strip__row { display: flex; gap: 14px; width: max-content; padding: 10px 0 18px; }
.strip__row li { flex: none; }
.strip__row img { width: 132px; height: 198px; border-radius: 4px; box-shadow: 0 1px 0 rgba(23,21,15,.06), 0 14px 22px -14px rgba(23,21,15,.45); object-fit: cover; background: var(--paper); }
.strip.is-moving .strip__row { animation: drift var(--dur, 90s) linear infinite; }
.strip.is-paused .strip__row, .strip:hover .strip__row, .strip:focus-within .strip__row { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }

.tile--stats { grid-column: span 5; padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.tile--stats .tile__label { font: 400 clamp(22px, 1.9vw, 27px)/1.2 var(--serif); color: var(--ink); max-width: 13em; text-wrap: balance; }
.stats__shot { width: 100%; max-width: 460px; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(23,21,15,.09); background: var(--page-2); }

.tile--plate { grid-column: span 7; min-height: 560px; }
.tile--plate .tile__art { object-position: 50% 78%; }
.pill { flex: none; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; text-decoration: none; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px; transition: background .2s; }
.pill:hover { background: var(--page-2); }
.pill span { transition: transform .3s var(--ease); }
.pill:hover span { transform: translateY(2px); }
.pill:focus-visible { outline-color: var(--paper); }

.marginalia { margin-top: 56px; max-width: 46em; font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--serif); color: var(--deep); text-wrap: pretty; }
.marginalia .sc { color: var(--mid); margin-right: 10px; position: relative; top: -2px; }

/* ─────────────────────────────── sounds (signature) ─────────────────────────────── */
.sounds { background: var(--ink); color: var(--paper); padding: var(--section) 0; }
.sounds__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.sounds__intro { grid-column: 1 / span 5; position: sticky; top: 64px; }
.sounds h2 { font-size: clamp(44px, 5.4vw, 78px); line-height: .98; letter-spacing: -.018em; }
.sounds__lede { margin-top: 24px; max-width: 26em; color: rgba(230,225,214,.74); }
.sounds__list { margin-top: 44px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(22px, 3vw, 44px); row-gap: 6px; }
.sounds__list button {
  appearance: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 0 8px; margin: 0;
  font: 400 clamp(22px, 2.05vw, 30px)/1.15 var(--serif); letter-spacing: -.005em;
  opacity: .46; transition: opacity .25s; position: relative; text-align: left;
}
.sounds__list button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.sounds__list button:hover { opacity: .85; }
.sounds__list button[aria-pressed="true"] { opacity: 1; font-style: italic; }
.sounds__list button[aria-pressed="true"]::after { transform: scaleX(1); }
.sounds__state { margin-top: 28px; font-size: 13px; color: rgba(230,225,214,.6); display: flex; align-items: center; gap: 10px; min-height: 20px; }
.sounds__dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(230,225,214,.5); flex: none; transition: background .3s, border-color .3s; }
.sounds.is-playing .sounds__dot { background: var(--paper); border-color: var(--paper); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

.sounds__stage { grid-column: 6 / span 7; position: relative; padding-bottom: 200px; }
.window { position: relative; margin-left: 8%; }
.window__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 18px; background: var(--deep); }
.window__media::after { content: ""; position: absolute; inset: 0; background: var(--paper); mix-blend-mode: multiply; opacity: .5; pointer-events: none; }
.window__poster, .window__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.86); }
.window__video { opacity: 0; transition: opacity 1s var(--ease); }
.window.is-live .window__video { opacity: 1; }
.window__poster { transition: opacity .6s var(--ease); }
.window__cap { position: absolute; left: 20px; top: 16px; font: italic 400 16px/1.3 var(--serif); color: var(--paper); text-shadow: 0 1px 10px rgba(23,21,15,.7); }

.page {
  position: absolute; left: 0; bottom: 0; width: min(500px, 70%);
  background: var(--page); color: var(--ink); border-radius: 14px;
  padding: 26px 30px 22px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.2);
}
.page__head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.page__text { margin-top: 18px; font: 400 18.5px/1.72 var(--serif); hanging-punctuation: first; }
.page__text .seg > span { text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-skip-ink: none; transition: text-decoration-color .25s; }
.page__text .seg.past > span { text-decoration-color: var(--mid); text-decoration-thickness: 1px; }
.page__text .seg.read > span { text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; }
.page__text .seg.now > .wc { text-decoration-color: var(--ink); text-decoration-thickness: 3px; }
.page__text .seg > .sp.end { text-decoration-color: transparent !important; }

.page__bar { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 14px; }
.play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease); }
.play:active { transform: scale(.96); }
.play:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-pause { display: inline; }
.play[aria-pressed="true"] .i-play { display: none; }
.page__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.page__who { font-size: 13px; color: var(--deep); }
.page__track { position: relative; height: 2px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.page__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.page__time { font-size: 12px; color: var(--mid); font-variant-numeric: tabular-nums; }

/* ─────────────────────────────── mac ─────────────────────────────── */
.mac { padding-top: var(--section); --win: min(860px, 62vw); }
.mac__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; padding-bottom: clamp(48px, 6vw, 80px); }
.mac h2 { grid-column: 1 / span 6; font-size: clamp(44px, 5.4vw, 78px); line-height: .98; letter-spacing: -.018em; }
.mac__copy { grid-column: 8 / span 5; display: grid; gap: 14px; color: var(--deep); text-wrap: pretty; }
.mac__copy b { color: var(--ink); }

/* the plate runs full-bleed; the Mac window sits on it at the left and overhangs onto the paper below */
.mac__band { position: relative; isolation: isolate; overflow-x: clip; height: clamp(420px, 56vw, 860px); background: var(--ink); }
.mac__art { position: absolute; left: 0; top: -10px; width: 100%; height: calc(100% + 20px); object-fit: cover; object-position: 50% 80%; transform: translate3d(0, var(--dy, 0px), 0); will-change: transform; z-index: -1; }
.mac__plate { position: absolute; top: clamp(22px, 2.6vw, 36px); left: 0; right: 0; text-align: right; }
.mac__plate .plate__no, .mac__plate i { position: relative; }
.mac__devices { position: absolute; left: 0; right: 0; bottom: 0; height: 0; margin: 0 auto; }
.mac__window { position: absolute; left: var(--gutter); bottom: calc(var(--win) * -.17); width: var(--win); height: auto; filter: drop-shadow(0 40px 46px rgba(10,9,6,.42)) drop-shadow(0 8px 14px rgba(10,9,6,.22)); }
.mac__phone { position: absolute; right: var(--gutter); bottom: calc(var(--win) * -.17 + 40px); }
.mac__phone .phone { --pw: clamp(140px, 14vw, 204px); }
.mac__note { margin-top: calc(var(--win) * .17 + clamp(56px, 6vw, 88px)); padding-bottom: 8px; max-width: calc(44em + 2 * var(--gutter)); font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--serif); color: var(--deep); margin-left: auto; margin-right: auto; text-align: center; text-wrap: pretty; }
.mac__note .sc { display: block; margin-bottom: 12px; color: var(--mid); }

/* ─────────────────────────────── pricing ─────────────────────────────── */
.pricing { padding: var(--section) 0; }
.pricing h2 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1; letter-spacing: -.016em; }
.plans { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.plan { padding: 30px 40px 0 0; }
.plan + .plan { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--rule); }
.plan__name { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.plan__price { margin-top: 22px; display: flex; align-items: baseline; gap: 10px; }
.plan__price .num { font: 400 clamp(56px, 5.6vw, 80px)/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.plan__price .per { font: italic 400 20px/1 var(--serif); color: var(--deep); }
.plan ul { margin-top: 28px; }
.plan li { padding: 13px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.plan li:last-child { border-bottom: 1px solid var(--rule); }
.close { margin-top: clamp(64px, 8vw, 104px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.close__line { font: italic 400 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); }

/* ─────────────────────────────── footer ─────────────────────────────── */
.foot { position: relative; isolation: isolate; color: var(--paper); background: var(--ink); min-height: clamp(440px, 36vw, 560px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.foot__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -1; }
.foot__in { padding-top: 56px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot__brand img { width: 132px; height: auto; }
.foot__brand p { margin-top: 16px; font-size: 13px; line-height: 1.5; color: rgba(230,225,214,.86); }
.foot__cols { display: flex; gap: clamp(32px, 5vw, 72px); }
.foot__h { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(230,225,214,.82); margin-bottom: 14px; }
.foot__cols li + li { margin-top: 8px; }
.foot__cols a { font-size: 14px; text-decoration: none; opacity: .92; }
.foot__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__base { padding-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: 12px; color: rgba(230,225,214,.86); text-shadow: 0 1px 8px rgba(23,21,15,.8); }
.foot__credit { max-width: 46em; text-align: right; }
.foot__credit i { font: italic 400 13.5px/1 var(--serif); }
.foot__credit .plate__no { font-size: 9.5px; }

/* ─────────────────────────────── responsive ─────────────────────────────── */
@media (max-width: 1100px) {
  .tile--reader { grid-column: span 12; min-height: 0; padding: 40px 72px 0 40px; }
  .tile__phone { margin-bottom: -120px; }
  .tile__phone .phone { --pw: 250px; }
  .tile--reader .tile__copy { max-width: 30em; }
  .tile--quote { grid-column: span 6; order: 2; min-height: 600px; }
  .tile--stats { grid-column: span 6; order: 3; }
  .tile--classics { order: 4; }
  .tile--plate { grid-column: span 12; order: 5; min-height: 0; }
  .tile--plate .tile__artbox { flex: none; aspect-ratio: 1300 / 860; }
  .sounds__intro { grid-column: 1 / span 12; position: static; }
  .sounds__stage { grid-column: 1 / span 12; margin-top: 56px; padding-bottom: 150px; }
  .sounds__list { grid-template-columns: repeat(3, auto); column-gap: 44px; }
  .window { margin-left: auto; width: 78%; }
  .mac h2 { grid-column: 1 / span 12; }
  .mac__copy { grid-column: 1 / span 9; margin-top: 24px; }
  .mac { --win: 66vw; }
}

@media (max-width: 860px) {
  .bar__nav, .bar__cta { display: none; }
  .bar__menu { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 10px; }
  .bar__menu-l { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .45s var(--ease); }
  .bar.is-open .bar__menu-l:first-child { transform: translateY(3.25px) rotate(45deg); }
  .bar.is-open .bar__menu-l:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
  .bar.is-compact .bar__in { padding: 0 calc(var(--pad) - 4px) 0 var(--pad); }
  .bar.is-open { --bh: 54px; --bw: calc(100% - 2 * (var(--gutter) - var(--pad))); color: var(--ink); }
  .bar.is-open .bar__in { grid-template-rows: var(--bh) 1fr; padding: 0 calc(var(--pad) - 4px) 0 var(--pad); border-radius: 16px; transform: translateY(15px);
    background: rgba(246, 243, 236, .985); box-shadow: 0 0 0 1px rgba(23, 21, 15, .08), 0 30px 60px -30px rgba(10, 9, 6, .6); }
  .bar.is-open .bar__word { clip-path: inset(0 0 0 0); opacity: 1; max-width: 80px; }
  .bar.is-open .bar__sheet-in { opacity: 1; transform: none; transition-delay: .12s; }
  .bar.is-open .bar__links { text-shadow: none; }
}
@media (max-width: 760px) {
  .hero { min-height: 640px; max-height: 900px; }
  .hero__copy { padding-top: 104px; }
  .hero__lede { font-size: 15.5px; max-width: 24em; }
  .hero .badges { margin-top: 22px; gap: 10px; }
  .badge img { height: 40px; }
  .hero__stage { --gutter: 12px; }
  .hero__art img { object-position: 50% 40%; }

  .intro__grid { display: block; }
  .sidenote { margin-top: 36px; justify-self: auto; max-width: 260px; }

  .bento__grid { gap: 12px; }
  .tile--reader { grid-template-columns: 1fr; grid-template-rows: auto; padding: 28px 24px 0; }
  .loupe { grid-column: 1; grid-row: 2; margin: 28px 0 0; font-size: 22px; max-width: 12em; }
  .tile__phone { grid-column: 1; grid-row: 3; justify-self: center; margin-top: 36px; margin-bottom: -150px; }
  .tile__phone .phone { --pw: 64vw; }
  .tile--quote, .tile--stats { grid-column: span 12; }
  .tile--quote { min-height: 0; }
  .tile--quote .tile__artbox { flex: none; aspect-ratio: 880 / 1034; }
  .quote { left: 16px; right: 16px; bottom: 16px; padding: 20px 20px 18px; }
  .tile--classics { grid-template-columns: 1fr; padding: 28px 0 24px 24px; }
  .strip__row img { width: 104px; height: 156px; }
  .tile--stats { padding: 28px 24px 24px; gap: 24px; }
  .tile--plate .tile__artbox { aspect-ratio: 1 / 1; }
  .tile__over { flex-direction: column; align-items: flex-start; padding: 18px 20px 20px; gap: 14px; }
  .tile--quote .tile__over .plate { text-align: left; }

  .sounds__list { grid-template-columns: repeat(3, 1fr); column-gap: 14px; }
  .sounds__list button { font-size: 22px; }
  .sounds__stage { padding-bottom: 0; margin-top: 44px; }
  .window { margin-left: 0; width: auto; }
  .page { position: relative; width: auto; margin: -36px 12px 0; padding: 22px 20px 18px; }
  .page__text { font-size: 17px; line-height: 1.68; }

  .mac { --win: calc(100vw - 2 * var(--gutter)); }
  .mac__copy { grid-column: 1 / span 12; }
  .mac__band { height: 128vw; }
  .mac__art { object-position: 72% 70%; }
  .mac__plate { text-align: left; font-size: 15px; }
  .mac__phone { right: var(--gutter); bottom: calc(var(--win) * .625 - var(--win) * .17 + 20px); }
  .mac__phone .phone { --pw: 30vw; }
  .mac__note { text-align: left; }

  .plans { grid-template-columns: 1fr; }
  .plan { padding: 26px 0 8px; }
  .plan + .plan { padding-left: 0; border-left: 0; margin-top: 32px; border-top: 1px solid var(--ink); }
  .close { flex-direction: column; align-items: flex-start; }

  .foot { min-height: 600px; }
  .foot__art { object-position: 30% 0; }
  .foot__in { padding-top: 44px; flex-direction: column; gap: 32px; }
  .foot__cols { flex-wrap: wrap; gap: 28px 40px; }
  .foot__base { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot__credit { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero__mark { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hand path { stroke-dashoffset: 0; transition: none; }
  .strip .strip__row { animation: none !important; }
  .hero__art, .mac__art { --dy: 0px !important; }
  .sounds.is-playing .sounds__dot { animation: none; }
  .sounds__list button::after { transition: none; }
  .bar__in, .bar__word, .bar__cta, .bar__ink, .bar__sheet-in, .bar__menu-l { transition: none !important; }
}
