/* Hybrid: blueprint (blue, grid, white lines) for the hero, the pinned story and the sign-up; white and ice sections for anything people have to read.
   Colours come from the LinkedIn cover. --bg is a touch deeper than the logo blue (#4a86f2) so white text on it passes 4.5:1.
   Type: a serif for headlines (matches the cover wordmark), a clean sans for everything people read, mono only for short labels. */
:root {
  --blue: #4a86f2;
  --bg: #3871dd;
  --panel: #2858c4;
  --deep: #1c4fc4;
  --navy: #081a40;
  --ice: #eaf2ff;
  --mist: #c9dcff;
  --muted: #33477a;
  --white: #fff;
  --line: rgba(255, 255, 255, .6);
  --faint: rgba(255, 255, 255, .1);
  --amber: #ffd166;
  --ok: #12753f;
  --bad: #b3261e;
  --serif: "Source Serif 4", "Iowan Old Style", Charter, "Palatino Linotype", Georgia, serif;
  --sans: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --g: clamp(20px, 6vw, 96px); /* the page gutter */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font: 1.0625rem/1.65 var(--sans); color: var(--white); overflow-x: clip;
  background-color: var(--bg);
  background-image: linear-gradient(var(--faint) 1px, transparent 1px), linear-gradient(90deg, var(--faint) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-attachment: fixed;
}
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font: 700 1.3rem/1.25 var(--sans); letter-spacing: -.01em; }
p { margin: .9rem 0 0; max-width: 62ch; text-wrap: pretty; }
img { display: block; }
a { color: inherit; }
code { font: .9em var(--mono); background: var(--white); color: var(--deep); padding: 1px 7px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--deep); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 60; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 8px; }
.skip:focus-visible { outline-color: var(--deep); }
.tag { display: inline-block; margin: 0 0 16px; padding: 5px 10px; border-radius: 3px; background: var(--white); color: var(--deep); font: 700 .8125rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.light .tag { background: var(--deep); color: var(--white); }

/* navigation: white bar, grey pills, one blue button. The brand swaps from the logo mark to the word as you scroll (--m, set in main.js). */
.nav { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; padding: 10px clamp(12px, 2vw, 28px);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--mist); color: var(--navy); }
.nav :focus-visible { outline-color: var(--deep); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.6rem/1 var(--serif); letter-spacing: -.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav .brand { display: grid; place-items: center start; width: 112px; height: 42px; }
.nav .brand > * { grid-area: 1 / 1; }
.nav .word { font: 700 1.9rem/1 var(--serif); letter-spacing: -.02em; color: var(--deep); opacity: var(--m, 0); filter: blur(calc((1 - var(--m, 0)) * 6px)); scale: calc(.7 + var(--m, 0) * .3); }
.nav .mark { width: 34px; height: 34px; border-radius: 9px; opacity: calc(1 - var(--m, 0)); scale: calc(1 - var(--m, 0) * .4); rotate: calc(var(--m, 0) * 90deg); }
#links { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: .95rem; font-weight: 500; }
#links a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--navy); transition: background .2s, color .2s; }
#links a:hover, #links a.here { background: var(--ice); }
#links a.nav-cta { background: var(--deep); color: var(--white); font-weight: 700; border-radius: 999px; padding: 9px 20px; margin-left: 8px; }
#links a.nav-cta:hover { background: var(--navy); }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--deep); transform: scaleX(var(--page, 0)); transform-origin: left; }
.nav-join { display: none; }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--mist); border-radius: 10px; background: none; color: var(--navy); cursor: pointer; place-content: center; gap: 6px; }
.menu span:not(.sr) { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* waitlist form */
.join { position: relative; margin-top: 28px; max-width: 560px; }
.join-row { display: flex; gap: 8px; }
.join input[type="email"] { flex: 1; min-width: 0; padding: 16px 18px; border: 0; border-radius: 10px; font: inherit; color: var(--navy); background: var(--white); }
.join input[type="email"][aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--bad); }
.join button { padding: 16px 24px; border: 0; border-radius: 10px; font: 700 1rem/1 var(--sans); color: var(--white); background: var(--navy); cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.join button:hover { background: #0d2a66; transform: translateY(-1px); }
.join button:disabled { opacity: .6; cursor: wait; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 4px 0; font-size: .9375rem; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.consent.missing { color: var(--amber); font-weight: 700; }
.trap { position: absolute; left: -10000px; }
.msg { margin: 14px 0 0; padding: 12px 16px; border-radius: 10px; font-size: .9375rem; font-weight: 600; max-width: none; }
.msg:empty { margin: 0; padding: 0; }
.msg.ok { background: var(--ok); color: var(--white); }
.msg.error { background: var(--bad); color: var(--white); }
.fine { margin-top: 14px; font-size: .9375rem; max-width: 52ch; }

/* hero: the cover artwork, redacted by scroll (--r1..3 are set by main.js) */
.hero { min-height: 100svh; padding: 88px clamp(20px, 6vw, 96px) 32px; display: grid; align-content: center; gap: 12px; }
.hero-copy { max-width: 880px; }
.lead { font-size: 1.25rem; line-height: 1.55; max-width: 52ch; }
.draft { margin: 0; }
.draft svg { display: block; width: 100%; height: auto; overflow: visible; }
.draft .axis { stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; stroke-dasharray: 8 8; fill: none; }
.draft .ln { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; }
.draft .ln.soft { stroke: var(--line); stroke-width: 2; }
.draft .main { stroke-width: 3; }
.draft .dot { fill: var(--white); }
.draft .cap { fill: var(--white); font: 600 15px var(--mono); letter-spacing: .14em; opacity: var(--r3, 0); }
.draft .box { fill: rgba(255, 255, 255, .08); stroke: var(--white); stroke-width: 2; }
.draft .chip text { fill: var(--white); font: 500 18px var(--mono); }
.draft .bar { fill: var(--white); transform-box: fill-box; transform-origin: left; }
.draft .c1 .bar { transform: scaleX(var(--r1, 0)); } .draft .c2 .bar { transform: scaleX(var(--r2, 0)); } .draft .c3 .bar { transform: scaleX(var(--r3, 0)); }
.draft .chip text.lab { fill: var(--deep); font-weight: 700; letter-spacing: .04em; }
.draft .c1 .lab { opacity: clamp(0, calc((var(--r1, 0) - .8) * 5), 1); }
.draft .c2 .lab { opacity: clamp(0, calc((var(--r2, 0) - .8) * 5), 1); }
.draft .c3 .lab { opacity: clamp(0, calc((var(--r3, 0) - .8) * 5), 1); }
.draft .mark { fill: var(--white); font: 700 72px var(--serif); letter-spacing: -.03em; }
.cue { margin: 0 0 6px; font-size: .9375rem; font-weight: 600; opacity: calc(1 - var(--out, 0) * 1.6); }
@media (prefers-reduced-motion: no-preference) {
  .draft .ln { animation: draw 1.6s var(--ease) both; }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

/* light sections: white and ice, navy text */
.light { color: var(--navy); background-color: var(--ice); background-image: repeating-linear-gradient(180deg, var(--mist) 0 6px, transparent 6px 12px), repeating-linear-gradient(180deg, var(--mist) 0 6px, transparent 6px 12px); background-size: 1px 100%; background-repeat: no-repeat; background-position: calc(var(--g) - 16px) 0, calc(100% - var(--g) + 15px) 0; }
.light.white { background-color: var(--white); }
.light p { color: var(--muted); }
.try { background-image: repeating-linear-gradient(180deg, var(--mist) 0 6px, transparent 6px 12px), repeating-linear-gradient(180deg, var(--mist) 0 6px, transparent 6px 12px), linear-gradient(180deg, var(--bg) 0, var(--ice) 120px, var(--white) 100%); background-size: 1px 100%, 1px 100%, 100% 100%; background-position: calc(var(--g) - 16px) 0, calc(100% - var(--g) + 15px) 0, 0 0; }
.try, .features, .privacy, .limits, .pricing, .faq, .finale, .sites { padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 96px); }
.try { padding-top: clamp(130px, 14vw, 220px); }
.head { max-width: 760px; margin-bottom: 44px; }
.head p:not(.tag) { font-size: 1.125rem; }
.note { margin-top: 26px; font-size: .9375rem; }
.rise { opacity: var(--in, 1); translate: 0 calc((1 - var(--in, 1)) * 40px); }

/* redaction pair: the label bar wipes over the raw value as --r goes 0 to 1 */
.rd { display: inline-grid; vertical-align: baseline; --r: 0; --tagbg: var(--white); --tagfg: var(--deep); }
.light .rd { --tagbg: var(--deep); --tagfg: var(--white); }
.rd > * { grid-area: 1 / 1; font-style: normal; font-weight: inherit; }
.rd b { padding: 0 .25em; border-radius: 3px; background: rgba(255, 209, 102, .16); box-shadow: inset 0 -2px 0 var(--amber); }
.light .rd b { background: #fff1c2; color: var(--navy); }
.rd i { display: grid; place-items: center; background: var(--tagbg); color: var(--tagfg); border-radius: 3px; font: 700 .8em var(--mono); letter-spacing: .03em;
  clip-path: inset(0 calc((1 - var(--r)) * 100%) 0 0); }
.rd.back b { background: none; box-shadow: inset 0 -2px 0 var(--white); }

/* story: pinned, scroll-driven, and under the reader's control */
.story { height: 360vh; position: relative; }
.story-pin { position: sticky; top: 0; height: 100svh; padding: 90px clamp(20px, 6vw, 96px) 30px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.steps { position: relative; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; }
.steps::before { background: rgba(255, 255, 255, .3); }
.steps::after { background: var(--white); transform-origin: top; transform: scaleY(var(--p, 0)); }
.steps li { padding-left: 24px; }
.steps strong { display: inline; font: 700 1.2rem/1.3 var(--sans); }
.steps span { display: block; margin-top: 6px; }
.stage { display: grid; gap: 14px; }
.status { margin: 0; justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--deep); font: 700 .875rem/1.2 var(--sans); }
.card { position: relative; padding: 18px 22px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.card header { display: flex; align-items: center; gap: 8px; font: 700 .8125rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.card header img { border-radius: 4px; }
.card p { margin: 12px 0 0; font-size: 1.0625rem; line-height: 2; max-width: none; }
.card.ai, .card.back { will-change: opacity, transform; }
.card.ai { opacity: var(--send, 0); translate: 0 calc((1 - var(--send, 0)) * 24px); }
.card.back { opacity: var(--restore, 0); translate: 0 calc((1 - var(--restore, 0)) * 24px); }
.card em { font: 700 .85em var(--mono); font-style: normal; background: var(--white); color: var(--deep); padding: 1px 7px; border-radius: 3px; }

/* try it */
.bench { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pane { min-width: 0; padding: 24px; border-radius: 24px; background: var(--white); border: 1px solid var(--mist); box-shadow: 0 40px 80px -44px rgba(28, 79, 196, .5); }
.pane label, .pane-title { display: block; margin: 0 0 12px; font-weight: 700; color: var(--navy); }
.pane textarea { width: 100%; min-height: 210px; resize: vertical; border: 0; border-radius: 14px; padding: 16px; font: inherit; line-height: 1.6; color: var(--navy); background: var(--ice); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.chips button { min-height: 44px; padding: 9px 18px; border: 1.5px solid var(--deep); border-radius: 999px; font: 600 .9375rem/1 var(--sans); color: var(--deep); background: none; cursor: pointer; transition: background .2s, color .2s; }
.chips button:hover, .chips button[aria-pressed="true"] { background: var(--deep); color: var(--white); }
.message { margin: 0; max-width: none; padding: 16px 20px; border-radius: 20px 20px 20px 6px; background: var(--ice); color: var(--navy); line-height: 1.65; cursor: default; }
.pane.out { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pane.out .pane-title { color: var(--white); }
#demo-out { display: block; min-height: 150px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
#demo-out mark { background: var(--white); color: var(--deep); font: 700 .85em var(--mono); padding: 1px 7px; border-radius: 3px; }
.pane.out .found { margin: 14px 0 0; font-size: .9375rem; color: rgba(255, 255, 255, .85); max-width: none; }
#demo-items { list-style: none; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .3); display: grid; gap: 6px; font-size: .9375rem; }
#demo-items b { display: inline-block; min-width: 84px; margin-right: 8px; font: 700 .8125rem var(--mono); letter-spacing: .06em; color: var(--amber); }

/* features and plans */
.tile { scroll-snap-align: start; flex: none; width: min(400px, 78vw); padding: 34px; display: flex; flex-direction: column; border-radius: 28px; background: var(--ice); transition: background .25s, translate .25s var(--ease); }
.tile:hover { background: #dde9ff; }
.features { padding-inline: 0; }
.features .head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-inline: clamp(20px, 6vw, 96px); }
.features .head h2 { max-width: 760px; }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(20px, 6vw, 96px); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--deep) var(--ice); padding-block: 6px 18px; }
.rail:focus-visible { outline-offset: -4px; }
.rail.wheeling { scroll-snap-type: none; }
.track { display: flex; gap: 18px; width: max-content; padding-inline: clamp(20px, 6vw, 96px); }
.rail-ctl { display: flex; gap: 10px; flex: none; }
.rail-ctl button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--deep); background: none; color: var(--deep); font: 600 1.25rem/1 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.rail-ctl button:hover:not(:disabled) { background: var(--deep); color: var(--white); }
.rail-ctl button:disabled { opacity: .35; cursor: default; }
.ico { width: 40px; height: 40px; margin-bottom: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.light .ico { color: var(--deep); }
.layer.device .ico, .pane.out .ico { color: var(--white); }
.ico.sm { display: inline-block; width: 22px; height: 22px; margin: 0 10px 0 0; vertical-align: -4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Meta-style chapter dots */
.dots { position: fixed; z-index: 40; right: 18px; top: 50%; translate: 0 -50%; display: grid; gap: 6px; padding: 10px 6px; border-radius: 999px; background: rgba(8, 26, 64, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dots a { position: relative; display: block; width: 22px; height: 22px; }
.dots a::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: inset .25s var(--ease), background .25s; }
.dots a:hover::before, .dots a.here::before { inset: 4px; background: var(--white); }
.dots span { position: absolute; right: 30px; top: 50%; translate: 8px -50%; padding: 5px 10px; border-radius: 6px; background: var(--navy); color: var(--white); font-size: .8125rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s var(--ease); }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; translate: 0 -50%; }

.sites { overflow: hidden; text-align: center; color: var(--white); background: var(--deep); }
.sites h2, .sites p { margin-inline: auto; }
.marquee { margin-bottom: 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-set { display: flex; align-items: center; gap: 44px; padding-right: 44px; font: 600 clamp(1.25rem, 2.4vw, 1.75rem)/1 var(--sans); letter-spacing: -.01em; color: rgba(255, 255, 255, .92); }
.marquee .sep { width: 20px; height: 20px; margin: 0; color: rgba(255, 255, 255, .55); }
.sites:hover .marquee-track, .sites.paused .marquee-track { animation-play-state: paused; }
.sites { position: relative; }
.sites .fine { color: rgba(255, 255, 255, .85); }
.marquee-pause { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.marquee-pause:hover { background: rgba(255, 255, 255, .18); }
.marquee-pause::before { content: ""; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.marquee-pause[aria-pressed="true"]::before { width: 0; height: 0; border-left: 12px solid currentColor; border-right: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; justify-content: center; }
  .marquee-set:last-child { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}


/* privacy: two layers */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.layer { padding: 34px; border-radius: 28px; background: var(--white); border: 1px solid var(--mist); }
.layer.device { background: var(--deep); color: var(--white); border-color: var(--deep); }
.layer.device h3 { color: var(--white); }
.layer ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.layer li { padding: 12px 16px; border-radius: 12px; background: var(--ice); color: var(--navy); }
.layer.device li { background: rgba(255, 255, 255, .16); color: var(--white); }
.never { margin-top: 18px; font-size: .9375rem; color: var(--navy); }

/* what Saddle misses: bars */
.bars { margin: 0; max-width: 820px; display: grid; gap: 26px; }
.gauge dt { font-weight: 650; margin-bottom: 10px; color: var(--navy); }
.gauge dd { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.meter { position: relative; height: 36px; border-radius: 999px; background: var(--white); border: 1px solid var(--mist); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: calc(var(--value, 0) * var(--in, 1) * 100%); border-radius: 999px; background: linear-gradient(90deg, var(--deep), var(--blue)); }
.val { min-width: 7.5em; text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; }
.plan { padding: 36px; border-radius: 30px; background: var(--white); border: 1px solid var(--mist); }
.plan.featured { background: linear-gradient(155deg, var(--deep), #2f6be0); border-color: transparent; color: var(--white); box-shadow: 0 50px 90px -46px rgba(28, 79, 196, .85); }
.plan.featured .ico { stroke: var(--white); }
.plan.featured p, .plan.featured h3 { color: var(--white); }
.price { font: 800 2.6rem/1.1 var(--sans); letter-spacing: -.02em; margin: 8px 0 0; }
.price small { font: 1rem var(--sans); }

/* faq: all answers visible, question left and answer right, hairlines between rows */
.questions { position: relative; max-width: 1040px; border: 1px solid var(--mist); border-radius: 4px; background: var(--white); }
.questions::before, .questions::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--deep); background: var(--white); }
.questions::before { top: -5px; left: -5px; }
.questions::after { bottom: -5px; right: -5px; }
.qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px; padding: 26px 30px; }
.qa + .qa { border-top: 1px dashed var(--mist); }
.qa h3 { font-size: 1.1rem; }
.qa p { margin: 0; }
.qa a { color: var(--deep); font-weight: 600; }

.finale { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 80px); }
.finale h2 { max-width: 12ch; }
.finale-copy { position: relative; z-index: 1; margin-left: auto; width: min(520px, 100%); }
/* the collage: flowing lines draw in, black bars wipe over the code as the section scrolls into view (--d and --b1..5 come from main.js) */
.art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; -webkit-mask-image: linear-gradient(90deg, #000 28%, transparent 60%); mask-image: linear-gradient(90deg, #000 28%, transparent 60%); }
.art path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--d, 1)); }
.art .line { stroke: var(--white); stroke-width: 3.5; }
.art .line.soft { opacity: .65; stroke-width: 2.5; }
.art .peri { stroke: var(--mist); stroke-width: 24; opacity: .5; }
.art .peri.thin { stroke-width: 14; opacity: .35; }
.art .code text { fill: var(--white); font: 500 18px var(--mono); }
.art .bar { fill: var(--navy); transform-box: fill-box; transform-origin: left; }
.art .b1 { transform: scaleX(var(--b1, 1)); } .art .b2 { transform: scaleX(var(--b2, 1)); } .art .b3 { transform: scaleX(var(--b3, 1)); }
.art .b4 { transform: scaleX(var(--b4, 1)); } .art .b5 { transform: scaleX(var(--b5, 1)); }
.art .label text { fill: var(--white); font: 600 26px var(--mono); }
.art .label path, .art .stamp path { stroke: var(--white); stroke-width: 2.5; stroke-dasharray: none; stroke-dashoffset: 0; }
.art .stamp text { fill: none; stroke: var(--white); stroke-width: 1.5; font: 800 40px var(--sans); letter-spacing: .08em; }
.art .stamp path { stroke-width: 3; }

.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: 28px clamp(20px, 6vw, 96px) calc(28px + env(safe-area-inset-bottom)); background: var(--navy); color: var(--white); font-size: .9375rem; }
.foot a { padding: 10px 0; }
.foot .brand { padding: 0; }
.foot p { margin: 0 0 0 auto; font-size: .875rem; }

/* privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 60px 22px 90px; }
.doc h1 { font-size: 2.6rem; margin: 30px 0 10px; }
.doc h2 { font-size: 1.4rem; margin-top: 34px; letter-spacing: -.01em; }

@media (max-width: 960px) {
  .menu { display: grid; }
  #links { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; margin: 0; padding: 12px 16px 18px; background: var(--white); border-bottom: 1px solid var(--mist); display: none; }
  #links.open { display: flex; }
  #links a { text-align: center; }
  #links a.nav-cta { margin: 8px 0 0; }
  .dots { display: none; }
  .nav-join { display: inline-block; margin-left: auto; padding: 10px 18px; border-radius: 999px; background: var(--deep); color: var(--white); font-weight: 700; font-size: .9375rem; text-decoration: none; }
  .menu { margin-left: 8px; }
  #links a { padding: 13px 16px; }
  .stage > .status { grid-row: 1; grid-column: 1; }
  .stage > .card { grid-row: 2; grid-column: 1; } /* the three cards share one slot, so the pinned story fits a phone */
  .qa { grid-template-columns: 1fr; padding: 22px 20px; }
  .story { height: 300vh; }
  .story-pin { grid-template-columns: 1fr; align-content: center; gap: 14px; padding-top: 80px; }
  .story-copy .tag { display: none; }
  .steps { margin-top: 14px; }
    .card { padding: 14px 18px 16px; }
  .card p { font-size: 1rem; line-height: 1.9; }
  .bench, .grid, .plans, .layers { grid-template-columns: 1fr; }
    .foot p { margin-left: 0; }
  .finale-copy { margin-left: 0; }
  .art { opacity: .2; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 700px) {
  .draft { display: none; }
  .steps span { display: none; }
  .art .code, .art .label { display: none; }
  .join-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .story-pin { position: static; height: auto; padding-block: 100px; }
}


/* side annotations, like the margins of a drawing sheet (decoration only, so they are hidden from screen readers) */
[data-sec] { position: relative; }
[data-sec]::before, [data-sec]::after { position: absolute; top: 28px; font: 500 .75rem/1 var(--mono); letter-spacing: .14em; color: rgba(8, 26, 64, .45); writing-mode: vertical-rl; pointer-events: none; }
[data-sec]::before { content: attr(data-sec) / ""; left: 18px; rotate: 180deg; }
[data-sec]::after { content: attr(data-name) / ""; right: 18px; }
.story[data-sec]::before, .story[data-sec]::after { color: rgba(255, 255, 255, .6); }
@media (max-width: 1180px) { [data-sec]::before, [data-sec]::after { display: none; } }

/* short windows (landscape phones, big zoom): the story is not pinned, so nothing can be cut off */
@media (max-height: 700px) {
  .story { height: auto; }
  .story-pin { position: static; height: auto; padding-block: 100px; }
}

/* the guide lines continue through the blue sections too, so they never stop and start between sections */
.hero, .story, .finale, .sites { background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px), repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 12px); background-size: 1px 100%; background-repeat: no-repeat; background-position: calc(var(--g) - 16px) 0, calc(100% - var(--g) + 15px) 0; }

/* the early-version notice: a dark callout, so it stands out on the blue */
.notice { display: flex; gap: 12px; align-items: flex-start; max-width: 560px; margin-top: 22px; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; background: rgba(8, 26, 64, .5); font-size: .9375rem; line-height: 1.5; }
.notice .ico { flex: none; margin: 1px 0 0; }
.notice strong { font-weight: 800; }

/* text highlight follows the background, always from the palette:
   white on a navy or white-on-blue area, deep blue on white. Every pair is at least 7:1 (white/deep 7.1, white/navy 17.0). */
::selection { background: var(--deep); color: var(--white); }
.hero ::selection, .story ::selection, .finale ::selection, .sites ::selection, .foot ::selection,
.pane.out ::selection, .layer.device ::selection, .plan.featured ::selection { background: var(--white); color: var(--deep); }
/* a highlight must not vanish against a chip of its own colour */
.tag::selection, .status::selection, .rd i::selection, .card em::selection, #demo-out mark::selection { background: var(--navy); color: var(--white); }
.join input::selection { background: var(--deep); color: var(--white); }
.nav-cta::selection, .nav-join::selection { background: var(--white); color: var(--deep); }

#main:focus { outline: none; }
