/* ============================================================================
   Salk Institute — Culture & Climate Survey
   "A Drawing for the Court"

   The page is an architect's drawing sheet of warm travertine resting on a
   field of board-formed concrete — Kahn's actual materials used as canvas, not
   decoration. Boldness is spent in ONE place: the Water Axis, the plaza's
   west-running channel, which is also the progress meter. Everything else stays
   quiet: graphite ink on stone, three voices (serif institution, sans reader,
   mono building).
   ============================================================================ */

/* ---- Design tokens -------------------------------------------------------- */
:root {
  --concrete:   #CBC8BF;  /* page field: the drafting table (daylight, not shadow) */
  --travertine: #ECE6DA;  /* reading plane: the sheet */
  --ink:        #23272C;  /* all type, linework */
  --slate:      #3A566E;  /* structure & interaction */
  --gold:       #E4A94B;  /* signature accent — fill & glow ONLY, never text */
  --teak:       #8C8A80;  /* muted linework, tertiary annotation */
  --gold-wash:  #F0D9A8;  /* progressive-warming tint */

  --sheet-line: color-mix(in oklab, var(--teak) 55%, transparent);
  --slate-soft: color-mix(in oklab, var(--slate) 12%, transparent);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --mod: 8px;                 /* the drafting module */
  --measure: 68ch;
  --sheet-max: 1160px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --progress (0..1) drives the whole environment: the channel fill, the golden
   leading edge, and the slow warming of the concrete toward golden hour. */
@property --progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
:root {
  --progress: 0;
  transition: --progress .8s var(--ease);
}

/* ---- Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* The [hidden] attribute must win over any display rule below (e.g. the
   modal overlay's display:flex), or JS toggling `.hidden` won't hide it. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.6;
  color: var(--ink);
  /* The plaza warms from cool morning concrete toward golden hour as --progress climbs. */
  background-color: color-mix(in oklab, var(--concrete), var(--gold-wash) calc(var(--progress) * 15%));
  background-image:
    /* faint tie-hole dots — 2–4% contrast, and always hidden behind opaque sheets */
    radial-gradient(circle at center, color-mix(in oklab, var(--ink) 5%, transparent) 0 1px, transparent 1.4px),
    /* board-form grain */
    repeating-linear-gradient(90deg, transparent 0 46px, color-mix(in oklab, var(--ink) 3%, transparent) 46px 47px);
  background-size: 48px 48px, auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; }
input, textarea { font: inherit; }

/* ---- Typographic voices --------------------------------------------------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate);
}
.mono--micro { font-size: 0.625rem; letter-spacing: 0.12em; color: var(--teak); }

/* Leader-rule kicker: mono label riding a drafting line. */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate);
}
.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sheet-line);
}

/* ---- Accessibility helpers ------------------------------------------------ */
.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;
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--gold) 42%, transparent);
  border-radius: 1px;
}

/* ============================================================================
   THE WATER AXIS — signature
   ============================================================================ */
.axis {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--concrete), var(--gold-wash) calc(var(--progress) * 10%));
  border-bottom: 1px solid var(--sheet-line);
  backdrop-filter: saturate(1.05);
}
.axis__inner {
  max-width: min(88vw, var(--sheet-max));
  margin: 0 auto;
  padding: 13px clamp(20px, 5vw, 56px) 30px;
}
.axis__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.axis__preview {
  border: 1px solid var(--sheet-line);
  background: transparent;
  color: var(--slate);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.axis__preview:hover { background: color-mix(in oklab, var(--slate) 8%, transparent); border-color: var(--slate); }
.axis__readout { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--slate); font-weight: 600; text-align: right; }

.axis__track {
  position: relative;
  height: 22px;
  margin: 0 10px;
}
.axis__line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
  background: var(--sheet-line);
}
/* dimension end-ticks */
.axis__line::before, .axis__line::after {
  content: "";
  position: absolute; top: -4px;
  width: 1.5px; height: 9px;
  background: var(--teak);
}
.axis__line::before { left: 0; }
.axis__line::after  { right: 0; }

.axis__water {
  position: absolute;
  left: 0; top: 50%;
  width: 100%;
  height: 3px;
  transform: translateY(-50%) scaleX(var(--progress));
  transform-origin: left center;
  background: var(--slate);
}
.axis__edge {
  position: absolute;
  top: 50%;
  left: calc(var(--progress) * 100%);
  width: 44px; height: 3px;
  transform: translateY(-50%) translateX(-44px);
  background: linear-gradient(90deg, transparent, var(--gold));
  box-shadow: 0 0 10px 1px color-mix(in oklab, var(--gold) 70%, transparent);
  pointer-events: none;
}
.axis__horizon {
  position: absolute;
  right: -2px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold), color-mix(in oklab, var(--gold) 20%, transparent) 70%);
  opacity: 0;
  transition: opacity .8s ease, box-shadow .8s ease;
}
.axis.is-complete .axis__horizon {
  opacity: 1;
  box-shadow: 0 0 22px 6px color-mix(in oklab, var(--gold) 65%, transparent);
}

.axis__stations { position: absolute; inset: 0; }
.station {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--travertine);
  border: 1.5px solid var(--teak);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.station.is-done { background: var(--accent, var(--slate)); border-color: var(--accent, var(--slate)); }
/* current is marked by a gold ring + glow, NOT by scaling — so its letter
   never grows past the divider below the axis. */
.station.is-current {
  background: var(--accent, var(--slate));
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold) 32%, transparent),
              0 0 14px 2px color-mix(in oklab, var(--gold) 45%, transparent);
}
.station__num {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 0.9rem; font-weight: 400; letter-spacing: 0.02em; line-height: 1;
  color: var(--teak);
}
.station.is-done .station__num { color: var(--accent, var(--slate)); }
.station.is-current .station__num { color: var(--ink); font-weight: 600; }

/* ============================================================================
   VIEWS — hero / survey / completion swap inside #app
   ============================================================================ */
#app { display: block; }

.view { animation: viewIn .5s var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- The travertine sheet ------------------------------------------------- */
.sheet {
  position: relative;
  background: var(--travertine);
  border: 1px solid var(--sheet-line);
  box-shadow: 0 24px 60px -30px rgba(35,39,44,.5), 0 2px 0 rgba(35,39,44,.04);
  padding: clamp(28px, 5vw, 60px);
}
/* corner registration crosses */
.sheet .reg { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.sheet .reg::before, .sheet .reg::after { content: ""; position: absolute; background: var(--teak); }
.sheet .reg::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.sheet .reg::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.sheet .reg.tl { top: 10px; left: 10px; }
.sheet .reg.tr { top: 10px; right: 10px; }
.sheet .reg.bl { bottom: 10px; left: 10px; }
.sheet .reg.br { bottom: 10px; right: 10px; }

/* ============================================================================
   HERO — the empty court
   ============================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vh, 96px) clamp(22px, 7vw, 96px);
  max-width: min(90vw, 1320px);
  margin: 0 auto;
}
.hero__annotation {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(40px, 9vh, 92px);
}
.hero__annotation .dim {
  flex: 1;
  position: relative;
  height: 1.5px;
  background: var(--sheet-line);
  max-width: 320px;
}
.hero__annotation .dim::before, .hero__annotation .dim::after {
  content: ""; position: absolute; top: -3px; width: 1.5px; height: 7px; background: var(--teak);
}
.hero__annotation .dim::before { left: 0; } .hero__annotation .dim::after { right: 0; }
.hero__annotation .dim-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--teak); }

.hero__eyebrow { margin: 0 0 clamp(20px, 4vh, 34px); }
.hero__line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 18ch;
  color: var(--ink);
}
.hero__sub {
  margin: clamp(24px, 4vh, 36px) 0 0;
  max-width: 54ch;
  font-size: 1.15rem;
  line-height: 1.62;
  color: color-mix(in oklab, var(--ink) 88%, transparent);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: clamp(32px, 5vh, 48px);
}
.hero__meta { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--slate); text-transform: uppercase; }
.hero__foot {
  margin-top: clamp(40px, 8vh, 80px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}
.hero__demo { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--teak); text-transform: uppercase; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid var(--slate);
  background: var(--slate);
  color: var(--travertine);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover { background: color-mix(in oklab, var(--slate) 88%, black); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--sheet-line);
}
.btn--ghost:hover { background: color-mix(in oklab, var(--slate) 8%, transparent); border-color: var(--slate); }

.btn--link {
  border: none; background: none; padding: 6px 2px;
  color: var(--slate); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--sheet-line); border-radius: 1px;
}
.btn--link:hover { text-decoration-color: var(--slate); }

/* ============================================================================
   SURVEY STEP
   ============================================================================ */
.step {
  max-width: min(88vw, var(--sheet-max));
  margin: clamp(28px, 5vh, 56px) auto clamp(60px, 10vh, 120px);
  padding: 0 clamp(16px, 3vw, 32px);
}
.step__head { margin-bottom: clamp(28px, 5vh, 48px); }
.step__section-no { margin: 0 0 clamp(16px, 3vh, 26px); }
.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.85rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
}
.step__epigraph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--slate);
  margin: 10px 0 0;
}
.step__intro {
  margin: 18px 0 0;
  max-width: var(--measure);
  color: color-mix(in oklab, var(--ink) 86%, transparent);
}

/* ---- Question / Likert ruler --------------------------------------------- */
.question {
  border: none;
  margin: 0;
  padding: clamp(24px, 4vh, 34px) 0;
  border-top: 1px solid var(--sheet-line);
}
.question:first-of-type { border-top: none; }
.question__prompt {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.28;
  padding: 0;
  margin: 0 0 22px;
  max-width: 54ch;
}

.ruler { position: relative; max-width: 780px; }
.ruler__ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--teak);
  margin-bottom: 10px;
}
.ruler__nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
/* the dimension line behind the nodes */
.ruler__nodes::before {
  content: "";
  position: absolute;
  left: 7%; right: 7%; top: 15px;
  height: 1.5px;
  background: var(--sheet-line);
}
.opt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  flex: 1;
  cursor: pointer;
  padding: 4px 2px 6px;
  text-align: center;
}
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.node {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--teak);
  background: var(--travertine);
  transition: transform .18s var(--ease), background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.opt__label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teak);
  line-height: 1.3;
  max-width: 12ch;
}
.opt:hover .node { border-color: var(--slate); transform: translateY(-2px); }
.opt input:checked + .node {
  background: var(--slate);
  border-color: var(--slate);
  transform: scale(1.08);
  box-shadow: 0 4px 10px -4px var(--slate);
}
.opt input:checked ~ .opt__label { color: var(--slate); font-weight: 600; }
.opt input:focus-visible + .node {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--gold) 42%, transparent);
}

/* Prefer-not-to-say lives just under the ruler as a quiet, real option. */
.opt--skip {
  margin-top: 18px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  flex: none;
  align-self: flex-start;
}
.opt--skip .node { width: 16px; height: 16px; }
.opt--skip .opt__label { text-transform: none; letter-spacing: 0.04em; font-size: 0.72rem; max-width: none; }

/* ---- Demographics (single-select lists) ---------------------------------- */
.demo-q { border: none; margin: 0; padding: clamp(22px,4vh,32px) 0; border-top: 1px solid var(--sheet-line); }
.demo-q:first-of-type { border-top: none; }
.demo-q__label { font-weight: 600; font-size: 1.12rem; padding: 0; margin: 0 0 6px; }
.demo-q__note { font-size: 0.9rem; color: color-mix(in oklab, var(--ink) 62%, transparent); margin: 0 0 18px; max-width: 60ch; }
.choice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid var(--sheet-line);
  border-bottom: none;
  cursor: pointer;
  background: color-mix(in oklab, var(--travertine) 60%, transparent);
  transition: background .15s ease, border-color .15s ease;
}
.choice-list .choice:last-child { border-bottom: 1px solid var(--sheet-line); }
.choice:hover { background: color-mix(in oklab, var(--slate) 7%, var(--travertine)); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__dot {
  flex: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--teak);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.choice input:checked ~ .choice__dot {
  background: var(--slate); border-color: var(--slate);
  box-shadow: inset 0 0 0 3px var(--travertine);
}
.choice:has(input:checked) { border-color: var(--slate); background: color-mix(in oklab, var(--slate) 9%, var(--travertine)); }
.choice input:focus-visible ~ .choice__dot { outline: 2px solid var(--slate); outline-offset: 3px; }
.choice__text { font-size: 1rem; }

/* ---- Open reflection ------------------------------------------------------ */
.reflect { border: none; margin: 0; padding: clamp(24px,4vh,36px) 0; border-top: 1px solid var(--sheet-line); }
.reflect:first-of-type { border-top: none; }
.reflect__prompt { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.3; margin: 0 0 20px; padding: 0; max-width: 40ch; }
/* Shared input styling — proper boxes, not bare underlines. */
.reflect textarea, .question--text textarea, .qnote__ta, .field {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: color-mix(in oklab, var(--travertine) 62%, #ffffff 16%);
  border: 1px solid var(--teak);
  border-radius: 3px;
  padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.reflect textarea::placeholder, .question--text textarea::placeholder, .qnote__ta::placeholder, .field::placeholder {
  color: color-mix(in oklab, var(--teak) 88%, transparent);
}
.reflect textarea:focus, .question--text textarea:focus, .qnote__ta:focus, .field:focus {
  outline: none;
  border-color: var(--slate);
  background: color-mix(in oklab, var(--travertine) 40%, #ffffff 30%);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--slate) 16%, transparent);
}
.reflect textarea, .question--text textarea { max-width: 760px; min-height: 152px; resize: vertical; }
.reflect__note { margin: 12px 0 0; }

/* ---- Step footer nav ------------------------------------------------------ */
.step__skip { margin: clamp(28px,5vh,40px) 0 20px; }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: clamp(20px, 4vh, 32px);
  padding-top: 26px;
  border-top: 1px solid var(--sheet-line);
}

/* ============================================================================
   COMPLETION — the light reaches the sea
   ============================================================================ */
.done { text-align: left; }
.done__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: clamp(20px,4vh,32px) 0 0;
}
.done__body { margin: 22px 0 0; max-width: 54ch; font-size: 1.12rem; }
.done__sub { margin: 14px 0 0; color: color-mix(in oklab, var(--ink) 65%, transparent); }
.done__quote {
  margin: clamp(32px,6vh,52px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--sheet-line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--slate);
  max-width: 42ch;
}
.done__quote cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teak); }
.done__footer { margin-top: clamp(30px,6vh,48px); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }

/* ============================================================================
   DISCLAIMER / CONSENT MODAL
   ============================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 5vh, 64px) clamp(14px, 4vw, 40px);
  overflow-y: auto;
  background: color-mix(in oklab, #1a1c1f 62%, transparent);
  animation: overlayIn .3s ease both;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: min(680px, 100%);
  margin: auto 0;
  background: var(--travertine);
  border: 1px solid var(--sheet-line);
  box-shadow: 0 40px 100px -30px rgba(10,12,14,.7);
  padding: clamp(28px, 4vw, 52px);
  animation: modalIn .4s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.modal__kicker { margin: 0 0 18px; }
.modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.modal__intro { margin: 0 0 26px; color: color-mix(in oklab, var(--ink) 88%, transparent); max-width: 60ch; }

.points { list-style: none; margin: 0 0 4px; padding: 0; }
.points li { padding: 18px 0; border-top: 1px solid var(--sheet-line); display: grid; grid-template-columns: 22px 1fr; gap: 4px 16px; }
.points li .idx { font-family: var(--mono); font-size: 0.62rem; color: var(--teak); padding-top: 5px; }
.points li h3 { margin: 0 0 5px; font-family: var(--sans); font-weight: 700; font-size: 1.02rem; }
.points li p { margin: 0; font-size: 0.96rem; color: color-mix(in oklab, var(--ink) 82%, transparent); }

.promise {
  margin: 26px 0;
  padding: 22px 24px;
  background: color-mix(in oklab, var(--slate) 9%, var(--travertine));
  border-left: 3px solid var(--slate);
}
.promise__kicker { margin: 0 0 10px; }
.promise p { margin: 0; }
.promise p + p { margin-top: 12px; font-size: 0.94rem; color: color-mix(in oklab, var(--ink) 78%, transparent); }

.modal__contact { margin: 20px 0 26px; font-size: 0.94rem; color: color-mix(in oklab, var(--ink) 74%, transparent); }
.modal__contact a { color: var(--slate); text-underline-offset: 3px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- Toast ---------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(0);
  z-index: 90;
  background: var(--ink);
  color: var(--travertine);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 2px;
  box-shadow: 0 10px 30px -12px rgba(10,12,14,.7);
  animation: toastIn .3s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ============================================================================
   I.C.A.R.E. VALUE ELEMENTS
   ============================================================================ */
/* Colored letter tiles, echoing the real I.C.A.R.E. values graphic. */
.value-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 3px;
  color: #fff;
  font-family: var(--serif); font-size: 1.5rem; line-height: 1;
  box-shadow: 0 3px 10px -4px rgba(10,12,14,.5);
}
.step__valuebar { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(18px, 3vh, 28px); }
.step__valuebar .kicker { flex: 1; }
.step__valuebar .step__section-no { margin: 0; }

.hero__tiles { display: flex; gap: 9px; margin: clamp(22px, 4vh, 34px) 0 0; }
.hero__tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 3px;
  color: #fff; font-family: var(--serif); font-size: 1.6rem; line-height: 1;
  box-shadow: 0 4px 12px -5px rgba(10,12,14,.5);
}

/* Statement-style questions: a quiet sans lead-in, then a serif italic quote. */
.q-lead {
  display: block;
  font-family: var(--sans); font-weight: 500; font-style: normal;
  font-size: 1rem; letter-spacing: 0;
  color: color-mix(in oklab, var(--ink) 60%, transparent);
  margin-bottom: 12px;
}
.q-statement {
  display: block;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.3;
}
.q-sub {
  display: block;
  font-family: var(--sans); font-style: italic; font-weight: 400;
  font-size: 0.95rem;
  color: color-mix(in oklab, var(--ink) 58%, transparent);
  margin-top: 10px;
}
.question__note { margin: 0 0 20px; color: color-mix(in oklab, var(--ink) 60%, transparent); }
.question--text .question__prompt { display: block; margin-bottom: 6px; }

/* Yes / No: two centered nodes, no dimension line. */
.ruler--binary .ruler__nodes { justify-content: center; gap: clamp(48px, 12vw, 96px); }
.ruler--binary .ruler__nodes::before { display: none; }
.ruler--binary .opt { flex: none; }

/* ---- Per-question optional note ------------------------------------------ */
.qnote { margin-top: 20px; }
.qnote__toggle {
  border: none; background: none; padding: 4px 0; cursor: pointer;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.62rem; color: var(--slate);
  display: inline-flex; align-items: center; gap: 8px;
}
.qnote__toggle:hover { color: var(--ink); }
.qnote__sign {
  display: inline-flex; width: 16px; height: 16px;
  align-items: center; justify-content: center;
  border: 1px solid var(--teak); border-radius: 2px;
  font-family: var(--sans); font-size: 0.85rem; line-height: 1;
}
.qnote.is-open .qnote__sign { border-color: var(--slate); }
.qnote__body { margin-top: 12px; }
.qnote__ta { max-width: 620px; min-height: 72px; resize: vertical; }

/* ============================================================================
   REVIEW & SEND
   ============================================================================ */
.rev-block { margin-top: clamp(30px, 5vh, 46px); }
.rev-block > .kicker { margin-bottom: 16px; }
.rev-hint { font-size: 0.92rem; color: color-mix(in oklab, var(--ink) 60%, transparent); margin: 0 0 16px; max-width: 64ch; }
.field-label { display: block; font-weight: 600; font-size: 1rem; margin: 0 0 10px; max-width: 62ch; }

.recip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.recip-list li {
  display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 4px 22px;
  padding: 15px 18px; border: 1px solid var(--sheet-line);
  background: color-mix(in oklab, var(--travertine) 55%, transparent); border-radius: 3px;
}
.recip__who { font-weight: 700; }
.recip__gets { color: color-mix(in oklab, var(--ink) 78%, transparent); font-size: 0.96rem; }

.summary { display: grid; gap: 24px; }
.sumsec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--sheet-line); }
.sumsec__head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.sumrow { display: grid; grid-template-columns: 1fr auto; gap: 3px 24px; padding: 9px 0; align-items: baseline; border-bottom: 1px dotted var(--sheet-line); }
.sumrow__q { margin: 0; font-size: 0.95rem; color: color-mix(in oklab, var(--ink) 82%, transparent); max-width: 62ch; }
.sumrow__a { margin: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.64rem; color: var(--slate); font-weight: 600; text-align: right; }
.sumrow--skipped .sumrow__a { color: var(--teak); font-weight: 400; }
.sumrow__note { grid-column: 1 / -1; margin: 5px 0 0; font-size: 0.9rem; font-style: italic; color: color-mix(in oklab, var(--ink) 66%, transparent); }

.recip-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.recip-row .field { max-width: 420px; }
.rev-block textarea.field { max-width: 640px; min-height: 96px; resize: vertical; }
.rev-block input.field { max-width: 440px; }

.check { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; font-size: 1rem; max-width: 64ch; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--teak); border-radius: 3px; background: var(--travertine); position: relative; margin-top: 1px; transition: border-color .15s, background .15s; }
.check input:checked ~ .check__box { background: var(--slate); border-color: var(--slate); }
.check input:checked ~ .check__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--travertine); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--slate); outline-offset: 3px; }
.check__text { line-height: 1.5; }
.check-extra { margin: 14px 0 0 35px; }

/* Code-of-conduct callouts */
.conduct { margin: 28px 0; padding: 20px 22px; border: 1px solid color-mix(in oklab, #B25E31 40%, var(--sheet-line)); border-left: 3px solid #B25E31; background: color-mix(in oklab, #B25E31 8%, var(--travertine)); border-radius: 0 3px 3px 0; }
.conduct__kicker { margin: 0 0 9px; color: #9c4e28; }
.conduct p:last-child { margin: 0; font-size: 0.96rem; }
.conduct-mini { margin: clamp(26px, 4vh, 38px) 0 10px; padding: 14px 18px; border-left: 3px solid #B25E31; background: color-mix(in oklab, #B25E31 7%, var(--travertine)); font-size: 0.92rem; color: color-mix(in oklab, var(--ink) 82%, transparent); border-radius: 0 3px 3px 0; }

.value-tile--sm { width: 28px; height: 28px; font-size: 1.05rem; border-radius: 2px; box-shadow: none; }

/* ============================================================================
   FULL-SURVEY PREVIEW (modal)
   ============================================================================ */
.preview { display: grid; gap: 28px; margin: 8px 0 6px; }
.pv-sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--sheet-line); }
.pv-sec__head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.pv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pv-q { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.pv-num { font-family: var(--mono); font-size: 0.6rem; color: var(--teak); padding-top: 4px; letter-spacing: 0.06em; }
.pv-text { margin: 0 0 8px; font-size: 1rem; line-height: 1.4; }
.pv-opts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pv-chip { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.56rem; color: var(--slate); border: 1px solid var(--sheet-line); border-radius: 2px; padding: 3px 8px; }
.pv-chip--na { color: var(--teak); }
.pv-opts--free { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.58rem; color: var(--teak); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 720px) {
  .hero__tile { width: 40px; height: 40px; font-size: 1.4rem; }
  .recip-list li { grid-template-columns: 1fr; gap: 4px; }
  .sumrow { grid-template-columns: 1fr; gap: 2px; }
  .sumrow__a { text-align: left; }
  .ruler--binary .ruler__nodes { flex-direction: column; gap: 0; align-items: stretch; }
  .station__num { display: none; }
  .axis__meta { flex-direction: column; gap: 4px; }
  .axis__readout { text-align: left; }

  /* Likert ruler folds into stacked, full-width tap rows. */
  .ruler__ends { display: none; }
  .ruler__nodes { flex-direction: column; gap: 0; }
  .ruler__nodes::before { display: none; }
  .opt {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--sheet-line);
    border-bottom: none;
  }
  .ruler__nodes .opt:last-of-type { border-bottom: 1px solid var(--sheet-line); }
  .opt .node { width: 22px; height: 22px; flex: none; }
  .opt__label { max-width: none; font-size: 0.8rem; text-transform: none; letter-spacing: 0.02em; }
  .opt:has(input:checked) { background: color-mix(in oklab, var(--slate) 9%, var(--travertine)); border-color: var(--slate); }
  .opt--skip { margin-top: 14px; border: none !important; }
}

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .hero__cta, .modal__actions, .done__footer { width: 100%; }
  .nav .btn { width: auto; }
}

/* ============================================================================
   REDUCED MOTION — the design reads fully as still light on still concrete
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
