/* ==========================================================================
   smudges: design tokens
   Paper, ink and one marker yellow. Rationale in docs/brand.md.
   ========================================================================== */
/* the display face: Archivo at its ExtraCondensed width, as two static weights (no variable axes to drift between browsers) */
@font-face {
  font-family: "Archivo ExtraCondensed";
  src: url("../fonts/archivo-extracondensed-800.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo ExtraCondensed";
  src: url("../fonts/archivo-extracondensed-850.woff2") format("woff2");
  font-weight: 801 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800; font-stretch: 75% 112.5%; font-style: normal; font-display: swap;
}

:root {
  --paper: #F1F1EE;      /* card stock: neutral, not cream */
  --paper-2: #E8E8E3;    /* tinted bands, skeletons */
  --card: #FAFAF8;       /* raised surfaces */
  --ink: #141519;        /* 16.1:1 on paper */
  --ink-2: #3B3D43;      /* body copy, 9.6:1 */
  --graphite: #62646B;   /* secondary, 5.2:1 */
  --rule: rgba(20, 21, 25, .14);
  --rule-2: rgba(20, 21, 25, .08);
  --signal: #FFD02B;       /* marker yellow: buttons, the highlighter, evidence marks. Ink on it 12.4:1 */
  --signal-ink: #141519;   /* yellow can't be read on paper, so text accents stay ink (on a yellow chip or swipe) */
  --signal-hover: #FFC400;
  --signal-deep: #E9B200;  /* the wetter edge of a highlighter stroke */
  --signal-warm: #FF8A1F;  /* tangerine: the editor's scheduled and busy states only */
  --signal-soft: #F5DE8A;
  --on-signal: #141519;
  --signal-night: #FFD84D; /* text and marks on night, 13.5:1 */

  --night: #111215;
  --night-2: #1B1C20;
  --on-night: #ECECE7;
  --on-night-2: #A2A4AA;
  --rule-night: rgba(236, 236, 231, .14);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --f-sans: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Archivo ExtraCondensed", "Arial Narrow", ui-sans-serif, sans-serif;
  --r-btn: 4px;
  --signal-halo: rgba(20, 21, 25, .8);      /* outline that keeps yellow marks legible on paper */
  --stamp: 3px 3px 0 var(--ink);            /* the hard offset shadow of a stamped button */
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* small labels (kickers, chips, legends, tags): the sans, in tracked capitals */
  --f-label: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-paper: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 28px 56px -36px rgba(20, 21, 25, .42), 0 2px 6px -2px rgba(20, 21, 25, .12);
  --tick: rgba(20, 21, 25, .5);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0; font-family: var(--f-sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  background: var(--paper);
}
main { overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg, canvas { display: block; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section--night :focus-visible, .footer :focus-visible, .nav[data-theme="dark"] :focus-visible { outline-color: var(--signal-night); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
/* small labels: 11.5px with less tracking. Capitals are slower to read, so they stay short (a few words) */
.mono { font-family: var(--f-label); font-size: 11.5px; line-height: 1.5; letter-spacing: .055em; text-transform: uppercase; font-weight: 600; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 16px; }

/* ==========================================================================
   Brand lockup
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: 7px; line-height: 1; white-space: nowrap; }
/* the mark is an alpha mask filled with currentColor; a pre-filtered small mask keeps the ridges clean on 1x screens */
.brand__mark {
  width: 69px; height: 42px; flex: none; background: currentColor;
  -webkit-mask: url("../img/mark.png") left center / contain no-repeat; mask: url("../img/mark.png") left center / contain no-repeat;
  -webkit-mask-image: -webkit-image-set(url("../img/mark-sm.png") 1x, url("../img/mark.png") 2x);
  mask-image: image-set(url("../img/mark-sm.png") 1x, url("../img/mark.png") 2x);
}
.brand__word { font-family: var(--f-display); font-weight: 800; font-size: 27px; letter-spacing: .01em; text-transform: uppercase; word-spacing: .07em; }
/* the dot in smudges.ai sits where a real full stop would: a touch smaller than the face's own '.',
   its bottom on the baseline, its side-bearings either side, and the ink edge drawn inside, so it adds no width */
.brand__dot { display: inline-block; width: max(4px, .135em); height: max(4px, .135em); margin: 0 .05em; vertical-align: baseline; background: var(--signal); box-shadow: inset 0 0 0 1px var(--ink); }
.brand--lg .brand__mark { width: 78px; height: 48px; -webkit-mask-image: url("../img/mark.png"); mask-image: url("../img/mark.png"); }
.brand--lg .brand__word { font-size: 40px; }
.footer .brand__dot { background: var(--signal-night); box-shadow: none; }

/* ==========================================================================
   Floating nav: Arcademy's pattern. One rounded object floating over a
   square-cornered document. Its theme follows the section beneath it.
   ========================================================================== */
.nav { position: fixed; inset: 16px 0 auto; z-index: 50; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  width: min(1200px, calc(100% - 32px)); height: 60px; padding: 0 8px 0 20px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-radius: calc(var(--r-btn) + 8px);   /* = CTA radius + 8px inset: corners stay concentric */
  background: rgba(250, 250, 248, .8);
  border: 1px solid rgba(20, 21, 25, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -26px rgba(20, 21, 25, .45);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  color: var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav[data-theme="dark"] .nav__bar {
  background: rgba(27, 28, 32, .74); color: var(--on-night);
  border-color: rgba(236, 236, 231, .1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -24px rgba(0, 0, 0, .6);
}
.nav__links { display: flex; gap: 30px; font-size: 15.5px; font-weight: 500; }
.nav[data-theme="dark"] .brand__dot { background: var(--signal-night); box-shadow: none; }
.nav__links a { position: relative; isolation: isolate; padding: 6px 0; opacity: .86; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__links a::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 2px; height: 6px; z-index: -1; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav__login { font-size: 15.5px; font-weight: 500; opacity: .86; }
.nav__login:hover { opacity: 1; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 18px; margin-right: 3px; border-radius: var(--r-btn);
  background: var(--signal); color: var(--on-signal); font-weight: 700; font-size: 15px; white-space: nowrap;
  border: 1.5px solid var(--ink); box-shadow: var(--stamp);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .12s;
}
.nav__cta svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__cta:hover svg { transform: translateX(3px); }
.nav__cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav__cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.nav[data-theme="dark"] .nav__cta { border-color: var(--signal-night); box-shadow: 3px 3px 0 rgba(255, 216, 77, .35); }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: var(--r-btn); position: relative; }
.nav__menu i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.nav__menu i:first-of-type { top: 18px; } .nav__menu i:last-of-type { top: 25px; }
.nav__menu[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.nav__sheet {
  pointer-events: auto; width: calc(100% - 32px); margin-top: 8px; padding: 10px 20px; border-radius: 12px;
  background: rgba(250, 250, 248, .96); border: 1px solid rgba(20, 21, 25, .08); box-shadow: 0 18px 40px -26px rgba(20, 21, 25, .45);
  display: grid; backdrop-filter: blur(18px);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet-cta { margin-top: 12px; height: 50px; justify-content: center; border-bottom: 0 !important; font-size: 16px !important; }
/* how far down the page you are: a yellow line along the nav's lower edge (--p, from main.js) */
.nav__bar { position: relative; }
.nav__bar::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--signal-deep, #E3B400); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: calc(var(--p, 0) * 40); transition: opacity .3s; pointer-events: none; }
/* the section you're in */
.nav__links a { position: relative; }
.nav__links a[aria-current="location"] { color: var(--ink); }
.nav__links a[aria-current="location"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--signal-deep, #E3B400); }
.nav[data-theme="dark"] .nav__links a[aria-current="location"] { color: var(--on-night); }
.nav__sheet a { padding: 13px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--rule-2); }
.nav__sheet a:last-child { border-bottom: 0; }

/* --------------------------------------------------------------- signed in: the account (nav-account.js)
   A picture-and-name chip that opens a menu: who you are, your plan, this period's searches,
   the way into the app and "Log out". It takes "Log in"'s place; the CTA becomes "Dashboard". */
.me { position: relative; }
.me__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 4px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: inherit;
  transition: background-color .15s, box-shadow .15s;
}
.me__btn:hover, .me__btn[aria-expanded="true"] { background: rgba(20, 21, 25, .06); }
.nav[data-theme="dark"] .me__btn:hover, .nav[data-theme="dark"] .me__btn[aria-expanded="true"] { background: rgba(236, 236, 231, .1); }
.me__name { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__chev { width: 14px; height: 14px; opacity: .6; transition: transform .2s var(--ease); }
.me__btn[aria-expanded="true"] .me__chev { transform: rotate(180deg); }
/* the picture: initials underneath, the photo or the grown print on top */
.me__pic { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--signal); color: var(--on-signal); box-shadow: 0 0 0 1px rgba(20, 21, 25, .16); }
.me__pic--sm { width: 30px; height: 30px; }
.me__pic--lg { width: 40px; height: 40px; }
.me__ini { font: 700 12px/1 var(--f-display); letter-spacing: -.01em; }
.me__pic--lg .me__ini { font-size: 14px; }
.me__pic img, .me__pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.me__pic canvas { background: var(--card); opacity: 0; transition: opacity .3s; }
.me__pic canvas[data-painted] { opacity: 1; }
.nav[data-theme="dark"] .me__btn .me__pic { box-shadow: 0 0 0 1px rgba(236, 236, 231, .25); }

.me__menu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: 300px; padding: 6px;
  border-radius: 12px; background: var(--card); color: var(--ink);
  border: 1px solid rgba(20, 21, 25, .1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 24px 48px -20px rgba(20, 21, 25, .35), 0 4px 12px -4px rgba(20, 21, 25, .12);
  transform-origin: top right; opacity: 0; transform: translateY(-4px) scale(.98);
  transition: opacity .14s var(--ease), transform .14s var(--ease);
}
.me__menu.is-open { opacity: 1; transform: none; }
.me__menu[hidden] { display: none; }
.me__who { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.me__id { min-width: 0; display: grid; line-height: 1.3; }
.me__id b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__id span { font-size: 13px; color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__plan { align-self: start; margin-top: 2px; padding: 3px 7px; border-radius: 4px; font: 700 10.5px/1.2 var(--f-label); letter-spacing: .06em; text-transform: uppercase; background: var(--signal); color: var(--on-signal); box-shadow: inset 0 0 0 1px rgba(20, 21, 25, .25); }
.me__use { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin: 0 4px 6px; padding: 10px 10px 12px; border-radius: 8px; background: var(--paper); font-size: 13px; color: var(--ink-2); }
.me__use b { color: var(--ink); font-variant-numeric: tabular-nums; }
.me__lim { font-weight: 700; color: var(--ink); }
a.me__lim { background: linear-gradient(var(--signal), var(--signal)) left 88% / 100% 34% no-repeat; padding: 0 1px; transition: background-size .25s var(--ease); }
a.me__lim:hover { background-size: 100% 88%; }
.me__bar { flex-basis: 100%; height: 6px; border-radius: 3px; background: rgba(20, 21, 25, .1); position: relative; overflow: hidden; }
.me__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--u); border-radius: 3px; background: var(--ink); }
.me__bar.is-hot::after { background: #C2410C; }
.me__sep { height: 1px; margin: 6px 4px; background: var(--rule-2); }
.me__menu [role="menuitem"] {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border-radius: 7px;
  font-size: 14.5px; font-weight: 500; text-align: left; color: var(--ink-2);
  transition: background-color .12s, color .12s;
}
.me__menu [role="menuitem"]:hover, .me__menu [role="menuitem"]:focus-visible { background: var(--paper-2); color: var(--ink); outline: none; }
.me__ico { width: 16px; height: 16px; flex: none; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .me__menu, .me__chev { transition: none; } }
.nav__actions:has(.me) { gap: 12px; }
@media (max-width: 1240px) { .me__name { display: none; } .me__btn { padding-right: 6px; gap: 6px; } }
.nav__cta-short { display: none; }
@media (max-width: 560px) { .me { display: none; } .nav__cta-short { display: inline; } }   /* on a phone the sheet carries the account */

/* the phone's sheet: the account at the top, "Log out" at the foot */
.nav__sheet-me { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 0 !important; }
.nav__sheet-me .me__id b { font-size: 16px; }
.nav__sheet a.nav__sheet-out { color: var(--graphite); font-weight: 500; }

/* ==========================================================================
   Buttons, links, form
   ========================================================================== */
/* Stamped: marker yellow, an ink edge and a hard offset shadow. It lifts on hover and presses flat on click. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--r-btn); font-weight: 700; font-size: 16px; white-space: nowrap; transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .12s; }
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--signal { background: var(--signal); color: var(--on-signal); border: 1.5px solid var(--ink); box-shadow: var(--stamp); }
.btn--signal:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn--signal:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.lookup__row .btn--signal { height: 46px; margin-right: 3px; }
.section--night .btn--signal { border-color: var(--signal-night); box-shadow: 3px 3px 0 rgba(255, 216, 77, .35); }
.section--night .btn--signal:hover { box-shadow: 4px 4px 0 rgba(255, 216, 77, .45); }
.btn--ghost { color: var(--signal-ink); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--signal-soft); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--signal); }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); padding: 0 2px; background: linear-gradient(var(--signal), var(--signal)) left 88% / 100% 34% no-repeat; transition: background-size .3s var(--ease); }
.link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.link:hover { background-size: 100% 88%; }
.link--night { color: var(--signal-night); }
.link--night { background: none; }
.link--night:hover { color: #FFE48A; }

.lookup { margin-top: 40px; max-width: 560px; }
.lookup__types { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 10px; border-radius: 7px; background: var(--paper-2); }
.lookup__types button { height: 32px; padding: 0 14px; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--graphite); transition: background-color .15s, color .15s, box-shadow .15s; }
.lookup__types button:hover { color: var(--ink); }
.lookup__types button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 21, 25, .12), 0 0 0 1px rgba(20, 21, 25, .06); }
.lookup__row { display: flex; align-items: center; gap: 6px; height: 62px; padding: 6px; border-radius: calc(var(--r-btn) + 5px); border: 1px solid rgba(20, 21, 25, .2); background: var(--card); box-shadow: 0 18px 36px -30px rgba(20, 21, 25, .5); }
.lookup__row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 55%, transparent); }
.lookup__row input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 12px; font-size: 17px; outline: none; }
.lookup__row input::placeholder { color: var(--graphite); opacity: 1; }

/* ==========================================================================
   Section header: forensic scale rule + index label
   ========================================================================== */
.section { padding-block: clamp(72px, 8.5vw, 124px); position: relative; }
.section--tint { background: var(--paper-2); }
.section--night { background: var(--night); color: var(--on-night); --tick: rgba(236, 236, 231, .45); --rule: var(--rule-night); }

.sh { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.sh__label { grid-column: 1 / -1; }
.sh__label, .principle .sh__label, .conduct .sh__label { display: flex; align-items: center; gap: 12px; color: inherit; }
.sh__label span { color: var(--on-signal); background: var(--signal); padding: 2px 6px; font-weight: 600; }
.sh__label::after {
  content: ""; flex: 1; height: 9px; margin-left: 6px;
  background:
    linear-gradient(var(--tick), var(--tick)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 8px) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 40px) left bottom / 100% 9px no-repeat;
}
.sh__title { grid-column: 1 / span 7; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 5.2vw, 76px); line-height: .92; letter-spacing: 0; font-weight: 800; text-wrap: balance; word-spacing: .07em; }
.sh__intro { grid-column: 9 / -1; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.sh--stack { display: block; }
.sh--stack .sh__title { margin-top: 28px; }

/* ==========================================================================
   The highlighter: a marker-yellow stroke that sweeps behind key phrases as
   they come into view (assets/js/highlighter.js adds .is-lit). Ragged ends and
   a wetter lower edge, like a real chisel-tip marker; each line gets its own stroke.

   Two ways to draw it, one picture:
   - a mark the script has split into lines (.hl--split): each line's stroke is
     uncovered by two transforms that cancel out (a window slides in while what
     is behind it slides back), so the sweep runs on the compositor and never
     waits for the page. On dark bands the uncovered part carries the phrase in
     ink, so the letters turn exactly as the stroke reaches them.
   - any other mark (written already lit, or with markup inside it): the stroke
     is the mark's own background, grown by background-size.
   ========================================================================== */
mark.hl {
  --hl-y: 62%; --hl-h: 64%;
  --hl-stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M7 13C62 8 160 11 238 7c62-3 122 1 156-2l4 13c-2 12 1 23-4 34-74 3-194 0-274 3-50 2-90-1-120 1L2 44c3-10-1-20 5-31Z' fill='%23FFD02B'/%3E%3Cpath d='M6 45c118 3 258-2 388 1l-1 6c-92 3-242 0-387 4Z' fill='%23E9B200' fill-opacity='.5'/%3E%3Cpath d='M7 13c40-3 80-3 120-4L10 22Z' fill='%23FFE27A' fill-opacity='.6'/%3E%3C/svg%3E");
  --hl-ease: cubic-bezier(.3, .1, .2, 1); --hl-ms: .5s;
  color: inherit; padding: 0 .1em; margin: 0 -.06em;
  background: var(--hl-stroke) 0 var(--hl-y) / 0% var(--hl-h) no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size var(--hl-ms) var(--hl-ease), color .18s linear .16s;
}
mark.hl.is-lit { background-size: 100% var(--hl-h); }
.display mark.hl, .statement mark.hl { --hl-y: 70%; --hl-h: 58%; padding: 0 .06em; }
/* on dark bands the text turns ink, so the stroke covers the whole letter height */
.section--night mark.hl, .section--night .statement mark.hl { --hl-y: 54%; --hl-h: 96%; padding: 0 .08em; }
.section--night mark.hl.is-lit { color: var(--ink); }

/* split into lines by the script: the mark keeps its place in the text, the lines carry the strokes.
   The spans are the script's own: nothing a page says about "a span in here" is meant for them */
mark.hl.hl--split { background-image: none; transition: none; }   /* its letters change with the stroke's own copy, never by fading */
mark.hl.hl--split .hl__ln, mark.hl.hl--split .hl__t { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; opacity: 1; }
mark.hl.hl--split .hl__s, mark.hl.hl--split .hl__i { margin: 0; border: 0; border-radius: 0; box-shadow: none; font: inherit; letter-spacing: inherit; text-transform: inherit; opacity: 1; }
.hl__ln { position: relative; z-index: 0; white-space: nowrap; }
/* the window (.hl__s) and what it uncovers (.hl__i): equal and opposite, so the stroke itself never moves */
mark.hl.hl--split .hl__s { position: absolute; z-index: -1; inset: 0 -.1em; padding: 0; overflow: hidden; background: none; pointer-events: none; transform: translateX(-101%); will-change: transform; }
mark.hl.hl--split .hl__i { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 .1em; background: var(--hl-stroke) 0 var(--hl-y) / 100% var(--hl-h) no-repeat; transform: translateX(101%); will-change: transform; }
mark.hl.is-lit .hl__s, mark.hl.is-lit .hl__i { transform: none; transition: transform var(--hl-ms) var(--hl-ease) calc(var(--ln, 0) * 120ms); }
mark.hl.is-done .hl__s, mark.hl.is-done .hl__i { will-change: auto; }
/* dark bands: until the sweep is done the phrase stays as it was, and the stroke brings its own copy in ink */
.section--night mark.hl.hl--split:not(.is-done), .hl-flip mark.hl.hl--split:not(.is-done), mark.hl.hl-flip.hl--split:not(.is-done) { color: inherit; }
.section--night mark.hl.hl--split:not(.is-done) .hl__s, .hl-flip mark.hl.hl--split:not(.is-done) .hl__s, mark.hl.hl-flip.hl--split:not(.is-done) .hl__s { z-index: 1; }
.section--night mark.hl.hl--split:not(.is-done) .hl__i::after, .hl-flip mark.hl.hl--split:not(.is-done) .hl__i::after, mark.hl.hl-flip.hl--split:not(.is-done) .hl__i::after { content: attr(data-t); color: var(--ink); text-shadow: none; white-space: pre; }
.hl-flip mark.hl { --hl-y: 54%; --hl-h: 96%; padding: 0 .08em; text-shadow: none; }
.hl-flip mark.hl.is-lit { color: var(--ink); }
/* re-laid after a resize: straight to where it was, no second sweep */
mark.hl.hl--still .hl__s, mark.hl.hl--still .hl__i { transition: none !important; }
@media (prefers-reduced-motion: reduce) { mark.hl, mark.hl .hl__s, mark.hl .hl__i { transition: none !important; } }
/* without scripting nothing would light them: they're simply marked */
@media (scripting: none) { mark.hl { background-size: 100% var(--hl-h); } }

/* ==========================================================================
   04 Product: proof of working. One claim per tile (what it is in ink, what it
   does in graphite), a stamped arrow, and a poster of the product: real
   pieces of the app, composed (assets/js/posters.js). The
   screen sits on the card with an ink edge and the stamped shadow, like
   everything else you can touch on the page.
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; padding: 26px 26px 0; overflow: hidden; isolation: isolate;
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 48px -40px rgba(20, 21, 25, .45);
  transition: border-color .25s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; }
.tile:hover { border-color: rgba(20, 21, 25, .4); transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 36px 60px -40px rgba(20, 21, 25, .55); }
.tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.tile__head h3 { max-width: 32ch; font-size: 21px; line-height: 1.32; font-weight: 500; letter-spacing: -.015em; color: var(--graphite); text-wrap: pretty; }
.tile__head h3 b { font-weight: 700; color: var(--ink); }
.tile__go {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 3px 3px 0; border-radius: var(--r-btn);
  background: var(--signal); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); color: var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.tile__go svg { width: 15px; height: 15px; transform: rotate(-45deg); transition: transform .25s var(--ease); }
.tile:hover .tile__go { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.tile:hover .tile__go svg { transform: rotate(-45deg) translateX(2px); }
.tile:active .tile__go { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.tile__pic { position: relative; align-self: end; margin: 0 -2px 0 0; padding: 0 3px 29px 0; }
/* the screen: the live app, an ink edge and a hard shadow */
.screen {
  position: relative; display: block; overflow: hidden; aspect-ratio: var(--ar, 16 / 10); border-radius: 12px; isolation: isolate;
  background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover .screen { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
/* what a demo's piece floats on: plain paper and a faint ruled sheet. It's there before the app
   draws, so a card is never a blank box */
.screen { background: var(--paper-2); }
.screen::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background: linear-gradient(var(--rule-2) 1px, transparent 1px) 0 0 / 100% 22px;
}
/* posters (assets/js/posters.js): one composed picture of the product per card. The artboard is
   drawn at its own size and scaled as a whole; its plates are real pieces of the app */
.screen.is-poster { aspect-ratio: auto !important; }   /* its height comes from the artboard; a set ratio would shrink its width to match */
.pst { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pl { position: absolute; }
.pl__in { transform-origin: 0 0; }
.pl--fade { -webkit-mask-image: linear-gradient(#000 calc(100% - 110px), transparent calc(100% - 14px)); mask-image: linear-gradient(#000 calc(100% - 110px), transparent calc(100% - 14px)); }
/* a window that starts partway into a piece: its top edge dissolves too */
.pl--at { -webkit-mask-image: linear-gradient(transparent 12px, #000 34px, #000 calc(100% - 110px), transparent calc(100% - 14px)); mask-image: linear-gradient(transparent 12px, #000 34px, #000 calc(100% - 110px), transparent calc(100% - 14px)); }
.pst__tag { position: absolute; z-index: 5; display: flex; align-items: center; gap: 9px; margin: 0; white-space: nowrap; }
.pst__tag b { padding: 5px 9px 4px; font: 800 11px/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 2px 2px 0 var(--ink); }
.pst__tag--ai b { background: var(--signal); }
.pst__tag span { font-size: 13px; color: var(--ink-2); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 112px; padding-bottom: clamp(36px, 4vw, 60px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 24px; align-items: center; min-height: min(740px, calc(100svh - 120px)); }
.hero__copy { padding-block: 32px; position: relative; z-index: 2; }
.display { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(60px, 7.2vw, 108px); line-height: .86; letter-spacing: -.005em; font-weight: 850; max-width: 8ch; text-wrap: balance; word-spacing: .07em; }
.lede { margin-top: 30px; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 31em; text-wrap: pretty; }
/* the promises under the box: read as a sentence, not as a label */
.hero__notes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--ink-2); font: 500 14.5px/1.4 var(--f-sans); letter-spacing: 0; text-transform: none; }
.hero__notes li { display: flex; align-items: center; gap: 8px; }
.hero__notes li::before { content: ""; width: 6px; height: 6px; background: var(--signal); box-shadow: 0 0 0 1px var(--ink); }
/* the print is the hero: the stage bleeds to the viewport edge so the smudge can run off it */
.hero__art { position: relative; height: clamp(580px, 50vw, 740px); margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--wrap) - 2 * var(--gutter)) / 2)); }
.art-stage, .art-lens { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-lens { pointer-events: none; }
.art-pins, .art-pops { position: absolute; inset: 0; pointer-events: none; }

/* where the glass locked on: a bracketed box, closing in like the reticle */
.mark-box {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; --c: var(--signal);
  background:
    linear-gradient(var(--c) 0 0) 0 0 / 10px 3px, linear-gradient(var(--c) 0 0) 0 0 / 3px 10px,
    linear-gradient(var(--c) 0 0) 100% 0 / 10px 3px, linear-gradient(var(--c) 0 0) 100% 0 / 3px 10px,
    linear-gradient(var(--c) 0 0) 0 100% / 10px 3px, linear-gradient(var(--c) 0 0) 0 100% / 3px 10px,
    linear-gradient(var(--c) 0 0) 100% 100% / 10px 3px, linear-gradient(var(--c) 0 0) 100% 100% / 3px 10px;
  background-repeat: no-repeat; background-color: color-mix(in srgb, var(--signal) 16%, transparent);
  filter: drop-shadow(0 0 1px rgba(20, 21, 25, .95)) drop-shadow(0 0 .5px rgba(20, 21, 25, .95));
  opacity: 0; transform: scale(1.9); transition: opacity .2s var(--ease), transform .45s cubic-bezier(.2, .8, .2, 1);
}
.mark-box.is-in { opacity: 1; transform: none; }

/* the account a ridge point resolves to: an evidence tag. Paper, an ink edge and a stamped
   shadow (like the buttons). A header strip says where and which find; the face, the handle and
   why it's linked sit in the middle with a filling scale; how sure is a big number with its band
   stamped under it. A dashed leader ties it to its ridge box. Earlier finds fold into a chip. */
@property --p { syntax: "<integer>"; inherits: true; initial-value: 0; }
.acct {
  --tone: #0E9F6E; --tone-ink: #057A55; --p: 0;
  position: absolute; z-index: 1; overflow: hidden; counter-reset: pct var(--p);
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink), 0 30px 50px -26px rgba(20, 21, 25, .6);
  opacity: 0; transform: scale(.35) rotate(-2deg);
  transition: opacity .18s var(--ease), transform .62s cubic-bezier(.26, 1.5, .5, 1), --p 1.15s cubic-bezier(.2, .7, .2, 1) .34s,
    left .55s var(--ease), top .55s var(--ease), width .55s var(--ease), height .55s var(--ease), border-radius .55s var(--ease), box-shadow .55s var(--ease);
}
.acct--mid { --tone: #E8A400; --tone-ink: #9A6200; }
.acct--lo { --tone: #F26B1D; --tone-ink: #B93A0A; }
.acct.is-in { opacity: 1; transform: none; --p: var(--v); }
.acct__pct::before { content: counter(pct); }
.acct__pct::after { content: "%"; font-size: .5em; margin-left: 1px; letter-spacing: 0; vertical-align: .78em; }
/* one sweep of light across the tag as it lands, like a scanner pass */
.acct::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .85) 48%, color-mix(in srgb, var(--signal) 40%, transparent) 52%, transparent 70%);
  transform: translateX(-110%);
}
.acct.is-in::after { transform: translateX(110%); transition: transform .85s cubic-bezier(.4, 0, .2, 1) .12s; }
.acct.is-chip::after { display: none; }
/* a phone's card, once the next is found: it goes (its box stays on the print) */
.acct.is-gone { opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .3s var(--ease), transform .3s var(--ease); }

/* the leader: dashed ink from the ridge box to the card, drawn out from the box */
.acct-lead {
  position: absolute; height: 2px; margin-top: -1px; background: var(--ink); border-radius: 2px; transform-origin: 0 50%;
  box-shadow: 0 0 0 1.5px var(--paper); clip-path: inset(-4px 100% -4px -4px);
  transition: clip-path .28s var(--ease), left .55s var(--ease), top .55s var(--ease), width .55s var(--ease), transform .55s var(--ease), opacity .3s var(--ease);
}
.acct-lead::before { content: ""; position: absolute; left: -3px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1.5px var(--ink); }
.acct-lead.is-in { clip-path: inset(-6px -6px -6px -6px); }

/* full tag: laid out at its own size so folding clips it instead of reflowing it */
.acct__full {
  position: absolute; left: 0; top: 0; width: calc(var(--fw) - 3px); height: calc(var(--fh) - 3px);
  display: grid; grid-template-rows: 28px minmax(0, 1fr); transition: opacity .2s var(--ease);
}
.acct__head {
  display: flex; align-items: center; gap: 7px; padding: 0 5px 0 12px; border-bottom: 1.5px solid var(--ink);
  background: var(--ink); color: var(--on-night);
}
/* what the strip says: "Profile located" in the find's colour, then the platform */
.acct__k { font-family: var(--f-mono); font-size: 9px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--tone) 70%, #fff); white-space: nowrap; }
.acct__k::after { content: "·"; margin-left: 7px; color: var(--on-night-2); }
.acct__site { font-family: var(--f-label); font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.acct__n { margin-left: auto; font-family: var(--f-mono); font-size: 9px; line-height: 1; letter-spacing: .04em; color: var(--on-night-2); }
/* the button: a small stamp, like the tiles' arrows */
.acct__go {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px;
  background: var(--signal); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.acct__go svg { width: 11px; height: 11px; transform: rotate(-45deg); }
.acct__main { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; column-gap: 13px; padding: 0 14px 0 12px; }
.acct__ava { position: relative; width: 56px; height: 56px; }
.acct__pic { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 7px; background: #DADAD5; box-shadow: 0 0 0 1.5px var(--ink); }
.acct__pic img { width: 100%; height: 100%; object-fit: cover; }
.acct__badge {
  position: absolute; right: -7px; bottom: -6px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px;
  background: var(--brand); box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink);
}
.acct__badge svg { width: 12px; height: 12px; fill: var(--glyph, #fff); }
.acct__body { display: grid; gap: 4px; min-width: 0; }
.acct__user {
  font-size: 17.5px; font-weight: 700; line-height: 1.15; letter-spacing: -.012em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  clip-path: inset(0 100% 0 0); transition: clip-path .5s cubic-bezier(.6, 0, .2, 1) .22s;
}
.acct__why {
  font-size: 11.5px; line-height: 1.2; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(3px); transition: opacity .3s var(--ease) .5s, transform .3s var(--ease) .5s;
}
.acct.is-in .acct__user { clip-path: inset(0 0 0 0); }
.acct.is-in .acct__why { opacity: 1; transform: none; }
/* how sure: a ten-step scale filling in its band's colour */
.acct__meter {
  position: relative; height: 7px; margin-top: 3px; overflow: hidden; border-radius: 2px;
  background: rgba(20, 21, 25, .09); box-shadow: inset 0 0 0 1px rgba(20, 21, 25, .1);
}
.acct__meter i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%); background: var(--tone); }
.acct__meter::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--card) calc(10% - 2px) 10%);
}
.acct__score { display: grid; justify-items: end; gap: 4px; }
.acct__score .acct__pct { font-family: var(--f-display); font-size: 40px; font-weight: 850; line-height: .82; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
/* the band, stamped on once the count has run */
.acct__tier {
  padding: 3px 6px 2px; border: 1.5px solid var(--tone-ink); border-radius: 3px; background: color-mix(in srgb, var(--tone) 14%, var(--card));
  font-family: var(--f-label); font-size: 9px; line-height: 1; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tone-ink);
  opacity: 0; transform: scale(1.8) rotate(-12deg);
  transition: opacity .12s var(--ease) 1.3s, transform .38s cubic-bezier(.3, 1.6, .5, 1) 1.3s;
}
.acct.is-in .acct__tier { opacity: 1; transform: rotate(-4deg); }

/* folded: a chip with the face (ringed in its band), the platform and the number */
.acct__chip {
  position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 7px;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.acct__ava--sm { width: 30px; height: 30px; flex: none; }
.acct__ava--sm .acct__pic { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 3.5px var(--tone); }
.acct__ava--sm .acct__badge { width: 15px; height: 15px; right: -6px; bottom: -5px; border-radius: 4px; box-shadow: 0 0 0 1.5px var(--card), 0 0 0 2.5px var(--ink); }
.acct__ava--sm .acct__badge svg { width: 8px; height: 8px; }
.acct__cs { display: grid; gap: 2px; min-width: 0; }
.acct__csite { font-family: var(--f-label); font-size: 8.5px; line-height: 1; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct__chip .acct__pct { font-family: var(--f-display); font-size: 21px; font-weight: 850; line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.acct.is-chip { border-radius: 999px; box-shadow: 2.5px 2.5px 0 var(--ink), 0 14px 24px -16px rgba(20, 21, 25, .5); }
.acct.is-chip .acct__full { opacity: 0; transition-duration: .14s; }
.acct.is-chip .acct__chip { opacity: 1; transition-delay: .22s; }
.art-pops.is-clearing .acct, .art-pins.is-clearing .mark-box { opacity: 0; transform: scale(.94); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.art-pops.is-clearing .acct-lead { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .acct, .acct__user, .acct__why, .acct__tier, .acct-lead { transition: none; }
  .acct::after { display: none; animation: none; }
}
/* phones: the same tag, tightened */
.hero__art.is-narrow .acct { border-radius: 9px; box-shadow: 3px 3px 0 var(--ink), 0 22px 40px -24px rgba(20, 21, 25, .6); }
.hero__art.is-narrow .acct__full { grid-template-rows: 24px minmax(0, 1fr); }
.hero__art.is-narrow .acct__head { gap: 6px; padding-left: 10px; }
.hero__art.is-narrow .acct__site { font-size: 9px; }
.hero__art.is-narrow .acct__k { font-size: 8px; letter-spacing: .03em; }
.hero__art.is-narrow .acct__n { font-size: 8px; }
.hero__art.is-narrow .acct__go { width: 17px; height: 17px; }
.hero__art.is-narrow .acct__main { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 11px; padding: 0 11px 0 10px; }
.hero__art.is-narrow .acct__ava { width: 44px; height: 44px; }
.hero__art.is-narrow .acct__main .acct__badge { width: 19px; height: 19px; right: -6px; bottom: -5px; }
.hero__art.is-narrow .acct__main .acct__badge svg { width: 10px; height: 10px; }
.hero__art.is-narrow .acct__user { font-size: 14.5px; }
.hero__art.is-narrow .acct__why { font-size: 10px; }
.hero__art.is-narrow .acct__meter { height: 6px; }
.hero__art.is-narrow .acct__score .acct__pct { font-size: 32px; }
.hero__art.is-narrow .acct__tier { font-size: 8px; padding: 2px 5px 1px; }
.hero__art.is-narrow .acct__ava--sm { width: 26px; height: 26px; }
.hero__art.is-narrow .acct__chip { gap: 8px; padding: 0 12px 0 6px; }
.hero__art.is-narrow .acct__csite { font-size: 7.5px; }
.hero__art.is-narrow .acct__chip .acct__pct { font-size: 18px; }

/* --------------------------------------------------------------------------
   The hero is a desk: an investigator's, at night, from above, in pixel art
   (assets/img/hero-desk.webp, and hero-desk-tall.webp on phones). The copy
   sits on the dark side of it. A canvas on the art's own pixel grid moves
   the steam, the dust and a glint on the lens (assets/js/hero-desk.js); the
   art itself is left as painted. The bottom edge breaks into the page (.ink-edge).
   -------------------------------------------------------------------------- */
.hero.hero--desk {
  --desk: #0d0905;                       /* the art's own darkest wood: the hero carries it past the picture's edges */
  --art-top: 84px;                       /* the picture starts below the nav, so the laptop's lid isn't under it */
  --peek: 64px;                          /* how much of the page below shows under the hero, so it reads as a page that goes on */
  --foot: 52px;                          /* dark desk under the picture, so its front edge (the smeared print) clears the torn edge */
  /* the picture's width: the full width where the screen is tall enough, else just small enough to leave the peek, but
     never under 86% of the width. It keeps to the right, the lit side, and the dark wood carries on to its left */
  --art-fit: max(86vw, calc((100svh - var(--peek) - var(--art-top) - var(--foot) + 6px) * 1920 / 1088));
  position: relative; isolation: isolate; overflow: hidden; padding: 0;
  min-height: calc(var(--art-top) + min(100vw, var(--art-fit)) * .5667 + var(--foot) - 6px);
  color: var(--on-night); background: var(--desk);
}
.hero__desk {
  position: absolute; z-index: -1; right: 0; top: var(--art-top); width: min(100%, var(--art-fit)); aspect-ratio: 1920 / 1088;
}
/* the picture fades in from the dark at its top edge, and at its left where it stops short of the page's edge. The mask is on the still image alone: the canvas and the
   lamp's glow move over it, and a mask round all three would be redrawn with every frame of theirs */
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 93%, transparent), linear-gradient(90deg, transparent, #000 7%); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 9%, #000 93%, transparent), linear-gradient(90deg, transparent, #000 7%); mask-composite: intersect; }
/* the same desk with its lamp out (tools/make_lamp_off.py): hero-desk.js cuts to it, all the way, for the instants
   the lamp flickers, so it's kept ready to show. It fades in from the top exactly as the picture does, at each width */
.hero__off { position: absolute; inset: 0; opacity: 0; will-change: opacity; pointer-events: none; background: url("../img/hero-desk-off.webp") 0 0 / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 93%, transparent), linear-gradient(90deg, transparent, #000 7%); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 9%, #000 93%, transparent), linear-gradient(90deg, transparent, #000 7%); mask-composite: intersect; }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* a little warmth over the lamp's pool. It's steady, as a lamp is; hero-desk.js puts it out with the lamp when the
   lamp flickers, and takes it past this for the instant the lamp catches again */
.hero__glow {
  position: absolute; left: 62%; top: -8%; width: 46%; aspect-ratio: 1; opacity: .55; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 196, 64, .26), rgba(255, 196, 64, .09) 55%, transparent);
}
/* the dark side, a shade darker still, for the words */
.hero--desk::before { content: ""; position: absolute; z-index: -1; inset: 0 48% 0 0; background: linear-gradient(90deg, rgba(9, 6, 3, .62), rgba(9, 6, 3, 0)); pointer-events: none; }
/* the desk's front edge falls into the dark before it breaks up */
.hero--desk::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgba(13, 9, 5, 0), var(--desk) 70%); pointer-events: none; }
/* the edge itself: the page showing through ink, in clumps and specks (assets/img/ink-edge.png is its mask) */
.ink-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 78px; pointer-events: none; background: var(--paper);
  -webkit-mask: url("../img/ink-edge.png") 0 100% / 960px 78px repeat-x; mask: url("../img/ink-edge.png") 0 100% / 960px 78px repeat-x;
}
.hero--desk .hero__inner { display: block; min-height: 0; padding-top: clamp(128px, 10.6vw, 176px); }
.hero--desk .hero__copy { padding-block: 0; }
.hero__case { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: rgba(243, 239, 228, .7); }
.hero__case span { padding: 4px 7px 3px; color: var(--ink); background: var(--signal); box-shadow: 3px 3px 0 rgba(0, 0, 0, .55); }
.hero--desk .display { max-width: none; font-size: clamp(50px, 5.3vw, 86px); color: #F6F1E4; text-wrap: initial; text-shadow: 0 3px 0 rgba(9, 6, 3, .6); }
.hero--desk .lede { margin-top: 24px; max-width: 29em; text-wrap: wrap; color: rgba(243, 239, 228, .86); text-shadow: 0 1px 0 rgba(9, 6, 3, .8); }
.hero--desk .lookup { margin-top: 30px; max-width: 500px; }
.hero--desk .lookup__row { border: 2px solid #0d0905; border-radius: 0; background: #FBF7EC; box-shadow: 5px 5px 0 rgba(0, 0, 0, .6); color: var(--ink); }
.hero--desk .lookup__row:focus-within { border-color: #0d0905; box-shadow: 5px 5px 0 var(--signal); }
.hero--desk .hero__notes { margin-top: 20px; max-width: 500px; gap: 8px 22px; color: rgba(243, 239, 228, .8); }
.hero--desk .hero__notes li::before { box-shadow: none; }
@media (min-width: 1081px) { .hero--desk .display { white-space: nowrap; } }
@media (min-width: 1921px) {
  .hero.hero--desk { min-height: calc(var(--art-top) + 1082px + var(--foot)); }
  .hero__desk { left: 50%; width: 1920px; margin-left: -960px; }
  /* wider than the picture: it fades out at both sides into the dark wood */
  .hero__img, .hero__off { -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 93%, transparent), linear-gradient(90deg, transparent, #000 7%, #000 94%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 93%, transparent), linear-gradient(90deg, transparent, #000 7%, #000 94%, transparent); }
}
@media (max-width: 1080px) {
  /* the copy above, the desk below it in the flow: the wide picture's lit side, coming up out of the dark under the notes */
  .hero.hero--desk { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  .hero__desk { order: 2; flex: none; position: relative; top: auto; right: auto; width: 128vw; margin: -2vw 0 0 -28vw; }
  .hero__img, .hero__off { -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 94%, transparent); mask-image: linear-gradient(transparent, #000 24%, #000 94%, transparent); }
  .hero__glow { left: 58%; }
  .hero--desk::before { display: none; }
  .hero--desk .hero__inner { padding-top: 112px; }
  .hero--desk .display br { display: none; }
}
@media (max-width: 760px) {
  /* phones get the tall picture: the laptop comes in under the copy */
  .hero__desk { width: 100%; margin: -46vw 0 0; aspect-ratio: 1088 / 1920; }
  .hero__img, .hero__off { -webkit-mask-image: linear-gradient(transparent 22%, #000 40%, #000 95%, transparent); mask-image: linear-gradient(transparent 22%, #000 40%, #000 95%, transparent); }
  .hero__off { background-image: url("../img/hero-desk-tall-off.webp"); }
  .hero__glow { left: 46%; top: 30%; width: 86%; }
  .hero__case { margin-bottom: 16px; }
}

/* ==========================================================================
   Proof band: the numbers, straight under the hero, on a stroke of marker
   yellow with a ragged highlighter edge. The problem sheet is laid over its foot.
   ========================================================================== */
.proof { position: relative; z-index: 1; background: var(--signal); color: var(--ink); padding: 30px 0 72px; margin-top: 16px; }
.proof::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 16px; background: var(--signal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9c18-3 34 2 54-1s38-5 58-2 40 4 62 0 44-3 66 3v7Z'/%3E%3C/svg%3E") left bottom / 240px 16px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9c18-3 34 2 54-1s38-5 58-2 40 4 62 0 44-3 66 3v7Z'/%3E%3C/svg%3E") left bottom / 240px 16px repeat-x;
}
.proof__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof__stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 4px 24px 0; border-left: 1.5px solid rgba(20, 21, 25, .2); }
.proof__stats > div:first-child { border-left: 0; padding-left: 0; }
.proof__stats dd { font-family: var(--f-display); font-size: clamp(48px, 5vw, 72px); line-height: .95; font-weight: 850; letter-spacing: -.005em; }
/* under each number, a small picture of what it counts, in the product's own marks; drawn in as
   the band arrives (main.js adds .is-in), still with reduced motion */
.pviz { position: relative; width: min(calc(100% - 14px), 232px); height: 22px; margin: 4px 0 6px; }
/* 430+ sources: a matrix of them, checked off column by column */
.pviz--grid { background: radial-gradient(circle, rgba(20, 21, 25, .22) 1.5px, transparent 1.9px) 0 0 / 8px 8px; }
.pviz--grid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, var(--ink) 1.8px, transparent 2.2px) 0 0 / 8px 8px; clip-path: inset(0 100% 0 0); }
.proof.is-in .pviz--grid::after { animation: pv-sweep 1.9s steps(29, end) .15s forwards; }
@keyframes pv-sweep { to { clip-path: inset(0 0 0 0); } }
/* 14.2B records: a ruler of them, running past */
.pviz--tick { height: 12px; margin-block: 9px 7px; background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 5px) 0 100% / 100% 7px no-repeat, repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 30px) 0 100% / 100% 12px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); opacity: .8; }
.proof.is-in .pviz--tick { animation: pv-run 9s linear infinite; }
@keyframes pv-run { to { background-position: 30px 100%, 30px 100%; } }
/* 100% of claims cite a capture: the app's ten-step scale, filled */
.pviz--meter { height: 10px; margin-block: 10px 8px; background: repeating-linear-gradient(90deg, rgba(20, 21, 25, .18) 0 calc(10% - 3px), transparent calc(10% - 3px) 10%); }
.pviz--meter::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--ink) 0 calc(10% - 3px), transparent calc(10% - 3px) 10%); clip-path: inset(0 100% 0 0); }
.proof.is-in .pviz--meter::after { animation: pv-sweep 1.2s steps(10, end) .3s forwards; }
/* 0 targets notified: ten rings, none of them lit */
.pviz--quiet { height: 14px; margin-block: 8px 6px; background: radial-gradient(circle, transparent 3.6px, rgba(20, 21, 25, .55) 4px 5.2px, transparent 5.6px) 0 50% / 23.2px 14px repeat-x; }
@media (prefers-reduced-motion: reduce) {
  .pviz--grid::after, .pviz--meter::after { clip-path: none; animation: none !important; }
  .pviz--tick { animation: none !important; }
}
.proof__stats dt { font-size: 15.5px; font-weight: 600; line-height: 1.35; color: rgba(20, 21, 25, .78); max-width: 16em; }

/* ==========================================================================
   01 Problem: a sheet of paper laid over the yellow band, three pains on it
   ========================================================================== */
/* the first section after the yellow proof band is a sheet laid over it: its rounded corners show the yellow behind */
.proof + .section { position: relative; z-index: 2; margin-top: -32px; background: var(--paper); border-radius: 32px 32px 0 0; }
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pains li {
  padding: 26px 26px 30px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 48px -40px rgba(20, 21, 25, .45);
}
.pains__n { display: inline-block; padding: 2px 6px; background: var(--signal); font-weight: 600; }
.pains h3 { margin-top: 20px; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.pains p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ==========================================================================
   03 How it works: three step cards, alternating, each with its proof and a
   clip of that step being done in the app (Arcademy's steps, in the tile style).
   ========================================================================== */
.steps { display: grid; gap: 28px; }
/* a step: its head and body down one side, the app doing it on the other (on a phone: head, the
   app, then the body, so the title and its demo are on screen together) */
.step {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head pic" "body pic"; grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 56px); align-items: start;
  padding: clamp(22px, 2.6vw, 34px); background: var(--card); border: 1px solid var(--rule); border-radius: 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 34px 64px -52px rgba(20, 21, 25, .5);
}
.step--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "pic head" "pic body"; }
.step__head { grid-area: head; align-self: end; padding-top: 8px; }
.step__body { grid-area: body; padding-bottom: 8px; }
/* the stack: each step pins under the nav, a little lower than the one before, and the next slides
   up over it; the one underneath settles back (--tuck, set from the scroll in main.js). A card too
   tall to fit under the nav (a phone) pins by its bottom edge instead, once all of it has been on
   screen (--h, its height, from main.js), so nothing is covered before it's been read */
@media (min-height: 560px) {
  .step { position: sticky; top: min(calc(var(--stack-top, 96px) + var(--i, 0) * 14px), calc(100svh - var(--h, 0px) - 14px + var(--i, 0) * 8px)); transform-origin: 50% 0; transform: scale(calc(1 - var(--tuck, 0) * .045)); }
  .step::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--ink); opacity: calc(var(--tuck, 0) * .06); pointer-events: none; }
}
.step__k { display: flex; align-items: center; gap: 10px; color: var(--graphite); }
.step__k span { display: grid; place-items: center; width: 26px; height: 26px; background: var(--signal); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-size: 12px; font-weight: 700; }
.step h3 { margin-top: 20px; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.1; font-weight: 700; letter-spacing: -.028em; color: var(--graphite); }
.step h3 b { display: block; color: var(--ink); }
.step__body > p:not([class]) { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.step__proof { display: inline-grid; gap: 4px; margin-top: 24px; padding: 12px 20px 14px 16px; border-left: 4px solid var(--signal); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--signal) 22%, transparent); }
.step__proof b { font-family: var(--f-display); font-size: 40px; line-height: 1; font-weight: 850; }
.step__proof span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.step__pic { grid-area: pic; align-self: center; margin: 0; padding: 0 4px 4px 0; }
.steps__end { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.steps__end p { font-size: clamp(20px, 2vw, 25px); font-weight: 700; letter-spacing: -.015em; }
.steps__end .mono { color: var(--graphite); }

/* two ways to search: the sweep alone, or with the AI (the top card of How it works) */
.modes {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "head pic" "opts pic"; grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 56px); align-items: start;
  margin-bottom: 22px; padding: clamp(22px, 2.6vw, 34px); background: var(--card); border: 1px solid var(--rule); border-radius: 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 34px 64px -52px rgba(20, 21, 25, .5); scroll-margin-top: 100px;
}
.modes h3 { margin-top: 20px; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.1; font-weight: 700; letter-spacing: -.028em; color: var(--graphite); }
.modes h3 b { display: block; color: var(--ink); }
.modes__head { grid-area: head; align-self: end; }
.modes__opts { grid-area: opts; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.modes__opt { padding: 18px 18px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; }
.modes__opt--ai { background: color-mix(in srgb, var(--signal) 12%, var(--card)); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.modes__k { display: flex; align-items: center; gap: 8px; color: var(--graphite); }
.modes__k i { padding: 2px 6px; font-style: normal; font-weight: 700; color: var(--signal); background: var(--ink); border-radius: 3px; }
.modes__t { margin-top: 10px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.012em; }
.modes__opt ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.modes__opt li { display: flex; gap: 9px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.modes__opt li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; background: var(--signal); box-shadow: 0 0 0 1px var(--ink); }
.modes__pic { grid-area: pic; align-self: center; justify-self: center; width: 100%; max-width: 380px; margin: 0; padding: 0 4px 4px 0; }
@media (max-width: 980px) {
  .modes { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pic" "opts"; }
  .modes__pic { margin-top: 22px; max-width: 420px; }
  .modes__opts { grid-template-columns: minmax(0, 1fr); }
}

/* coverage: the selectors you can start from */
.sh__intro .sh__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.sh__chips .mono { margin-right: 4px; color: var(--graphite); }
.sh__chips i { padding: 5px 12px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; }

/* ==========================================================================
   02 Principle (night)
   ========================================================================== */
.principle { overflow: hidden; }
.principle__inner { position: relative; z-index: 2; }
.principle__art { position: absolute; z-index: 1; top: 50%; right: max(-40px, calc((100vw - var(--wrap)) / 2 - 160px)); width: min(58vw, 780px); aspect-ratio: 760 / 900; transform: translateY(-46%); }
.principle__art canvas { width: 100%; height: 100%; }
.statement { margin-top: 36px; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(72px, 11vw, 176px); line-height: .84; letter-spacing: -.005em; font-weight: 850; max-width: 9ch; text-wrap: balance; word-spacing: .07em; }
.principle__body { margin-top: clamp(40px, 5vw, 64px); max-width: 30em; font-size: 19px; line-height: 1.6; color: var(--on-night-2); }
.principle__body p + p { margin-top: 1em; }
.principle__body p:last-child { color: var(--on-night); }

/* ==========================================================================
   04 Ten-print card
   ========================================================================== */
.tenprint { background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow-paper); }
.tenprint__head { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.tenprint__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* each box is a slot holding a two-sided card; the slot's rules stay put while the card turns */
.tp { position: relative; display: grid; border-right: 1px solid var(--ink); }
.tp:nth-child(5n) { border-right: 0; }
.tp:nth-child(-n + 5) { border-bottom: 1px solid var(--ink); }
.tp__card { display: grid; }
.tp__face { display: flex; flex-direction: column; padding: 12px 14px 16px; background: var(--card); }
.tp__n { font-weight: 600; }
.tp__print { width: 100%; aspect-ratio: 1 / 1.08; margin: 10px 0 8px; }
.tp__cap { display: flex; justify-content: space-between; gap: 8px; min-height: 16px; margin-bottom: 10px; font-size: 9.5px; color: var(--graphite); }
.tp__desc { margin-top: auto; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }

/* the back: what we have on the family, in a few lines */
.tp__back .tp__n span { color: var(--graphite); white-space: nowrap; }
.tp__more { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 14px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* turning over (assets/js/tenprint.js marks the card live; without it both sides simply stack) */
.tp__back { border-top: 1px dashed var(--rule); }
.tp__flip { display: none; }
.tenprint.is-live .tp { perspective: 1600px; }
.tenprint.is-live .tp__card { transform-style: preserve-3d; transition: transform .8s cubic-bezier(.62, .02, .22, 1); }
.tenprint.is-live .tp__face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tenprint.is-live .tp__back { transform: rotateY(180deg); border-top: 0; }
.tenprint.is-live .tp.is-flipped .tp__card { transform: rotateY(-180deg); }
.tenprint.is-live .tp.is-turning { z-index: 2; }
.tenprint.is-live .tp__flip {
  position: absolute; z-index: 3; top: 7px; right: 9px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: var(--r-btn); background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.tp__flip svg { width: 15px; height: 15px; transition: transform .6s var(--ease); }
.tenprint.is-live .tp__flip:hover { background: var(--signal); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.tenprint.is-live .tp__flip:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.tenprint.is-live .tp__flip[aria-expanded="true"] { background: var(--signal); }
.tp__flip[aria-expanded="true"] svg { transform: scaleX(-1); }
.tenprint.is-live .tp__face > .tp__n { padding-right: 34px; }

/* ==========================================================================
   05 Use: case index
   ========================================================================== */
.index { border-top: 1px solid var(--ink); }
.index__head, .index__row { display: grid; grid-template-columns: 4fr 3fr 5fr; column-gap: 24px; }
.index__head { padding: 12px 0; color: var(--graphite); border-bottom: 1px solid var(--rule); }
.index__row { padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: baseline; transition: background-color .2s; }
.index__row h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
.index__row .mono { color: var(--graphite); text-transform: none; font-size: 12px; }
.index__row p:last-child { color: var(--ink-2); }

/* ==========================================================================
   06 Conduct
   ========================================================================== */
.conduct { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.conduct__lead { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.conduct__lead .sh__label { width: 100%; }
.conduct__lead .sh__title, .conduct__lead .sh__intro { grid-column: auto; }
.rules { grid-column: 7 / -1; border-top: 1px solid var(--ink); align-self: end; }
.rules li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.rules li > span { justify-self: start; align-self: start; margin-top: 4px; padding: 2px 6px; background: var(--signal); color: var(--on-signal); font-weight: 600; }
.rules p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.rules strong { color: var(--ink); font-weight: 650; }

/* ==========================================================================
   07 FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq .sh { grid-column: 1 / span 4; margin: 0; align-self: start; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 6px; text-underline-offset: -2px; text-decoration-skip-ink: none; }
.faq details p { padding: 0 0 26px; max-width: 36em; color: var(--ink-2); }

/* ==========================================================================
   CTA + footer (night)
   ========================================================================== */
.cta__inner { display: flex; flex-direction: column; align-items: flex-start; }
.statement--cta { margin-top: 0; max-width: 10ch; }
.cta__sub { margin-top: 28px; font-size: 20px; color: var(--on-night-2); }
.lookup--night { width: 100%; max-width: 620px; margin-top: 40px; margin-bottom: 28px; }
.lookup--night .lookup__row { background: var(--night-2); border-color: rgba(236, 236, 231, .22); box-shadow: none; }
.lookup--night input { color: var(--on-night); }
.lookup--night input::placeholder { color: var(--on-night-2); }
.lookup--night .lookup__row:focus-within { border-color: var(--signal-night); box-shadow: 0 0 0 4px rgba(255, 216, 77, .25); }

.footer { background: var(--night); color: var(--on-night); padding: 0 0 36px; }
.footer__top { border-top: 1px solid var(--rule-night); padding-top: 64px; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand p { margin-top: 18px; color: var(--on-night-2); max-width: 22em; }
.footer__cols { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer__cols h3 { color: var(--on-night-2); margin-bottom: 14px; }
.footer__cols a { display: block; padding: 5px 0; font-size: 15.5px; opacity: .9; }
.footer__cols a:hover { color: var(--signal-night); opacity: 1; }
/* pages that don't exist yet: named, but not links */
.footer__soon { display: block; padding: 5px 0; font-size: 15.5px; opacity: .45; cursor: default; }
/* pages that don't exist yet: named, but not links */
.footer__soon { display: block; padding: 5px 0; font-size: 15.5px; opacity: .45; cursor: default; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--rule-night); color: var(--on-night-2); }
/* "made with love": a plain heart in the brand's yellow */
.heart { display: inline-block; width: 1.15em; height: 1.05em; margin: 0 .18em; vertical-align: -.18em; }
.heart__f { fill: var(--signal-night); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide, .tile--full { grid-column: 1 / -1; }
  .sh__title { grid-column: 1 / -1; }
  .sh__intro { grid-column: 1 / span 9; }
}
@media (max-width: 900px) {
  .nav__bar { height: 56px; padding-left: 16px; grid-template-columns: 1fr auto; }
  .nav__links, .nav__login { display: none; }
  .nav__cta { height: 42px; padding: 0 16px; font-size: 14.5px; }
  .nav__menu { display: block; }
  .hero { padding-top: 104px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__art { height: 420px; margin-inline: calc(-1 * var(--gutter)); }
  .proof__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .proof__stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .pains { grid-template-columns: 1fr; }
  .step, .step--flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pic" "body"; }
  .step__pic { margin-top: 20px; }
  .steps { --stack-top: 82px; }
  .tenprint__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tenprint__head span:nth-child(2) { display: none; }
  .tp { border-bottom: 1px solid var(--ink); }
  .tp:nth-child(5n) { border-right: 1px solid var(--ink); }
  .tp:nth-child(2n) { border-right: 0; }
  .tp:nth-last-child(-n + 2) { border-bottom: 0; }
  .tp__face { padding: 12px 12px 14px; }
  .tp__more { font-size: 13px; line-height: 1.5; }
  .index__head { display: none; }
  .index__row { grid-template-columns: 1fr; row-gap: 8px; }
  .conduct__lead, .rules, .faq .sh, .faq__list { grid-column: 1 / -1; }
  .rules, .faq__list { margin-top: 48px; }
  .footer__brand, .footer__cols { grid-column: 1 / -1; }
  .footer__cols { margin-top: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .principle__art { width: 120vw; right: -62vw; opacity: .28; }
}
@media (max-width: 640px) {
  /* phones: near edge to edge, a big title with a square arrow, the product inset in its frame */
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-inline: calc(-1 * var(--gutter) + 8px); }
  .tile, .tile--wide, .tile--full { grid-column: auto; padding: 22px 0 0; border-radius: 22px; }
  .tile__head { margin: 0 0 18px; padding: 0 18px 0 22px; gap: 14px; }
  .tile__head h3 { font-size: 22px; line-height: 1.28; letter-spacing: -.02em; max-width: none; }
  .tile__go { width: 44px; height: 44px; }
  .tile__pic, .tile--full .tile__pic { margin: 0; padding: 0 17px 17px 14px; }
  .screen { border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
  /* phones: the same demos as a computer, framed small enough to sit with their title */
  .step__pic .screen, .tile__pic .screen { aspect-ratio: 1 / 1; }
  .modes__pic .screen { aspect-ratio: 4 / 5; }   /* the AI's panel is tall */
  .step h3, .modes h3 { margin-top: 16px; font-size: 26px; }
  .step__body > p:not([class]) { margin-top: 14px; font-size: 15.5px; line-height: 1.55; }
  .step__proof { margin-top: 16px; padding: 10px 16px 11px 14px; }
  .step__proof b { font-size: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sh__intro { grid-column: 1 / -1; font-size: 17px; }
  .lookup__types { display: grid; grid-template-columns: repeat(5, auto); }
  .lookup__types button { padding-inline: 10px; }
  .lookup__row .btn { padding: 0 18px; }
  .nav__cta { height: 40px; padding: 0 14px; gap: 6px; }
  .nav__cta-more { display: none; }
  .brand { gap: 8px; }
  .brand__mark { width: 49px; height: 30px; }
  .brand__word { font-size: 22px; }
  .hero__art { height: 400px; margin-top: 8px; }
  .proof + .section { border-radius: 24px 24px 0 0; margin-top: -26px; }
  .proof__stats > div { padding-inline: 14px 0; }
  .step { padding: 18px; border-radius: 20px; }
  .step__pic { padding: 0 3px 3px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (min-width: 901px) { .nav__sheet { display: none !important; } }


/* reveal on scroll (assets/js/main.js): only once the script has marked the page */
.has-rv .rv { opacity: 0; transform: translateY(12px); transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--rv, 0) * 45ms); }
.has-rv .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .has-rv .rv { opacity: 1; transform: none; transition: none; } }

/* --- field-note covers: a print and its smudge grown from the note's seed, on one of four tones,
   or an image made from a cover template. Shared by the blog, the homepage's latest notes and link previews. */
.cover { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--paper-2); isolation: isolate; }
.cover--paper { background: #F1F1EE; box-shadow: inset 0 0 0 1px var(--rule); }
.cover--night { background: #111215; }
.cover--marker { background: #FFD02B; }
.cover--tangerine { background: #FF9A3D; }
.cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cover__art { animation: cover-in .6s var(--ease) both; }
@keyframes cover-in { from { opacity: 0; transform: scale(1.02); } }
.cover__lbl { position: absolute; z-index: 1; left: 12px; top: 11px; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.cover--night .cover__lbl { color: var(--on-night-2); }
.cover--thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
.cover--img { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* a cover made from the template is a whole 1200 × 630 picture (its title and object are the point): every frame keeps its shape, never a crop of it */
.cover.cover--img { aspect-ratio: 1200 / 630; }
@media (prefers-reduced-motion: reduce) { .cover__art { animation: none; } }

/* the smallest phones: the nav bar's buttons sit closer so nothing runs off the edge */
@media (max-width: 380px) {
  .nav__bar { padding-left: 14px; padding-right: 6px; }
  .nav__actions { gap: 6px; }
  .nav__cta { padding: 0 12px; }
}

/* ------------------------------------------------------------------ phones: shorter, plainer */
@media (max-width: 640px) {
  /* 02 Product: a tile is its claim and its demo, together on one screen */
  #product .tile, #product .tile--wide, #product .tile--full { padding: 20px 0 0; border-radius: 18px; }
  #product .tile__head { margin-bottom: 16px; }
  #product .tile__head h3 { font-size: 19px; }
  /* 03 Coverage: a smaller print per box, so the card isn't five screens tall */
  .tp__print { width: 58%; margin: 4px auto 2px; }
  .tp__face { padding: 10px 10px 12px; }
  /* 06 Pricing: the plans side by side, swiped, the recommended one first in view */
  .home-pricing .plans-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 18px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .home-pricing .plans-grid::-webkit-scrollbar { display: none; }
  .home-pricing .plan { scroll-snap-align: start; }
  .home-pricing .plans-swipe { display: flex; }
}


/* ==========================================================================
   A tile's sheet (assets/js/dsheet.js): what that part of smudges does, in a few lines, and a way in.
   A bottom sheet on a phone (a grab bar, swipe it down), a card in the middle on a computer.
   ========================================================================== */
.tile[data-sheet] { cursor: pointer; }
.dsheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: min(90dvh, 860px); margin: 0; padding: 0; border: 0; background: none; overflow: visible; color: var(--ink); }
.dsheet::backdrop { background: rgba(20, 21, 25, .44); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .32s var(--ease); }
.dsheet.is-open::backdrop { opacity: 1; }
.dsheet__in {
  position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain;
  padding: 30px 24px calc(28px + env(safe-area-inset-bottom)); background: var(--card);
  border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px -30px rgba(20, 21, 25, .5);
  transform: translateY(105%); transition: transform .46s cubic-bezier(.22, 1, .36, 1);
}
.dsheet.is-open .dsheet__in { transform: translateY(var(--drag, 0px)); }
.dsheet.is-dragging .dsheet__in { transition: none; }
.dsheet__grab { position: absolute; top: 0; left: 0; right: 0; height: 30px; touch-action: none; cursor: grab; }
.dsheet__grab::before { content: ""; position: absolute; top: 10px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--rule); }
.dsheet__x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-btn, 10px); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.dsheet__x:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.dsheet__x svg { width: 18px; height: 18px; }
.dsheet__k { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.dsheet__k::before { content: ""; width: 10px; height: 10px; background: var(--signal); box-shadow: 0 0 0 1.5px var(--ink); }
.dsheet__t { margin-top: 14px; padding-right: 56px; font: 850 clamp(34px, 5vw, 46px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; word-spacing: .07em; }
.dsheet__p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.dsheet__act { display: grid; gap: 10px; margin-top: 24px; }
.dsheet__act .btn { justify-content: center; height: 54px; font-size: 16px; }
.dsheet__list { display: grid; gap: 14px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); list-style: none; }
.dsheet__list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.dsheet__list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 4px; background: var(--signal); box-shadow: 0 0 0 1.5px var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23141519' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
}
html.has-dsheet { overflow: hidden; }
@media (min-width: 641px) {
  .dsheet { inset: 0; width: min(600px, calc(100% - 48px)); height: fit-content; max-height: min(86vh, 820px); margin: auto; }
  .dsheet__in { padding: 34px 36px 34px; border-bottom: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); transform: translateY(18px) scale(.98); opacity: 0; transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .24s var(--ease); }
  .dsheet.is-open .dsheet__in { transform: none; opacity: 1; }
  .dsheet__grab { display: none; }
  .dsheet__act { grid-template-columns: auto auto; justify-content: start; }
  .dsheet__act .btn { height: 48px; padding: 0 22px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .dsheet__in, .dsheet::backdrop { transition: none !important; } }
/* the plans swipe sideways on a phone: say so */
.plans-swipe { display: none; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; font-size: 11px; color: var(--graphite); }

/* fingers: everything you tap is at least 44px, without changing how it looks (Apple's and NN/g's
   minimum). The hit area grows past the drawn button; the layout doesn't move */
@media (pointer: coarse) {
  .tp__flip::after { content: ""; position: absolute; inset: -8px; }
  .plan .seats button { width: 44px; height: 44px; }
  .price-ctl .seg2 button { height: 44px; }
  .nav .brand { padding-block: 7px; margin-block: -7px; }
  .link { padding-block: 10px; margin-block: -10px; }
}

/* TikTok's mark wherever a tile draws it (assets/js/brand.js): the white note, its cyan and red offsets */
[data-logo^="tiktok"]:not(.pfc) > svg { filter: drop-shadow(.7px .7px 0 #FE2C55) drop-shadow(-.7px -.7px 0 #25F4EE); }
