/* memorandex.com, Version A.
   Palette, faces and logos are the live site's; everything else is new.
   Rules of the world:
   - one hairline weight (--rule) everywhere a line separates anything;
   - brass is a MARK (ticks, the horizon rule, callout pins) and only ever text on forest;
   - mint-bright is the primary action and nothing else;
   - controls are pills; pages, images and panels have square paper edges (--r: 2px);
   - JetBrains Mono only for figures and field labels. */

@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: block; } /* preloaded; block avoids the swap reflow in the bottom-anchored heroes */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: block; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: block; }
@font-face { font-family: "Jakarta Fallback"; src: local("Arial"); size-adjust: 103%; } /* metric-matched stand-in for the first paint, so a line never rewraps when the real face lands */

:root {
  --paper: #f5f4ef;
  --mint: #e6f1ea;
  --forest: #14352b;
  --ink: #10201b;
  --mint-b: #68b99f;
  --brass: #bda06d;
  --line: #d8dcd4;
  --muted: #55655e;
  --rule: rgba(20, 53, 43, .18);
  --rule-on-dark: rgba(230, 241, 234, .22);
  --text-on-dark: #dfeae3;
  --shadow-sheet: 0 1px 2px rgba(16, 32, 27, .08), 0 18px 40px -12px rgba(16, 32, 27, .28);

  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-text: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1280px;
  --r: 2px;
  --nav-top: 14px;
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-top) + var(--nav-h) + 24px); background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-text); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--forest); color: var(--paper); }
:focus-visible { outline: 2px solid var(--mint-b); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #9fb3a9 var(--paper); }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--forest); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ── type ─────────────────────────────────────────────────────────── */
.display { font: 600 clamp(3rem, 6.2vw, 6rem)/.93 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; color: var(--forest); text-wrap: balance; }
.h2 { font: 500 clamp(2.125rem, 3.7vw, 3.5rem)/1 var(--f-display); text-transform: uppercase; color: var(--forest); text-wrap: balance; }
.h2--calm { text-transform: none; font-weight: 500; letter-spacing: -.005em; line-height: 1.05; }
.h3 { font: 700 1.1875rem/1.3 var(--f-text); color: var(--forest); }
/* text measures are in em, not ch: ch is read off whichever face is painting, so it changed when the web font landed and the bottom-anchored heroes reflowed (0.732em = one ch of Plus Jakarta Sans) */
.lede { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.55; color: #2b3b35; max-width: 24.9em; }
.body { max-width: 45.4em; color: #2b3b35; }
.body + .body { margin-top: 1em; }
.small { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.label { font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fig { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.on-dark { color: var(--text-on-dark); }
.on-dark .h2, .on-dark .display, .on-dark .h3 { color: var(--paper); }
.on-dark .small { color: #b9cbc2; }

/* ── buttons ──────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--forest); color: var(--paper); }
.btn--primary:hover { background: var(--ink); }
.btn--go { background: var(--mint-b); color: var(--ink); }
.btn--go:hover { background: #7cc6ad; }
.btn--ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: var(--paper); }
.on-dark .btn--ghost { border-color: rgba(245, 244, 239, .7); color: var(--paper); }
.on-dark .btn--ghost:hover { background: var(--paper); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--forest); text-decoration: none; border-bottom: 1.5px solid var(--brass); padding-bottom: 2px; }
.textlink:hover { border-color: var(--forest); }
.on-dark .textlink { color: var(--paper); }

/* ── nav: fixed, centred forest pill ──────────────────────────────── */
.nav { position: fixed; z-index: 50; top: calc(var(--nav-top) + env(safe-area-inset-top, 0px)); left: 0; right: 0; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.nav__bar { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 4px; height: var(--nav-h); padding: 0 8px 0 20px; border-radius: 999px;
  background: var(--forest); color: var(--paper); box-shadow: 0 10px 30px -10px rgba(16, 32, 27, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.nav.is-scrolled .nav__bar { background: var(--ink); box-shadow: 0 14px 36px -12px rgba(16, 32, 27, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
.nav__brand { display: flex; align-items: center; margin-right: 14px; padding: 6px 0; border-radius: 8px; }
.nav__brand img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: #d9e7df; text-decoration: none; font: 600 .9688rem/1 var(--f-text); transition: color .2s, background-color .2s; }
.nav__link:hover { color: var(--paper); background: rgba(230, 241, 234, .08); }
.nav__link[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav__sep { width: 1px; height: 24px; background: var(--rule-on-dark); margin: 0 8px; }
.nav__cta { min-height: 48px; margin-left: 6px; }
.nav__menu { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(230, 241, 234, .1); color: var(--paper); font-weight: 700; cursor: pointer; }
.nav__panel { display: none; }

@media (max-width: 900px) {
  .nav__bar { width: 100%; justify-content: space-between; padding: 0 8px 0 16px; }
  .nav__links, .nav__sep, .nav__cta { display: none; }
  .nav__brand img { height: 30px; }
  .nav__menu { display: inline-flex; }
  .nav__panel { pointer-events: auto; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; display: grid; gap: 4px; padding: 12px; border-radius: 24px;
    background: var(--ink); box-shadow: 0 24px 50px -16px rgba(16, 32, 27, .6); }
  .nav__panel[hidden] { display: none !important; }
  .nav__panel .nav__link { min-height: 56px; font-size: 1.25rem; padding: 0 16px; border-radius: 14px; }
  .nav__panel .nav__link[aria-current="page"] { box-shadow: none; background: rgba(230, 241, 234, .1); }
  .nav__panel .btn { justify-content: center; min-height: 56px; margin-top: 6px; }
}

/* ── films: full-bleed, muted grounds ─────────────────────────────── */
.film { position: absolute; inset: 0; overflow: hidden; background: #e8ece6; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film video { opacity: 0; transition: opacity 1.2s var(--ease); }
.film.is-playing video { opacity: 1; }

/* ── reveal: content is visible without JS; JS opts elements in ───── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* ── films: full-bleed section backgrounds (Sam, 2026-09-27: the standard is the
   closing banner). A film fills its section edge to edge; text sits bottom-left over
   a dark gradient. No masks, ovals, fades or framed boxes anywhere. */
.bleed { position: relative; isolation: isolate; display: grid; align-items: end; overflow: hidden; background: var(--ink); color: var(--text-on-dark); }
.bleed > .film { z-index: 0; background: var(--ink); }
.bleed::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(16, 32, 27, .94) 0%, rgba(16, 32, 27, .66) 34%, rgba(16, 32, 27, .1) 70%),
              linear-gradient(90deg, rgba(16, 32, 27, .55) 0%, rgba(16, 32, 27, 0) 60%); }
@media (max-width: 700px) {
  /* phones: the copy sits higher up the frame, so the gradient holds its depth further up */
  .bleed::before { background: linear-gradient(0deg, rgba(16, 32, 27, .94) 0%, rgba(16, 32, 27, .8) 38%, rgba(16, 32, 27, .4) 66%, rgba(16, 32, 27, .1) 84%), linear-gradient(90deg, rgba(16, 32, 27, .4) 0%, rgba(16, 32, 27, 0) 70%); }
}
.bleed__inner { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; padding-block: calc(var(--nav-top) + var(--nav-h) + 48px) clamp(48px, 7vw, 96px); }
.bleed--screen { min-height: 100vh; min-height: 100svh; }
.bleed--tall { min-height: min(86vh, 880px); }
.bleed--band { min-height: min(80vh, 760px); }
.bleed .display, .bleed .h2 { color: var(--paper); }
.bleed .lede { color: var(--text-on-dark); max-width: 29.3em; }
.bleed .note { font-size: .8125rem; color: #b9cbc2; }
.bleed .btn--ghost { border-color: rgba(245, 244, 239, .72); color: var(--paper); background: rgba(16, 32, 27, .5); }   /* a ground of its own: over a bright film frame, bare white text on a hairline fell under 4.5:1 */
.bleed .btn--ghost:hover { background: var(--paper); color: var(--forest); }
.bleed .display { font-size: clamp(2.75rem, 5.6vw, 5.5rem); }
.bleed .h2 { font-size: clamp(2.5rem, 5vw, 4.75rem); max-width: 18ch; }
.display .line { display: block; white-space: nowrap; }
@media (max-width: 520px) { .display .line { white-space: normal; } }
/* the replay crossfade layer (js): the film's held last frame, faded over the restarted film */

/* ── section rhythm ───────────────────────────────────────────────── */
.section { padding-block: clamp(80px, 11vw, 152px); }
.section--tight { padding-block: clamp(64px, 8vw, 104px); }
.section--mint { background: var(--mint); }
.section--forest { background: var(--forest); }
.head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }

/* ── HOME: the thread (one field, the pages it prints on) ─────────── */
.thread { position: relative; border-top: 1px solid var(--rule); }
.thread__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.thread__copy { display: grid; gap: 24px; align-content: start; }
.field { position: relative; display: grid; gap: 8px; width: min(100%, 340px); margin-top: 12px; padding: 16px 18px 18px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: 0 1px 0 rgba(16, 32, 27, .04); cursor: default; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field:hover, .field:focus-visible, .thread.is-lit .field { border-color: var(--forest); box-shadow: 0 10px 28px -14px rgba(16, 32, 27, .35); }
.field__value { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 1.5rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--forest); }
.field__value .icon { width: 22px; height: 22px; color: var(--brass); }
.field__note { font-size: .8125rem; color: var(--muted); }
.thread__pages { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto; padding-bottom: 8%; }
.sheet { position: relative; margin: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sheet); }
.sheet img { width: 100%; height: auto; border-radius: var(--r); }
.thread__pages .sheet { align-self: start; }
.thread__pages .sheet:nth-child(1) { grid-column: 1 / span 8; grid-row: 1; z-index: 1; }
.thread__pages .sheet:nth-child(2) { grid-column: 5 / span 8; grid-row: 1; z-index: 2; margin-top: 30%; }
.sheet figcaption { position: absolute; left: 0; top: calc(100% + 10px); font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.mark { position: absolute; border: 2px solid var(--mint-b); border-radius: 6px; box-shadow: 0 0 0 4px rgba(104, 185, 159, .18); pointer-events: none; }
.mark--cover { left: 35.5%; top: 84%; width: 13.5%; height: 8.5%; }
.mark--lease { left: 38.9%; top: 24.2%; width: 8%; height: 4.6%; }
.thread.is-lit .mark { animation: mark-pulse 1.6s var(--ease) infinite; }
@keyframes mark-pulse { 50% { box-shadow: 0 0 0 9px rgba(104, 185, 159, 0); } }
.thread__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.thread__svg path { fill: none; stroke: var(--brass); stroke-width: 1.25; stroke-dasharray: 3 5; }
.thread__svg circle { fill: var(--brass); }
.thread__fine { margin-top: 56px; font-size: .8125rem; color: var(--muted); }

@media (max-width: 900px) {
  .thread__grid { grid-template-columns: 1fr; }
  .thread__svg { display: none; }
  .thread__pages { padding-bottom: 40px; }
}

/* ── HOME: the pipeline, with its film beside it ────────────────── */
.howband__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ground__panel { position: relative; padding: clamp(28px, 3.5vw, 48px); background: var(--ink); border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(16, 32, 27, .6); }
.ground__panel .h2 { margin-bottom: 28px; }
.steps { display: grid; }
.steps li { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--rule-on-dark); }
.steps li:last-child { padding-bottom: 0; }
.steps .h3 { color: var(--paper); }
.steps p { color: #c3d4cb; font-size: .9688rem; }
.howband { overflow: hidden; }
@media (max-width: 900px) { .howband__grid { grid-template-columns: 1fr; } .howband__book { order: -1; } }

/* ── the booklet, live in the page: real Mesa Supply pages on a hardcover, a leaf that
   turns. Everything is DOM, so there is no background to hide. Sized in cqw so it scales. */
.book3d { --pw: 44.5cqw; --ph: 34.4cqw; position: relative; width: calc(100% + var(--gutter) * .6); margin-right: calc(var(--gutter) * -.6); aspect-ratio: 1.3; container-type: inline-size; perspective: 2200px; perspective-origin: 50% 0%; }
.b3-drift { position: absolute; inset: 0; transform-style: preserve-3d; }
.b3-book { position: absolute; left: 48%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(38deg) rotateZ(-14deg); }
.b3-page, .b3-leaf, .b3-block, .b3-board, .b3-shadow { position: absolute; }
.b3-page, .b3-leaf, .b3-block { top: calc(var(--ph) / -2); width: var(--pw); height: var(--ph); }
.b3-left, .b3-block.l, .b3-block.l2 { left: calc(var(--pw) * -1); } .b3-right, .b3-leaf, .b3-block.r, .b3-block.r2 { left: 0; }
.b3-page, .b3-face { background: #fff; }
.b3-page img, .b3-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b3-page::after, .b3-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.b3-left::after, .b3-back::after { background: linear-gradient(90deg, rgba(16, 32, 27, 0) 80%, rgba(16, 32, 27, .2) 100%); }
.b3-right::after, .b3-front::after { background: linear-gradient(90deg, rgba(16, 32, 27, .22) 0%, rgba(16, 32, 27, 0) 16%); }
.b3-leaf { transform-origin: 0 50%; transform-style: preserve-3d; transform: translateZ(1.2px); }
.b3-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.b3-back { transform: rotateY(180deg); }
/* the paper block under each side, and the forest hardcover under both */
.b3-block { background: #eceae2; transform: translateZ(-2px); }
.b3-block.l2, .b3-block.r2 { transform: translateZ(-4px); background: #e2e0d6; }
.b3-board { left: calc(var(--pw) * -1 - .9cqw); top: calc(var(--ph) / -2 - .9cqw); width: calc(var(--pw) * 2 + 1.8cqw); height: calc(var(--ph) + 1.8cqw); background: var(--forest); transform: translateZ(-6px); border-radius: .4cqw; }
.b3-shadow { left: calc(var(--pw) * -1 - 2cqw); top: calc(var(--ph) / -2 - 1cqw); width: calc(var(--pw) * 2 + 4cqw); height: calc(var(--ph) + 4cqw); background: rgba(16, 32, 27, .32); filter: blur(2.6cqw); transform: translateZ(-10px) translate(2.5cqw, 3.5cqw); border-radius: 3cqw; }
@media (prefers-reduced-motion: no-preference) {
  .book3d.is-live .b3-drift { animation: b3-drift 14s ease-in-out infinite alternate; }
}
@keyframes b3-drift { from { transform: rotateZ(-1.5deg) translateY(0); } to { transform: rotateZ(1.5deg) translateY(-1cqw); } }
@media (max-width: 900px) { .book3d { width: 100%; margin: 0; } }

/* ── HOME: template shelf. Click a name; the stage changes. No hover, no scroll tricks. */
.shelf__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.stage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stage__caption { grid-column: 1 / -1; }
.stage__cover { position: relative; aspect-ratio: 11 / 8.5; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sheet); overflow: hidden; }
.stage__cover img { width: 100%; height: 100%; object-fit: cover; }
.stage__ints { display: grid; gap: 14px; }
.stage__ints img { width: 100%; aspect-ratio: 11 / 8.5; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-sheet); background: #fff; }
.stage img { transition: opacity .45s var(--ease); }
.stage.is-swapping img { opacity: 0; }
.stage__caption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-top: 6px; }
.stage__caption strong { font: 500 1.5rem/1.1 var(--f-display); text-transform: uppercase; color: var(--forest); }
.tabs { display: grid; gap: 7px; }
.tab { display: grid; gap: 3px; width: 100%; min-height: 58px; padding: 10px 16px; text-align: left; border: 1px solid var(--rule); border-radius: 14px; background: transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.tab:hover { border-color: var(--forest); background: #fff; }
.tab__name { font: 500 1.25rem/1 var(--f-display); text-transform: uppercase; color: var(--forest); }
.tab__desc { font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--forest); border-color: var(--forest); }
.tab[aria-selected="true"] .tab__name { color: var(--paper); }
.tab[aria-selected="true"] .tab__desc { color: #c3d4cb; }
@media (max-width: 900px) {
  .shelf__grid { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab { min-height: 60px; }
  .stage { grid-template-columns: 1fr; }
  .stage__ints { grid-template-columns: 1fr 1fr; }
  .tab__desc { display: none; }
}

/* ── HOME: the plans, as one ruled statement ──────────────────────── */
.plans-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 0; border-top: 2px solid var(--forest); }
.plans-line > div { padding: 24px 24px 24px 0; border-right: 1px solid var(--rule); margin-right: 24px; display: grid; gap: 6px; }
.plans-line > div:nth-child(2) { border-right: 0; }
.plans-line .price { font: 500 2.25rem/1 var(--f-display); color: var(--forest); }
.plans-line .price span { font: 500 1rem var(--f-text); color: var(--muted); }
.plans-line .textlink { margin-bottom: 26px; }
@media (max-width: 760px) {
  .plans-line { grid-template-columns: 1fr; }
  .plans-line > div { border-right: 0; border-bottom: 1px solid var(--rule); margin-right: 0; }
  .plans-line .textlink { margin: 24px 0 0; justify-self: start; }
}

/* ── footer ───────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: #c3d4cb; padding: 72px 0 32px; font-size: .9375rem; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--rule-on-dark); }
.foot__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.foot__brand p { max-width: 30.7em; }
.foot h2 { font: 500 .75rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__legal { display: grid; gap: 8px; padding-top: 24px; font-size: .8125rem; color: #9fb3a9; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ── PRODUCT: the packet and the sheet it unfolds into ────────────── */
.intro { padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(56px, 7vw, 96px)); padding-bottom: 40px; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.intro__copy { display: grid; gap: 26px; }
.packet { position: relative; justify-self: center; width: min(100%, 420px); padding: 30px 30px 26px; background: #fff; border: 1.5px solid var(--brass); border-radius: var(--r);
  box-shadow: 0 2px 0 #e9e3d3, 0 4px 0 #fff, 0 5px 0 #e2dac6, 0 16px 24px -14px rgba(16, 32, 27, .35); transition: transform .6s var(--ease), opacity .4s var(--ease); }
.packet::before { content: ""; position: absolute; inset: 9px; border: 1px dashed #d9ccae; pointer-events: none; }
.packet__name { font: 600 2.25rem/1 var(--f-display); text-transform: uppercase; color: var(--forest); margin: 6px 0 18px; }
.packet dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .9375rem; }
.packet dt { color: var(--muted); }
.packet dd { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.packet__fine { margin-top: 16px; font-size: .75rem; color: var(--muted); }
.unfolded .packet { transform: translateY(-6px) rotate(-1.5deg); }

.sheetfield { position: relative; margin-top: 56px; padding: clamp(20px, 3vw, 40px); border-radius: var(--r);
  background-color: #eeede6;
  background-image: repeating-linear-gradient(60deg, transparent 0 46px, rgba(20, 53, 43, .07) 46px 47px), repeating-linear-gradient(-60deg, transparent 0 46px, rgba(20, 53, 43, .05) 46px 47px); }
.panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.panel { position: relative; margin: 0; }
.panel button, .panel .panel__shut { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sheet); cursor: zoom-in; overflow: hidden; }
.panel .panel__shut { cursor: default; }
.panel img { width: 100%; aspect-ratio: 11 / 8.5; object-fit: cover; }
.panel figcaption { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .8125rem; line-height: 1.3; color: var(--ink); }
.panel figcaption .icon { width: 15px; height: 15px; color: var(--muted); }
.panel--shut figcaption { color: var(--muted); }
.panel button:hover { box-shadow: 0 1px 2px rgba(16, 32, 27, .1), 0 24px 44px -14px rgba(16, 32, 27, .4); }
.sheetfield__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; margin-top: 28px; }
.sheetfield__foot p { max-width: 45.4em; font-size: .9375rem; color: #2b3b35; }
@media (max-width: 1000px) { .panels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } .packet { justify-self: start; } }
@media (max-width: 600px) { .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── PRODUCT: what the pipeline does (sticky film inset + ruled list) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split__aside { position: sticky; top: calc(var(--nav-top) + var(--nav-h) + 32px); display: grid; gap: 24px; }
.ticks { display: grid; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 6px 14px; padding: 24px 0; border-top: 1px solid var(--rule); }
.ticks li:last-child { border-bottom: 1px solid var(--rule); }
.ticks .icon { width: 22px; height: 22px; color: var(--brass); margin-top: 2px; grid-row: span 2; }
.ticks p { color: #2b3b35; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__aside { position: static; } }

/* ── PRODUCT: eight directions ────────────────────────────────────── */

/* ── lightbox ─────────────────────────────────────────────────────── */
.lightbox { width: min(1200px, 100vw - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 6px; background: var(--ink); color: var(--paper); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); }
.lightbox::backdrop { background: rgba(16, 32, 27, .78); }
.lightbox__fig { margin: 0; display: grid; gap: 0; }
.lightbox__fig img { width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; background: #fff; }
.lightbox__bar { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; }
.lightbox__cap { flex: 1; font-size: .9375rem; color: #d9e7df; }
.iconbtn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--rule-on-dark); border-radius: 999px; background: transparent; color: var(--paper); cursor: pointer; }
.iconbtn:hover { background: rgba(230, 241, 234, .1); }
.iconbtn .icon { width: 22px; height: 22px; }

/* ── PRICING ──────────────────────────────────────────────────────── */
.billing { display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 8px 20px -12px rgba(16, 32, 27, .3); }
.billing button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; color: var(--forest); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--forest); color: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; position: relative; }
.plan { display: grid; align-content: start; gap: 22px; padding: clamp(28px, 3.4vw, 44px); border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(16, 32, 27, .08), 0 24px 44px -28px rgba(16, 32, 27, .45); }
.plan--team { background: var(--forest); border-color: var(--forest); color: var(--text-on-dark); }
.plan__name { font: 500 1.75rem/1 var(--f-display); text-transform: uppercase; color: var(--forest); }
.plan--team .plan__name { color: var(--paper); }
.plan__who { color: var(--muted); min-height: 3.2em; }
.plan--team .plan__who { color: #b9cbc2; }
.plan__price { display: flex; align-items: baseline; gap: 10px; font: 600 clamp(3.25rem, 5vw, 4.5rem)/1 var(--f-display); color: var(--forest); }
.plan--team .plan__price { color: var(--paper); }
.plan__price small { font: 500 1rem var(--f-text); color: var(--muted); }
.plan--team .plan__price small { color: #b9cbc2; }
.plan__terms { min-height: 1.6em; font-size: .9375rem; color: #2b3b35; }
.plan--team .plan__terms { color: var(--text-on-dark); }
.plan .ticks li { padding: 12px 0; grid-template-columns: 24px 1fr; }
.plan .ticks li:last-child { border-bottom: 0; }
.plan--team .ticks li { border-color: var(--rule-on-dark); }
.plan--team .ticks p { color: var(--text-on-dark); }
.plan .btn { justify-content: center; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare caption { text-align: left; }
.compare th, .compare td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font: 500 .75rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--forest); }
.compare tbody th { font-weight: 700; color: var(--forest); }
.compare .fig { white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.faq { display: grid; max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; cursor: pointer; list-style: none; font: 700 1.125rem/1.35 var(--f-text); color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(90deg); }
.faq details p { padding: 0 0 24px; max-width: 46.8em; color: #2b3b35; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* ── ABOUT ────────────────────────────────────────────────────────── */
.reading { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.reading .body { font-size: 1.125rem; line-height: 1.7; }
.statement { font: 500 clamp(1.5rem, 2.2vw, 2rem)/1.25 var(--f-text); color: var(--forest); padding-top: 22px; border-top: 1px solid var(--brass); }
.ctaband { display: grid; gap: 20px; }
.ctaband .h2 { color: var(--paper); max-width: 22ch; }
.ctaband .lede { color: var(--text-on-dark); max-width: none; }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { padding: 2px 0; border: 0; }
  .compare tbody th { font-size: 1.0625rem; }
}
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--forest); }
.audience > div { display: grid; gap: 16px; align-content: start; padding: 32px 32px 8px 0; }
.audience > div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.audience .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 900px) {
  .reading, .rules, .audience { grid-template-columns: 1fr; }
  .audience > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* ── reduced motion and data saver: posters stand, nothing moves ──── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── rework 3 leftovers ─────────────────────────────────────────── */
.plansband { border-top: 1px solid var(--rule); }
.inset-still { margin: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sheet); overflow: hidden; }
.bleed .billing { margin-top: 4px; }
.plans--flow { margin-top: clamp(48px, 6vw, 80px); }

.shelf .head { margin-bottom: 22px; gap: 10px; }
.shelf .head .h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.shelf.section { padding-block: 56px; }

/* ── HOME: the first-load intro (Sam, 2026-09-28) ─────────────────────
   intro-gate.js sets html.opening before the first paint on a visitor's first Home load of the session.
   The film plays full-screen with the nav and the hero copy hidden; the real lockup files are laid over
   its last frame and glide into the nav's logo while the nav and the copy fade in (js/site.js, "intro").
   Everything the intro touches is opacity or transform: the page underneath is already in its final
   layout, so nothing shifts. The first paint shows the film's first frame as a plain cover. */
html.opening .nav, html.opening [data-intro-copy], html.opening .nav__brand img, html.opening .nav__bar > :not(.nav__brand) { opacity: 0; }
html.opening::after { content: ""; position: fixed; inset: 0; z-index: 99; background: #e8ede9 url("/media/intro-first.webp") center / cover no-repeat; }
html.opening.opening--ready::after { content: none; }
/* the wall colour shows only if the film is late; the tall cut (phones) brings its own wall */
.opening { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #e9eeeb; }
.opening__stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.opening__stage img, .opening__stage video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the tall cut: the same 1920 x 1080 frame with 1002 stage px of its own wall above and below */
.opening__stage video.is-tall { inset: auto; left: 0; top: -1002px; width: 1920px; height: 3084px; }
.opening__mark { position: fixed; left: 0; top: 0; z-index: 101; transform-origin: 0 0; pointer-events: none; }
.opening__mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.opening__mark .is-white { opacity: 0; }

/* ── ABOUT: why the sample is a fiction (Sam, 2026-09-28: a designed section, not a screenshot of a
   page). The notice's four statements, set as the site's own type on a forest card. */
.fiction { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.fiction__head { display: grid; gap: 16px; }
.fiction__head .body { margin: 0; }
.fiction__card { padding: clamp(28px, 3.6vw, 52px); background: var(--forest); border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(16, 32, 27, .6); }
.fiction__eyebrow { color: var(--mint-b); }
.fiction__title { margin-top: 10px; padding-bottom: 22px; border-bottom: 2px solid var(--mint-b); font: 600 clamp(1.875rem, 3vw, 2.75rem)/1 var(--f-display); text-transform: uppercase; color: var(--paper); }
.fiction__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); }
.fiction__points li { display: grid; align-content: start; gap: 8px; padding: 22px 0 4px; }
.fiction__points li:nth-child(n + 3) { border-top: 1px solid var(--rule-on-dark); margin-top: 18px; }
.fiction__n { font: 500 .8125rem/1 var(--f-mono); letter-spacing: .08em; color: var(--mint-b); }
.fiction__points p { color: #c3d4cb; font-size: .9688rem; }
@media (max-width: 900px) { .fiction { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fiction__points { grid-template-columns: 1fr; } .fiction__points li:nth-child(n + 2) { border-top: 1px solid var(--rule-on-dark); margin-top: 14px; } }

/* ── PRODUCT: "Bound" as the live booklet (Sam, 2026-09-28: real rendered pages, sharp text, in place
   of the generated spread film). The pages are the app's own print view at 2x (scripts/bound-pages.mjs):
   the pricing summary on the left, sale comparables on the right, and a leaf that turns to the next two
   comparables pages. The booklet lies flatter than Home's so the spread reads. */
.bound__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px clamp(32px, 5vw, 80px); align-items: end; }
.bound__copy { display: grid; gap: 12px; }
.bound__cap { color: var(--muted); }
.book3d--spread { --pw: 45.5cqw; --ph: 35.2cqw; width: 100%; margin: clamp(8px, 2vw, 24px) 0 0; aspect-ratio: 2.2; perspective: 3000px; perspective-origin: 50% 0%; }
.book3d--spread .b3-book { left: 50%; top: 50%; transform: rotateX(30deg) rotateZ(-4deg); }
@media (max-width: 900px) {
  .bound__head { grid-template-columns: 1fr; }
  .book3d--spread { aspect-ratio: 1.9; }
}
@media (max-width: 560px) {
  .book3d--spread { aspect-ratio: 2.5; margin-top: 4px; }
}

/* the hero at rest: one quiet still, drifting very slowly */
@media (prefers-reduced-motion: no-preference) {
  .film--rest img { animation: rest-drift 48s ease-in-out infinite alternate; transform-origin: 58% 46%; }
}
@keyframes rest-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
