/* ==========================================================================
   VERTEXIX — the home page (2026-11-19)
   The site's soft-UI look (light grey surfaces, paired shadows, one purple accent) made sharper: tight display type,
   monospace labels, and each chapter of the app as a horizontal rail of slides. The manual keeps style.css.
   ========================================================================== */

:root {
  --bg: #dfe3ea;
  --bg-deep: #d6dbe3;
  --surface: #e3e7ee;
  --ink: #161a22;
  --ink-2: #4b5263;
  --ink-3: #7c8394;
  --line: rgba(22, 26, 34, 0.1);
  --shade: #b4bbc7;
  --light: #fbfcfe;
  --screen: #1c1f26;
  --accent: #7c3aed;
  --accent-ink: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --on-accent: #fff;
  /* the rails' arrow buttons: a lighter face than the page, and an arrow cut into it (groove colour, its shadow wall
     and its lit wall) */
  --btn-face: #f4f6f9; --btn-groove: #a9b0be; --btn-hi: rgba(255, 255, 255, 1); --btn-lo: rgba(40, 48, 66, 0.4);

  --raised: 7px 7px 18px var(--shade), -7px -7px 18px var(--light);
  --raised-sm: 4px 4px 10px var(--shade), -4px -4px 10px var(--light);
  --inset: inset 3px 3px 8px var(--shade), inset -3px -3px 8px var(--light);

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --slide: min(980px, 68vw);
  --gap: clamp(18px, 2.4vw, 34px);
  --foot: 52px;

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* The dark version: a neutral grey (no blue in it) with the same raised, rounded soft-UI edges as the light one -- the
   highlight a lighter grey, the shadow a darker one, both strong enough to read on a dark surface. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2f3031;
    --bg-deep: #2b2c2d;
    --surface: #323334;
    --ink: #ededee;
    --ink-2: #bdbec0;
    --ink-3: #8e8f92;
    --line: rgba(255, 255, 255, 0.08);
    --shade: #1f2021;
    --light: #404143;
    --screen: #1b1c1d;
    --accent: #9d6bff;
    --accent-ink: #b590ff;
    --accent-soft: rgba(157, 107, 255, 0.16);
    --btn-face: #4b4c4e; --btn-groove: #2a2b2c; --btn-hi: rgba(255, 255, 255, 0.2); --btn-lo: rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #2f3031; --bg-deep: #2b2c2d; --surface: #323334; --ink: #ededee; --ink-2: #bdbec0; --ink-3: #8e8f92;
  --line: rgba(255, 255, 255, 0.08); --shade: #1f2021; --light: #404143; --screen: #1b1c1d;
  --accent: #9d6bff; --accent-ink: #b590ff; --accent-soft: rgba(157, 107, 255, 0.16); color-scheme: dark;
  --btn-face: #4b4c4e; --btn-groove: #2a2b2c; --btn-hi: rgba(255, 255, 255, 0.2); --btn-lo: rgba(0, 0, 0, 0.65);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: var(--foot);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font: 500 0.74rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- pills and round buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 0.9rem/1 var(--body); background: var(--surface); box-shadow: var(--raised-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { box-shadow: var(--inset); transform: none; }
.pill--accent { background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.pill--accent:hover { background: var(--accent-ink); }
.pill--lg { padding: 15px 26px; font-size: 1rem; }

.roundbtn {
  width: 69px; height: 69px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--raised-sm); transition: box-shadow 0.15s, opacity 0.2s, color 0.15s;
}
.roundbtn svg { width: 32px; height: 32px; }
.roundbtn:hover { color: var(--accent); }
.roundbtn:active { box-shadow: var(--inset); }
.roundbtn:disabled { opacity: 0.35; cursor: default; color: inherit; box-shadow: var(--raised-sm); }

/* ---------------------------------------------------------------- the top bar */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.08rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.top__chapters { display: flex; gap: 2px; margin-inline: auto; padding: 4px; border-radius: 999px; box-shadow: var(--inset); }
.top__chapters a {
  padding: 7px 13px; border-radius: 999px; font: 500 0.84rem/1 var(--body); color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.top__chapters a:hover { color: var(--ink); }
.top__chapters a.is-on { color: var(--ink); background: var(--surface); box-shadow: var(--raised-sm); }
.top__links { display: flex; align-items: center; gap: 18px; font: 500 0.88rem/1 var(--body); color: var(--ink-2); }
.top__links > a:not(.pill):hover { color: var(--ink); }
.top__links .pill { color: var(--on-accent); padding: 9px 16px; }
.top__menu { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 0; margin-left: auto; }
.top__menu span { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px;
  transition: transform 0.2s; }
.top__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.top__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { border-top: 1px solid var(--line); padding: 14px 0 20px; }
.menu nav { display: flex; flex-wrap: wrap; gap: 8px; }
.menu nav + nav { margin-top: 12px; }
.menu a { padding: 9px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--raised-sm); font-weight: 500; font-size: 0.92rem; }

@media (max-width: 1080px) { .top__chapters { display: none; } .top__links { margin-left: auto; } }
@media (max-width: 720px) { .top__links { display: none; } .top__menu { display: block; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); isolation: isolate; }
/* The wireframe flag: fixed behind the whole page (a child of <main>, not of the hero, whose own stacking context would
   paint it over the chapters' cards), so the page scrolls over it. home.js makes it ripple in the wind. */
.hero__wire { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; color: var(--ink); opacity: 0.07;
  mask-image: linear-gradient(100deg, transparent 18%, #000 60%); -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 60%); }
/* The name, defined the way a dictionary would: headword with its syllables, pronunciation, part of speech, then the
   sense and where the word came from. Typographic, not a card -- a hairline under it hands over to the hero. */
.define { padding-bottom: clamp(22px, 3vw, 34px); margin-bottom: clamp(30px, 4.6vw, 60px); border-bottom: 1px solid var(--line); }
.define__head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 6px; }
.define__word { font: 700 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--display); font-style: normal; letter-spacing: -0.025em; color: var(--ink); }
.define__word span { color: var(--ink-3); font-weight: 400; padding: 0 0.04em; }
.define__ipa { font: 400 clamp(0.95rem, 1.2vw, 1.08rem)/1.2 var(--mono); color: var(--ink-2); }
.define__say { font-size: 0.95rem; color: var(--ink-2); }
.define__say q { quotes: "\201C" "\201D"; color: var(--ink); font-weight: 600; }
.define__pos { font: italic 400 0.95rem/1 var(--body); color: var(--accent-ink); }
.define__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); margin-top: 16px; }
.define__body p { font-size: clamp(0.95rem, 1.1vw, 1.04rem); line-height: 1.6; color: var(--ink-2); }
.define__n, .define__label { display: inline-block; margin-right: 10px; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); vertical-align: 0.12em; }
.define__n { width: 1.7em; height: 1.7em; line-height: 1.7em; text-align: center; border-radius: 50%; box-shadow: var(--raised-sm); color: var(--ink); }
.define__origin i, .define__sense i { color: var(--ink); }
@media (max-width: 720px) { .define__body { grid-template-columns: 1fr; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { margin-top: 18px; font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.028em; }
.hero__lead { margin-top: 22px; max-width: 34rem; font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats { display: flex; gap: clamp(20px, 3vw, 40px); margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__stats dt { font: 500 0.7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.hero__stats dd { font: 700 1.6rem/1.2 var(--display); letter-spacing: -0.03em; margin-top: 4px; }
.hero__shot { padding: 10px; border-radius: 26px; background: var(--surface); box-shadow: var(--raised); }
.hero__shot img { border-radius: 18px; width: 100%; height: auto; background: var(--screen); }
.hero__shot figcaption { padding: 12px 8px 4px; }

/* ---------------------------------------------------------------- chapters and their rails */
.chapter { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
/* (a see-through shade, not an opaque one: the wireframe flag fixed behind the page shows through every chapter) */
.chapter:nth-of-type(odd) { background: linear-gradient(color-mix(in srgb, var(--bg-deep) 60%, transparent), transparent 70%); }
.chapter__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(14px, 3vw, 36px); align-items: end; }
/* The chapter number: a solid fill fading downwards. (Not an outline: -webkit-text-stroke traces every contour, and the
   font builds glyphs like the 4 from overlapping pieces, so an outline drew their overlaps inside the figure.) */
.chapter__num { font: 800 clamp(3rem, 7vw, 6rem)/0.86 var(--display); letter-spacing: -0.05em; padding-bottom: 0.04em;
  color: transparent; background: linear-gradient(180deg, var(--ink-3) 10%, color-mix(in srgb, var(--ink-3) 12%, transparent) 95%);
  -webkit-background-clip: text; background-clip: text; }
/* ...and it rises, sharpens and fades in with the scroll itself, where the browser can tie an animation to scrolling
   (elsewhere it arrives with its heading's reveal) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .chapter__num { animation: num-in linear both; animation-timeline: view(); animation-range: cover 14% cover 42%; }
    @keyframes num-in {
      from { opacity: 0; transform: translateY(70%) scale(0.82); filter: blur(8px); }
      to { opacity: 1; transform: none; filter: none; }
    }
  }
}
.chapter__title h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.05; font-weight: 750; }
.chapter__title p { margin-top: 10px; max-width: 40rem; color: var(--ink-2); }
.chapter__count { font: 500 0.8rem/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chapter__count span { color: var(--ink); }

/* One slide at a time, centred; its neighbours wait at the sides, faded and drained of colour, and the arrows sit in the
   gaps between them. Clicking a neighbour brings it to the centre. */
.stage { position: relative; margin-top: clamp(26px, 3.4vw, 44px); }
.rail {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 26px 0 34px; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .card { pointer-events: none; }
.rail:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 30px; }
/* (the track's padding is a percentage of the rail, so the first and last slides can reach the middle) */
.rail__track { position: relative; display: flex; gap: var(--gap); width: max-content; padding-inline: calc((100% - var(--slide)) / 2); }
/* (the neighbours' shrink, grey and fade are set by home.js from the scroll position, frame by frame -- no transition
   here, which would only trail behind the scroll) */
.slide { flex: 0 0 var(--slide); scroll-snap-align: center; display: flex; }
.js .slide > .card { will-change: transform; }
.js .slide:not(.is-active), .js .slide:not(.is-active) .card__zoom { cursor: pointer; }
/* The neighbours fade out sideways: a mask across the rail, solid over the centred slide (and a little past its edges,
   for its raised shadow), already down to 40 % where a neighbour begins and gone well before the window's edge (--side
   is the room either side of the centred slide; the fade is over by 55 % of it). */
.js .rail {
  --side: calc(50% - var(--slide) / 2);
  --fade: linear-gradient(90deg, transparent 0%, transparent calc(var(--side) * 0.45),
    rgba(0, 0, 0, 0.4) calc(var(--side) - var(--gap)),
    #000 calc(var(--side) - 4px), #000 calc(100% - var(--side) + 4px),
    rgba(0, 0, 0, 0.4) calc(100% - var(--side) + var(--gap)),
    transparent calc(100% - var(--side) * 0.45), transparent 100%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
}

.stage { --btn: 69px; }
.stage__btn { position: absolute; z-index: 2; top: calc(50% - var(--btn) / 2);
  left: calc(50% - var(--slide) / 2 - var(--gap) / 2 - var(--btn) / 2); }
.stage__btn--next { left: auto; right: calc(50% - var(--slide) / 2 - var(--gap) / 2 - var(--btn) / 2); }
.stage__btn:disabled { opacity: 0; pointer-events: none; }
/* A lighter face so the buttons stand out from the page, and the arrow engraved into it: the groove a darker grey, a
   shadow along its upper-left wall and light along its lower-right one, as if lit from the top left. On hover the
   arrow lights up in the accent colour and glows, and so does a faint ring round the button. */
.stage__btn { background: var(--btn-face); color: var(--btn-groove);
  transition: box-shadow 0.25s var(--ease), opacity 0.2s, color 0.25s var(--ease); }
.stage__btn path { stroke-width: 2.6; }
.stage__btn svg { filter: drop-shadow(-1px -1px 0 var(--btn-lo)) drop-shadow(1px 1px 0 var(--btn-hi));
  transition: filter 0.25s var(--ease); }
.stage__btn:hover, .stage__btn:focus-visible { color: var(--accent);
  box-shadow: var(--raised-sm), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.stage__btn:hover svg, .stage__btn:focus-visible svg {
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 90%, transparent)) drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); }
.stage__btn:active { box-shadow: var(--inset), 0 0 18px color-mix(in srgb, var(--accent) 25%, transparent); }
.stage__foot { width: var(--slide); margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.stage__foot .rail__progress { flex: 1; }

.card {
  display: flex; flex-direction: column; width: 100%; padding: 12px; border-radius: 28px;
  background: var(--surface); box-shadow: var(--raised);
  /* (no transition on transform: home.js moves the card with the scroll, and a transition made it trail behind) */
}
.card__media { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--screen);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card__media--contain img { object-fit: contain; }
/* a clip in place of a picture: fitted whole like a wide picture; home.js plays it while its slide is centred */
.card__media--video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.card__zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.card__zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.card:hover .card__media img { transform: scale(1.025); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 12px 10px; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__idx { font: 500 0.74rem/1 var(--mono); color: var(--ink-3); }
.card__tag { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); padding: 6px 9px; border-radius: 999px; }
.card h3 { margin-top: 10px; font-size: 1.32rem; line-height: 1.2; font-weight: 700; }
.card__body > p:not(.card__meta) { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; }
.card__link { margin-top: auto; padding-top: 14px; align-self: flex-start; font-weight: 600; font-size: 0.88rem;
  color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s; }
.card__link:hover { color: var(--accent); background-size: 100% 2px; }
/* wide enough: the picture on the left, the words beside it */
@media (min-width: 900px) {
  .card { flex-direction: row; align-items: stretch; }
  .card__media { flex: 0 0 64%; }
  .card__body { padding: 26px 22px 18px 30px; }
  .card h3 { font-size: 1.6rem; margin-top: 14px; }
  .card__body > p:not(.card__meta) { font-size: 1rem; margin-top: 12px; }
}

/* drawings and lists in place of a screenshot */
.card__media--art { display: grid; place-items: center; background: var(--bg-deep); box-shadow: var(--inset); color: var(--ink-2);
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; }
.art { width: 78%; height: auto; }
.art .a { stroke: var(--accent); stroke-width: 2; }
.art .fillA { fill: var(--accent); }
.chipset { width: 84%; }
.chips__head { font: 500 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 0 0 10px; }
.chips + .chips__head { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--raised-sm);
  font: 500 0.8rem/1 var(--mono); color: var(--ink); }

.rail__progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rail__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left;
  transform: scaleX(var(--p, 0.05)); transition: transform 0.12s linear; }

/* Things rise into place as they come into view (home.js marks them .is-in; --d staggers a group). Only with the
   script running, and never for a reader who has asked for less motion: then everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(36px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
  .js [data-reveal="wide"] { transform: translateY(48px) scale(0.97); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- who, compare, cta, footer */
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; font-weight: 750; }
.who { padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 32px; }
.who article { padding: 26px; border-radius: 22px; background: var(--surface); box-shadow: var(--raised); }
.who article p:last-child { margin-top: 12px; color: var(--ink-2); font-size: 0.96rem; }
.who .mono { color: var(--accent-ink); }

.compare { padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line); background: linear-gradient(color-mix(in srgb, var(--bg-deep) 60%, transparent), transparent 60%); }
.compare__head { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: end; justify-content: space-between; }
.compare__head p { max-width: 30rem; color: var(--ink-2); }
.compare__box { position: relative; margin-top: 32px; border-radius: 24px; background: var(--surface); box-shadow: var(--raised); padding: 8px; }
.compare__table-wrap { overflow-x: auto; border-radius: 18px; }
.compare__box[data-collapsed] .compare__table-wrap { max-height: 640px; overflow-y: hidden; }
.compare__box[data-collapsed]::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 180px; border-radius: 0 0 18px 18px; pointer-events: none;
  background: linear-gradient(transparent, var(--surface) 75%);
}
.compare__more { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2; }
.compare__more:hover { transform: translateX(-50%) translateY(-1px); }
.compare__box:not([data-collapsed]) .compare__more { position: static; transform: none; margin: 16px auto 8px; display: flex; }
.compare__table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9rem; }
.compare__table th, .compare__table td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.compare__table td:first-child, .compare__table th:first-child { text-align: left; }
.compare__table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); font: 600 0.82rem/1.3 var(--display);
  letter-spacing: 0; padding-block: 16px; vertical-align: bottom; }
.compare__table tbody td:first-child { color: var(--ink-2); }
.compare__section-row th { padding-top: 26px; text-align: left !important; font: 500 0.72rem/1 var(--mono); text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent-ink); }
.compare__pro-col { background: var(--accent-soft); }
.compare__badge { display: block; margin-top: 6px; font: 500 0.64rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); }
.icon-yes { color: var(--accent); font-weight: 700; }
.icon-no { color: var(--ink-3); opacity: 0.6; }
.compare__price { font: 700 1.15rem/1 var(--display); color: var(--ink); }
.compare__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.compare__note { text-align: center; margin-top: 16px; color: var(--ink-2); font-size: 0.9rem; }

.cta { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.cta__inner { text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.cta p { max-width: 36rem; margin: 18px auto 30px; color: var(--ink-2); }

/* the footer stays on screen: a slim bar along the bottom, frosted like the top one */
.foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--foot);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
}
.foot__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.foot .brand { font-size: 0.95rem; }
.foot .brand img { border-radius: 6px; }
.foot nav { display: flex; gap: 22px; font-size: 0.86rem; color: var(--ink-2); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.foot nav::-webkit-scrollbar { display: none; }
.foot nav a:hover { color: var(--ink); }
.foot__copy { margin-left: auto; white-space: nowrap; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1600px, 94vw); max-height: 92vh; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(10, 12, 16, 0.78); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(1600px, 94vw); max-height: 82vh; width: auto; height: auto; border-radius: 14px; margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox__cap { margin: 14px auto 0; max-width: 60rem; text-align: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.lightbox form { position: absolute; top: -14px; right: -14px; z-index: 1; }
.lightbox__close { width: 52px; height: 52px; font-size: 1.8rem; line-height: 1; color: var(--ink); }
.lightbox[open] { animation: pop 0.25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  :root { --slide: min(640px, 80vw); }
  /* the card is stacked here: the arrows sit level with the middle of its picture, not of its words
     (the rail's top padding + the card's + half a 16:10 picture) */
  .stage__btn { top: calc(26px + 12px + (var(--slide) - 24px) * 0.3125 - var(--btn) / 2); }
}
@media (max-width: 720px) {
  :root { --slide: 80vw; --gap: 14px; }
  .chapter__head { grid-template-columns: 1fr; gap: 8px; }
  .chapter__num { font-size: 2.6rem; }
  /* (69 px would cover a phone's picture: smaller there) */
  .stage { --btn: 50px; }
  .stage__btn { width: var(--btn); height: var(--btn); }
  .stage__btn svg { width: 24px; height: 24px; }
  .foot__copy, .foot .brand span { display: none; }
  .foot__inner { gap: 16px; }
  .foot nav { gap: 16px; font-size: 0.82rem; }
  .card h3 { font-size: 1.16rem; }
  .card__body { padding: 14px 8px 8px; }
  .hero__stats dd { font-size: 1.3rem; }
  .lightbox form { right: 0; }
}
