/* ==========================================================================
   Mr. 6 Foundation — editorial/dossier design system
   Same accent and display face as before; the layout is what changed.
   ========================================================================== */

:root {
  /* Accent: unchanged from the original palette */
  --red:     #d22630;
  --orange:  #ff7a18;
  --soft:    #fff2ea;

  /* Ground: Vibexit's own values — clean white, warm charcoal darks */
  --ink:     #1a1a1a;
  --ink-2:   #241f1c;
  --paper:   #ffffff;
  --paper-2: #fafafa;
  --muted:   #60646c;
  --muted-d: #a7a29b;
  --line:    #ececf2;
  --line-d:  rgba(255, 245, 238, 0.18);
  --dark:    #1a1613;      /* warm charcoal, as on the original site */
  --dark-2:  #2a231e;

  /* The signature: red into orange. This is the thing that reads as Vibexit. */
  --grad:    linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);

  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body:    Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--red); color: #fff; }

/* Focus — visible, never removed */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 860px; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 14px 20px;
  font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.035em; line-height: 0.95; }

.big     { font-size: clamp(44px, 11vw, 168px); line-height: 0.86; letter-spacing: -0.05em; }
.big-2   { font-size: clamp(34px, 7.2vw, 104px); line-height: 0.9;  letter-spacing: -0.045em; }
.big-3   { font-size: clamp(27px, 4.4vw, 62px);  line-height: 0.98; letter-spacing: -0.035em; }
.big-4   { font-size: clamp(21px, 2.6vw, 34px);  line-height: 1.1;  letter-spacing: -0.02em; }

.lede { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.55; color: var(--ink); max-width: 62ch; }
.small { font-size: 15px; color: var(--muted); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono.lg { font-size: 14px; letter-spacing: 0.2em; }
.accent { color: var(--red); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.on-dark .outline { -webkit-text-stroke-color: var(--paper); }

/* Editorial hairlines */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-dark .rule { background: var(--line-d); }
.rule.thick { height: 3px; background: var(--ink); }
.on-dark .rule.thick { background: var(--paper); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo { display: block; flex: none; text-decoration: none; }
.nav-logo img { height: 42px; width: auto; }
@media (max-width: 640px) { .nav-logo img { height: 34px; } }

/* One control instead of a row of links: a round button carrying the hamburger,
   and a panel that drops out of it. Same on every screen size, so there is no
   second navigation to maintain for mobile. */
.nav-menu { position: relative; flex: none; }

/* A labelled button, in the same idiom as every other button on the site,
   with the hamburger bars sitting to the right of the word. */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  padding: 13px 16px; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.nav-toggle:hover { background: var(--ink); color: var(--paper); }
.nav-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.nav-toggle .bars { display: block; width: 16px; flex: none; }
.nav-toggle i {
  display: block; width: 16px; height: 2px; background: currentColor;
  transition: transform .2s ease, opacity .16s ease;
}
.nav-toggle i + i { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 480px) {
  .nav-toggle { padding: 12px 13px; gap: 9px; font-size: 11px; letter-spacing: .1em; }
}

.nav-panel {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 10;
  min-width: 248px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 26px 60px -28px rgba(26,22,19,.55);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-menu.open .nav-panel { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-toggle, .nav-toggle i { transition: none; }
}

.nav-panel a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 13px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: background .14s, color .14s;
}
.nav-panel a:hover { background: var(--ink); color: var(--paper); }
.nav-panel a.on { color: var(--red); }
.nav-panel a.on::after { content: "●"; font-size: 7px; }
.nav-panel hr { border: 0; height: 1px; background: var(--line); margin: 6px 8px; }
.nav-panel .go { color: var(--red); }
.nav-panel .go:hover { background: var(--red); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 17px 26px; text-decoration: none; border: 2px solid transparent;
  background: var(--grad); color: #fff;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); filter: none; }
.btn.red { background: var(--grad); color: #fff; }
.on-dark .btn { background: var(--grad); border-color: transparent; color: #fff; }
.on-dark .btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.on-dark .btn.ghost:hover { background: var(--paper); color: var(--ink); filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.sec.tight { padding: clamp(48px, 7vw, 96px) 0; }
.on-dark, .sec.dark { background: var(--dark); color: var(--paper); }
.on-dark .lede, .on-dark p, .sec.dark .lede, .sec.dark p { color: rgba(247,244,239,.86); }
.on-dark .small, .sec.dark .small { color: rgba(247,244,239,.66); }
.sec.paper2 { background: var(--soft); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}
.on-dark .eyebrow, .sec.dark .eyebrow { color: var(--muted-d); }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.on-dark .eyebrow::after, .sec.dark .eyebrow::after { background: var(--line-d); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 132px 0 80px; overflow: hidden;
  background:
    radial-gradient(ellipse 100% 80% at 18% -18%, rgba(210, 38, 48, 0.11), transparent 60%),
    radial-gradient(ellipse 80% 60% at 84% 118%, rgba(255, 122, 24, 0.10), transparent 55%),
    var(--paper);
}
.hero.dark { background: var(--dark); color: var(--paper); }
.hero-layer { position: absolute; inset: 0 -5%; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-content { position: relative; z-index: 2; width: 100%; }

/* Oversized ghosted word used as a parallax backdrop */
.ghost-word {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.06em;
  font-size: clamp(160px, 34vw, 620px); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(14,14,15,.09);
  white-space: nowrap;
}
.on-dark .ghost-word, .dark .ghost-word { -webkit-text-stroke-color: rgba(247,244,239,.10); }

/* ---------- Sequence (YOU MISSED IT / SO DID WE / UNTIL NOW) ---------- */
.seq { display: grid; gap: 4px; margin-bottom: clamp(18px, 3vw, 34px); }
.seq span {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 6.4vw, 88px); line-height: 0.95; letter-spacing: -0.045em;
  opacity: 0; transform: translateY(18px);
  animation: seqIn .72s cubic-bezier(.2,.7,.3,1) forwards;
}
.seq span:nth-child(1) { animation-delay: .15s; }
.seq span:nth-child(2) { animation-delay: .95s; color: var(--muted); }
.seq span:nth-child(3) { animation-delay: 1.75s; color: var(--red); }
@keyframes seqIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .seq span { animation: none; opacity: 1; transform: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--grad); color: #fff; padding: 14px 0;
}
.marquee-in { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.marquee span i { color: var(--orange); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-in { animation: none; } }

/* ---------- Redaction / reveal ---------- */
.redact { padding: 0 .12em; border-radius: 1px; }
.js .redact {
  position: relative; display: inline;
  background: var(--ink); color: transparent; cursor: pointer;
  transition: background .5s ease, color .5s ease;
}
.js .on-dark .redact, .js .dark .redact { background: var(--paper); }
.js .redact.open { background: transparent; color: inherit; }
.blurred { transition: filter .6s ease; }
.js .blurred { filter: blur(9px); }
.js .blurred.open { filter: none; }

.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .redact { transition: none; }
}

/* ---------- Dossier file card ---------- */
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .files { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px)  { .files { grid-template-columns: 1fr; } }

.file {
  border: 1px solid var(--line); background: var(--paper);
  padding: 22px; position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.on-dark .file, .dark .file { background: var(--dark-2); border-color: var(--line-d); }
.file:hover { border-color: var(--red); transform: translateY(-3px); }
.file-hd {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.on-dark .file-hd, .dark .file-hd { border-color: var(--line-d); }
.file-no { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--red); }
.file-st { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.file dl { margin: 0; display: grid; grid-template-columns: 88px 1fr; gap: 7px 12px; }
.file dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.file dd { margin: 0; font-size: 15px; }
.file .why { margin-top: 16px; font-size: 15.5px; line-height: 1.5; }
.file .why em { font-style: italic; }

/* Locked / not-yet-revealed slot */
.slot {
  border: 1px dashed var(--line); background: transparent; padding: 26px 22px; position: relative;
}
.on-dark .slot, .dark .slot { border-color: var(--line-d); }
.slot .lock { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.slot h3 { font-size: clamp(19px, 2vw, 26px); margin: 12px 0 14px; }
.slot .clue { font-size: 15.5px; line-height: 1.55; color: var(--muted); font-style: italic; }
.on-dark .slot .clue, .dark .slot .clue { color: var(--muted-d); }
.slot .silhouette {
  width: 56px; height: 56px; border-radius: 50%; background: var(--line);
  margin-bottom: 16px;
}
.on-dark .slot .silhouette, .dark .slot .silhouette { background: rgba(247,244,239,.14); }

/* ---------- Stamp ---------- */
.stamp {
  display: inline-block; border: 2px solid var(--red); color: var(--red);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 12px; transform: rotate(-4deg); font-weight: 600;
}

/* ---------- Countdown ---------- */
.cd { display: flex; flex-wrap: wrap; gap: clamp(12px, 3vw, 34px); }
.cd div { min-width: 74px; }
.cd b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 7vw, 82px); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.cd span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.on-dark .cd span, .dark .cd span { color: var(--muted-d); }

/* ---------- The 100 grid ---------- */
.hundred {
  display: grid; grid-template-columns: repeat(20, 1fr); gap: 6px;
}
@media (max-width: 1200px) { .hundred { grid-template-columns: repeat(10, 1fr); } }
@media (max-width: 560px)  { .hundred { grid-template-columns: repeat(5, 1fr); gap: 5px; } }
.hundred i {
  aspect-ratio: 1; display: grid; place-items: center; font-style: normal;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0;
  border: 1px solid var(--line-d); color: rgba(247,244,239,.34);
  transition: all .18s;
}
.hundred i.live { border-color: transparent; background: var(--grad); color: #fff; font-weight: 600; }
.hundred i.next { border-color: var(--orange); color: var(--orange); }
.hundred i:hover { border-color: var(--paper); color: var(--paper); }

.progress { height: 4px; background: rgba(247,244,239,.16); margin: 26px 0 10px; }
.progress i { display: block; height: 100%; background: var(--grad); width: 1%; }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.04em;
}
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.on-dark .stat span, .dark .stat span { color: var(--muted-d); }

/* ---------- Editorial two-column ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.cols.sidebar { grid-template-columns: 1fr 1.35fr; }
@media (max-width: 900px) { .cols.sidebar { grid-template-columns: 1fr; } }

.prose p { font-size: 17.5px; line-height: 1.72; margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose .drop::first-letter {
  float: left; font-family: var(--display); font-weight: 700; font-size: 4.1em;
  line-height: .82; padding: 4px 12px 0 0; color: var(--red);
}

/* Numbered list of the three things */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }
.on-dark .three, .dark .three { border-color: var(--paper); }
.three > div { padding: 30px 26px 34px; border-right: 1px solid var(--line); }
.on-dark .three > div, .dark .three > div { border-color: var(--line-d); }
.three > div:last-child { border-right: 0; }
@media (max-width: 860px) { .three > div { border-right: 0; border-bottom: 1px solid var(--line); } }
.three .n { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--red); }
.three h3 { font-size: clamp(22px, 2.4vw, 32px); margin: 14px 0 12px; }
.three p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.on-dark .three p, .dark .three p { color: var(--muted-d); }

/* Agenda */
.agenda { border-top: 1px solid var(--line); }
.on-dark .agenda, .dark .agenda { border-color: var(--line-d); }
/* Direct children only. `.agenda div` also matched the inner heading+text block,
   turning it into a second 130px grid — long single-word headings like
   "Conversations" cannot wrap, so they overflowed into the description. */
.agenda > div {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.on-dark .agenda > div, .dark .agenda > div { border-color: var(--line-d); }
@media (max-width: 620px) { .agenda > div { grid-template-columns: 1fr; gap: 5px; } }
.agenda time { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--red); }
.agenda h4 { font-size: clamp(19px, 2vw, 25px); margin-bottom: 5px; }
.agenda p { margin: 0; font-size: 15.5px; color: var(--muted); }
.on-dark .agenda p, .dark .agenda p { color: var(--muted-d); }

/* ---------- Forms ----------
   Proper boxed fields. The old bottom-rule inputs looked elegant and read as
   decoration: people could not tell where to click, and a hint sitting under a
   1px rule ran straight into the next label. */
form.form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(22px, 3.4vw, 36px);
  box-shadow: 0 24px 60px -46px rgba(26,22,19,.6);
}
.on-dark form.form { box-shadow: 0 30px 70px -40px rgba(0,0,0,.6); }
.form { display: grid; gap: 22px; }
/* align-content:start stops the last row (the input) absorbing the extra height
   when a neighbouring field in the same row carries a hint and this one doesn't. */
.field { display: grid; gap: 8px; align-content: start; }
.field > label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink);
}
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 13px 14px; width: 100%;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-d); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--muted-d); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; background: var(--paper); border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent);
}
.field input:invalid:not(:placeholder-shown) { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }

/* Hints used to be 13.5px grey pressed against the field above and the label
   below, which read as one grey smear. Give them room and contrast. */
.field .hint, .form .hint, p.hint {
  font-family: var(--body); font-size: 14px; line-height: 1.6;
  letter-spacing: 0; text-transform: none; color: var(--muted);
  margin: 2px 0 0; max-width: 62ch;
}
.field.big > label { font-size: 12.5px; letter-spacing: .12em; color: var(--red); }
.field.big input, .field.big textarea { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }

.form .btn-row { margin-top: 4px; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .two-up { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px;
  cursor: pointer; color: var(--ink); background: var(--paper-2);
  transition: border-color .14s, color .14s, background .14s;
}
.chips label:hover { border-color: var(--muted-d); background: var(--paper); }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips input:checked + span { color: var(--red); }
.chips label:has(input:checked) { border-color: var(--red); color: var(--red); background: var(--soft); }
.chips label:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }

.note {
  border-left: 3px solid var(--orange); padding: 14px 18px; background: var(--soft);
  font-size: 15px; color: var(--ink-2);
}

/* ---------- Footer ---------- */
.foot { background: var(--dark); color: var(--paper); padding: clamp(56px, 8vw, 110px) 0 40px; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; } }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-d); font-weight: 500; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { font-size: 15px; }
.foot-btm {
  margin-top: clamp(40px, 6vw, 76px); padding-top: 24px; border-top: 1px solid var(--line-d);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d);
}
.foot-logo img { height: 46px; width: auto; }

/* ---------- Closing brand moment ---------- */
.finale { padding: clamp(90px, 16vw, 220px) 0; text-align: left; }
.swap { display: inline-block; position: relative; }
.swap .a, .swap .b { transition: opacity .5s ease, transform .5s ease; display: block; }
.swap .b { position: absolute; inset: 0; opacity: 0; transform: translateY(.18em); color: var(--red); }
.swap.flip .a { opacity: 0; transform: translateY(-.18em); }
.swap.flip .b { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .swap .a, .swap .b { transition: none; } }

/* Utility */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 34px; } .mt-l { margin-top: clamp(40px, 6vw, 80px); }
.mb-m { margin-bottom: 34px; } .mb-l { margin-bottom: clamp(40px, 6vw, 80px); }
.center { text-align: center; }
.hr-thick { height: 4px; background: var(--ink); border: 0; margin: 0; }
.on-dark .hr-thick, .dark .hr-thick { background: var(--paper); }

/* ==========================================================================
   FOUND — article typography
   Matches the Source Serif 4 reading spec from mr6.com's Ghost theme
   (1.4rem / 1.85, 720px measure) so long-form here reads exactly like there.
   Colour stays Foundation red/orange.
   ========================================================================== */

:root { --serif: "Source Serif 4", Georgia, "Times New Roman", serif; }

/* ---------- Listing ---------- */
.found-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.found-item {
  display: grid; grid-template-columns: 1fr 260px; gap: clamp(20px, 4vw, 56px);
  padding: clamp(26px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line);
  align-items: start; text-decoration: none; color: inherit;
}
@media (max-width: 700px) { .found-item { grid-template-columns: 1fr; gap: 18px; } }
.found-item:hover .found-title { color: var(--red); }
.found-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px;
}
.found-meta .no { color: var(--red); }
.found-title {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(24px, 2.9vw, 34px); line-height: 1.2; margin: 0 0 10px;
  transition: color .18s;
}
.found-sub {
  font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--muted);
  margin: 0 0 14px; max-width: 60ch;
}
.found-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.found-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 5px 10px; color: var(--muted);
}
.found-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
@media (max-width: 700px) { .found-thumb { aspect-ratio: 16 / 9; } }

/* ---------- Article ---------- */
.article { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.article-head { text-align: center; padding: 4rem 0 2rem; max-width: 720px; margin: 0 auto; }
.article-meta {
  font-family: var(--body); font-size: 0.85rem; font-weight: 500; color: var(--muted);
  letter-spacing: .03em; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap;
}
.article-meta .dot { width: 4px; height: 4px; background: #9ca3af; border-radius: 50%; display: inline-block; }
.article-meta .no { font-family: var(--mono); color: var(--red); letter-spacing: .14em; }
.article-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.15; letter-spacing: -0.03em;
  color: var(--ink); margin: 0;
}
.article-sub {
  font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--muted);
  line-height: 1.5; margin: 1.25rem 0 0; letter-spacing: -0.005em;
}
.article-hero {
  display: block; width: 100%; height: auto; max-width: 1000px;
  margin: 0 auto 3rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(10, 15, 30, .08);
}

.article-body {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.8;
  color: var(--ink); letter-spacing: -0.003em; max-width: 720px; margin: 0 auto;
}
.article-body p { font: inherit; margin: 0 0 1.35rem; }
.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: -0.02em;
}
.article-body h2 { font-size: 1.5rem;  line-height: 1.25; margin: 2.75rem 0 .75rem; }
.article-body h3 { font-size: 1.25rem; line-height: 1.3;  margin: 2.25rem 0 .6rem; }
.article-body h4 { font-size: 1.1rem;  line-height: 1.35; margin: 2rem 0 .5rem; }
.article-body a {
  color: inherit; text-decoration: underline;
  text-decoration-color: rgba(26, 26, 26, .35); text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.article-body a:hover { text-decoration-color: var(--red); }
.article-body ul, .article-body ol { padding-left: 1.75rem; margin: 0 0 1.35rem; }
.article-body li {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.8;
  letter-spacing: -.003em; margin-bottom: .4rem;
}
.article-body li::marker { color: var(--muted); font-family: var(--serif); font-weight: 400; }
.article-body ol li::marker { font-weight: 600; }
.article-body img { width: 100%; height: auto; border-radius: 8px; margin: 2rem 0; }
.article-body blockquote {
  border-left: 3px solid var(--red); margin: 2.25rem 0 2.25rem -20px;
  padding: .15rem 0 .15rem 1.75rem; font-style: italic;
}
.article-body blockquote p { font-size: 1.2rem; line-height: 1.7; margin-bottom: .5rem; }
.article-body pre {
  font-family: var(--mono); background: var(--dark); color: #e6e0d8;
  border-radius: 8px; padding: 1.5rem 1.75rem; overflow-x: auto;
  margin: 2rem -1rem; font-size: .9rem; line-height: 1.7; letter-spacing: 0; text-transform: none;
}
.article-body code {
  font-family: var(--mono); font-size: .86em; background: var(--soft);
  padding: .12em .4em; border-radius: 4px; letter-spacing: 0; text-transform: none;
}
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.75rem 0; }

/* ---------- Draft bar ----------
   Sits above an unpublished article, for the author and whoever they sent the
   link to. Deliberately unlike the rest of the page: this is scaffolding, and
   it disappears the moment the file is published. */
.draftbar {
  max-width: 720px; margin: 0 auto clamp(26px, 3.5vw, 38px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  border: 1px dashed var(--red); background: var(--soft);
  padding: 14px clamp(16px, 2.4vw, 22px);
}
.draftbar-tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  display: block; margin-bottom: 3px;
}
.draftbar-txt { font-family: var(--body); font-size: 14px; color: var(--muted); }
.draftbar-code {
  margin: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap;
}
.draftbar-code span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.draftbar-code strong {
  font-family: var(--mono); font-size: 22px; font-weight: 600;
  letter-spacing: .22em; color: var(--ink);
}

/* ---------- The file card ----------
   The dossier on the company, sitting between the article header and the first
   paragraph. It carries the same voice as the rest of the site — mono labels,
   one red accent — but at a whisper: hairline rules instead of boxes inside
   boxes, and a single 64px tick of the gradient rather than a full bar. */
.filecard {
  position: relative;
  max-width: 720px;
  margin: 0 auto clamp(34px, 4.5vw, 54px);
  /* Paper laid on paper: a tint too faint to name, and a shadow you only
     notice when it is gone. */
  background: linear-gradient(180deg, #ffffff 0%, #fdfcfb 100%);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.2vw, 34px) clamp(22px, 2.8vw, 30px);
  box-shadow: 0 20px 44px -38px rgba(26, 22, 19, .6);
}
.filecard::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 64px; height: 2px; background: var(--grad);
}

/* Header: label, a hairline that does the spacing, and the file number */
.filecard-top { display: flex; align-items: center; gap: 14px; }
.filecard-kicker, .filecard-no {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted);
}
.filecard-no { color: var(--red); letter-spacing: .16em; }
.filecard-rule { flex: 1 1 auto; height: 1px; background: var(--line); }

.filecard-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2.5vw, 26px); line-height: 1.18; letter-spacing: -.022em;
  color: var(--ink); margin: clamp(14px, 1.8vw, 18px) 0 0; text-wrap: balance;
}

/* Facts, divided by hairlines rather than boxed in */
.filecard-facts {
  /* auto-fit so a lone fact runs the full width instead of sitting in half of it */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0;
  margin-top: clamp(16px, 2.2vw, 22px);
  border-top: 1px solid var(--line);
  padding-top: clamp(14px, 1.8vw, 18px);
}
.filecard-facts > div {
  min-width: 0;
  padding-left: clamp(18px, 2.8vw, 30px);
  border-left: 1px solid var(--line);
}
.filecard-facts > div:first-child { padding-left: 0; border-left: 0; }
.filecard-facts dt {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 6px;
}
.filecard-facts dd {
  margin: 0; font-family: var(--body); font-size: 15.5px; line-height: 1.45; color: var(--ink);
}

/* The one sentence the whole file exists for */
.filecard-why {
  margin: clamp(16px, 2.2vw, 22px) 0 0;
  border-top: 1px solid var(--line);
  padding-top: clamp(14px, 1.8vw, 18px);
}
.filecard-why figcaption {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.filecard-why blockquote {
  position: relative; margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(16.5px, 2vw, 19px); line-height: 1.55;
  letter-spacing: -.004em; color: var(--ink); text-wrap: pretty;
}
.filecard-why blockquote::before {
  content: "\201C"; position: absolute; left: -.8em; top: 0; color: var(--red);
}
.filecard-why blockquote::after { content: "\201D"; color: var(--red); margin-left: .18em; }

.filecard-link {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: clamp(16px, 2.2vw, 22px);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: color .18s ease, border-color .18s ease;
}
.filecard-link svg { flex: none; transition: transform .18s ease; }
.filecard-link:hover { color: var(--red); border-bottom-color: var(--red); }
.filecard-link:hover svg { transform: translate(2px, -2px); }

@media (max-width: 560px) {
  .filecard-facts { grid-template-columns: 1fr; }
  .filecard-facts > div { padding-left: 0; border-left: 0; }
  .filecard-facts > div + div {
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  }
}

.article-foot { max-width: 720px; margin: clamp(40px, 6vw, 80px) auto 0; padding-bottom: clamp(56px, 8vw, 110px); }

/* ---------- Article mobile pass ----------
   The same breakpoints and the same numbers mr6.com's Ghost theme uses, so a
   write-up reads identically on both sites. 1.4rem is a desktop measure; on a
   narrow screen it turns into four words a line, which is why the body drops
   to 1.15rem/1.75 here rather than scaling fluidly. */
@media (max-width: 640px) {
  .article { padding-left: 14px; padding-right: 14px; }
  .article-head { padding: 2.5rem 0 1.25rem; }
  .article-meta { gap: .5rem; margin-bottom: 1rem; font-size: .8rem; }
  .article-hero { border-radius: 10px; margin-bottom: 2rem; }
  .article-sub { font-size: 1.15rem; line-height: 1.55; margin-top: 1rem; }
  .article-body { font-size: 1.15rem; line-height: 1.75; }
  .article-body p,
  .article-body li { font-size: 1.15rem; line-height: 1.75; }
  .article-body h2 { font-size: 1.4rem;  margin-top: 2rem; }
  .article-body h3 { font-size: 1.2rem;  margin-top: 1.75rem; }
  .article-body h4 { font-size: 1.05rem; margin-top: 1.5rem; }
  .article-body pre { padding: 1rem; font-size: .82rem; border-radius: 6px; margin-left: -.5rem; margin-right: -.5rem; }
  .article-body blockquote { margin-left: 0; padding-left: 1rem; }
  .article-body blockquote p { font-size: 1.1rem; }
  .article-body img { margin: 1.5rem 0; }
}

@media (max-width: 420px) {
  .article { padding-left: 10px; padding-right: 10px; }
  .article-title { font-size: 28px; }
}

/* ---------- Editor highlights ----------
   Three tints, all light enough that black body text keeps its AA contrast. */
.article-body mark, mark.hl {
  padding: .06em .18em; border-radius: 2px; color: inherit;
  background: #FFF3B0;                       /* 1 — highlighter yellow */
}
.article-body mark.hl-2, mark.hl-2 { background: #FFE0CC; }   /* 2 — warm peach */
.article-body mark.hl-3, mark.hl-3 { background: #FFD6DC; }   /* 3 — soft crimson */

/* ---------- Inline subscribe block (end of article) ---------- */
.subscribe-block {
  max-width: 720px; margin: clamp(44px, 6vw, 76px) auto 0;
  border: 1px solid var(--line); border-top: 3px solid var(--red);
  background: var(--soft); padding: clamp(26px, 4vw, 40px);
}
.subscribe-block h3 {
  font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15; margin: 0 0 10px;
}
.subscribe-block p { font-family: var(--body); font-size: 16px; color: var(--muted); margin: 0 0 20px; max-width: 52ch; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input[type=email] {
  flex: 1 1 260px; min-width: 0; font-family: var(--body); font-size: 16px;
  padding: 15px 16px; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0;
}
.subscribe-form input[type=email]:focus { outline: 0; border-color: var(--red); }
.subscribe-form button { flex: none; }
.subscribe-note { font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin: 14px 0 0; }
.subscribe-done { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--red); margin: 0; }

/* ---------- Subscribe lightbox ----------
   A real modal: the veil dims the page but is not a dismiss target, so a stray
   click outside can't lose the dialog. The way out is the ×, the explicit
   "no thanks", Escape, or an email. */
.lb { position: fixed; inset: 0; z-index: 2000; display: none; }
.lb.open { display: block; }
.lb-veil {
  position: absolute; inset: 0; cursor: default;
  background: rgba(14, 12, 10, .62); backdrop-filter: blur(3px);
}
.lb.closing { animation: lbFade .26s ease both; }
@keyframes lbFade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lb.closing { animation: none; } }
.lb-box {
  position: relative; z-index: 1; width: min(560px, calc(100% - 32px));
  margin: min(16vh, 140px) auto 0; background: var(--paper);
  border-top: 5px solid var(--red); box-shadow: 0 30px 80px rgba(0,0,0,.35);
  padding: clamp(28px, 4.5vw, 46px); max-height: 82vh; overflow-y: auto;
}
.lb.open .lb-box { animation: lbIn .34s cubic-bezier(.2,.8,.3,1) both; }
@keyframes lbIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lb.open .lb-box { animation: none; } }
.lb-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.lb-box h2 { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); line-height: 1.08; margin: 0 0 12px; }
.lb-box p { font-family: var(--body); font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.lb-close {
  position: absolute; top: 10px; right: 10px; width: 42px; height: 42px;
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
  font-size: 24px; line-height: 1; border-radius: 50%;
}
.lb-close:hover { background: var(--line); }
.lb-later {
  display: inline-block; margin-top: 16px; background: none; border: 0; padding: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.lb-later:hover { color: var(--ink); }
/* Ribbon fireworks canvas — drawn over everything, inert to the pointer,
   removed by the script once the last streamer has fallen off screen. */
.fx-ribbons {
  position: fixed; inset: 0; z-index: 3000;
  width: 100%; height: 100%;
  pointer-events: none;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Founder review ───────────────────────────────────────────────────────
   The single thing a founder is here to do. It is loud on purpose: a warm
   panel, a gradient rail, two large choices, and a bar that keeps asking if
   the modal gets dismissed. Only ever shown to someone holding the code. */
.fbox {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--soft) 0%, #fff 58%);
  border: 1px solid rgba(210,38,48,.20);
  border-radius: 16px;
  padding: clamp(26px, 3.6vw, 40px) clamp(22px, 3.2vw, 40px);
  margin: 3rem 0 0;
  box-shadow: 0 18px 50px -28px rgba(26,22,19,.45);
}
.fbox-rail { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--grad); }
.fbox-head { margin-bottom: 24px; }
.fbox-badge {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: #fff; background: var(--ink);
  padding: 6px 11px; border-radius: 999px; margin-bottom: 16px;
}
.fbox-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.05;
  letter-spacing: -.015em; margin: 0 0 12px; color: var(--ink);
}
.fbox-sub {
  font-family: var(--body); font-size: 16.5px; line-height: 1.6;
  color: var(--muted); margin: 0; max-width: 54ch;
}
.fbox-sub strong { color: var(--ink); font-weight: 600; }
.fbox-sub em { font-style: normal; color: var(--red); font-weight: 500; }

.fbox-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .fbox-choices { grid-template-columns: 1fr; } }
.fbox-choice { display: block; cursor: pointer; }
.fbox-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.fbox-choice-in {
  position: relative; display: block; height: 100%;
  padding: 22px 22px 22px 64px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 13px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.fbox-choice:hover .fbox-choice-in {
  border-color: var(--ink); transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(26,22,19,.55);
}
.fbox-ico {
  position: absolute; left: 20px; top: 21px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--muted-d); background: var(--paper-2);
  transition: background .16s, border-color .16s, color .16s;
}
.fbox-choice-t {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 19px; line-height: 1.2; color: var(--ink);
}
.fbox-choice-s {
  display: block; font-family: var(--body); font-size: 14px;
  color: var(--muted); margin-top: 4px;
}
.fbox-choice input:checked + .fbox-choice-in { border-color: var(--red); background: #fff; }
.fbox-choice--yes  input:checked + .fbox-choice-in .fbox-ico { background: #12692f; border-color: #12692f; color: #fff; }
.fbox-choice--edit input:checked + .fbox-choice-in .fbox-ico { background: var(--red); border-color: var(--red); color: #fff; }
.fbox-choice input:focus-visible + .fbox-choice-in { outline: 3px solid var(--red); outline-offset: 3px; }

.fbox-more { margin-top: 20px; animation: fbIn .26s ease both; }
@keyframes fbIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fbox-more { animation: none; } }
.fbox-more textarea, .fbox-who input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 15px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 11px;
}
.fbox-more textarea { resize: vertical; min-height: 116px; }
.fbox-more textarea:focus, .fbox-who input:focus { outline: 0; border-color: var(--red); }
.fbox-who { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.fbox-who input { flex: 1 1 200px; width: auto; }
.fbox-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.fbox-send { font-size: 15px; padding: 15px 26px; }
.fbox-note {
  font-family: var(--body); font-size: 13px; line-height: 1.5;
  color: var(--muted); max-width: 40ch;
}
.fbox-err { font-family: var(--body); font-size: 15px; color: var(--red); margin: 14px 0 0; font-weight: 500; }

.fbox.is-done { background: linear-gradient(168deg, #edf8f1 0%, #fff 58%); border-color: rgba(18,105,47,.24); }
.fbox.is-done .fbox-rail { background: #12692f; }
.fbox-seal {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: #12692f; color: #fff; margin-bottom: 16px;
}
.fbox-done h3 { font-family: var(--display); font-size: clamp(24px, 3.2vw, 31px); margin: 0 0 8px; letter-spacing: -.01em; }

/* In the modal the panel supplies the frame, so the box drops its own. */
.fb-lb-box { max-width: 660px; padding: 0; overflow: hidden; }
.fb-lb-box .fbox { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.fb-lb-box .lb-close { top: 14px; right: 14px; z-index: 2; }
.fb-lb-box .lb-later { display: block; width: 100%; padding: 16px; border-top: 1px solid var(--line); }

/* The bar that keeps asking after the modal is dismissed. */
.fbbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink); color: #fff;
  box-shadow: 0 -12px 40px -24px rgba(0,0,0,.8);
  animation: fbbarUp .3s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes fbbarUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fbbar { animation: none; } }
.fbbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gut);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.fbbar-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none;
  box-shadow: 0 0 0 0 rgba(210,38,48,.75); animation: fbPulse 2.1s infinite;
}
@keyframes fbPulse {
  70%  { box-shadow: 0 0 0 11px rgba(210,38,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(210,38,48,0); }
}
@media (prefers-reduced-motion: reduce) { .fbbar-dot { animation: none; } }
.fbbar-t {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  margin: 0; flex: 1 1 auto; color: #fff;
}
.fbbar-go { flex: none; }
@media (max-width: 560px) {
  .fbbar-t { font-size: 14.5px; flex-basis: 100%; }
  .fbbar-go { width: 100%; text-align: center; }
}
