:root {
  --yellow: #f5e878;
  --yellow-soft: #fff7c2;
  --blue: #4967d4;
  --pink: #e98bb4;
  --orange: #ef865d;
  --mint: #c9eaa9;
  --red: #a92b24;
  --cream: #fffdf4;
  --white: #ffffff;
  --ink: #101010;
  --muted: #4c4c46;
  --border: 4px solid var(--ink);
  --shadow-sm: 6px 6px 0 var(--ink);
  --shadow-lg: 12px 12px 0 var(--ink);
  --display: "Bowlby One SC", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-200%);
  border: var(--border);
  background: var(--white);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 4px solid var(--white);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--ink);
}

.emergency-ribbon {
  position: relative;
  z-index: 30;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 0.55rem clamp(1rem, 4vw, 3.5rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.emergency-ribbon strong {
  color: var(--yellow);
}

.emergency-ribbon a {
  color: var(--yellow);
  font-weight: 700;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  transform: rotate(-4deg);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font-family: var(--mono);
  font-size: 0.8rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  border: 2px solid transparent;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--ink);
  background: var(--white);
}

.hero {
  position: relative;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 0 47%, rgb(16 16 16 / 8%) 47% 48%, transparent 48% 100%),
    var(--yellow-soft);
}

.marquee {
  overflow: hidden;
  border-bottom: var(--border);
  background: var(--pink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.marquee-track {
  width: max-content;
  padding: 0.72rem 0;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  width: min(1440px, calc(100% - 2rem));
  min-height: min(780px, calc(100vh - 8rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 1.2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 0.45rem 0.65rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.eyebrow span:last-child {
  transform: rotate(1.5deg);
  background: var(--mint);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.4rem, 11vw, 10.6rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.73;
  text-transform: uppercase;
}

.hero h1 span {
  position: relative;
  display: inline-block;
}

.title-aging {
  color: var(--blue);
  -webkit-text-stroke: clamp(2px, 0.35vw, 5px) var(--ink);
  text-shadow: clamp(4px, 0.7vw, 9px) clamp(4px, 0.7vw, 9px) 0 var(--white);
}

.title-or {
  z-index: 2;
  align-self: flex-end;
  transform: translate(-8%, 18%) rotate(-8deg);
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  padding: 0.11em 0.22em 0.05em;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.18em;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--ink);
  -webkit-text-stroke: 0;
}

.title-dying {
  margin-top: 0.07em;
  color: var(--orange);
  -webkit-text-stroke: clamp(2px, 0.35vw, 5px) var(--ink);
  text-shadow: clamp(4px, 0.7vw, 9px) clamp(4px, 0.7vw, 9px) 0 var(--pink);
}

.hero-deck {
  max-width: 760px;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.7rem;
  border: var(--border);
  padding: 0.8rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.text-link {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-fine-print {
  max-width: 680px;
  margin: 1.6rem 0 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.body-poster {
  position: relative;
  width: min(100%, 500px);
  min-height: 580px;
  justify-self: center;
  transform: rotate(2deg);
  border: var(--border);
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgb(16 16 16 / 9%) 18px 21px),
    var(--blue);
  box-shadow: 18px 18px 0 var(--ink);
}

.poster-burst {
  position: absolute;
  z-index: 4;
  top: -2rem;
  right: 0.5rem;
  display: grid;
  width: 7.5rem;
  height: 7.5rem;
  place-items: center;
  transform: rotate(12deg);
  background: var(--yellow);
  font-family: var(--display);
  font-size: 1.25rem;
  clip-path: polygon(50% 0%, 60% 25%, 79% 9%, 80% 33%, 100% 30%, 87% 51%, 100% 68%, 76% 70%, 80% 94%, 59% 80%, 50% 100%, 40% 79%, 17% 95%, 22% 69%, 0% 67%, 14% 50%, 0% 31%, 24% 32%, 20% 9%, 40% 25%);
}

.poster-head {
  position: absolute;
  top: 4.8rem;
  left: 50%;
  width: 10.5rem;
  height: 9rem;
  transform: translateX(-50%) rotate(-2deg);
  border: var(--border);
  border-radius: 48% 52% 46% 54%;
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink);
}

.poster-eye {
  position: absolute;
  top: 2.5rem;
  width: 1.2rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--ink);
}

.poster-eye:first-child {
  left: 2.5rem;
}

.poster-eye:nth-child(2) {
  right: 2.5rem;
}

.poster-mouth {
  position: absolute;
  bottom: 1.55rem;
  left: 50%;
  width: 3.2rem;
  height: 1.15rem;
  transform: translateX(-50%);
  border: 4px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 50% 50%;
}

.poster-torso {
  position: absolute;
  top: 14rem;
  left: 50%;
  width: 15rem;
  height: 17rem;
  transform: translateX(-50%);
  border: var(--border);
  border-radius: 42% 42% 14% 14%;
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--ink);
}

.poster-torso::before,
.poster-torso::after {
  content: "";
  position: absolute;
  top: 3rem;
  width: 4.5rem;
  height: 12rem;
  border: var(--border);
  border-radius: 50%;
  background: var(--orange);
}

.poster-torso::before {
  left: -4rem;
  transform: rotate(14deg);
}

.poster-torso::after {
  right: -4rem;
  transform: rotate(-14deg);
}

.poster-heart {
  position: absolute;
  z-index: 2;
  top: 3rem;
  left: 50%;
  display: grid;
  width: 6.3rem;
  height: 6.3rem;
  place-items: center;
  transform: translateX(-50%) rotate(-6deg);
  border: var(--border);
  border-radius: 50%;
  background: var(--pink);
  font-family: var(--display);
  font-size: 3rem;
  box-shadow: 5px 5px 0 var(--ink);
}

.poster-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 5;
  transform: rotate(-2deg);
  border: var(--border);
  background: var(--white);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.poster-caption strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.poster-caption span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.poster-sticker {
  position: absolute;
  z-index: 6;
  border: 3px solid var(--ink);
  background: var(--mint);
  padding: 0.55rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
}

.sticker-one {
  top: 12rem;
  left: -1.7rem;
  transform: rotate(-11deg);
}

.sticker-two {
  top: 21rem;
  right: 0.5rem;
  transform: rotate(8deg);
  background: var(--pink);
}

.assessment-section {
  position: relative;
  border-bottom: var(--border);
  background:
    radial-gradient(var(--ink) 1.5px, transparent 1.5px) 0 0 / 20px 20px,
    var(--cream);
  padding: clamp(4rem, 8vw, 8rem) 1rem;
}

.section-heading {
  width: min(980px, 100%);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
.safety-section h2,
.source-strip h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-transform: uppercase;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 1.1rem auto 0;
  font-size: 1.05rem;
}

.assessment-shell {
  position: relative;
  width: min(1080px, 100%);
  margin: 0 auto;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.ticket-preview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  border-bottom: var(--border);
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.3rem;
  font-family: var(--mono);
}

.ticket-label,
.ticket-number {
  color: var(--yellow);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-preview p {
  overflow: hidden;
  margin: 0;
  font-size: 0.78rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#assessment-form {
  padding: clamp(1rem, 3vw, 2rem);
}

.question-card {
  margin: 0 0 1.4rem;
  border: var(--border);
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.question-card legend {
  max-width: calc(100% - 1.5rem);
  padding: 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.question-card legend span {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  margin-right: 0.35rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.8rem;
  box-shadow: 3px 3px 0 var(--ink);
  vertical-align: middle;
}

.question-yellow {
  background: var(--yellow-soft);
}

.question-pink {
  background: #f8cfe0;
}

.question-blue {
  background: #c7d0f7;
}

.question-mint {
  background: #d9edc5;
}

.question-emergency {
  background: var(--white);
  border-color: var(--red);
  box-shadow: 6px 6px 0 var(--red);
}

.question-emergency legend {
  color: var(--red);
}

.field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.field-row-age input {
  width: 7rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > span,
.field-help,
.question-intro {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.field-help {
  margin: 0.6rem 0 0;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  min-height: 3.5rem;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 2.5rem;
}

input::placeholder {
  color: #686860;
  font-weight: 400;
}

.choice-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.choice-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input,
.danger-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: grid;
  min-height: 5.2rem;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--white);
  padding: 0.65rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 100ms ease, background 100ms ease;
}

.choice:hover span {
  transform: translateY(-2px);
}

.choice input:checked + span {
  transform: translate(3px, 3px);
  background: var(--yellow);
  box-shadow: none;
}

.choice input:focus-visible + span,
.danger-choice input:focus-visible + span {
  outline: 4px solid var(--white);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--ink);
}

.danger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.danger-choice {
  position: relative;
  cursor: pointer;
}

.danger-choice span {
  display: flex;
  min-height: 100%;
  align-items: center;
  gap: 0.7rem;
  border: 2px solid var(--ink);
  padding: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.danger-choice span::before {
  content: "";
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--ink);
  background: var(--white);
}

.danger-choice input:checked + span {
  background: #ffd8d6;
  color: #620b07;
}

.danger-choice input:checked + span::before {
  background:
    linear-gradient(45deg, transparent 41%, var(--red) 42% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 41%, var(--red) 42% 57%, transparent 58%),
    var(--white);
}

.danger-choice-wide {
  grid-column: 1 / -1;
}

.emergency-inline,
.form-error {
  border: 3px solid var(--red);
  background: #ffd8d6;
  color: #620b07;
  padding: 0.8rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.emergency-inline {
  margin: 1rem 0 0;
}

.form-error {
  margin: 0 0 1rem;
}

.wizard-controls {
  display: none;
}

.wizard-button {
  min-height: 2.85rem;
  border: 3px solid var(--ink);
  background: var(--white);
  padding: 0.55rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.wizard-button:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.wizard-next {
  background: var(--ink);
  color: var(--white);
}

.wizard-status {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.wizard-track {
  overflow: hidden;
  height: 0.55rem;
  border: 2px solid var(--ink);
  background: var(--white);
}

.wizard-track span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--blue);
  transition: width 180ms ease;
}

.submit-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 0.6rem 0.2rem 0.2rem;
}

.button-submit {
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.85rem;
}

.button-submit span {
  font-size: 1.6rem;
}

.submit-row p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.result-card {
  margin: 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  border: 5px solid var(--ink);
  background: var(--result-color, var(--yellow-soft));
  padding: clamp(1.5rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}

.result-card[data-outcome="aging"] {
  --result-color: #eef8e3;
}

.result-card[data-outcome="human"] {
  --result-color: #fff0e7;
}

.result-card[data-outcome="emergency"] {
  --result-color: #fff5f3;
  border-color: var(--red);
  color: var(--ink);
  box-shadow: 12px 12px 0 #6e1f1a;
}

.result-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  border: 3px solid currentColor;
  padding: 0.35rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.result-card[data-outcome="emergency"] .result-eyebrow {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.result-card[data-outcome="emergency"] h2 {
  color: #741d18;
}

.result-body {
  max-width: 800px;
  margin: 1.5rem 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
}

.result-steps {
  max-width: 820px;
  border: 3px solid var(--ink);
  background: rgb(255 255 255 / 68%);
  padding: 1rem;
}

.result-steps h3,
.share-panel h3 {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.result-steps ol {
  margin: 0;
  padding-left: 1.4rem;
}

.result-steps li + li {
  margin-top: 0.5rem;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.result-actions .button {
  background: var(--white);
  color: var(--ink);
}

.result-card[data-outcome="emergency"] .result-actions .button:first-child {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  box-shadow: 6px 6px 0 #6e1f1a;
}

.button-reset {
  border: 3px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.8rem 1.2rem;
  align-items: center;
  margin-top: 1.4rem;
  border: 3px solid var(--ink);
  background: var(--white);
  padding: 1rem;
}

.share-panel h3 {
  margin-bottom: 0.2rem;
}

.share-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.share-controls {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.share-controls button,
.share-controls a {
  display: inline-grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  padding: 0.45rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.share-controls .share-main {
  background: var(--blue);
  color: var(--white);
}

.share-status {
  grid-column: 1 / -1;
  min-height: 1.3em;
  font-family: var(--mono);
  font-size: 0.68rem !important;
  font-weight: 700;
}

.result-source,
.screening-section {
  margin-top: 1rem;
  border: 3px solid var(--ink);
  background: rgb(255 255 255 / 62%);
}

.result-source summary,
.screening-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.result-source summary::-webkit-details-marker,
.screening-section summary::-webkit-details-marker {
  display: none;
}

.result-source summary::after,
.screening-section summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.2rem;
  line-height: 1;
}

.result-source[open] summary::after,
.screening-section[open] summary::after {
  content: "−";
}

.screening-section summary small {
  margin-left: auto;
  color: var(--muted);
  font: inherit;
  font-size: 0.6rem;
}

.result-source-body,
.screening-content {
  border-top: 2px solid var(--ink);
  padding: 1rem;
}

.result-source-body p,
.screening-intro {
  max-width: 760px;
  margin: 0 0 0.8rem;
}

.result-source a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.screening-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.screening-card {
  border: 3px solid currentColor;
  background: var(--white);
  color: var(--ink);
  padding: 1rem;
}

.screening-card small {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.screening-card h4 {
  margin: 0.45rem 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.screening-card p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.screening-card a {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.prevention-section {
  border-bottom: var(--border);
  background:
    linear-gradient(135deg, transparent 0 49%, rgb(16 16 16 / 8%) 49% 51%, transparent 51% 100%) 0 0 / 38px 38px,
    var(--orange);
  padding: clamp(4rem, 8vw, 8rem) 1rem;
}

.prevention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.prevention-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border: var(--border);
  background: var(--white);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 8px 8px 0 var(--ink);
}

.prevention-card-ahead {
  transform: translateY(-0.8rem) rotate(-1deg);
  background: var(--yellow);
}

.prevention-card-care {
  background: var(--mint);
}

.prevention-label {
  width: fit-content;
  margin: 0 0 1rem;
  border: 2px solid var(--ink);
  background: var(--pink);
  padding: 0.35rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prevention-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.prevention-card > p:not(.prevention-label) {
  margin: 1rem 0 1.5rem;
}

.prevention-card > a {
  margin-top: auto;
  border-top: 3px solid var(--ink);
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.prevention-boundary {
  width: min(1000px, 100%);
  margin: 2.5rem auto 0;
  border: 3px solid var(--ink);
  background: var(--white);
  padding: 1rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 5px 5px 0 var(--ink);
}

.prevention-boundary a {
  display: inline-block;
  margin-left: 0.35rem;
}

.how-section {
  border-bottom: var(--border);
  background: var(--blue);
  color: var(--white);
  padding: clamp(4rem, 8vw, 8rem) 1rem;
}

.section-heading-light {
  text-align: left;
  width: min(1200px, 100%);
}

.section-heading-light h2 {
  max-width: 1050px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.how-grid article {
  position: relative;
  border: 4px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  padding: 1.5rem;
  box-shadow: 8px 8px 0 var(--ink);
}

.how-grid article:nth-child(2) {
  transform: translateY(1.5rem);
  background: var(--pink);
}

.how-grid article:nth-child(3) {
  background: var(--yellow);
}

.how-number {
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--blue);
  -webkit-text-stroke: 2px var(--ink);
}

.how-grid h3 {
  margin: 0.7rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.how-grid p {
  margin: 0;
}

.safety-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  border-bottom: var(--border);
  background: var(--pink);
  padding: clamp(4rem, 8vw, 8rem) max(1rem, calc((100vw - 1200px) / 2));
}

.safety-stamp {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(-8deg);
  border: 8px double var(--ink);
  border-radius: 50%;
  padding: 1rem;
  background: var(--yellow);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 8px 8px 0 var(--ink);
}

.safety-section h2 {
  max-width: 960px;
}

.safety-section > div:last-child > p:last-child {
  max-width: 840px;
  margin: 1.2rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.source-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 6rem);
  border-bottom: var(--border);
  background: var(--mint);
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - 1200px) / 2));
}

.source-strip h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.source-links {
  display: grid;
  border-top: 3px solid var(--ink);
}

.source-links a {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) 1fr;
  gap: 1rem;
  border-bottom: 3px solid var(--ink);
  padding: 1rem 0;
  font-weight: 700;
  text-decoration: none;
}

.source-links a:hover {
  padding-left: 0.7rem;
  background: var(--white);
}

.source-links span {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(180px, 0.45fr) minmax(260px, 0.75fr);
  gap: 2rem;
  background: var(--ink);
  color: var(--white);
  padding: clamp(3rem, 7vw, 6rem) max(1rem, calc((100vw - 1200px) / 2));
}

.footer-main {
  display: grid;
  gap: 1rem;
}

.footer-logo {
  color: var(--yellow);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 0.8;
  text-decoration: none;
}

.footer-main p {
  max-width: 440px;
  margin: 0;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-disclaimer {
  margin: 0;
  color: #d8d8cf;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.65;
  text-transform: uppercase;
}

.noscript-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 100;
  border: var(--border);
  background: var(--red);
  color: var(--white);
  padding: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .body-poster {
    width: min(92%, 480px);
    min-height: 540px;
  }

  .hero h1 {
    width: min-content;
  }

  .choice-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .prevention-grid {
    grid-template-columns: 1fr;
  }

  .prevention-card {
    min-height: 0;
  }

  .prevention-card-ahead {
    transform: none;
  }

  .how-grid article:nth-child(2) {
    transform: none;
  }

  .source-strip {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-disclaimer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero-grid {
    min-height: 0;
    padding: 2.4rem 0 3.2rem;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 22vw, 7rem);
  }

  .hero-deck {
    margin-top: 2.2rem;
  }

  .body-poster {
    display: none;
  }

  .poster-burst {
    top: -1rem;
    right: 0.25rem;
    width: 6.25rem;
    height: 6.25rem;
    font-size: 1rem;
  }

  .sticker-two {
    right: 0.25rem;
  }

  .poster-head {
    top: 4rem;
    width: 8.8rem;
    height: 7.6rem;
  }

  .poster-eye {
    top: 2rem;
  }

  .poster-eye:first-child {
    left: 2rem;
  }

  .poster-eye:nth-child(2) {
    right: 2rem;
  }

  .poster-torso {
    top: 12rem;
    width: 12rem;
    height: 14rem;
  }

  .poster-torso::before,
  .poster-torso::after {
    width: 3.5rem;
    height: 9rem;
  }

  .poster-torso::before {
    left: -3rem;
  }

  .poster-torso::after {
    right: -3rem;
  }

  .poster-heart {
    width: 5rem;
    height: 5rem;
  }

  .assessment-shell {
    box-shadow: 7px 7px 0 var(--ink);
  }

  .assessment-section {
    padding: 3.5rem 0.75rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  #assessment-form {
    padding: 0.75rem;
  }

  #assessment-form.wizard-enabled .question-card {
    display: none;
  }

  #assessment-form.wizard-enabled .question-card.is-active {
    display: block;
  }

  #assessment-form.wizard-enabled .submit-row {
    display: none;
  }

  #assessment-form.wizard-enabled.wizard-last .submit-row {
    display: grid;
  }

  .question-card {
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .question-card legend {
    max-width: calc(100% - 0.5rem);
  }

  .wizard-controls:not([hidden]) {
    display: grid;
    grid-template-columns: auto minmax(90px, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    margin: 0.85rem 0 1rem;
  }

  .ticket-preview {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    text-align: center;
  }

  .ticket-preview p {
    white-space: normal;
  }

  .field-grid,
  .danger-grid,
  .submit-row,
  .result-grid,
  .screening-grid {
    grid-template-columns: 1fr;
  }

  .danger-choice-wide {
    grid-column: auto;
  }

  .danger-choice span {
    padding: 0.65rem;
    font-size: 0.82rem;
  }

  .result-card {
    margin: 0 0.75rem 0.75rem;
    padding: 1.15rem;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .result-card[data-outcome="emergency"] {
    box-shadow: 7px 7px 0 #6e1f1a;
  }

  .result-card h2 {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
  }

  .result-body {
    margin: 1rem 0;
    font-size: 1rem;
  }

  .result-steps {
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .result-actions {
    margin-top: 1rem;
  }

  .share-panel {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .share-controls {
    justify-content: flex-start;
  }

  .share-status {
    grid-column: auto;
  }

  .result-source summary,
  .screening-section summary {
    padding: 0.75rem 0.85rem;
    font-size: 0.66rem;
  }

  .screening-section summary small {
    display: none;
  }

  .safety-section {
    grid-template-columns: 1fr;
  }

  .safety-stamp {
    width: min(220px, 60vw);
  }

  .source-links a {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-disclaimer {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .emergency-ribbon {
    text-align: left;
  }

  .brand > span:last-child {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 0.5rem;
  }

  .marquee {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 21vw, 5.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-dark {
    width: 100%;
  }

  .choice-grid-four {
    grid-template-columns: 1fr;
  }

  .question-card legend {
    font-size: 1.15rem;
  }

  .wizard-controls:not([hidden]) {
    grid-template-columns: auto 1fr auto;
    gap: 0.45rem;
  }

  .wizard-button {
    padding-inline: 0.55rem;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-actions .button,
  .button-reset {
    width: 100%;
  }

  .share-controls .share-main {
    flex: 1 0 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
