/* =============================================================================
   SKELA presentation page, variant A9 "Lamplight, reader first": A8 with the first screen and
   Chapter 1 leading with reading (Text on iPhone). A8 was:
   SKELA presentation page, variant A8 "Lamplight + Margin Notes": Lamplight (A1), night at the
   reading desk, with the way A2 "Margins" explains the features:
   - the five steps as five chapters (no pinned window): each says what the step is, names the
     tools that do it, and shows a numbered plate;
   - the reader's marks in the text, drawn in as they come into view, each with a note in the
     margin naming what its color means (the app's own legend), so the page explains marking by
     doing it;
   - three figures from the book that comes with SKELA (the forgetting curve, the days a card
     comes back, a weekly routine), drawn in gold, and the two books as further reading.
   Everything else is A1's: see a1_lamplight/style.css for the lamps, the light and the layout.
   ============================================================================= */

@font-face { font-family: "Mulish"; src: url("fonts/mulish.ttf") format("truetype"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("fonts/mulish_italic.ttf") format("truetype"); font-weight: 200 1000; font-style: italic; font-display: swap; }

:root {
  --bg-0: #0e0e0c;          /* deepest: the room's corners */
  --bg: #121210;            /* the page */
  --bg-2: #1b1c1a;          /* raised: cards */
  --bg-3: #232421;
  --char: #30312f;          /* the icon's charcoal */
  --ivory: #f5f1e7;         /* text */
  --text-2: #d3cdbf;        /* body text, quieter (11:1 on --bg) */
  --text-3: #e7e1d4;        /* leads */
  --muted: #a9a395;         /* captions (7.5:1 on --bg, 6:1 on --bg-3) */
  --gold: #febc2e;
  --gold-2: #ffd36e;
  --line: rgba(245, 241, 231, 0.09);
  --line-gold: rgba(254, 188, 46, 0.32);
  --lc: 255, 216, 158;      /* the lamp's light, as rgb */

  --brand-font: "Avenir Next", "Avenir", "Mulish", system-ui, sans-serif;
  --read-font: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;

  --pad: clamp(20px, 5.5vw, 88px);
  --wrap: 1320px;
  --header-h: 60px;          /* the header collapsed, once the page scrolls (as it always was) */
  --header-full: 80px;       /* the header open, at the top: SKELA's name and its expansion */
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
}
@media (min-width: 600px) { :root { --header-h: 68px; --header-full: 96px; } }
@media (min-width: 1100px) { :root { --header-full: 112px; } }

/* ---------------------------------------------------------------- base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg) url("grain.svg");
  color: var(--ivory);
  font: 400 17px/1.6 var(--read-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
h1, h2, h3 { margin: 0; font-family: var(--brand-font); font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; }
strong { font-weight: 600; color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(254, 188, 46, 0.32); color: var(--ivory); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--gold); color: #1d1d1f;
  font: 600 15px/1 var(--brand-font); text-decoration: none;
}
.skip:focus { top: 12px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Labels above headings: gold, in sentence case, large enough to be read at a glance, after a
   short gold rule (owner, 2026-11-27: the small spaced capitals were easy to miss). */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 clamp(16px, 1.25vw, 19px)/1.3 var(--brand-font);
  letter-spacing: 0.02em;
  color: var(--gold);
}
.label::before,
:is(.why, .section-head, .devices-intro, .cta-inner) .label::after { content: ""; flex: none; width: 26px; height: 2px; border-radius: 1px; background: currentColor; }

/* -------------------------------------------------------------- header --- */
/* The header lies over the page. At the top it is open: SKELA's name, a hairline and the name's
   expansion on two lines, as on the iPhone's start page (shared/masthead.css). Once the page
   scrolls it collapses to the name alone, at the height and size it had before (--header-h). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 6px;
  height: var(--header-full);
  padding: 0 var(--pad);
  --n-full: clamp(20px, 6.15vw, 24px);   /* the iPhone's 24 pt */
  --n-compact: 16.65px;                  /* the name's size before (20 px high) */
  --lockup-line: var(--muted);
  --lockup-rule: rgba(169, 163, 149, 0.4);
  transition: height var(--mh-time) var(--mh-curve), background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-compact { height: var(--header-h); }
.site-header.is-stuck {
  background: rgba(13, 13, 11, 0.94);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.brand {
  min-height: 44px; margin-right: auto;
  color: var(--ivory); border-radius: 6px;
}
@media (min-width: 600px) {
  .site-header { --n-full: clamp(28px, 18px + 1.6vw, 32px); --n-compact: 18.31px; }   /* 22 px high */
}
@media (min-width: 1100px) {
  .site-header { --n-full: clamp(32px, 2.5vw, 36px); }
}
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 13px; border-radius: 999px;
  font: 500 15px/1 var(--brand-font);
  color: var(--text-2); text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:hover { color: var(--ivory); background: rgba(245, 241, 231, 0.06); }
/* Get SKELA is a small gold pill, 32 px high, as Speech Me Up's Download (owner, 2026-11-27):
   the brand's gold, dark text; its tap area is 44 px (::after). */
.header-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 15px; margin-left: 12px; border-radius: 999px;
  background: linear-gradient(180deg, #ffd263, #fdb725); color: #1d1d1f;
  font: 600 15px/1 var(--brand-font); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 10px -7px rgba(180, 120, 0, 0.7);
  -webkit-tap-highlight-color: transparent;
}
.header-cta::after { content: ""; position: absolute; inset: -6px -4px; }
.header-cta:hover { filter: brightness(1.05); }
.header-cta:active { transform: translateY(1px); filter: brightness(0.97); }
.menu-btn {
  display: none;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--ivory);
  font-size: 16px; cursor: pointer;
}
.menu-icon, .menu-icon::before {
  display: block; width: 20px; height: 1.6px; margin: 0 auto;
  background: currentColor; border-radius: 2px;
  transition: transform 0.3s ease;
}
.menu-icon { transform: translateY(-3.5px); }
.menu-icon::before { content: ""; transform: translateY(7px); }
.menu-btn[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: rotate(-90deg); }

/* Below a laptop's width the open header needs the row for the name, so the five links live in
   the menu. */
@media (max-width: 1099px) {
  html.js .nav { display: none; }
  html.js .menu-btn { display: inline-block; }
  html.js .nav.is-open {
    display: block;
    position: absolute; top: calc(100% + 4px); right: 12px;
    width: min(360px, calc(100% - 24px));
    padding: 8px; border-radius: 20px;
    background: #1b1b19; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -16px rgba(0, 0, 0, 0.9);
  }
  html.js .nav.is-open ul { flex-direction: column; }
  html.js .nav.is-open a { display: flex; min-height: 50px; padding: 0 16px; font-size: 17px; color: var(--ivory); }
}
/* On a phone the open header holds the name, its expansion and the menu; Get SKELA comes with
   the collapsed one, once the page scrolls (there is no room for it beside the expansion), and is
   also the menu's last link. */
.nav-get { display: none; }
@media (max-width: 599px) {
  html.js .nav.is-open .nav-get { display: list-item; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
  html.js .nav.is-open .nav-get a { color: var(--gold); font-weight: 600; }
  .header-cta { margin-left: 8px; }
  .site-header:not(.is-compact) .header-cta { display: none; }
  .site-header.mh-swap-a .header-cta { animation: mh-in-a 0.26s ease-out 0.14s backwards; }
  .site-header.mh-swap-b .header-cta { animation: mh-in-b 0.26s ease-out 0.14s backwards; }
}

/* -------------------------------------------------------------- buttons -- */
.btn-quiet {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 44px; padding: 0 4px;
  font: 600 15.5px/1.2 var(--brand-font); color: var(--ivory); text-decoration: none;
}
.btn-quiet .arrow { color: var(--gold); transition: transform 0.3s var(--ease-out); }
.btn-quiet:hover .arrow { transform: translateY(3px); }
.text-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 44px; margin-top: 18px;
  font: 600 16px/1.2 var(--brand-font); color: var(--gold); text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link .arrow { transition: transform 0.3s var(--ease-out); }
.text-link:hover .arrow { transform: translateX(3px); }

/* ================================================================ LAMPS ==
   One drawing for every lamp: the knuckle at the rig's origin, the shade's
   opening 82 units below it (as in the app's start_lamp.js), all lengths × --s.
   --tilt turns the head (0 points straight down, positive turns it left).   */
.lamp {
  --s: 1;
  --tilt: 40deg;
  --half: 25deg;            /* the cone's half-angle */
  --reach: 1400px;          /* how far the light carries */
  --core: 0.4;              /* the light's strength along its axis … */
  --edge: 0.17;             /* … and near its edges */
  --halo: 0.065;            /* the wider, faint spill */
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.lamp-arm {
  position: absolute; left: var(--kx); right: -60px; top: var(--ky);
  height: calc(4.6px * var(--s)); margin-top: calc(-2.3px * var(--s));
  border-radius: 3px;
  background: linear-gradient(180deg, #7d796e 0%, #4c4a43 40%, #2a2925 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.55);
  transform: rotate(5deg); transform-origin: 0 50%;
}
.lamp-rig {
  position: absolute; left: var(--kx); top: var(--ky);
  width: 0; height: 0;
  transform: rotate(var(--tilt));
  will-change: transform;
}
.lamp-head {
  position: absolute;
  left: calc(-48px * var(--s)); top: calc(-26px * var(--s));
  width: calc(96px * var(--s)); height: calc(126px * var(--s));
  overflow: visible;
  transition: filter 0.9s ease;
}
.lamp-switch { fill: #5f5c54; transition: transform 0.1s ease; }
.lamp-switch.is-pushed { transform: translateY(3.5px); }
.lamp-shade { fill: url(#shade-metal); }
.lamp-rim { fill: none; stroke: rgba(255, 244, 214, 0.5); stroke-width: 1.1; }
.lamp-mouth { fill: #4d3a12; }
.lamp-mouth-lit { fill: url(#shade-mouth); }
.lamp-joint { fill: #5f5c54; stroke: #262521; stroke-width: 1.2; }

.lamp-light { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.beam {
  --apex: calc(-82px * var(--s));
  position: absolute; top: calc(82px * var(--s));
}
.beam-core {
  left: calc(var(--reach) * -0.9); width: calc(var(--reach) * 1.8); height: var(--reach);
  background: conic-gradient(at 50% var(--apex),
    rgba(var(--lc), 0) calc(180deg - var(--half) - 7deg),
    rgba(var(--lc), var(--edge)) calc(180deg - var(--half) + 5deg),
    rgba(var(--lc), var(--core)) 180deg,
    rgba(var(--lc), var(--edge)) calc(180deg + var(--half) - 5deg),
    rgba(var(--lc), 0) calc(180deg + var(--half) + 7deg));
  -webkit-mask-image: radial-gradient(circle var(--reach) at 50% var(--apex),
    #000 0, rgba(0, 0, 0, 0.9) 12%, rgba(0, 0, 0, 0.64) 30%, rgba(0, 0, 0, 0.36) 52%, rgba(0, 0, 0, 0.14) 74%, transparent 100%);
  mask-image: radial-gradient(circle var(--reach) at 50% var(--apex),
    #000 0, rgba(0, 0, 0, 0.9) 12%, rgba(0, 0, 0, 0.64) 30%, rgba(0, 0, 0, 0.36) 52%, rgba(0, 0, 0, 0.14) 74%, transparent 100%);
}
.beam-halo {
  left: calc(var(--reach) * -1.4); width: calc(var(--reach) * 2.8); height: calc(var(--reach) * 0.85);
  background: conic-gradient(at 50% var(--apex),
    rgba(var(--lc), 0) calc(180deg - var(--half) * 1.95),
    rgba(var(--lc), var(--halo)) calc(180deg - var(--half) * 0.95),
    rgba(var(--lc), calc(var(--halo) * 1.5)) 180deg,
    rgba(var(--lc), var(--halo)) calc(180deg + var(--half) * 0.95),
    rgba(var(--lc), 0) calc(180deg + var(--half) * 1.95));
  -webkit-mask-image: radial-gradient(circle calc(var(--reach) * 0.95) at 50% var(--apex), #000 0, rgba(0, 0, 0, 0.62) 30%, rgba(0, 0, 0, 0.24) 62%, transparent 100%);
  mask-image: radial-gradient(circle calc(var(--reach) * 0.95) at 50% var(--apex), #000 0, rgba(0, 0, 0, 0.62) 30%, rgba(0, 0, 0, 0.24) 62%, transparent 100%);
}
.lamp-wash {
  position: absolute; left: var(--wash-x, -10%); top: var(--wash-y, 4%);
  width: var(--wash-w, 120%); height: var(--wash-h, 46%);
  background: radial-gradient(50% 50% at 60% 50%, rgba(var(--lc), 0.11), rgba(var(--lc), 0.04) 55%, transparent 78%);
  transition: opacity 1.2s ease 0.4s;
}
html.js .lamp.is-off .lamp-wash { opacity: 0; transition: none; }
.glare {
  position: absolute;
  left: calc(-100px * var(--s)); top: calc(56px * var(--s));
  width: calc(200px * var(--s)); height: calc(110px * var(--s));
  background: radial-gradient(50% 50% at 50% 32%, rgba(255, 247, 228, 0.5), rgba(var(--lc), 0.16) 46%, rgba(var(--lc), 0) 76%);
}
.motes { position: absolute; left: 0; top: 0; }
.mote {
  position: absolute; left: 0; top: 0;
  width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: rgba(255, 242, 214, 0.95);
  box-shadow: 0 0 6px 1px rgba(var(--lc), 0.55);
  opacity: 0;
  animation: mote var(--dur) linear var(--delay) infinite;
}
@keyframes mote {
  0% { opacity: 0; transform: translate(var(--x), var(--y)); }
  18% { opacity: var(--o); }
  82% { opacity: var(--o); }
  100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))); }
}

/* Off (the script starts a lamp off, then switches it on). Without the script
   every lamp is simply on. */
html.js .lamp.is-off .lamp-light,
html.js .lamp.is-off .lamp-mouth-lit { opacity: 0; }
html.js .lamp.is-off .lamp-head { filter: brightness(0.62) saturate(0.85); }
html.js .lamp.is-off .lamp-rig { transform: rotate(calc(var(--tilt) - 24deg)); }

/* -------------------------------------------------------------- hero ----- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: var(--header-h);   /* the header lies over the hero's top */
  background:
    url("grain.svg"),
    radial-gradient(90% 70% at 88% 0%, rgba(58, 50, 34, 0.55) 0%, rgba(30, 27, 20, 0.3) 40%, transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg) 92%);
}
/* The hero's light fades out before the section ends, so no edge shows where it stops. */
.lamp--hero {
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  --kx: calc(100% - 44px);
  --ky: calc(var(--header-full) + 30px);
  --s: 0.66;
  --tilt: 14deg;
  --half: 26deg;
  --reach: 1300px;
  --core: 0.34;
  --edge: 0.14;
}
.hero-inner { position: relative; z-index: 2; padding-top: 82px; }
.hero h1 { font-weight: 500; }
.h1-main {
  display: block;
  font-size: clamp(33px, 9.4vw, 42px); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ivory);
}
/* "Learning", marked as the page loads. The heading's text is clipped to its warm gradient, so the
   marked word draws its own ink over the mark. */
.h1-main mark { color: var(--ivory); -webkit-text-fill-color: var(--ivory); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* The end of the heading nearest the lamp is warmer, as if lit. */
  .h1-main {
    background: linear-gradient(100deg, #f5f1e7 0%, #f5f1e7 48%, #fff3d8 72%, #ffe3a8 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
.lead {
  margin-top: 20px; max-width: 34em;
  font: 400 17.5px/1.55 var(--read-font); color: var(--text-3);
}
/* On a phone the first screen's paragraph wraps plainly (owner, 2026-11-28): Safari's "pretty" evens
   every line of a paragraph, which left this one 30 to 80 px short of the column. It costs no line
   either way (measured on the whole page at 390 to 430 px); the last two words are kept together. */
@media (max-width: 599px) { .lead { text-wrap: wrap; } }
.hero-second {
  margin-top: 12px; max-width: 34em;
  font: 500 15.5px/1.5 var(--brand-font); color: var(--muted);
}
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 26px; }
.hero-fine {
  margin-top: 6px;
  font: 500 13.5px/1.45 var(--brand-font); color: var(--muted);
}
/* What is in SKELA (owner, 2026-11-28: people missed features on a first scroll): links to the
   sections in page order. Plain pills, since a gold one means an AI tool on this page. On a phone,
   one row under the copy that scrolls sideways; on a tablet, a centred wrap; on a laptop, a row
   under the copy and the picture. */
.hero-index {
  display: flex; align-items: center; gap: 10px;
  margin: 28px calc(-1 * var(--pad)) 0; padding: 4px calc(var(--pad) + 28px) 6px var(--pad);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.hero-index::-webkit-scrollbar { display: none; }
.hero-index-label { flex: none; margin-right: 2px; font: 600 13.5px/1 var(--brand-font); color: var(--muted); white-space: nowrap; }
.hero-index ul { display: flex; flex: none; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-index a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font: 600 14px/1 var(--brand-font); white-space: nowrap; text-decoration: none;
  color: var(--text-2); background: rgba(245, 241, 231, 0.05); box-shadow: inset 0 0 0 1px rgba(245, 241, 231, 0.2);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-index a:hover { color: var(--ivory); background: rgba(245, 241, 231, 0.09); box-shadow: inset 0 0 0 1px rgba(245, 241, 231, 0.38); }
.hero-device { position: relative; margin: 44px auto 0; }
.hero-fig { position: relative; }
.hero-fig--mac, .hero-fig--ipad { display: none; }
.hero-fig--iphone { width: min(286px, 76vw); margin: 0 auto; }
.desk-pool {
  position: absolute; z-index: -1;
  left: -20%; right: -20%; bottom: -12%; height: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(254, 188, 46, 0.16), rgba(254, 188, 46, 0.05) 52%, transparent 74%);
  pointer-events: none;
}

/* The devices in the dark: a faint rim of the lamp's light, the screen's own glow. */
.hero .dv, .scene .dv, .steps .dv-window {
  --dv-edge: rgba(255, 240, 214, 0.14);
}
.hero .dv-iphone, .scene .dv-iphone {
  box-shadow:
    0 0 0 1px rgba(255, 238, 206, 0.16) inset,
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 40px 70px -30px rgba(0, 0, 0, 0.95),
    0 0 90px -24px rgba(var(--lc), 0.3);
}
.hero .dv-ipad, .scene .dv-ipad {
  box-shadow:
    0 0 0 1px rgba(255, 238, 206, 0.16) inset,
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 50px 80px -36px rgba(0, 0, 0, 0.95),
    0 0 110px -30px rgba(var(--lc), 0.28);
}
.hero .dv-macbook .dv-lid, .scene .dv-macbook .dv-lid {
  box-shadow:
    0 0 0 1px rgba(255, 238, 206, 0.13) inset,
    0 40px 70px -34px rgba(0, 0, 0, 0.95),
    0 0 120px -30px rgba(var(--lc), 0.24);
}
/* The lamp's warm sheen on the laptop's glass, from above and to the right. */
.hero .dv-macbook .dv-lid::after, .scene .dv-macbook .dv-lid::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(208deg, rgba(var(--lc), 0.16) 0%, rgba(var(--lc), 0.05) 28%, transparent 52%);
}
.scene .dv-macbook .dv-lid::after {
  background: linear-gradient(180deg, rgba(var(--lc), 0.13) 0%, rgba(var(--lc), 0.03) 26%, transparent 46%);
}

/* ---------------------------------------------------------------- why ---- */
.why { position: relative; padding: clamp(84px, 13vw, 190px) 0 clamp(56px, 9vw, 130px); text-align: center; }
.why-inner { max-width: calc(54rem + 2 * var(--pad)); }
.why h2 { margin: 16px 0 26px; font-size: clamp(36px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -0.018em; }
.why-text {
  max-width: 34em; margin: 0 auto;
  font: 400 clamp(20px, 1.5vw + 12px, 29px)/1.5 var(--read-font); color: var(--text-3);
}
.sweep {
  color: var(--ivory);
  background-image: linear-gradient(rgba(254, 188, 46, 0.3), rgba(254, 188, 46, 0.3));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  padding: 0.04em 0.06em;
  border-radius: 0.12em;
}

/* --------------------------------------------------------------- steps --- */
.steps { position: relative; padding: clamp(56px, 8vw, 120px) 0 clamp(64px, 9vw, 140px); }
.section-head { max-width: 52rem; margin: 0 auto clamp(36px, 6vw, 84px); text-align: center; }
.section-head h2 { margin-top: 14px; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.015em; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 40px 0 52px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 8px; }
.step-text { max-width: 36rem; }
.step-num {
  display: flex; align-items: center; gap: 14px;
  font: 600 13px/1 var(--brand-font); letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.step-num::after { content: ""; width: 64px; height: 1px; background: var(--line-gold); }
.step-name { margin: 16px 0 14px; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -0.015em; }
.step-short { font: 400 clamp(19px, 0.8vw + 13px, 22px)/1.5 var(--read-font); color: var(--ivory); }
.step-detail { margin-top: 14px; font: 400 16.5px/1.62 var(--read-font); color: var(--text-2); }
.ink { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.ink-yellow { text-decoration-color: #e0a800; }
.ink-orange { text-decoration-color: #f57c00; }
.ink-red { text-decoration-color: #e53935; }
.ink-blue { text-decoration-color: #1e88e5; }
.ink-green { text-decoration-color: #43a047; }

/* The days a known card comes back, as a small ladder. */
.ladder { position: relative; height: 44px; margin: 26px 22px 0 18px; max-width: 340px; }
.ladder::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px;
  background: linear-gradient(90deg, rgba(254, 188, 46, 0.65), rgba(254, 188, 46, 0.12));
}
.rung {
  position: absolute; left: var(--at); top: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font: 600 12px/1 var(--brand-font); color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rung i {
  display: block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px rgba(254, 188, 46, 0.65);
}
.rung:first-child i { background: var(--ivory); box-shadow: none; }
.rung-more i { background: transparent; box-shadow: 0 0 0 1px rgba(254, 188, 46, 0.7) inset; }

.step-fig { margin: 30px 0 0; }
.step-fig figcaption, .scene-figure figcaption, .stage-shot figcaption {
  margin-top: 16px;
  font: 500 13.5px/1.45 var(--brand-font); color: var(--muted);
}
.step-fig figcaption { text-align: center; }
.step-fig--wide { display: none; }
.phone-crop {
  width: min(250px, 72vw); margin: 0 auto;
  aspect-ratio: 1 / 1.62; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
}
.steps .dv-iphone {
  box-shadow: 0 0 0 1px rgba(255, 238, 206, 0.16) inset, 0 0 0 1px rgba(0, 0, 0, 0.7), 0 0 80px -24px rgba(var(--lc), 0.32);
}
.steps .dv-window {
  box-shadow:
    0 0 0 1px rgba(255, 238, 206, 0.12),
    0 40px 80px -30px rgba(0, 0, 0, 0.95),
    0 0 120px -30px rgba(var(--lc), 0.22);
}
.stage { display: none; }

/* --------------------------------------------------------------- opens --- */
.opens { padding: clamp(64px, 9vw, 130px) 0; }
.formats { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.format {
  position: relative; overflow: hidden;
  padding: 24px 24px 46px; border-radius: 20px;
  background: linear-gradient(180deg, #1e1e1b 0%, #161614 100%);
  box-shadow: 0 0 0 1px rgba(245, 241, 231, 0.07) inset, 0 1px 0 rgba(255, 236, 200, 0.06) inset;
  transition: box-shadow 0.4s ease, transform 0.4s var(--ease-out);
}
.format::before { /* a lamp's glow on each card's top edge */
  content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(254, 188, 46, 0.55), transparent);
}
.format:hover { box-shadow: 0 0 0 1px rgba(254, 188, 46, 0.28) inset, 0 20px 50px -30px rgba(var(--lc), 0.35); }
.format h3 { margin: 0 0 10px; font: 600 19px/1.25 var(--brand-font); color: var(--ivory); }
.format p { font: 400 15.5px/1.58 var(--read-font); color: var(--text-2); }
.format-tag {
  position: absolute; right: 16px; bottom: 6px;
  font: 800 44px/1 var(--brand-font); letter-spacing: 0.01em;
  color: rgba(254, 188, 46, 0.06);
  pointer-events: none;
}

/* ------------------------------------------------------------- devices --- */
.devices { position: relative; padding-top: clamp(64px, 9vw, 140px); }
.devices-intro { text-align: center; max-width: calc(54rem + 2 * var(--pad)); }
.devices-intro h2 { margin-top: 14px; font-size: clamp(34px, 5vw, 70px); line-height: 1.04; letter-spacing: -0.018em; }
.devices-text { max-width: 36em; margin: 24px auto 0; font: 400 clamp(18px, 0.9vw + 12px, 22px)/1.55 var(--read-font); color: var(--text-3); }
.travel { display: flex; align-items: flex-start; justify-content: center; max-width: 560px; margin: 44px auto 0; }
.travel-stop {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 13px/1 var(--brand-font); color: var(--muted);
}
.travel-stop svg { width: 46px; height: 31px; fill: none; stroke: var(--ivory); stroke-width: 1.5; stroke-linecap: round; opacity: 0.9; }
.travel-line {
  position: relative; flex: 1; height: 1px; margin: 15px 12px 0;
  background: linear-gradient(90deg, rgba(254, 188, 46, 0.18), rgba(254, 188, 46, 0.55), rgba(254, 188, 46, 0.18));
}
.travel-line i { position: absolute; left: 0; right: 0; top: -4px; height: 9px; }
.travel-line i::before {
  content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px 3px rgba(254, 188, 46, 0.5);
  opacity: 0;
}

.scene { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 90px); }
.scene-inner { display: grid; gap: 40px; align-items: center; }
.scene-label {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 15px/1 var(--brand-font); letter-spacing: 0.06em; color: var(--gold);
}
.scene-label::before {
  content: ""; width: 24px; height: 11.2px;
  background: url("brand/book.svg") center / contain no-repeat;
}
.scene h3 { margin: 16px 0 18px; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -0.016em; }
.scene-intro { font: 400 clamp(18px, 0.7vw + 12.5px, 21px)/1.55 var(--read-font); color: var(--text-3); }
.points { display: grid; gap: 15px; margin: 30px 0 0; padding: 28px 0 0; list-style: none; border-top: 1px solid var(--line); }
.points li { position: relative; padding-left: 38px; font: 400 16.5px/1.55 var(--read-font); color: var(--text-2); }
.points li::before { /* the gold book mark of the logo */
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 22px; height: 10.3px;
  background: url("brand/book.svg") center / contain no-repeat;
}
.scene-figure { position: relative; margin: 0; padding-top: 236px; }
.scene-figure figcaption { position: relative; z-index: 1; text-align: center; }
.scene-device { position: relative; z-index: 1; }
.scene--mac .scene-device { width: 100%; }
.scene--ipad .scene-device { width: 100%; }
.phones { display: flex; justify-content: center; align-items: flex-end; padding: 0 4%; }
.phone { position: relative; width: min(258px, 47%); }
.phone--back { margin-right: -9%; transform: translateY(-3%) rotate(-5deg); }
.phone--front { z-index: 1; transform: translateY(4%) rotate(3deg); }
/* The pendant's light on the devices' faces, from above. */
.scene .dv-ipad::after, .phone::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(70% 46% at 50% 0%, rgba(var(--lc), 0.2), rgba(var(--lc), 0.05) 55%, transparent 80%);
}
.phone::after { border-radius: 16.3% / 7.8%; }
.pool {
  position: absolute; z-index: 0; left: -10%; right: -10%; bottom: 6px; height: 150px;
  background: radial-gradient(46% 50% at 50% 50%, rgba(var(--lc), 0.3), rgba(254, 188, 46, 0.09) 52%, transparent 78%);
  pointer-events: none;
}
.pendant {
  --s: 0.82; --tilt: 0deg; --half: 29deg; --reach: 1000px;
  --core: 0.36; --edge: 0.15; --halo: 0.06; --ky: 76px;
  position: absolute; left: 50%; top: 0; width: 0; height: 0; z-index: 0;
}
.pendant .lamp-rig { left: 0; top: var(--ky); will-change: auto; }
.pendant .lamp-switch { display: none; }
.pendant-cord {
  --above: 0px;
  position: absolute; left: -0.75px; top: calc(-1 * var(--above)); width: 1.5px;
  height: calc(var(--ky) + var(--above) - 13px * var(--s));
  background: linear-gradient(180deg, rgba(110, 107, 98, 0) 0%, #6b685f 45%, #6b685f 100%);
}

/* ------------------------------------------------------------------ ai --- */
.ai { position: relative; padding: clamp(80px, 12vw, 170px) 0 clamp(64px, 9vw, 130px); }
.ai-inner { display: grid; gap: 44px; }
.ai-head h2 { margin: 14px 0 22px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.016em; }
.ai-text { max-width: 34em; font: 400 clamp(18px, 0.7vw + 13px, 21px)/1.58 var(--read-font); color: var(--text-3); }
.ledger { display: grid; gap: 16px; }
.ledger-col {
  padding: 26px 26px 14px; border-radius: 22px;
  background: linear-gradient(180deg, #1c1c19, #151513);
  box-shadow: 0 0 0 1px rgba(245, 241, 231, 0.07) inset;
}
.ledger-col h3 {
  margin-bottom: 12px;
  font: 600 12.5px/1.3 var(--brand-font); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.ledger-col--free h3 { color: var(--ivory); }
.ledger ul { margin: 0; padding: 0; list-style: none; }
.ledger li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-top: 1px solid rgba(245, 241, 231, 0.07);
  font: 400 17px/1.4 var(--read-font); color: var(--text-3);
}
.ledger li::before { /* a lit lamp for what uses credit, an unlit one for what never does */
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px 1px rgba(254, 188, 46, 0.6);
}
.ledger-col--free li::before { background: transparent; box-shadow: 0 0 0 1.5px rgba(245, 241, 231, 0.5) inset; }

/* --------------------------------------------------------------- yours --- */
.yours { position: relative; padding: clamp(64px, 9vw, 130px) 0; }
.yours::before {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
}
.yours-inner { display: grid; gap: 56px; }
.yours h2 { margin: 14px 0 20px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -0.014em; }
.yours-col p:not(.label) { max-width: 33em; font: 400 18px/1.6 var(--read-font); color: var(--text-3); }
.yours-col .yours-extra { margin-top: 14px; color: var(--ivory); }

/* ----------------------------------------------------------------- faq --- */
.faq { padding: clamp(56px, 8vw, 120px) 0 clamp(72px, 10vw, 150px); }
.faq-inner { display: grid; gap: 28px; }
.faq-head h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -0.014em; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 66px; padding: 14px 0;
  font: 500 clamp(18px, 0.5vw + 15px, 21px)/1.35 var(--brand-font); color: var(--ivory);
  list-style: none; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 15px; height: 15px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 15px 1.6px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.6px 15px no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: #fff; }
.faq-list details p { max-width: 40em; padding: 0 0 24px; font: 400 17px/1.6 var(--read-font); color: var(--text-2); }
.faq-list details a { color: var(--gold); text-underline-offset: 4px; }

/* ----------------------------------------------------------------- cta --- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 290px 0 clamp(72px, 12vw, 170px);
  text-align: center;
  background:
    url("grain.svg"),
    radial-gradient(70% 60% at 50% 105%, rgba(40, 36, 27, 0.9), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-0) 100%);
}
.lamp--cta {
  --kx: calc(100% - 44px);
  --ky: 150px;
  --s: 0.7;
  --tilt: 28deg;
  --half: 26deg;
  --reach: 900px;
  --core: 0.24;
  --edge: 0.1;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { margin: 18px auto 0; max-width: 14em; font-size: clamp(40px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.022em; }

/* -------------------------------------------------------------- footer --- */
.site-footer {
  position: relative;
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  background: url("grain.svg"), var(--bg-0);
  box-shadow: 0 -1px 0 rgba(254, 188, 46, 0.16);
}
.footer-inner { display: grid; gap: 26px; }
.footer-brand .wordmark { display: block; height: 30px; width: auto; color: var(--ivory); }
.expansion { margin-top: 14px; font: 500 15px/1.45 var(--brand-font); color: var(--muted); letter-spacing: 0.005em; }
.expansion b { font-weight: 700; color: var(--ivory); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 15px/1 var(--brand-font); color: var(--text-2); text-decoration: none;
}
.footer-nav a:hover { color: var(--gold); }
.copyright { font: 500 13px/1.4 var(--brand-font); color: var(--muted); }

/* ===================================================== TABLETS (≥ 600) ===== */
@media (min-width: 600px) {
  .lamp--hero {
    --kx: calc(100% - 92px);
    --ky: calc(var(--header-full) + 36px);
    --s: 0.92;
    --tilt: 22deg;
    --half: 28deg;
    --reach: 1600px;
  }
  .hero-inner { padding-top: 112px; }
  .h1-main { font-size: clamp(54px, 8.2vw, 84px); line-height: 1.02; }
  .lead { margin-top: 26px; font-size: 20px; }
  .hero-second { font-size: 16.5px; }
  .hero-actions { flex-direction: row; align-items: flex-start; gap: 28px; }
  .btn-quiet { min-height: 54px; }
  .hero-fig--iphone { display: none; }
  .hero-fig--ipad { display: block; width: min(690px, 100%); margin: 0 auto; }
  .hero-device { margin-top: 64px; padding-bottom: 72px; }
  .hero-index {
    align-items: flex-start;
    margin: 40px 0 0; padding: 0; overflow: visible;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-index-label { display: inline-flex; align-items: center; min-height: 36px; }
  .hero-index ul { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; row-gap: 10px; }

  .step-fig--phone { display: none; }
  .step-fig--wide { display: block; }

  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formats .format:last-child { grid-column: 1 / -1; }

  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-figure { padding-top: 290px; }
  .pendant { --s: 0.95; --ky: 96px; --reach: 1200px; }
  .lamp--cta { --kx: calc(100% - 110px); --ky: 84px; --s: 0.92; --reach: 1100px; }
  .cta { padding-top: 280px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .copyright { grid-column: 1 / -1; }
}

/* ==================================== LAPTOPS, iPad SIDEWAYS (≥ 1000, wide) */
@media (min-width: 1000px) and (orientation: landscape) {
  .lamp--hero {
    --kx: calc(100% - clamp(108px, 9vw, 190px));
    --ky: calc(var(--header-full) + 44px);
    --wash-x: 8%; --wash-y: 8%; --wash-w: 70%; --wash-h: 62%;
    --s: 1.16;
    --tilt: 52deg;
    --half: 32deg;
    --reach: 1800px;
    --core: 0.4;
    --edge: 0.16;
  }
  .hero-inner {
    --wrap: 1480px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas: "title title" "copy device" "index index";
    column-gap: clamp(36px, 4.4vw, 80px);
    padding-top: clamp(36px, 7vh, 92px);
    padding-bottom: clamp(48px, 9vh, 110px);
  }
  .hero { display: flex; flex-direction: column; min-height: min(100vh, 1100px); }
  .hero-inner { margin-block: auto; }
  .hero-title { grid-area: title; }
  .hero-copy { grid-area: copy; padding-top: clamp(22px, 3.6vh, 44px); }
  .hero-device { grid-area: device; margin: clamp(14px, 3vh, 40px) 0 0; padding-bottom: 0; }
  .hero-index { grid-area: index; margin-top: clamp(30px, 5vh, 56px); }
  .h1-main { font-size: clamp(60px, 6.5vw, 112px); }
  .lead { font-size: clamp(19px, 0.55vw + 12px, 22px); }
  .hero-actions { flex-wrap: wrap; column-gap: clamp(14px, 1.6vw, 28px); }
  .hero-fig--ipad { display: none; }
  .hero-fig--mac { display: block; }

  .step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 90px); align-items: center; }
  .step-fig { margin-top: 0; }

  /* Pinned: the steps' words scroll past one window that keeps still. */
  .steps.pin .steps-body {
    display: grid;
    grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
    column-gap: clamp(40px, 5vw, 96px);
  }
  .steps.pin .steps-list { padding: 4vh 0 26vh; }
  .steps.pin .step {
    display: flex; align-items: center;
    min-height: 74vh; padding: 0; border-top: 0;
    opacity: 0.62; transition: opacity 0.6s ease;
  }
  .steps.pin .step.is-active { opacity: 1; }
  .steps.pin .step-num::after { transition: width 0.6s var(--ease-out), background-color 0.6s ease; }
  .steps.pin .step.is-active .step-num::after { width: 120px; background: rgba(254, 188, 46, 0.7); }
  .steps.pin .step-fig { display: none; }
  .steps.pin .stage {
    display: flex; align-items: center; align-self: start;
    position: sticky; top: var(--header-h);
    height: calc(100vh - var(--header-h));
  }
  .stage-inner { position: relative; display: grid; width: 100%; }
  .stage-inner::before { /* the desk under the window, lit */
    content: ""; position: absolute; z-index: -1; left: -14%; right: -14%; top: 8%; bottom: -14%;
    background: radial-gradient(50% 50% at 50% 55%, rgba(var(--lc), 0.12), rgba(var(--lc), 0.03) 55%, transparent 75%);
  }
  .stage-shot {
    grid-area: 1 / 1; margin: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.75s ease, visibility 0s linear 0.75s;
  }
  .stage-shot.is-active { opacity: 1; visibility: visible; transition: opacity 0.75s ease, visibility 0s; }
  .stage-shot figcaption { display: flex; gap: 14px; align-items: baseline; }
  .cap-num { flex: none; color: var(--gold); font-weight: 600; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; }

  /* Three over two where five in a row would be cramped; five in a row from 1360 px. */
  .formats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .formats .format { grid-column: span 2; }
  .formats .format:nth-child(n + 4) { grid-column: span 3; }
  .format { min-height: 230px; padding-bottom: 64px; }
  .format-tag { font-size: 50px; color: rgba(254, 188, 46, 0.075); }

  .scene-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 112px); }
  .scene--mac .scene-inner, .scene--iphone .scene-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .scene--mac .scene-figure, .scene--iphone .scene-figure { order: -1; }
  .scene-figure { padding-top: 300px; }
  .pendant { --s: 1; --ky: 98px; --reach: 1300px; }
  .pendant-cord { --above: 70px; }
  .scene--iphone .phone { width: min(262px, 44%); }

  .ai-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 6vw, 110px); align-items: center; }
  .yours-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(48px, 7vw, 120px); }
  .faq-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(48px, 6vw, 110px); align-items: start; }

  .lamp--cta { --kx: calc(100% - clamp(160px, 18vw, 340px)); --ky: 90px; --s: 1.02; --reach: 1300px; --tilt: 58deg; }
  .cta { padding-top: 300px; }
}

@media (min-width: 1360px) and (orientation: landscape) {
  .formats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .formats .format, .formats .format:nth-child(n + 4) { grid-column: auto; }
  .format { min-height: 290px; }
}

/* ============================================================== MOTION ==== */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1.1s var(--ease-out); }
  html.js .reveal.is-in { opacity: 1; transform: none; }
  html.js .formats .reveal:nth-child(2) { transition-delay: 0.08s; }
  html.js .formats .reveal:nth-child(3) { transition-delay: 0.16s; }
  html.js .formats .reveal:nth-child(4) { transition-delay: 0.24s; }
  html.js .formats .reveal:nth-child(5) { transition-delay: 0.32s; }

  /* A highlighter's stroke across the words that matter. */
  html.js .sweep { background-size: 0% 100%; transition: background-size 1.7s cubic-bezier(0.55, 0.1, 0.3, 1) 0.5s; }
  html.js .is-in .sweep { background-size: 100% 100%; }

  /* Each device rises into its pool of light as the lamp above it comes on. */
  html.js .scene .scene-device { opacity: 0; transform: translateY(90px); transition: opacity 1.1s ease 0.15s, transform 1.5s var(--ease-out) 0.15s; }
  html.js .scene .pool { opacity: 0; transition: opacity 1.6s ease 0.6s; }
  html.js .scene .lamp-light, html.js .scene .lamp-mouth-lit { opacity: 0; transition: opacity 0.9s ease; }
  html.js .scene .lamp-head { filter: brightness(0.62) saturate(0.85); }
  html.js .scene.is-lit .scene-device { opacity: 1; transform: none; }
  html.js .scene.is-lit .pool,
  html.js .scene.is-lit .lamp-light,
  html.js .scene.is-lit .lamp-mouth-lit { opacity: 1; }
  html.js .scene.is-lit .lamp-head { filter: none; }
  html.js .scene.is-lit .lamp-light { animation: pendant-on 1.1s linear; }

  /* Your place, travelling from one device to the next. */
  .travel-line i { animation: travel 6s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
  .travel-line + .travel-stop + .travel-line i { animation-delay: 3s; }
  .travel-line i::before { animation: travel-dot 6s linear infinite; animation-delay: inherit; }
}
@keyframes pendant-on {
  0% { opacity: 0; } 8% { opacity: 0.6; } 14% { opacity: 0.12; } 24% { opacity: 0.7; } 30% { opacity: 0.35; } 100% { opacity: 1; }
}
@keyframes travel {
  0% { transform: translateX(0); }
  45%, 100% { transform: translateX(calc(100% - 9px)); }
}
@keyframes travel-dot {
  0% { opacity: 0; } 8% { opacity: 1; } 40% { opacity: 1; } 50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .lamp.is-off .lamp-light, html.js .lamp.is-off .lamp-mouth-lit { opacity: 1; }
  html.js .lamp.is-off .lamp-head { filter: none; }
  .motes { display: none; }
  .btn, .btn-quiet .arrow, .text-link .arrow, .faq-list summary::after { transition: none; }
}

/* ------------------------------------------- the screenshots' appearance --- */
/* Each picture shows SKELA light or dark. One sun / moon switch in the header, left of Get SKELA,
   shows them all in the other (owner, 2026-11-28; shared/shot_theme.css and .js); it comes with
   the collapsed header, once the page scrolls, and is a little larger there, as tall as Get SKELA. */
.hero-fig, .step-fig, .scene-device, .stage-inner { position: relative; }
.step-fig--phone { width: min(250px, 72vw); margin-left: auto; margin-right: auto; }
.step-fig--phone .phone-crop { width: 100%; }
.head-switch { display: none; margin-left: 10px; line-height: 0; }
.site-header.is-compact .head-switch.has-shot-switch { display: inline-flex; }
.site-header.mh-swap-a .head-switch { animation: mh-in-a 0.26s ease-out 0.14s backwards; }
.site-header.mh-swap-b .head-switch { animation: mh-in-b 0.26s ease-out 0.14s backwards; }
.head-switch .shot-switch button { width: 34px; height: 28px; }
.head-switch .shot-switch button::after { inset: -8px -2px; }
.head-switch .shot-switch svg { width: 16px; height: 16px; }
.head-switch + .header-cta { margin-left: 10px; }
@media (max-width: 599px) {
  .head-switch { margin-left: 8px; }
  .head-switch + .header-cta { margin-left: 8px; }
  .head-switch .shot-switch button { width: 30px; }
}

/* =========================================================== MARGIN NOTES == */
:root {
  /* The app's marks on a dark page. */
  --hl-yellow: rgba(204, 180, 0, 0.44);
  --hl-orange: rgba(214, 120, 0, 0.44);
  --hl-red: rgba(214, 48, 49, 0.46);
  --hl-blue: rgba(30, 120, 214, 0.5);
  --hl-green: rgba(56, 142, 60, 0.5);
  --ul-yellow: #e9bd2a;
  --ul-orange: #f39237;
  --ul-red: #ef5d58;
  --ul-blue: #4aa3f0;
  --ul-green: #63b866;
  --measure: 38rem;
  --gap: 3rem;
  --note-w: 12.5rem;
}
mark { background: none; color: inherit; }
.hl, .ul { background-repeat: no-repeat; -webkit-box-decoration-break: slice; box-decoration-break: slice; color: var(--ivory); }
.hl {
  background-image: linear-gradient(to bottom, transparent 5%, var(--c) 13%, var(--c) 89%, transparent 97%);
  background-size: 100% 100%;
  border-radius: 0.32em 0.2em 0.36em 0.24em;
  padding-inline: 0.12em; margin-inline: -0.12em;
}
.ul { background-image: linear-gradient(var(--u), var(--u)); background-size: 100% 0.1em; background-position: 0 96%; }
.hl-yellow, .sw-yellow, .ul-yellow { --c: var(--hl-yellow); --u: var(--ul-yellow); }
.hl-orange, .sw-orange, .ul-orange { --c: var(--hl-orange); --u: var(--ul-orange); }
.hl-red, .sw-red, .ul-red { --c: var(--hl-red); --u: var(--ul-red); }
.hl-blue, .sw-blue, .ul-blue { --c: var(--hl-blue); --u: var(--ul-blue); }
.hl-green, .sw-green, .ul-green { --c: var(--hl-green); --u: var(--ul-green); }
html.js .hl, html.js .ul { transition: background-size var(--dur, 900ms) cubic-bezier(0.5, 0.08, 0.35, 1) var(--delay, 0ms); }
html.js .hl:not(.on) { background-size: 0% 100%; }
html.js .ul:not(.on) { background-size: 0% 0.1em; }

/* A note in the margin: the mark's swatch and what its color means. On phones, under its paragraph. */
.sw { display: inline-block; flex: none; width: 18px; height: 11px; margin-right: 9px; border-radius: 2.5px; background: var(--c); vertical-align: -1px; }
.sw-ul { height: 2px; border-radius: 1px; background: var(--u); vertical-align: 3px; }
.sn { margin: -0.3em 0 1.3em; font: 600 12px/1.45 var(--brand-font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sn-t { display: block; margin-top: 0.35em; font: italic 400 15px/1.4 var(--read-font); letter-spacing: 0; text-transform: none; color: var(--text-2); }
html.js .sn { opacity: 0; transform: translateY(5px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .sn.on { opacity: 1; transform: none; }
@media (max-width: 779px) {
  .sn { position: relative; padding-top: 0.7em; }
  .sn::before { content: ""; position: absolute; top: 0; left: 0; width: 2.6em; height: 1px; background: var(--line-gold); }
  .sn + .sn { margin-top: -0.6em; }
}

/* A page: the reading column with a margin for the notes on its right. */
.page { width: min(100% - 2 * var(--pad), calc(var(--measure) + var(--gap) + var(--note-w))); margin-inline: auto; text-align: left; }
@media (min-width: 780px) {
  .page { display: grid; grid-template-columns: minmax(0, 1fr) var(--gap) var(--note-w); }
  .page > * { grid-column: 1; }
  .page > .text { position: relative; }
  .page > .text > .sn { position: absolute; left: calc(100% + var(--gap)); width: var(--note-w); margin: 0; }
  .page > .text > .sn::before { content: ""; position: absolute; left: calc(-1 * var(--gap) + 10px); top: 0.62em; width: calc(var(--gap) - 22px); height: 1px; background: var(--line-gold); }
}
@media (min-width: 780px) and (max-width: 1099px) { :root { --gap: 2rem; --note-w: 10.5rem; } }

/* Why: the heading as before, then the text as a page with its marks. */
.why .page { margin-top: 6px; }
.why .why-text { max-width: none; margin: 0; text-align: left; }
.why h2 { margin-bottom: 30px; }

/* ------------------------------------------------------------- chapters --- */
.toc {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px;
  margin: -10px auto 0; padding: 0; list-style: none;
}
.toc li { display: flex; align-items: center; }
.toc li + li::before { content: ""; width: clamp(14px, 2.4vw, 40px); height: 1px; margin: 0 clamp(8px, 1vw, 16px); background: var(--line-gold); }
.toc a {
  display: inline-flex; align-items: baseline; gap: 0.5em; min-height: 44px; align-items: center;
  font: 500 clamp(18px, 1vw + 12px, 23px)/1 var(--brand-font); color: var(--ivory); text-decoration: none;
}
.toc a:hover { color: var(--gold-2); }
.toc-n { font: 600 15px/1 var(--brand-font); letter-spacing: 0.06em; color: var(--gold); font-variant-numeric: tabular-nums; }
/* On a phone the five steps are one column, left-aligned, the column centred (owner, 2026-11-28:
   aligned on "03 Understand", the longest). */
@media (max-width: 599px) {
  .toc { flex-direction: column; align-items: flex-start; width: max-content; }
  .toc li + li::before { display: none; }
}
.chapter { position: relative; padding-top: clamp(80px, 11vw, 150px); }
.ch-title { display: flex; align-items: baseline; gap: 18px; margin: 12px 0 20px; font-size: clamp(38px, 4.8vw, 66px); line-height: 1.02; letter-spacing: -0.016em; }
.ch-num { font: 600 0.42em/1 var(--brand-font); letter-spacing: 0.04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.deck { margin: 0 0 18px; font: 400 clamp(20px, 0.8vw + 14px, 24px)/1.5 var(--read-font); color: var(--ivory); }
.text > p:not(.deck):not(.sn):not(.step-tags) { margin: 0 0 1em; font: 400 17px/1.64 var(--read-font); color: var(--text-2); }
.text .legend-line { color: var(--text-3); }
.step-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 0; }
/* What a row of pills is (owner, 2026-11-27): "Opens:", "Tools:", "AI tools:". The AI tools keep the
   gold pill; the others are plain. */
.tags-label { margin-right: 4px; font: 600 13.5px/1 var(--brand-font); color: var(--muted); white-space: nowrap; }
.tags-group { display: contents; }
.tags-group + .tags-group > .tags-label { margin-left: 12px; }
/* On a phone each label and its pills are a line of their own, which scrolls sideways when the pills
   do not fit, as the first screen's index (owner, 2026-11-28). */
@media (max-width: 599px) {
  .step-tags { display: grid; gap: 8px; }
  .tags-group {
    display: flex; align-items: center; gap: 6px;
    margin: 0 calc(-1 * var(--pad)); padding: 3px calc(var(--pad) + 28px) 3px var(--pad);
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .tags-group::-webkit-scrollbar { display: none; }
  .tags-group > * { flex: none; }
  .tags-group + .tags-group > .tags-label { margin-left: 0; }
}
.tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px;
  font: 600 12.5px/1 var(--brand-font); letter-spacing: 0.01em; white-space: nowrap;
  color: var(--gold-2); background: rgba(254, 188, 46, 0.08); box-shadow: inset 0 0 0 1px rgba(254, 188, 46, 0.24);
}
.tag-plain { color: var(--text-2); background: rgba(245, 241, 231, 0.04); box-shadow: inset 0 0 0 1px rgba(245, 241, 231, 0.18); }

/* Plates and figures, each on a pool of the lamp's light. */
.plate, .fig, .bookcover { margin: 0; }
.plate { position: relative; }
.plate::before {
  content: ""; position: absolute; z-index: -1; left: -12%; right: -12%; top: 6%; bottom: -10%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(var(--lc), 0.11), rgba(var(--lc), 0.03) 55%, transparent 75%);
  pointer-events: none;
}
.plate-wide { width: min(100% - 2 * var(--pad), 1000px); margin: clamp(64px, 7vw, 92px) auto 0; }
.plate figcaption, .fig figcaption, .bookcover figcaption { margin-top: 16px; font: 500 13.5px/1.45 var(--brand-font); color: var(--muted); }
.plate figcaption, .fig figcaption { text-align: center; }
.pl-no { margin-right: 0.35em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: var(--gold); }
.fig figcaption em { font-style: normal; color: var(--text-2); }
.fig-curve { width: min(100% - 2 * var(--pad), 820px); margin: clamp(48px, 6vw, 80px) auto 0; }
.pair-figs { width: min(100% - 2 * var(--pad), 1160px); margin: clamp(64px, 7vw, 92px) auto 0; display: grid; gap: 64px; align-items: center; }
@media (min-width: 1100px) { .pair-figs { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(40px, 4vw, 64px); } }

.fig-svg {
  display: block; width: 100%; height: auto;
  font-family: var(--brand-font); font-variant-numeric: lining-nums tabular-nums;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(245, 241, 231, 0.07), 0 30px 70px -40px rgba(0, 0, 0, 0.9), 0 0 120px -50px rgba(var(--lc), 0.3);
}
.fig-svg .f-bg { fill: #161614; }
.fig-svg .f-ink { fill: var(--text-3); }
.fig-svg .f-muted { fill: var(--muted); }
.fig-svg .f-gold { fill: var(--gold); }
.fig-svg text.f-gold { fill: var(--gold-2); }
.fig-svg .f-red { fill: #ef5d58; }
.fig-svg .f-card { fill: #1f1f1c; }
.fig-svg .s-ink { stroke: rgba(245, 241, 231, 0.5); }
.fig-svg .s-gold { stroke: var(--gold); }
.fig-svg .s-red { stroke: #ef5d58; }
.fig-svg .s-gray { stroke: #8a857a; }
.fig-svg .s-grid { stroke: rgba(245, 241, 231, 0.07); }
/* The drawn figures (the forgetting curve, the weekly study loop) follow the header's light/dark
   switch (owner, 2026-11-28): each is a [data-shots] container without pictures, so the switch only
   sets its data-shots, and light takes the colours of the book's own figures
   (samples/book/images/forgetting_curve.svg and study_loop.svg). */
.fig[data-shots] .fig-svg * { transition: fill 0.24s ease, stroke 0.24s ease; }
.fig[data-shots="light"] .fig-svg .f-bg { fill: #fbf8f1; }
.fig[data-shots="light"] .fig-svg .f-card { fill: #ffffff; }
.fig[data-shots="light"] .fig-svg .f-ink { fill: #30312f; }
.fig[data-shots="light"] .fig-svg .f-muted { fill: #6b6a63; }
.fig[data-shots="light"] .fig-svg .f-gold,
.fig[data-shots="light"] .fig-svg text.f-gold { fill: #c58a12; }
.fig[data-shots="light"] .fig-svg .s-ink { stroke: #30312f; }
.fig[data-shots="light"] .fig-svg .s-gold { stroke: #c58a12; }
.fig[data-shots="light"] .fig-svg .s-gray { stroke: #9a9890; }
.fig[data-shots="light"] .fig-svg .s-grid { stroke: #e6e0d2; }
@media (prefers-reduced-motion: reduce) { .fig[data-shots] .fig-svg * { transition: none; } }
@media (max-width: 599px) {
  .fig-svg .t-review, .fig-svg .t-note, .fig-svg .t-gap, .fig-svg .t-dayword { display: none; }
  .fig-svg .t-tick, .fig-svg .t-axis, .fig-svg .t-day { font-size: 23px; }
  .fig-svg .t-axis[transform] { display: none; }
  .fig-svg .t-key { font-size: 25px; }
  .fig-svg .t-title { font-size: 24px; }
}

/* -------------------------------------------------------- further reading --- */
.further { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 6vw, 90px); }
.shelf { display: grid; gap: 56px; align-items: center; max-width: 1100px; margin: 0 auto; }
@media (min-width: 1000px) { .shelf { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 6vw, 96px); } }
.books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); max-width: 30rem; margin: 0 auto; }
.bookcover .cov { position: relative; border-radius: 2px 7px 7px 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 238, 206, 0.1), 0 26px 50px -24px rgba(0, 0, 0, 0.95), 0 0 90px -30px rgba(var(--lc), 0.35); }
.bookcover .cov::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(255, 255, 255, 0.1) 2.6%, rgba(0, 0, 0, 0.06) 4.4%, transparent 7%); pointer-events: none; }
.bookcover .cov img { display: block; width: 100%; height: auto; }
.bookcover cite { display: block; margin-bottom: 0.35em; font: italic 400 16.5px/1.35 var(--read-font); color: var(--ivory); }
.loop-list { display: none; }

@media (prefers-reduced-motion: no-preference) {
  html.js .fig-curve .curve-gold { clip-path: inset(0 100% 0 0); transition: clip-path 2.6s cubic-bezier(0.5, 0, 0.3, 1) 0.4s; }
  html.js .fig-curve.is-in .curve-gold { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hl:not(.on) { background-size: 100% 100%; }
  html.js .ul:not(.on) { background-size: 100% 0.1em; }
  html.js .sn { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------- A9: Plate 1, Mac and iPhone --- */
.read-pair { width: min(100% - 2 * var(--pad), 1060px); margin: clamp(64px, 7vw, 92px) auto 0; display: grid; gap: 40px; justify-items: center; }
.read-pair-mac { width: 100%; }
.read-pair-phone { width: min(56vw, 260px); }
.read-pair figcaption { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .read-pair { grid-template-columns: minmax(0, 1fr) 240px; column-gap: clamp(32px, 4vw, 56px); align-items: end; }
  .read-pair-phone { width: 240px; }
}

/* ------------------------------------- Plates 3 and 5: which view the picture shows --- */
/* A small segmented choice centred above the picture (owner, 2026-11-27). */
.plate.has-views { margin-top: calc(clamp(64px, 7vw, 92px) + 14px); }
.shot-views {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 10px); z-index: 3;
  display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px;
  background: rgba(245, 241, 231, 0.06); box-shadow: inset 0 0 0 1px rgba(245, 241, 231, 0.16);
}
.has-views > .dv { position: relative; }
.shot-view {
  position: relative; min-height: 26px; padding: 0 12px; margin: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); cursor: pointer;
  font: 600 13.5px/1 var(--brand-font); white-space: nowrap;
  -webkit-tap-highlight-color: transparent; transition: background-color 0.2s ease, color 0.2s ease;
}
.shot-view::after { content: ""; position: absolute; inset: -9px -2px; }
.shot-view:hover { color: var(--gold); }
.shot-view[aria-pressed="true"], .shot-view[aria-pressed="true"]:hover { background: var(--gold); color: #1d1d1f; cursor: default; }
.shot-view:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
html:not(.js) .shot-views { display: none; }
@media (max-width: 420px) { .shot-view { padding: 0 9px; font-size: 12.5px; } }
/* On a phone the choice is a centred row of its own above the picture. */
@media (max-width: 599px) {
  .shot-views { position: relative; left: auto; transform: none; bottom: auto; display: flex; width: max-content; max-width: 100%; margin: 0 auto 12px; }
  .plate.has-views { margin-top: calc(clamp(64px, 7vw, 92px) + 12px); }
}
/* The chosen half of the header's light/dark switch in solid gold, as the choice of view (owner, 2026-11-27). */
.shot-switch { --sw-on-bg: var(--gold); --sw-on-ink: #1d1d1f; }
.shot-switch button:hover { color: var(--gold); }
.shot-switch button[aria-pressed="true"]:hover { color: #1d1d1f; }

/* ---------------------------------------------- Sharing (owner, 2026-11-27) --- */
/* A shared book on the Mac, the Share window over its lower right corner as a second window;
   on a phone the window comes under the book. Then the points in two columns. */
.share { position: relative; padding: clamp(80px, 11vw, 160px) 0 clamp(40px, 6vw, 90px); }
.share-text { max-width: 36em; margin: 24px auto 0; font: 400 clamp(18px, 0.9vw + 12px, 22px)/1.55 var(--read-font); color: var(--text-3); }
.share-stage { position: relative; width: min(100%, 1000px); margin: clamp(56px, 6vw, 84px) auto 0; padding-bottom: 0; }
.share-stage::before {
  content: ""; position: absolute; z-index: -1; left: -12%; right: -12%; top: 6%; bottom: -10%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(var(--lc), 0.11), rgba(var(--lc), 0.03) 55%, transparent 75%);
  pointer-events: none;
}
.share-panel {
  width: min(82%, 340px); margin: 22px auto 0; border-radius: 12px; overflow: hidden; line-height: 0;
  box-shadow: 0 0 0 1px rgba(245, 241, 231, 0.14), 0 28px 60px -18px rgba(0, 0, 0, 0.85);
}
.share-panel img { display: block; width: 100%; height: auto; }
.share-stage figcaption { margin-top: 18px; text-align: center; font: 500 13.5px/1.45 var(--brand-font); color: var(--muted); }
@media (min-width: 900px) {
  .share-stage { padding-bottom: 40px; }
  .share-panel { position: absolute; right: -4%; bottom: 0; width: 34%; margin: 0; }
  .share-main { width: 86%; }
  .share-stage figcaption { position: absolute; left: 0; bottom: -10px; width: 58%; text-align: left; transform: translateY(100%); }
  .share-points { margin-top: 84px; }
}
.share-points { max-width: 62rem; margin-inline: auto; }
@media (min-width: 760px) { .share-points { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.share-fine { max-width: 62rem; margin: 22px auto 0; font: 500 14px/1.5 var(--brand-font); color: var(--muted); }
