/* Lighthouse landing page, on the app's paper: tokens from the d4 "Quiet inbox" design.
   One accent, ink blue, means "act" or "needs you"; everything else is ink on paper. */
:root {
  --background: #f6f5f1;          /* warm paper */
  --panel: #fefdfb;               /* tiles */
  --sheet: #f7f5ef;               /* the draft sits on its own sheet */
  --border: #e3e0d8;
  --border-strong: #cfcbc1;
  --foreground: #262520;
  --foreground-2: #45433c;
  --muted: #67645b;
  --accent: #303ba1;              /* ink */
  --on-accent: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, var(--panel));
  --accent-tint: color-mix(in srgb, var(--accent) 4%, var(--panel));
  --bad: #b4251d;
  --band: #ecebe5;                /* a step darker than the paper, for the example */

  --radius: 6px;
  --t-s: 13px; --t-m: 15px; --t-r: 17.3px; --t-l: 20px; --t-d: 23.1px; --t-xl: 26.7px; --t-xxl: 35.6px; --t-3: 47.4px; --t-4: 63.2px;  /* 15 × 1.333ⁿ */
  --ui: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --read: "Literata", Georgia, serif;
  --margin: clamp(20px, 5vw, 70px);
  --gutter: 20px;
  --nav: 65px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --paper-white: contrast(1.3) brightness(1.1);   /* set per image in LIGHTS */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--background); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
body { margin: 0; color: var(--foreground); font: 400 var(--t-m)/1.5 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
section[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.grid > * { grid-column: 1 / -1; }
.sub { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
.sub > * { grid-column: 1 / -1; }

/* type: Literata for everything you read, Hanken Grotesk for the interface */
h1, h2, h3 { font-family: var(--read); font-weight: 400; color: var(--foreground); text-wrap: balance; }
h2 { font-size: clamp(30px, 20px + 1.9vw, var(--t-3)); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: var(--t-l); line-height: 1.3; letter-spacing: -0.005em; }
em { font-style: italic; }
p { text-wrap: pretty; }
.fine { font-size: var(--t-s); color: var(--muted); }

/* headings catch the rays: a band of ink, fixed to the screen, clipped to the letters */
.brass {
  --base: var(--foreground);
  --hi: color-mix(in oklab, var(--base), var(--accent) calc(var(--bi, 0) * 100%));
  color: var(--base);
}
.brass.is-beamed {
  color: transparent;
  background-image: conic-gradient(from calc((var(--bt, 0) + 84) * 1deg) at var(--bx, -999px) var(--by, -999px),
    var(--base) 0deg, var(--hi) 4.6deg, var(--hi) 6.4deg, var(--base) 7.4deg, var(--base) 360deg);
  background-attachment: fixed;
  -webkit-background-clip: text; background-clip: text;
}

/* buttons: one filled ink primary, quiet outline and text for the rest */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 45px; padding: 0 20px;
  background: var(--accent); color: var(--on-accent);
  font: 600 var(--t-m)/1 var(--ui); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--accent); border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn--sm { min-height: 35px; padding: 0 14px; }
.btn--quiet { background: var(--panel); color: var(--foreground); border-color: var(--border-strong); font-weight: 500; }
.btn--quiet:hover { background: var(--panel); border-color: var(--muted); }
.btn--text { background: none; border-color: transparent; color: var(--foreground); font-weight: 500; padding: 0 10px; }
.btn--text:hover { background: color-mix(in srgb, var(--foreground) 6%, transparent); }
.link { color: var(--foreground); font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.link:hover { text-decoration-color: currentColor; }

/* nav, present from the first frame; the flame comes to rest in its mark */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav); overflow: hidden; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.nav.is-solid { background: var(--background); border-bottom-color: var(--border); }
.nav__in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.mark { display: inline-flex; align-items: center; gap: 9px; font: 700 17px/1 var(--ui); letter-spacing: -0.01em; color: var(--foreground); text-decoration: none; }
.mark svg { color: var(--accent); flex: none; }
.nav__end { display: flex; align-items: center; gap: 20px; }

/* hero: the engraving's paper melts into the page's */
.hero { position: relative; min-height: max(100svh, 700px); display: flex; align-items: center; overflow: clip; }
.hero__img {
  position: absolute; left: 0; top: var(--img-top, 0px); width: 100%; height: 100%;
  object-fit: cover; object-position: var(--img-pos);
  mix-blend-mode: multiply;
  filter: var(--paper-white);
  --hole-mask: radial-gradient(circle at var(--hx, -9999px) var(--hy, -9999px), rgb(0 0 0 / var(--burst-a, 1)) 0 calc(var(--burst, 0px) * .55), #000 var(--burst, 0px));
  -webkit-mask-image: var(--hole-mask), linear-gradient(to right, transparent 22%, #000 52%), linear-gradient(to top, transparent 4%, #000 26%);
  mask-image: var(--hole-mask), linear-gradient(to right, transparent 22%, #000 52%), linear-gradient(to top, transparent 4%, #000 26%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  user-select: none;
}
.hero__body { position: relative; z-index: 1; width: 100%; padding-block: 130px 100px; }
.kicker { font-size: var(--t-m); font-weight: 500; color: var(--foreground-2); max-width: 36ch; margin-bottom: 25px; }
.hero h1 { font-size: clamp(40px, 18px + 3.2vw, var(--t-4)); line-height: 1.06; letter-spacing: -0.022em; max-width: 11.5em; }
.hero h1 em { display: block; color: var(--foreground-2); }
.lede { margin-top: 30px; max-width: 32em; font: 400 clamp(var(--t-r), 15px + .3vw, var(--t-l))/1.6 var(--read); color: var(--foreground-2); }
.cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px 30px; }
.hero .fine { margin-top: 15px; }
.langs { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--t-s); color: var(--muted); }
.langs__list { display: flex; flex-wrap: wrap; gap: 4px; }
.langs__list span { padding: 4px 6px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--panel); font: 600 11px/1 var(--ui); letter-spacing: .06em; color: var(--foreground-2); }

/* the travelling flame: it lifts off the engraving and shrinks into the nav mark */
.lamp {
  position: fixed; left: 0; top: 0; z-index: 45; pointer-events: none; opacity: 0;
  border-radius: 50%; background-repeat: no-repeat;
  mix-blend-mode: multiply; filter: var(--paper-white);
  -webkit-mask-image: radial-gradient(46% 40% at 50% 42%, #000 55%, transparent);
  mask-image: radial-gradient(46% 40% at 50% 42%, #000 55%, transparent);
  transform-origin: 50% 50%; will-change: transform, opacity;
}

/* sections: one 160 px rhythm */
.sect { position: relative; padding-block: 80px; }

/* the product example: its own band, a step darker than the page, so it reads as one object */
.example { position: relative; z-index: 0; margin-top: 70px; padding-block: 40px 30px; }
.example::before {
  content: ""; position: absolute; z-index: -1; inset-block: 0;
  inset-inline: min(calc(var(--margin) * -1), calc((1440px - 100vw) / 2 - var(--margin)));
  background: var(--band); border-block: 1px solid var(--border);
}
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs button {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--background); color: var(--foreground-2); cursor: pointer;
  font-size: var(--t-m); font-weight: 500; transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.tabs button:hover { border-color: var(--muted); color: var(--foreground); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.show__field { margin-top: 15px; max-width: 60ch; color: var(--foreground-2); }
.show__field b { color: var(--foreground); font-weight: 600; }

/* how it works, at a glance: the sources feed a live flow that ends with a person */
.flow {
  --P: 3.6s;
  margin-top: 70px;
  display: grid; align-items: stretch; min-height: 210px;
  grid-template-columns: 18px minmax(60px, 1.1fr) 3fr minmax(40px, .6fr) 3fr minmax(40px, .6fr) 3.2fr;
}
/* the rays pass behind the diagram, never through it: a soft-edged patch of paper keeps it clear */
.flow { position: relative; z-index: 0; }
.flow::before {
  content: ""; position: absolute; inset: -40px -40px; z-index: -1; background: var(--background);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent), linear-gradient(to bottom, transparent, #000 35px, #000 calc(100% - 35px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent), linear-gradient(to bottom, transparent, #000 35px, #000 calc(100% - 35px), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.flow__src { align-self: center; display: grid; grid-template-rows: repeat(8, 26px); align-items: center; color: var(--muted); }
.flow__src svg { display: block; width: 16px; height: 16px; }
/* each source in its own brand colour (the copies under the scores stay dark grey) */
.flow__src svg[aria-label="X"] { color: #000000; }
.flow__src svg[aria-label="LinkedIn"] { color: #0a66c2; }
.flow__src svg[aria-label="Bluesky"] { color: #1185fe; }
.flow__src svg[aria-label="Reddit"] { color: #ff4500; }
.flow__src svg[aria-label="YouTube"] { color: #ff0000; }
.flow__src svg[aria-label="Instagram"] { color: #e4405f; }
.flow__src svg[aria-label="Hacker News"] { color: #ff6600; }
.flow__src svg[aria-label="The news"] { color: #45433c; }
.flow__fan { position: relative; align-self: stretch; margin: 0 10px; }
.flow__fan svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow__fan line { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fan-v { display: none; }
.flow__steps { display: contents; }
.flow__step { position: relative; margin-block: 15px; padding: 20px 20px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.flow__n { display: flex; align-items: center; gap: 6px; font-size: var(--t-s); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow__step h3 { margin-top: 10px; font-weight: 500; }
.flow__step p { margin-top: 5px; color: var(--foreground-2); }
/* the last step is the person: framed in ink, the destination of the flow */
.flow__step--you { background: var(--accent-tint); border-color: var(--accent); }
.flow__step--you .flow__n { color: var(--accent); }
.flow__step--you p { color: var(--foreground); }
.flow__link { position: relative; align-self: stretch; }
.flow__link::before, .flow__fan::after, .flow__link::after { content: ""; position: absolute; }
.flow__link::before { left: 5px; right: 5px; top: 50%; height: 1px; background: var(--border-strong); }
.flow__link::after, .flow__fan::after { right: 5px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); }
.flow__fan::after { right: -4px; }

/* the dots: ink ones get through, pale ones are filtered out before step 1 */
.flow .d { position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; opacity: 0; pointer-events: none; animation: var(--P) linear infinite; }
.flow .d--pass { background: var(--accent); }
.flow .d--drop { background: var(--muted); }
.flow__fan .d--pass { animation-name: fan-pass-h; }
.flow__fan .d--drop { animation-name: fan-drop-h; }
.flow__link .d { animation-name: link-h; }
@keyframes fan-pass-h {
  0% { left: 0; top: var(--i); opacity: 0; }
  6% { opacity: 1; }
  55% { left: 100%; top: 50%; opacity: 1; }
  58%, 100% { left: 100%; top: 50%; opacity: 0; }
}
@keyframes fan-drop-h {
  0% { left: 0; top: var(--i); opacity: 0; }
  6% { opacity: .75; }
  38% { left: 72%; top: calc(var(--i) + (50% - var(--i)) * .72); opacity: .6; }
  50%, 100% { left: 76%; top: calc(var(--i) + (50% - var(--i)) * .76); opacity: 0; }
}
@keyframes link-h {
  0% { left: 5px; opacity: 0; }
  4% { opacity: 1; }
  30% { left: calc(100% - 8px); opacity: 1; }
  33%, 100% { left: calc(100% - 8px); opacity: 0; }
}
@keyframes fan-pass-v {
  0% { left: var(--i); top: 0; opacity: 0; }
  6% { opacity: 1; }
  55% { left: 50%; top: 100%; opacity: 1; }
  58%, 100% { left: 50%; top: 100%; opacity: 0; }
}
@keyframes fan-drop-v {
  0% { left: var(--i); top: 0; opacity: 0; }
  6% { opacity: .75; }
  38% { left: calc(var(--i) + (50% - var(--i)) * .72); top: 72%; opacity: .6; }
  50%, 100% { left: calc(var(--i) + (50% - var(--i)) * .76); top: 76%; opacity: 0; }
}
@keyframes link-v {
  0% { top: 5px; opacity: 0; }
  4% { opacity: 1; }
  30% { top: calc(100% - 8px); opacity: 1; }
  33%, 100% { top: calc(100% - 8px); opacity: 0; }
}

/* the product stage: the app's ranked list beside the post in focus */
.stage { margin-top: 25px; }
.stage__card { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.stage__note { margin-top: 10px; font-size: var(--t-s); color: var(--foreground-2); }
.feed { display: flex; flex-direction: column; }
.feed, .open { transition: opacity .35s; }
.stage.is-swapping .feed, .stage.is-swapping .open { opacity: .2; transition: none; }
.still .feed, .still .open { transition: none; }
.feed__top { display: flex; justify-content: space-between; padding: 15px 20px 10px 25px; font-size: var(--t-s); color: var(--muted); background: var(--sheet); }
.row { display: grid; grid-template-columns: 45px 10px minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 15px 20px 15px 25px; border-top: 1px solid var(--border); transition: opacity .5s, background-color .5s, box-shadow .5s; }
.row__lead { display: flex; flex-direction: column; align-items: center; gap: 7px; width: fit-content; }
.row__score { font: 300 var(--t-xl)/1 var(--ui); color: var(--foreground); font-variant-numeric: tabular-nums; }
.row__pf { width: 14px; height: 14px; color: var(--foreground-2); }
.row > .dot { margin-top: 6px; }
.row__who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__who span { color: var(--muted); font-weight: 400; font-size: var(--t-s); }
.row__text { margin-top: 2px; color: var(--foreground-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* one post picked out of the field once the rays reach it */
.row.is-open { background: var(--accent-tint); box-shadow: inset 3px 0 0 var(--accent); }
.stage.is-lit .row:not(.is-open) { opacity: .5; }
.legend { margin-top: auto; padding: 15px 20px 15px 25px; border-top: 1px solid var(--border); background: var(--sheet); display: flex; flex-wrap: wrap; gap: 5px 20px; font-size: var(--t-s); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.dot--high { background: var(--accent); }
.dot--rise { background: linear-gradient(90deg, var(--foreground-2) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--foreground-2); }
.dot--fresh { box-shadow: inset 0 0 0 1.5px var(--foreground-2); }
.open { padding: 25px 30px 30px; background: var(--panel); border-left: 1px solid var(--border); }
.who { display: flex; gap: 10px; align-items: center; }
.avatar { flex: none; width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: var(--foreground); color: var(--panel); font: 600 var(--t-s)/1 var(--ui); }
.avatar--pub { border-radius: var(--radius); }
.who__name { font-weight: 600; }
.who__name span { color: var(--muted); font-weight: 400; }
.who__meta { font-size: var(--t-s); color: var(--muted); font-variant-numeric: tabular-nums; }
.post { margin-top: 15px; color: var(--foreground-2); }
.signal { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--t-s); color: var(--muted); }
.signal b { color: var(--foreground); font-weight: 600; }
.draft { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); }
.draft__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; font-weight: 600; }
.pick { display: inline-flex; gap: 20px; font-weight: 500; }
.pick button { padding: 5px 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: var(--muted); }
.pick button:hover { color: var(--foreground); }
.pick button[aria-pressed="true"] { color: var(--foreground); border-bottom-color: var(--foreground); }
/* the draft is the loudest text here */
.draft__text {
  margin-top: 15px; padding: 20px 25px; min-height: 7.6em;
  background: var(--sheet); border: 1px solid var(--border-strong); border-radius: var(--radius);
  font: 400 var(--t-d)/1.5 var(--read); color: var(--foreground);
}
.draft__text.is-composing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--accent); }
.draft__text[contenteditable="true"] { outline: none; border-color: var(--accent); background: var(--panel); }
.chip { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-s); color: var(--foreground-2); }
.chip svg { flex: none; margin-top: 2px; color: var(--muted); }
.draft .chip { margin-top: 10px; }
.tweak { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.tweak button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--panel); color: var(--foreground-2); font: 500 var(--t-s)/1 var(--ui); cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease); }
.tweak button:hover { border-color: var(--muted); color: var(--foreground); }
.tweak button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.tweak svg { color: var(--accent); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* three claims, each with its proof */
.claim { padding-block: 40px; border-top: 1px solid var(--border); align-items: center; row-gap: 20px; }
.claim:last-child { border-bottom: 1px solid var(--border); }
.claim h3 { font-size: clamp(var(--t-l), 16px + 1vw, var(--t-xl)); line-height: 1.2; letter-spacing: -0.01em; }
.claim__text p { margin-top: 10px; max-width: 40ch; color: var(--foreground-2); }
.proof { font-size: var(--t-m); }
.ribbon { position: relative; height: 65px; }
.ribbon__bar { position: absolute; left: 0; right: 0; top: 30px; height: 3px; border-radius: 2px; background: var(--border); }
.ribbon__bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 45%; border-radius: 2px; background: var(--foreground-2); }
.ribbon__now { position: absolute; left: 13.5%; top: 24px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 2px var(--accent); }
.ribbon__tick { position: absolute; top: 45px; font-size: var(--t-s); color: var(--muted); white-space: nowrap; transform: translateX(-50%); }
.ribbon__tick--end { transform: translateX(-100%); }
.ribbon__tick--now { color: var(--accent); font-weight: 600; }
.ribbon__label { position: absolute; top: 0; font-size: var(--t-s); font-weight: 600; }
.ribbon__label--on { left: 0; color: var(--foreground); }
.ribbon__label--off { left: 45%; margin-left: 15px; color: var(--muted); font-weight: 500; }
.edit p { margin: 0; }
.edit__was { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 70%, transparent); }
.edit__now { margin-top: 5px; font: 400 var(--t-r)/1.5 var(--read); }
.edit__learned { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; font-size: var(--t-s); color: var(--muted); }
.edit__learned b { color: var(--foreground); font-weight: 600; }
.edit__learned .undo { color: var(--accent); font-weight: 600; }
.cite p:first-child { font: 400 var(--t-r)/1.5 var(--read); margin-bottom: 10px; }

/* access: the stat line is the headline; the form is the last thing the rays reach */
.access { padding-top: 120px; }
.access h2 { font-size: clamp(30px, 18px + 2.4vw, var(--t-3)); line-height: 1.1; letter-spacing: -0.02em; }
.access h2 em { color: var(--foreground-2); }
.access__intro p { font: 400 var(--t-r)/1.55 var(--read); color: var(--foreground-2); max-width: 30ch; }
.faq { margin-top: 10px; max-width: 46ch; border-top: 1px solid var(--border); }
.faq__h { font: 600 var(--t-m)/1.4 var(--ui); color: var(--muted); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 13px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 20px/1 var(--ui); color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: -3px 0 0; padding-bottom: 15px; color: var(--foreground-2); }
.form { position: relative; display: grid; row-gap: 20px; align-content: start; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 600; }
.field label small { font-size: var(--t-s); color: var(--muted); font-weight: 400; margin-left: 5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 45px; padding: 10px 14px;
  font: 400 var(--t-m)/1.4 var(--ui); color: var(--foreground);
  background-color: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 100px; resize: none; }
.field select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2367645b' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field select:invalid { color: var(--muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.err { font-size: var(--t-s); color: var(--bad); }
.form__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 5px; }
.thanks { font: 400 var(--t-xl)/1.3 var(--read); }
.thanks:focus { outline: none; }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 10px 25px; align-items: center; padding-block: 30px 40px; border-top: 1px solid var(--border); font-size: var(--t-s); color: var(--muted); }
.foot span { font-weight: 700; color: var(--foreground); margin-right: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--foreground); }

/* ?compare only: a quiet switcher between the hero images */
.compare { position: fixed; right: 15px; bottom: 15px; z-index: 60; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--panel); font-size: var(--t-s); }
.compare a { padding: 4px 10px; border-radius: 4px; color: var(--muted); text-decoration: none; }
.compare a:hover { color: var(--foreground); }
.compare a[aria-current] { background: var(--accent); color: var(--on-accent); }

/* desktop: two content edges, column 1 and column 7 */
@media (min-width: 761px) {
  .hero__copy { grid-column: 1 / span 7; }
  .show__h { grid-column: 1 / span 7; }
  .stage__card { display: grid; grid-template-columns: subgrid; }
  .feed { grid-column: 1 / span 6; margin-right: calc(var(--gutter) * -1); }
  .open { grid-column: 7 / span 6; }
  .stage__note { grid-column: 1 / -1; }
  .claim__text { grid-column: 1 / span 5; }
  .proof { grid-column: 7 / span 5; }
  .access h2 { grid-column: 1 / span 10; margin-bottom: 60px; }
  .access__intro { grid-column: 1 / span 5; grid-row: 2; }
  .access__faq { grid-column: 1 / span 5; grid-row: 3; margin-top: 55px; }
  .form, .thanks { grid-column: 7 / span 6; grid-row: 2 / span 2; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .field--wide, .form__go, .form > .err { grid-column: 1 / -1; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .hero__copy { grid-column: 1 / span 7; }
  .draft__text { font-size: var(--t-l); }
  .lede { max-width: 27em; }
  .hero__img {
    -webkit-mask-image: var(--hole-mask), linear-gradient(to right, transparent 36%, #000 58%), linear-gradient(to top, transparent 4%, #000 26%);
    mask-image: var(--hole-mask), linear-gradient(to right, transparent 36%, #000 58%), linear-gradient(to top, transparent 4%, #000 26%);
  }
}

/* below a wide laptop the sources sit in a row above step 1, and the three steps keep their room */
@media (min-width: 761px) and (max-width: 1180px) {
  .flow { grid-template-columns: 3fr 50px 3fr 50px 3fr; grid-template-rows: auto 55px auto; min-height: 0; }
  .flow__src { grid-column: 1; grid-row: 1; grid-template-rows: none; grid-template-columns: repeat(8, 1fr); justify-items: center; }
  .flow__fan { grid-column: 1; grid-row: 2; margin: 5px 0 0; }
  .flow__steps > :nth-child(n) { grid-row: 3; }
  .flow__steps > :nth-child(1) { grid-column: 1; }
  .flow__steps > :nth-child(2) { grid-column: 2; }
  .flow__steps > :nth-child(3) { grid-column: 3; }
  .flow__steps > :nth-child(4) { grid-column: 4; }
  .flow__steps > :nth-child(5) { grid-column: 5; }
  .flow__step { margin-block: 0; }
  .fan-h { display: none; }
  .fan-v { display: inline; }
  .flow__fan::after { right: auto; top: auto; left: 50%; bottom: 1px; margin: 0 0 0 -3.5px; transform: rotate(135deg); }
  .flow .d--pass, .flow .d--drop { top: 0; }
  .flow__fan .d--pass { animation-name: fan-pass-v; }
  .flow__fan .d--drop { animation-name: fan-drop-v; }
  .flow__link .d { top: 50%; }
}

/* phones */
@media (max-width: 760px) {
  :root { --nav: 56px; }
  .mark { font-size: var(--t-m); }
  .hero { display: block; min-height: 0; --ph: min(330px, 85vw); }
  .hero__img {
    width: auto; height: var(--ph); top: 44px; left: 50%; transform: translateX(calc(var(--fx) * -100%));
    object-fit: fill;
    -webkit-mask-image: radial-gradient(calc(var(--ph) * .5) calc(var(--ph) * .56) at calc(var(--fx) * 100%) var(--phy), #000 60%, transparent 100%);
    mask-image: radial-gradient(calc(var(--ph) * .5) calc(var(--ph) * .56) at calc(var(--fx) * 100%) var(--phy), #000 60%, transparent 100%);
  }
  .hero__body { padding-block: calc(var(--ph) + 30px) 60px; }
  .kicker { margin-bottom: 15px; }
  .hero h1 { font-size: clamp(30px, 18px + 4vw, var(--t-xxl)); }
  .lede { margin-top: 20px; font-size: var(--t-r); }
  .cta { margin-top: 30px; gap: 15px 25px; }
  .sect { padding-block: 55px; }
  .example { margin-top: 45px; padding-block: 30px 25px; }
  .tabs { gap: 8px; }
  .tabs button { padding: 0 13px; }

  .flow { margin-top: 40px; grid-template-columns: 1fr; align-items: stretch; min-height: 0; }
  .flow__src { grid-template-rows: none; grid-template-columns: repeat(8, 1fr); justify-items: center; }
  .flow__fan { height: 50px; margin: 5px 0 0; }
  .fan-h { display: none; }
  .fan-v { display: inline; }
  .flow__fan::after, .flow__link::after { right: auto; top: auto; left: 50%; bottom: 1px; margin: 0 0 0 -3.5px; transform: rotate(135deg); }
  .flow__link { height: 40px; }
  .flow__link::before { left: 50%; right: auto; top: 5px; bottom: 5px; width: 1px; height: auto; }
  .flow__step { margin-block: 0; padding: 15px 15px 15px; }
  .flow .d { left: 50%; top: 0; }
  .flow__fan .d--pass { animation-name: fan-pass-v; }
  .flow__fan .d--drop { animation-name: fan-drop-v; }
  .flow__link .d { animation-name: link-v; }

  .stage { margin-top: 30px; }
  .feed__top { padding-inline: 15px; }
  .row { grid-template-columns: 34px 9px minmax(0, 1fr); padding: 10px 15px; }
  .row > .dot { margin-top: 5px; }
  .row__score { font-size: var(--t-l); }
  .row__reach { display: none; }
  .legend { padding: 10px 15px; gap: 5px 15px; }
  .open { padding: 20px 15px; border-left: 0; border-top: 1px solid var(--border); }
  .draft__text { padding: 15px; font-size: var(--t-l); }
  .claim { padding-block: 30px; }
  .access { padding-top: 80px; }
  .access h2 { margin-bottom: 25px; }
  .form { margin-top: 35px; }
  .access__faq { margin-top: 60px; }
  .foot span { width: 100%; }
}

/* the rays: fine ink hairlines from the flame, in the engraving's own idiom */
.beam, .rest { pointer-events: none; }
.beam { display: none; position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.sweep .beam, .still .beam { display: block; }
.still .beam { position: absolute; bottom: auto; }
.beam__cone { position: absolute; left: 0; top: 0; will-change: transform; }
.beam__cone {
  /* rays drawn as hairlines, firm on the leading edge and thinning behind it, fading with distance */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4000 4000'%3E%3Cg stroke='%23303ba1' stroke-width='1.1' stroke-linecap='round' fill='none'%3E%3Cpath d='M2073.1 2002.3L3959.0 2061.6' stroke-opacity='0.80'/%3E%3Cpath d='M2075.3 2000.6L3419.0 2011.5' stroke-opacity='0.53'/%3E%3Cpath d='M2086.7 1999.0L2714.8 1991.9' stroke-opacity='0.44'/%3E%3Cpath d='M2737.0 1991.7L3566.8 1982.3' stroke-opacity='0.44'/%3E%3Cpath d='M2094.2 1996.5L3037.0 1961.4' stroke-opacity='0.39'/%3E%3Cpath d='M2055.5 1996.6L3139.6 1929.8' stroke-opacity='0.32'/%3E%3Cpath d='M2056.0 1995.5L3213.9 1903.2' stroke-opacity='0.23'/%3E%3Cpath d='M2080.2 1991.8L3459.6 1851.1' stroke-opacity='0.25'/%3E%3Cpath d='M2094.2 1988.1L3240.4 1842.8' stroke-opacity='0.16'/%3E%3Cpath d='M2063.4 1990.3L2475.3 1927.0' stroke-opacity='0.14'/%3E%3Cpath d='M2514.0 1921.1L3268.9 1805.2' stroke-opacity='0.14'/%3E%3Cpath d='M2091.9 1983.8L3327.5 1766.7' stroke-opacity='0.14'/%3E%3Cpath d='M2072.5 1986.0L3786.0 1653.9' stroke-opacity='0.14'/%3E%3Cpath d='M2084.2 1981.8L2582.6 1874.0' stroke-opacity='0.14'/%3E%3Cpath d='M2610.3 1868.0L3531.1 1668.8' stroke-opacity='0.14'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 0, #000 22%, rgb(0 0 0 / .55) 50%, transparent 88%);
  mask-image: radial-gradient(closest-side, #000 0, #000 22%, rgb(0 0 0 / .55) 50%, transparent 88%);
}
.nav .beam__cone { display: none; z-index: 0; }
.sweep .nav .beam__cone { display: block; }

/* the resting rays on the form, drawn in place so a still of the whole page shows them */
.rest { position: absolute; inset: 0; z-index: -1; overflow: hidden; display: none; }
.rest .beam__cone { will-change: auto; }
.sweep .rest, .still .rest { display: block; }

/* until the rays have passed, text sits at muted ink */
.sweep [data-lit] { opacity: .38; transition: opacity .35s ease-out; }
.sweep [data-lit].is-lit { opacity: 1; }

@media (max-width: 760px) {
  .beam, .rest, .nav .beam__cone { display: none !important; }
  .flow::before { display: none; }
  .brass.is-beamed { color: var(--base); background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flow .d { display: none; }
}
