/* Hero · one part, start to release: the L1 "Spec sheet, headline left" hero (Figma 443:374, Aaron's pick) with the
   film live in its figure. Tokens: /shared/adam-v1.css (white, black and the Adam pink). */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--font-body); font-weight: var(--weight-body, 400); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* the hero takes its colours from its own tokens (data-color on it switches them; body's would be inherited as resolved) */
.hero { --m: 80px; position: relative; isolation: isolate; background: var(--bg); color: var(--ink); }
.hero :where(h1, p, ul, figure) { margin: 0; padding: 0; }
.hero ul { list-style: none; }
.hero :where(a) { color: inherit; text-decoration: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--m); }
.ic { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- the nav */
.nav { display: flex; align-items: center; gap: 40px; height: 96px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; line-height: 0; }
.logo img { display: block; width: auto; height: 24px; }
.logo .light, [data-color="dark"] .logo .ink { display: none; }
[data-color="dark"] .logo .light { display: block; }
.links { display: flex; gap: 40px; margin-left: auto; font-family: var(--font-mono); font-size: 13px; letter-spacing: var(--tracking-label, .08em); text-transform: uppercase; }
.links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 200ms ease; }
.links a:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 212px; min-height: 48px; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--radius, 4px); background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: 13px; letter-spacing: var(--tracking-label, .08em); text-transform: uppercase; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.btn:hover { background: var(--ink); color: var(--bg); }
/* the secondary call: solid black, white type */
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
/* the primary call: Adam pink, white type (pink-rules tokens, /shared/adam-v1.css) */
.btn--cta { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-fg); }
.btn--cta:hover { background: var(--cta-bg-hover); border-color: var(--cta-bg-hover); color: var(--cta-fg); }
.btn--cta:active { background: var(--cta-bg-press, var(--cta-bg-hover)); border-color: var(--cta-bg-press, var(--cta-bg-hover)); }
.btn--sm { min-width: 0; min-height: 36px; gap: 14px; padding: 0 13px; font-size: 12px; }
.btn:focus-visible, .play:focus-visible, .links a:focus-visible, .logo:focus-visible { outline: var(--focus-ring, 2px solid var(--accent)); outline-offset: 2px; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------------------------------------------------------------- the copy and the figure */
.body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 64px 0 56px; }
.copy { position: relative; display: flex; flex-direction: column; padding-right: 48px; container-type: inline-size; }
/* the eyebrow as the section labels set it: a small pink square, then mono capitals at the label tracking */
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: var(--tracking-label, .08em); text-transform: uppercase; color: var(--ink-2); padding-bottom: 32px; text-wrap: balance; }
.eyebrow i { flex: none; width: 7px; height: 7px; background: var(--accent); }
.eyebrow .yc { flex: none; width: 16px; height: 16px; }   /* the YC mark (Backed by Y Combinator), in its own orange */
/* the H1 as Figma 443:411 sets it: Geist Regular 120 / 110.4, −6 px, in a 592 px box, three lines; smaller columns
   scale it in proportion (120 px for 592) */
.title { font-family: var(--font-display); font-weight: 400; font-size: min(120px, calc(100cqw * 120 / 592)); line-height: .92; letter-spacing: -.05em; padding-bottom: 48px; }
.title span { display: block; white-space: nowrap; }
.title.intro { color: transparent; }          /* ?intro=1: the letters are drawn over it (intro.js), then it shows */
.rule { display: grid; gap: 32px; padding-top: 29px; border-top: 1px solid var(--line); }
.lead { max-width: 540px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; letter-spacing: -.005em; color: var(--ink-2); text-wrap: pretty; }
.scroll { margin-top: auto; padding: 48px 0 13px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--tracking-label, .08em); text-transform: uppercase; color: var(--muted); }

/* the sheet: 650 × 700 design px, 13 × 14 majors of 50 (five 10 px cells each), registered to its frame (Tong, 15 Oct:
   "grid has alignment, fix this"; it was 640 × 712, 12.8 × 14.24 majors, part cells at the right and the bottom). The
   lines sit 1 px before each multiple of the pitch, so majors 0 and 13 (and 0 and 14) are the figure's own border, and
   the pitch spans border to border: (stage width + 1) / 65. Every cell is whole and every edge is a major line. The grid
   is not painted in the stage's last px at the right and the bottom (its padding there), so a sub-px rounding never
   lays the far majors beside the border: all four edges are the border alone */
.figure { position: relative; border: 1px solid var(--line); background: var(--bg); align-self: start; container-type: inline-size; }
/* paper and grid from the page's tokens, so the sheet is right for light or dark from the first paint (white, ink at
   5.5 and 11% on white, as ever); the film sets them again from /shared/theme.js as it draws (film.js palette()) */
.stage { --paper: var(--bg, #ffffff); --grid-a: color-mix(in srgb, var(--ink, #0a0a0a) 5.5%, transparent); --grid-b: color-mix(in srgb, var(--ink, #0a0a0a) 11%, transparent);
  --g: calc((100cqw + 1px) / 65);
  position: relative; width: 100%; aspect-ratio: 650 / 700; overflow: hidden; padding: 0 1px 1px 0;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid-b) 1px, transparent 1px), linear-gradient(90deg, var(--grid-b) 1px, transparent 1px),
                    linear-gradient(var(--grid-a) 1px, transparent 1px), linear-gradient(90deg, var(--grid-a) 1px, transparent 1px),
                    linear-gradient(var(--paper), var(--paper));
  background-size: calc(var(--g) * 5) calc(var(--g) * 5), calc(var(--g) * 5) calc(var(--g) * 5), var(--g) var(--g), var(--g) var(--g), auto;
  background-position: -1px -1px;
  background-clip: content-box, content-box, content-box, content-box, padding-box; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the film's opening frame before its script has run (on a phone it comes about a second after the text): the sheet's
   caption, where and as the film draws it (film.js caption()); gone once the film draws its first frame */
.sheet-cap { display: none; }
@media (max-width: 767px) {
  [data-film]:not([data-drawn]) .sheet-cap { display: block; position: absolute; z-index: 1; margin: 0; left: calc(24 / 650 * 100% - 5px); bottom: calc(24 / 700 * 100% - 5px);
    height: 16px; padding: 0 5px; background: var(--paper); color: color-mix(in srgb, var(--ink, #0a0a0a) 92%, transparent); font: 500 10px/16px "Paper Mono", "Geist Mono", ui-monospace, monospace; letter-spacing: .6px; white-space: nowrap; }
}
@media (min-width: 512px) and (max-width: 767px) { [data-film]:not([data-drawn]) .sheet-cap { font-size: 10.5px; } }
[data-palette="dark"] .stage { --paper: #0a0a0a; }
body:has(> .hero[data-color="dark"]) { background: #0a0a0a; }

/* pause / play: a small square in the figure's top right corner (44 px on touch) */
.play { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius, 4px); background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink); cursor: pointer; transition: border-color .2s; }
.play:hover { border-color: var(--ink); }
.play svg { width: 10px; height: 10px; fill: currentColor; }
.play .i-play, .play[data-state="paused"] .i-pause { display: none; }
.play[data-state="paused"] .i-play { display: block; }
@media (pointer: coarse) { .play { width: 44px; height: 44px; top: 8px; right: 8px; } }

/* ---------------------------------------------------------------- the proof row */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 40px; border-top: 1px solid var(--line); }
.proof li { display: flex; align-items: baseline; gap: 16px; padding: 18px 16px 4px; font-size: 15px; line-height: 1.4; text-wrap: pretty; }
.proof li:first-child { padding-left: 0; }
.proof li + li { border-left: 1px solid var(--line); }
.proof .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--tracking-label, .08em); color: var(--muted); }

/* ---------------------------------------------------------------- narrower */
@media (max-width: 1279px) { .hero { --m: 48px; } .links { gap: 28px; } }
@media (max-width: 1023px) {
  .hero { --m: 32px; }
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .body { grid-template-columns: minmax(0, 1fr); padding: 48px 0 40px; }
  .copy { padding-right: 0; }
  .scroll { display: none; }
  .figure { margin-top: 40px; width: 100%; }        /* stacked: the content's full width, at its own aspect */
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .hero { --m: 16px; }
  .nav { height: 72px; }
  .logo img { height: 20px; }
  .body { padding: 36px 0 32px; }
  .eyebrow { font-size: 11px; padding-bottom: 20px; }
  .title { padding-bottom: 28px; }
  .rule { gap: 24px; padding-top: 22px; }
  .btns .btn { min-width: 0; flex: 1 1 150px; }
  .figure { margin-top: 32px; }
  .proof li { flex-direction: column; gap: 2px; padding: 14px 12px 6px; font-size: 14px; }
  .proof li:nth-child(odd) { padding-left: 0; }
  .proof li:nth-child(3) { border-left: 0; }
}

/* ---------------------------------------------------------------- ?frame=1: the film alone */
html.frame { height: 100%; overflow: hidden; }   /* html only: hidden on body would unstick a pinned film around it */
html.frame body { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
html.frame .nav, html.frame .copy, html.frame .proof { display: none; }
html.frame .hero, html.frame .wrap { width: 100%; padding: 0; max-width: none; }
html.frame .body { display: grid; place-items: center; padding: 0; }
html.frame .figure { width: min(650px, 100vw, calc(100vh * 650 / 700)); margin: 0; border: 0; }
