/* ==========================================================================
   Visit Seattle Website Discovery Survey · Option 01 · One question per screen
   Black and white only. Type: Perfectly Nineties for everything; Gilroy for eyebrows and small
   notes. Button behaviour follows visitseattle.org: square buttons with a 2px outline whose fill sweeps in
   from the left on hover; uppercase 600-weight labels; plain text links.
   Animations are kept basic: a short fade between screens, the button sweep,
   and the progress bar width.
   ========================================================================== */

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #555;        /* secondary text (7.4:1 on white) */
  --faint: #767676;     /* captions, counters (4.5:1 on white) */
  --line: #d4d4d4;      /* hairlines and field borders at rest */
  --wash: #f5f5f5;      /* field background */
  --off: #bdbdbd;       /* disabled button outline */
  --font: "Perfectly Nineties", Georgia, "Times New Roman", serif;
  --font-note: "Gilroy", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --topbar: 72px;
  --gutter: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 1.125rem; line-height: 1.55; letter-spacing: .01rem;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.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; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--font); color: var(--ink); letter-spacing: .01rem; }
.h1 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); font-weight: 700; line-height: 1.15; }
.qtitle { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 600; line-height: 1.3; max-width: 34ch; }
.eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; line-height: 1.2; }
.lead { font-size: 1.125rem; color: var(--muted); margin: 0 0 .75rem; max-width: 56ch; }
.leadin { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; font-weight: 400; font-style: italic; margin: 0 0 14px; }
.leadin::before { content: ""; width: 28px; height: 2px; background: var(--ink); flex: none; }
.caption { font-size: .8125rem; color: var(--faint); }
a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; transition: opacity .3s ease; }
a:hover { opacity: .65; }

/* ---------- Buttons (visitseattle.org .button) ---------- */
.btn {
  position: relative; z-index: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: .9rem 1.75rem; border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); cursor: pointer;
  font-family: var(--font); font-size: .8125rem; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  transition: color .3s ease, border-color .3s ease;
  -webkit-appearance: none;
}
.btn::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--ink); z-index: -1; transition: width .3s ease; }
.btn:hover:not(:disabled), .btn:focus-visible:not(:disabled) { color: var(--paper); }
.btn:hover:not(:disabled)::after, .btn:focus-visible:not(:disabled)::after { width: 100%; }
.btn .arrow { width: 18px; height: 12px; flex: none; transition: transform .3s ease; }
.btn:hover:not(:disabled) .arrow { transform: translateX(3px); }
.btn:disabled, .btn[aria-disabled="true"] { border-color: var(--off); color: var(--faint); cursor: not-allowed; }
/* Solid variant: the main call to action on a screen. Black fill; hover sweeps white in. */
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::after { background: var(--paper); }
.btn--solid:hover:not(:disabled), .btn--solid:focus-visible:not(:disabled) { color: var(--ink); }
.btn--solid:disabled { background: var(--paper); }
/* On black backgrounds. */
.btn--light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--light::after { background: var(--paper); }
.btn--light:hover:not(:disabled), .btn--light:focus-visible:not(:disabled) { color: var(--ink); }
.btn--light:focus-visible { outline-color: var(--paper); }

/* Plain text link button (visitseattle.org .button.plain-link) */
.link-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: .5rem 0; border: 0; background: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-btn .arrow { width: 18px; height: 12px; }
.link-btn--muted { color: var(--faint); }
.link-btn--muted:hover { color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar); display: flex; align-items: center; gap: 32px;
  padding: 0 32px; background: var(--paper); border-bottom: 1px solid var(--ink);
}
.topbar__logo { height: 34px; width: auto; aspect-ratio: 1717 / 530; flex: none; }
.progress { flex: 1; max-width: 560px; margin: 0 auto; }
.progress__meta { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress__meta span { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.progress__track { height: 4px; background: var(--line); }
.progress__fill { height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease); }
.exit {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper);
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: border-color .3s ease;
}
.exit svg { width: 12px; height: 12px; }
.exit:hover { border-color: var(--ink); }

/* ---------- Layout: black panel left, white question stage right ---------- */
.shell { display: grid; grid-template-columns: minmax(300px, 36%) 1fr; min-height: calc(100vh - var(--topbar)); min-height: calc(100dvh - var(--topbar)); }
.panel { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); height: calc(100dvh - var(--topbar)); background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: 48px 48px 56px; }
.panel__parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel__parts li { display: flex; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 400; color: rgba(255,255,255,.55); transition: color .3s ease; }
.panel__parts li::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; flex: none; transition: background .3s ease; }
.panel__parts li.is-done { color: rgba(255,255,255,.8); }
.panel__parts li.is-done::before { background: currentColor; }
.panel__parts li.is-current { color: var(--paper); font-weight: 600; }
.panel__parts li.is-current::before { background: var(--paper); border-color: var(--paper); }
.panel__part { color: var(--paper); margin-bottom: 14px; }
.panel__section { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.1; margin: 0 0 28px; }
.panel__qnum { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid rgba(255,255,255,.35); padding-top: 20px; }
.panel__qnum b { font-size: 3.5rem; font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.panel__qnum span { font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
.panel__body { transition: opacity .35s ease; }
.panel.is-fading .panel__body { opacity: 0; }

.main { display: flex; flex-direction: column; padding: 72px var(--gutter) 40px; min-width: 0; }
.stage { flex: 1; width: 100%; max-width: 720px; outline: none; }
.screen { animation: fadeUp .4s var(--ease) both; }
.screen.is-back { animation-name: fadeDown; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.screen__head { margin-bottom: 32px; }
.screen__head .qtitle + .lead { margin-top: 12px; }

.nav { width: 100%; max-width: 720px; display: flex; align-items: center; gap: 24px; padding-top: 48px; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav[hidden] { display: none; }

/* ---------- Fields ---------- */
.field { margin-bottom: 26px; }
.field__label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.field__num { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); flex: none; }
.input, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--wash); padding: 14px 16px; font-size: 1.0625rem; font-weight: 400; line-height: 1.5;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #8a8a8a; font-weight: 400; font-style: italic; }
.input:hover, .textarea:hover { border-color: #9b9b9b; }
.input:focus, .textarea:focus { outline: none; background: var(--paper); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.textarea { min-height: 220px; resize: vertical; }
.counter { margin-top: 8px; text-align: right; }

/* ---------- Full-bleed screens (cover, thank-you, exit, closed) ---------- */
.full { display: grid; grid-template-columns: minmax(300px, 42%) 1fr; min-height: 100vh; min-height: 100dvh; }
.full__side { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.full__logo { width: min(320px, 80%); height: auto; aspect-ratio: 1717 / 530; }
.full__tag { color: var(--paper); }
.full__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.full__verb { display: block; width: 84px; height: auto; aspect-ratio: 90 / 30; }
.full__main { display: flex; align-items: center; padding: 72px var(--gutter); outline: none; }
.full__inner { max-width: 600px; animation: fadeUp .5s var(--ease) both; }
.full__inner .h1 { margin: 14px 0 22px; }
.full__inner p { margin: 0 0 14px; }
.meta { display: flex; align-items: center; gap: 10px; margin: 26px 0 30px; font-size: .8125rem; font-weight: 500; }
.meta svg { width: 16px; height: 16px; }
.full__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.badge { display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border: 2px solid var(--ink); }
.badge__tick { width: 34px; height: 34px; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; }
.badge__tick svg { width: 18px; height: 18px; }
.badge b { display: block; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; }
.badge span { display: block; font-size: .75rem; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 28px 0 22px; border: 0; }
.contact { font-size: .875rem; color: var(--muted); }
.contact b { color: var(--ink); font-weight: 600; }

/* Intro (inside the shell) */
.intro p { margin: 0 0 14px; max-width: 58ch; }
.intro .note { margin-top: 26px; }

/* Send */
.send__count { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.send__count svg { width: 14px; height: 14px; }

/* Errors */
.error { display: none; margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--wash); font-size: .9375rem; font-weight: 600; }
.error.is-on { display: block; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); animation: fade .2s ease both; }
.modal[hidden] { display: none; }
.modal__box { width: min(460px, 100%); background: var(--paper); border: 2px solid var(--ink); padding: 34px 32px 28px; animation: fadeUp .3s var(--ease) both; }
.modal__box h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 10px; }
.modal__box p { margin: 0 0 26px; color: var(--muted); }
.modal__actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 900px) {
  :root { --topbar: 60px; --gutter: 20px; }
  .topbar { gap: 16px; padding: 0 16px; }
  .topbar__logo { height: 26px; }
  .progress__meta span:first-child { display: none; }
  .progress__meta { justify-content: center; }
  .exit span { display: none; }
  .exit { padding: 0 12px; }
  .shell { display: block; }
  .panel { position: sticky; top: var(--topbar); z-index: 10; height: auto; flex-direction: row; align-items: center; padding: 11px 20px; }
  .panel__parts, .panel__qnum { display: none; }
  .panel__body { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; }
  .panel__section { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin: 0; order: 1; }
  .panel__part { margin: 0; order: 2; font-size: .625rem; }
  .main { padding: 36px 20px 0; min-height: calc(100dvh - var(--topbar) - 40px); }
  .screen__head { margin-bottom: 24px; }
  .textarea { min-height: 180px; }
  .nav { position: sticky; bottom: 0; margin-top: auto; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); gap: 12px; }
  .nav__right { gap: 18px; }
  .btn { min-height: 48px; padding: .8rem 1.3rem; }
  .full { display: block; }
  .full__side { min-height: 0; padding: 28px 20px 30px; gap: 40px; }
  .full__logo { width: 190px; }
  .full__brand { gap: 14px; }
  .full__verb { width: 64px; }
  .full__main { padding: 36px 20px 48px; }
  .full__inner .h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Gilroy: eyebrows and small notes only. Everything else is Perfectly Nineties.
   ========================================================================== */
.eyebrow, .caption, .counter, .progress__meta span, .field__num, .panel__parts, .panel__parts a,
.panel__qnum span, .badge b, .badge span, .contact, .meta, .q__num .eyebrow, .send__count {
  font-family: var(--font-note);
}
.eyebrow { font-weight: 600; letter-spacing: .14em; }
.caption, .counter, .send__count, .contact, .badge span { font-weight: 400; letter-spacing: .01em; }
.meta { font-weight: 500; letter-spacing: .01em; }
.panel__parts li { font-weight: 400; letter-spacing: .01em; }
.panel__parts li.is-current { font-weight: 600; }
.badge b { font-weight: 600; letter-spacing: .14em; }
.exit { font-family: var(--font); font-weight: 600; letter-spacing: .06em; }
.panel__section { letter-spacing: 0; }
@media (max-width: 900px) {
  .panel__section { font-family: var(--font-note); font-weight: 600; letter-spacing: .12em; }
  .full__inner .h1 { font-size: 2.25rem; }
}

/* ==========================================================================
   Round 3 (5 Nov): required errors, multi-part questions, website list,
   too little / too much tags, stamp animation, larger part list
   ========================================================================== */

/* Required marker and errors */
.req { margin-left: 4px; font-weight: 700; }
.req-note { margin: -18px 0 22px; }
.field-error { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: .9375rem; font-weight: 600; line-height: 1.35; animation: fade .2s ease both; }
.field-error[hidden] { display: none; }
.field-error__mark { width: 18px; height: 18px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--font-note); font-size: .6875rem; font-weight: 700; }
.field-error--soft { font-weight: 400; font-style: italic; }
.field-error--soft .field-error__mark { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.input.is-error, .textarea.is-error { border-color: var(--ink); border-width: 2px; background: var(--paper); }
.error.is-on { animation: shake .35s ease both; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Sub-fields: Q7 audiences, Q11 / Q13 two-part questions, Q14 note */
.group { display: grid; gap: 22px; }
.group__hint { display: flex; align-items: center; gap: 10px; margin: -6px 0 0; }
.group__hint-marks { display: inline-flex; gap: 4px; }
.group__hint-marks i, .subfield__num { width: 20px; height: 20px; display: inline-grid; place-items: center; border: 1.5px solid var(--ink); font-family: var(--font-note); font-style: normal; font-size: .6875rem; font-weight: 700; flex: none; }
.group--parts .subfield__num { background: var(--ink); color: var(--paper); }
.subfield__label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.subfield__opt { font-family: var(--font-note); font-size: .8125rem; font-weight: 400; color: var(--faint); }
.subfield__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.subfield__foot .counter { margin-left: auto; }
.textarea--short { min-height: 110px; }
.group:not(.group--parts) .subfield__label { font-family: var(--font-note); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }

/* Q4: websites they aspire to */
.sites__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.site { border: 1px solid var(--line); padding: 18px 18px 14px; display: grid; gap: 10px; background: var(--paper); }
.site.is-new { animation: fadeUp .35s var(--ease) both; }
.site__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site__remove { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 4px; border: 0; background: none; cursor: pointer; font-family: var(--font-note); font-size: .8125rem; color: var(--muted); }
.site__remove svg { width: 10px; height: 10px; }
.site__remove:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site__why { font-size: 1.0625rem; font-weight: 600; margin-top: 6px; }
.add-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.add-btn__icon { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--ink); transition: background-color .25s ease, color .25s ease; }
.add-btn__icon svg { width: 13px; height: 13px; transition: transform .25s ease; }
.add-btn:hover .add-btn__icon, .add-btn:focus-visible .add-btn__icon { background: var(--ink); color: var(--paper); }
.add-btn:hover .add-btn__icon svg { transform: rotate(90deg); }
.sites__cap:empty { display: none; }

/* Q14: too little / too much */
.balance__hint { margin: -10px 0 18px; }
.balance__cols { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.balance__col { padding: 20px 20px 22px; min-width: 0; }
.balance__col + .balance__col { border-left: 1px solid var(--ink); }
.balance__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.balance__icon { width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: var(--paper); flex: none; }
.balance__icon svg { width: 13px; height: 13px; }
.balance__title { font-size: 1.25rem; font-weight: 700; }
.balance__count { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border: 1.5px solid var(--ink); background: var(--paper); cursor: pointer; font-size: 1rem; font-weight: 400; color: var(--ink); transition: background-color .2s ease, color .2s ease; }
.chip__box { width: 16px; height: 16px; border: 1.5px solid currentColor; display: grid; place-items: center; flex: none; }
.chip__box svg { width: 11px; height: 11px; opacity: 0; transition: opacity .15s ease; }
.chip:hover { background: var(--wash); }
.chip.is-on { background: var(--ink); color: var(--paper); }
.chip.is-on .chip__box svg { opacity: 1; }
.chip.is-pop { animation: pop .28s var(--ease) both; }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
.chip-new { display: flex; margin-top: 12px; max-width: 280px; }
.input--chip { padding: 9px 12px; font-size: 1rem; }
.chip-add { width: 44px; flex: none; border: 1px solid var(--ink); border-left: 0; background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.chip-add svg { width: 12px; height: 12px; }
.balance__notes { margin-top: 22px; }

/* Response received: stamp lands, then the tick draws itself */
.badge.is-stamp { animation: stamp .55s cubic-bezier(.2, 1.4, .4, 1) .15s both; transform-origin: 30% 50%; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.6) rotate(-6deg); } 60% { opacity: 1; transform: scale(.96) rotate(1deg); } 100% { opacity: 1; transform: none; } }
.badge.is-stamp .badge__tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s ease .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.badge.is-stamp + * { animation: fadeUp .5s var(--ease) .45s both; }

/* 9. Part list in the black panel: larger */
.panel__parts { gap: 14px; }
.panel__parts li, .panel__parts a { font-size: 1rem; gap: 14px; }
.panel__parts li::before, .panel__parts a::before { width: 12px; height: 12px; }

@media (max-width: 900px) {
  .balance__cols { grid-template-columns: 1fr; }
  .balance__col + .balance__col { border-left: 0; border-top: 1px solid var(--ink); }
  .site { padding: 14px 14px 10px; }
}

/* ==========================================================================
   Round 4 (5 Nov): simpler Q14, pop-ups centred on the question area,
   bigger "Response received" win moment
   ========================================================================== */

/* Q14: two plain rows of tags, "Other" opens one small field */
.balance { display: grid; gap: 28px; }
.balance__row { display: grid; gap: 12px; }
.balance__title { font-size: 1.125rem; font-weight: 600; }
.input--other { max-width: 360px; padding: 10px 14px; font-size: 1rem; animation: fadeUp .25s var(--ease) both; }

/* Choice question: options stacked one per line (stakeholder survey Q3). */
.choice { display: grid; gap: 14px; justify-items: start; }
.choice__hint { margin: -6px 0 0; }
.chips--stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.chips--stack .chip { min-height: 44px; text-align: left; }
.choice .input--other { width: 100%; }

/* Pop-ups sit in the middle of the white question area, not the whole window */
@media (min-width: 901px) {
  .modal { padding: calc(var(--topbar) + 20px) 20px 20px calc(max(300px, 36vw) + 20px); }
}

/* "Response received": the stamp slams in, black-and-white confetti bursts out, a ring pulses */
.win { position: relative; display: inline-block; margin: 6px 0 4px; }
.badge--win { position: relative; z-index: 2; gap: 20px; padding: 16px 30px 16px 16px; border-width: 3px; background: var(--paper); }
.badge--win .badge__tick { width: 60px; height: 60px; }
.badge--win .badge__tick svg { width: 32px; height: 32px; }
.badge--win b { font-size: 1.25rem; letter-spacing: .16em; }
.badge--win span { font-size: .9375rem; margin-top: 4px; }
.badge--win.is-stamp { animation: slam .6s cubic-bezier(.2, 1.5, .35, 1) .1s both; transform-origin: 40% 60%; }
@keyframes slam {
  0% { opacity: 0; transform: scale(2.4) rotate(-10deg); }
  55% { opacity: 1; transform: scale(.92) rotate(1.5deg); }
  75% { transform: scale(1.04) rotate(-.5deg); }
  100% { opacity: 1; transform: none; }
}
.badge--win.is-stamp .badge__tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s ease .6s forwards; }
.win__ring { position: absolute; inset: 0; border: 3px solid var(--ink); opacity: 0; z-index: 1; animation: ring .9s ease-out .5s both; pointer-events: none; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.9); } }
.win__burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 0; pointer-events: none; }
.win__bit { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--ink); opacity: 0;
  animation: burst .95s cubic-bezier(.15, .8, .3, 1) calc(.48s + var(--t)) both; }
.win__bit--1 { background: var(--paper); border: 2px solid var(--ink); }
.win__bit--2 { width: 5px; height: 20px; left: -2px; top: -10px; }
.win__bit--3 { width: 8px; height: 8px; transform: rotate(45deg); }
@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(30px) scale(.4); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--d) + 90px)) scale(1) rotate(160deg); }
}
.win + * { animation: fadeUp .5s var(--ease) .75s both; }
.win ~ p, .win ~ hr { animation: fadeUp .5s var(--ease) .9s both; }
@media (max-width: 900px) {
  .badge--win { padding: 12px 22px 12px 12px; gap: 14px; }
  .badge--win .badge__tick { width: 48px; height: 48px; }
  .badge--win b { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) { .win__burst, .win__ring { display: none; } }
.full__main, .block--thanks { overflow: hidden; }

/* ==========================================================================
   Round 5 (5 Nov): bold "Let's get started!", progress bar lined up with the
   question column, calmer "Response received"
   ========================================================================== */
.intro__go { font-weight: 700; }

/* Laptop/desktop: the top bar uses the same two columns as the page below, so the
   progress bar starts where the questions start and ends where the answer boxes end. */
@media (min-width: 901px) {
  .main { padding-right: 128px; }
  .topbar { display: grid; grid-template-columns: minmax(300px, 36%) 1fr; gap: 0; padding: 0; }
  .topbar__logo { margin-left: 32px; justify-self: start; }
  .progress { margin: 0 0 0 var(--gutter); width: min(720px, calc(100% - var(--gutter) - 128px)); max-width: none; }
  .exit { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
}

/* Response received, calmer: the stamp settles in, the tick draws, one soft ring. No confetti. */
.badge--win.is-stamp { animation: settle .5s cubic-bezier(.2, 1.25, .4, 1) .1s both; }
@keyframes settle { 0% { opacity: 0; transform: scale(1.25); } 100% { opacity: 1; transform: none; } }
.win__ring { animation: ring .8s ease-out .45s both; }
@keyframes ring { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.4); } }
.win + * { animation: fadeUp .45s var(--ease) .55s both; }
.win ~ p, .win ~ hr { animation: fadeUp .45s var(--ease) .65s both; }

/* Round 6 (5 Nov): no ring around the stamp. The badge settles in, then the check box
   pops and the tick draws itself with a small bounce. */
.win__ring { display: none; }
.badge--win.is-stamp { animation: settle .45s ease-out .05s both; }
@keyframes settle { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.badge--win.is-stamp .badge__tick { animation: tickPop .5s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
@keyframes tickPop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.badge--win.is-stamp .badge__tick svg { animation: tickNod .35s ease-out 1.05s both; }
@keyframes tickNod { 0% { transform: scale(1); } 50% { transform: scale(1.25) rotate(-6deg); } 100% { transform: none; } }
.badge--win.is-stamp .badge__tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s ease-out .65s forwards; }

/* Round 9 (6 Nov): sub-field labels (Q7 audiences, Q14 too little / too much) use the same
   type as every other answer label (Perfectly Nineties 600), not the small Gilroy eyebrow. */
.group:not(.group--parts) .subfield__label { font-family: var(--font); font-size: 1.0625rem; font-weight: 600; text-transform: none; letter-spacing: .01rem; }
.group:not(.group--parts) .subfield__opt { text-transform: none; }

/* ==========================================================================
   Round 5 (9 Nov): VERB logo in the side panel (Welcome and question screens),
   above the eyebrow as on the cover. Sits outside .panel__body so it doesn't fade.
   ========================================================================== */
.panel__verb { display: block; width: 84px; height: auto; aspect-ratio: 90 / 30; margin-bottom: 18px; }
@media (max-width: 900px) {
  .panel__foot { display: flex; align-items: center; gap: 14px; width: 100%; }
  .panel__verb { width: 44px; margin: 0; flex: none; }
  .panel__body { flex: 1; min-width: 0; }
}
/* Eyebrow row: "PART 5 OF 6 | QUESTION 13 OF 16", then a grey rule, then the
   part name. Replaces the big number and divider to make room for the VERB logo.
   The question label wraps under the part on narrow panels. */
@media (min-width: 901px) {
  .panel__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
  .panel__part { order: 1; margin: 0; white-space: nowrap; }
  .panel__qnum { order: 2; gap: 6px; margin: 0; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid rgba(255,255,255,.35); white-space: nowrap; }
  .panel__qnum b, .panel__qnum span { font-family: var(--font-note); font-size: .75rem; font-weight: 600; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); }
  .panel__section { order: 3; flex-basis: 100%; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.35); }
}
