/* Curveball Creative Studio. Foundation, components, shared sections.
   Grotesk states. Serif turns. Mono annotates. */

/* ---------- tokens ---------- */
:root {
  /* neutrals (deep blue-black family, harmonised with the logo's navy) */
  --ink: #0D1024;
  --charcoal: #1A1E36;
  --graphite: #383D5C;
  --mist: #D8D7E0;
  --warm: #EFECE7;
  --cream: #F5EFE6;
  --paper: #FFFFFF;
  --page: #F3F0EA;          /* the site's "white": warm, never pure */
  --wash-violet: #ECE8FB;
  --wash-cyan: #E5F4F8;
  --muted: #4F5266;
  --navy: #171C4A;

  /* signatures */
  --magenta: #FF2D95;
  --violet: #7A3BFF;
  --coral: #FF6A3D;
  --orange: #FF8A00;
  --electric: #2452FF;
  --cyan: #00D1FF;
  --lime: #C6FF3D;
  --turquoise: #16E0B4;
  --yellow: #FFD60A;
  --red: #C8102E;
  --signal: var(--coral);

  /* type */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, "Segoe UI", sans-serif;
  --font-aside: "Newsreader", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --display-xl: clamp(56px, 9.5vw, 152px);
  --display-l: clamp(40px, 6vw, 96px);
  --h2: clamp(32px, 4vw, 64px);
  --h3: 28px;
  --body-l: 20px;
  --body: 17px;
  --small: 15px;
  --mono: 12px;

  /* motion */
  --settle: cubic-bezier(0.2, 0.8, 0.2, 1);
  --snap: cubic-bezier(0.7, 0, 0.2, 1);
  --beat: 700ms;
  --micro: 140ms;
  --hover: 200ms;
  --reveal: 550ms;

  /* layout */
  --max: 1440px;
  --margin: clamp(20px, 5.5vw, 80px);
  --gutter: 24px;
  --nav-h: 56px;
  --radius-card: 16px;
  --radius-input: 8px;
  --radius-chip: 6px;

  /* environment defaults (paper) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--muted);
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --ring: var(--electric);
  --shadow-1: 0 1px 2px rgba(13, 16, 36, 0.06), 0 8px 24px rgba(13, 16, 36, 0.08);
  --shadow-2: 0 2px 4px rgba(13, 16, 36, 0.08), 0 24px 48px rgba(13, 16, 36, 0.16);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0; overflow-x: clip; overflow-anchor: none; /* Chrome: no scroll anchoring against pin spacers, no sideways scrollbar */
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* paper grain over everything: a fixed, non-blended noise layer, cheap to composite */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  border-radius: 999px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* ---------- environments ---------- */
.env-ink, .env-paper, .env-cream, .env-magenta, .env-electric, .env-lime, .env-violet, .env-wash-violet, .env-wash-cyan {
  background: var(--bg); color: var(--fg);
}
.env-wash-violet { --bg: var(--wash-violet); --fg: var(--ink); --fg-2: var(--muted); }
.env-wash-cyan { --bg: var(--wash-cyan); --fg: var(--ink); --fg-2: var(--muted); }
.env-ink {
  --bg: var(--ink); --fg: var(--paper); --fg-2: var(--mist);
  --rule: color-mix(in srgb, var(--paper) 14%, transparent);
  --ring: var(--electric);
}
.env-paper { --bg: var(--page); --fg: var(--ink); --fg-2: var(--muted); }
.env-cream { --bg: var(--cream); --fg: var(--ink); --fg-2: var(--muted); }
.env-magenta { --bg: var(--magenta); --fg: var(--ink); --fg-2: var(--ink); --rule: rgba(13,16,36,.2); --ring: var(--ink); }
.env-electric { --bg: var(--electric); --fg: var(--paper); --fg-2: var(--paper); --rule: rgba(255,255,255,.25); --ring: var(--paper); }
.env-lime { --bg: var(--lime); --fg: var(--ink); --fg-2: var(--ink); --rule: rgba(13,16,36,.2); --ring: var(--ink); }
.env-violet { --bg: var(--violet); --fg: var(--paper); --fg-2: var(--paper); --rule: rgba(255,255,255,.25); --ring: var(--paper); }

/* ---------- layout ---------- */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.section { padding-block: clamp(96px, 12vw, 176px); }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.beat { height: clamp(96px, 14vw, 240px); }
.col-1-6 { grid-column: 1 / 7; }
.col-1-5 { grid-column: 1 / 6; }
.col-1-7 { grid-column: 1 / 8; }
.col-7-13 { grid-column: 7 / 13; }
.col-8-13 { grid-column: 8 / 13; }
.col-6-13 { grid-column: 6 / 13; }
.col-span { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .col-1-6, .col-1-5, .col-1-7, .col-7-13, .col-8-13, .col-6-13 { grid-column: 1 / -1; }
}

/* ---------- type ---------- */
.display-xl, .display-l, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.display-xl { font-size: var(--display-xl); line-height: 0.92; letter-spacing: -0.035em; }
.display-l { font-size: var(--display-l); line-height: 0.95; letter-spacing: -0.03em; }
.h2 { font-size: var(--h2); line-height: 1.02; letter-spacing: -0.02em; font-weight: 700; }
.h3 { font-size: var(--h3); line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
.body-l { font-size: var(--body-l); line-height: 1.5; }
.small { font-size: var(--small); }
.measure { max-width: 52ch; }
.measure-s { max-width: 38ch; }
.sub { color: var(--fg-2); }

/* the swerve */
.turn {
  font-family: var(--font-aside);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  line-height: 1.35;
  letter-spacing: 0;
}
.display-xl .turn, .display-l .turn, .h2 .turn { font-size: 0.92em; font-weight: 400; letter-spacing: -0.01em; }

/* annotations */
.fig, .tag, .mono {
  font-family: var(--font-mono);
  font-size: var(--mono);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fig { color: var(--fg-2); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  white-space: nowrap;
}
.tag--solid { background: var(--fg); color: var(--bg); border-color: transparent; }
.footnote { margin-top: 24px; }
.footnote .turn { font-size: 1.05em; color: var(--fg-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--hover) var(--settle), color var(--hover) var(--settle), box-shadow var(--hover) var(--settle), transform var(--micro) var(--settle);
}
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: #FF7F59; box-shadow: inset 0 0 0 1px rgba(13,16,36,.35); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--charcoal); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--warm); box-shadow: inset 0 0 0 1px rgba(13,16,36,.25); }
.btn--ghost { background: transparent; color: currentColor; border-color: color-mix(in srgb, currentColor 45%, transparent); }
.btn--ghost:hover { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-block; position: relative; text-decoration: none; font-weight: 500;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--hover) var(--settle);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link--arrow::before { content: ""; }
.link--arrow span { margin-left: 6px; display: inline-block; transition: transform var(--hover) var(--settle); }
.link--arrow:hover span { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg, var(--paper));
  color: var(--nav-fg, var(--ink));
  transition: background-color 240ms var(--settle), color 240ms var(--settle);
}
.nav__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__word {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96; line-height: 1;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-weight: 500; font-size: 15px; text-decoration: none; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
.nav__cta { min-height: 44px; padding-inline: 20px; font-size: 15px; }
.nav--on-dark .nav__cta { background: var(--signal); color: var(--ink); }
.nav--on-light .nav__cta { background: var(--ink); color: var(--paper); }
.nav--on-light .nav__cta:hover { background: var(--charcoal); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__util { font-weight: 500; font-size: 15px; text-decoration: none; opacity: 0.82; }
.nav__util:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.35em; }
.nav__util[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 0.35em; }
.nav__menu { display: none; }
.btn[data-cta-count] { gap: .28em; }
.nav__cta .count { display: none; }
.nav__cta[data-count]:not([data-count="0"]) .count { display: inline; }
/* The picker count rides along as a badge, so the label stays "Start a Project". */
.btn[data-cta-count] .count { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 0.3em; border-radius: 999px; background: color-mix(in srgb, currentColor 16%, transparent); font-size: 0.8em; font-weight: 600; line-height: 1; }
.btn[data-cta-count] .count:empty { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta.nav__cta--top { display: none; }
  .nav__util { display: none; }
  .nav__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); font-weight: 500; }
  .nav__sheet { display: none; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49; background: var(--ink); color: var(--paper); padding: 24px var(--margin) 32px; }
  .nav__sheet[data-open="true"] { display: block; }
  .nav__sheet a { display: block; padding: 14px 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
    padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink); color: var(--paper);
    display: flex; justify-content: center;
  }
  .bottom-bar .btn { width: 100%; max-width: 480px; }
  body:has(.bottom-bar) { padding-bottom: 76px; }
}
@media (min-width: 901px) { .bottom-bar, .nav__sheet { display: none !important; } }

/* ---------- footer ---------- */
.footer { padding: 96px 0 40px; }
.footer__top { font-size: var(--body-l); max-width: 40ch; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--gutter); margin-top: 56px; }
.footer__grid .footer__h { font-family: var(--font-mono); font-size: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 14px; }
.footer__grid a { display: block; text-decoration: none; padding: 4px 0; }
.footer__grid a:hover { text-decoration: underline; }
.footer__late { margin-top: 48px; min-height: 1.6em; color: var(--fg-2); opacity: 0; transition: opacity 600ms var(--settle); }
.footer__late.is-in { opacity: 1; }
.footer__bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: var(--small); color: var(--fg-2); }
.footer__word {
  margin-top: 40px; overflow: hidden; height: 0.62em;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(56px, 18vw, 280px); line-height: 1; color: var(--paper); opacity: .12;
  font-variation-settings: "opsz" 96; user-select: none;
}
.footer__word::before { content: "Curveball"; }
.motion-toggle { display: inline-flex; gap: 8px; align-items: center; }
.motion-toggle button { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards & ui fragments ---------- */
.card { background: var(--paper); color: var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-1); }
.lift { position: relative; transition: transform 320ms cubic-bezier(.2,.9,.3,1.3); }
.lift::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-2); opacity: 0; transition: opacity var(--hover) var(--settle); pointer-events: none; }
.lift:hover { transform: translateY(-6px); }
.lift:hover::after { opacity: 1; }

.ui { font-family: var(--font-body); font-size: 13px; line-height: 1.3; color: var(--ink); background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-1); }
.ui__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.ui__title { font-weight: 600; }
.ui__row { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.ui__row:last-child { border-bottom: 0; }
.ui__cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui__muted { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--radius-chip); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.chip--ok { background: color-mix(in srgb, var(--turquoise) 28%, white); color: #0A5A47; }
.chip--wait { background: color-mix(in srgb, var(--yellow) 40%, white); color: #5A4A00; }
.chip--new { background: color-mix(in srgb, var(--electric) 16%, white); color: #12308F; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; }
.ui__tabs { display: flex; gap: 4px; padding: 8px 8px 0; }
.ui__tab { padding: 8px 12px; border-radius: 8px 8px 0 0; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.ui__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ui__tab:hover { color: var(--ink); }
.ui__filter { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.ui__filter button { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule); font-size: 12px; }
.ui__filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ui__empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.ui__empty .turn { color: var(--ink); }

.sticky-note {
  width: 112px; padding: 12px 12px 16px; background: var(--yellow); color: var(--ink);
  font-family: var(--font-aside); font-style: italic; font-size: 15px; line-height: 1.25;
  box-shadow: 0 6px 14px rgba(13,16,36,.18); border-radius: 2px;
}

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; }
.field input, .field textarea, .field select {
  min-height: 48px; padding: 12px 14px; border-radius: var(--radius-input);
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--electric); outline-offset: 2px; }
.field .help { color: var(--muted); font-size: var(--small); }
.field .error { color: var(--red); font-size: var(--small); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }

.choice { display: grid; gap: 10px; }
.choice label {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  cursor: pointer; transition: border-color var(--hover), background-color var(--hover);
}
.choice label:hover { border-color: var(--ink); }
.choice input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.choice label:has(input:checked) { background: var(--warm); border-color: var(--ink); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--electric); outline-offset: 2px; }

/* ---------- checkbox rows (Index of Annoyances) ---------- */
.index { display: grid; gap: 2px; }
.index__row {
  display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 0;
  cursor: pointer; border-bottom: 1px solid var(--rule);
}
/* the box is a drawn square; ticking it makes a small pencil scribble the check */
.index__box { flex: 0 0 auto; width: 28px; height: 28px; position: relative; }
.index__svg { width: 28px; height: 28px; display: block; overflow: visible; }
.index__svg .ib { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.index__svg .ck { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset 320ms var(--snap) 200ms; }
.index__row:has(input:checked) .ck { stroke-dashoffset: 0; }
.pencil { position: absolute; width: 26px; height: 26px; left: 10px; top: -12px; opacity: 0; pointer-events: none; }
.pencil__body { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.pencil__tip { fill: var(--ink); }
.index__row:has(input:checked) .pencil { animation: scribble 640ms var(--settle) both; }
@keyframes scribble {
  0% { opacity: 0; transform: translate(-16px, 14px) rotate(-8deg); }
  18% { opacity: 1; }
  55% { transform: translate(-2px, 6px) rotate(0deg); }
  100% { opacity: 0; transform: translate(12px, -12px) rotate(6deg); }
}
.index__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.index__row:has(input:focus-visible) .index__box { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 6px; }

/* the checklist lives on a clipboard */
.clipboard { position: relative; background: var(--ink); border-radius: 18px; padding: 34px 14px 14px; box-shadow: var(--shadow-2); }
.clipboard__clip { position: absolute; left: 50%; top: -14px; translate: -50% 0; width: 124px; height: 36px; background: var(--graphite); border-radius: 10px 10px 6px 6px; box-shadow: inset 0 -3px 0 rgba(255,255,255,.14); }
.clipboard__clip::after { content: ""; position: absolute; left: 50%; top: 9px; translate: -50% 0; width: 36px; height: 10px; border-radius: 5px; background: var(--ink); }
.clipboard__paper { background: var(--paper); border-radius: 6px; padding: 20px 24px 22px; }
.clipboard__head { margin-bottom: 6px; }
.index__text { font-size: var(--body-l); font-weight: 500; }
.index__leader { flex: 1; height: 0; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 35%, transparent); transform: translateY(-.15em); min-width: 24px; }
.index__page { font-family: var(--font-mono); font-size: var(--mono); letter-spacing: .08em; text-transform: uppercase; min-width: 9ch; text-align: right; color: transparent; transition: color var(--hover); }
.index__row:has(input:checked) .index__page { color: var(--cap, var(--ink)); }
.index__row:hover .index__page { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.index__row:has(input:checked):hover .index__page { color: var(--cap, var(--ink)); }
.index__row[data-cap="web"] { --cap: var(--magenta); }
.index__row[data-cap="work"] { --cap: var(--electric); }
.index__row[data-cap="all"] { --cap: var(--ink); }
@media (max-width: 900px) { .index__row { flex-wrap: wrap; row-gap: 4px; } .index__text { font-size: var(--body); flex: 1 1 0; } .index__leader { display: none; } .index__page { display: none; flex-basis: 100%; min-width: 0; padding-left: 44px; text-align: left; } .index__row:has(input:checked) .index__page { display: block; } }

/* ---------- details (FAQ) ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .peek { display: block; margin-top: 6px; font-family: var(--font-body); font-weight: 500; font-size: var(--small); color: var(--electric); opacity: 0; transition: opacity var(--hover); }
.faq details:hover summary .peek, .faq details:focus-within summary .peek { opacity: 1; }
.faq details[open] summary .peek { opacity: 0; }
.faq summary .chev { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; transition: transform var(--hover) var(--settle); flex: 0 0 auto; margin-top: 2px; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; max-width: 46ch; color: var(--fg); }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq summary { font-size: 20px; }
  .faq summary .peek { opacity: 1; }
}

/* ---------- misc components ---------- */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.stamp {
  display: inline-block; padding: 6px 10px; border: 2px solid currentColor; border-radius: 4px;
  font-family: var(--font-mono); font-size: var(--mono); letter-spacing: .1em; text-transform: uppercase;
  transform: rotate(-3deg);
}
.stamp--red { color: var(--red); }
.redact { position: relative; display: inline-block; }
.redact__bar { position: absolute; inset: -2px -4px; background: var(--ink); transition: transform 320ms var(--snap); transform-origin: right; }
.redact:hover .redact__bar, .redact:focus-within .redact__bar, .redact.is-open .redact__bar { transform: scaleX(0); }
.redact__text { text-decoration: line-through; }
.redact button { position: absolute; inset: 0; width: 100%; height: 100%; }

/* dotted dimension lines */
.dim { position: absolute; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: currentColor; opacity: .85; white-space: nowrap; }
.dim::before { content: ""; position: absolute; top: 50%; width: var(--len, 40px); border-top: 1px dashed currentColor; }
.dim--l::before { right: 100%; margin-right: 6px; }
.dim--r::before { left: 100%; margin-left: 6px; }

/* ---------- reveals (single-shot, from the logical direction) ---------- */
.reveal { opacity: 0; transform: translateX(var(--from-x, 0)) translateY(var(--from-y, 0)); transition: opacity var(--reveal) var(--settle), transform var(--reveal) var(--settle); transition-delay: var(--delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left { --from-x: -12px; }
.reveal--right { --from-x: 12px; }
.reveal--wipe { clip-path: inset(0 100% 0 0); opacity: 1; transform: none; transition: clip-path 700ms var(--settle); transition-delay: var(--delay, 0ms); }
.reveal--wipe.is-in { clip-path: inset(0 0 0 0); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal--wipe { opacity: 1; transform: none; clip-path: none; }
  .lift:hover { transform: none; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
html.reduce-motion .reveal, html.reduce-motion .reveal--wipe { opacity: 1; transform: none; clip-path: none; }

/* ---------- utilities ---------- */
.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; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; } .mt-8 { margin-top: 64px; } .mt-12 { margin-top: 96px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--stack, 16px); }
.hide-mobile { display: initial; } .show-mobile { display: none; }
@media (max-width: 900px) { .hide-mobile { display: none !important; } .show-mobile { display: initial; } }
.btn:disabled { opacity: .65; cursor: progress; }
