:root {
  --ink: #14120f;
  --paper: #f8f2df;
  --paper-deep: #ead7a6;
  --red: #b8322b;
  --green: #124a3a;
  --blue: #245f73;
  --gold: #d5a33a;
  --shadow: rgba(20, 18, 15, 0.18);
  --mono: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: Inter, Avenir, "Segoe UI", system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--green);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(213, 163, 58, 0.34), transparent 28rem),
    linear-gradient(135deg, #0c352d 0%, #123f39 42%, #1f5361 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  align-content: center;
  gap: 24px;
}

.mission {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
}

.dossier,
.intel,
.answer-card {
  border: 1px solid rgba(248, 242, 223, 0.8);
  box-shadow: 0 30px 80px var(--shadow);
}

.dossier {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(112deg, rgba(184, 50, 43, 0.11) 0 16%, transparent 16% 100%),
    repeating-linear-gradient(0deg, rgba(20, 18, 15, 0.025) 0 1px, transparent 1px 9px),
    var(--paper);
  border-radius: 8px;
}

.dossier::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(20, 18, 15, 0.14);
  border-radius: 4px;
  pointer-events: none;
}

.stamp {
  position: absolute;
  top: 42px;
  right: clamp(28px, 6vw, 72px);
  rotate: 9deg;
  padding: 10px 16px;
  border: 3px solid var(--red);
  color: var(--red);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.45vw, 0.9rem);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.eyebrow,
.answer-kicker,
.intel-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  max-width: 52ch;
  color: var(--blue);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(4rem, 12vw, 10.5rem);
  line-height: 0.82;
}

.lede {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 30px 0 0;
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  line-height: 1.35;
  font-weight: 700;
}

.briefcase {
  position: absolute;
  right: clamp(34px, 5.2vw, 62px);
  bottom: 30px;
  width: min(260px, 29vw);
  aspect-ratio: 1.32;
  transform: rotate(-3deg);
}

.handle {
  width: 36%;
  height: 22%;
  margin: 0 auto -2%;
  border: 11px solid #56351f;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
}

.case-top,
.case-body {
  position: relative;
  background: #7b4a28;
  border: 4px solid #3a2113;
}

.case-top {
  height: 28%;
  border-radius: 16px 16px 0 0;
  background:
    linear-gradient(90deg, transparent 0 44%, var(--gold) 44% 56%, transparent 56%),
    #8c5531;
}

.case-body {
  height: 58%;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(90deg, transparent 0 44%, var(--gold) 44% 56%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 6px, transparent 6px 18px),
    #734422;
}

.ribbon {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 44%, var(--gold) 44% 56%, transparent 56%);
}

.lock {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  translate: -50% 0;
  border: 4px solid #3a2113;
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 900;
}

.reveal-button {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff8e8;
  background: var(--red);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(184, 50, 43, 0.28);
}

.reveal-button:focus-visible,
.choice:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

.reveal-button:hover,
.choice:hover {
  transform: translateY(-2px);
}

.signal {
  position: absolute;
  left: 24px;
  bottom: 18px;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 128px;
  height: 58px;
  align-items: end;
  pointer-events: none;
}

.signal span {
  display: block;
  height: 30%;
  border-radius: 999px 999px 0 0;
  background: var(--gold);
  animation: pulse 1.4s ease-in-out infinite;
}

.signal span:nth-child(2) { height: 72%; animation-delay: 0.12s; }
.signal span:nth-child(3) { height: 48%; animation-delay: 0.24s; }
.signal span:nth-child(4) { height: 94%; animation-delay: 0.36s; }
.signal span:nth-child(5) { height: 58%; animation-delay: 0.48s; }
.signal span:nth-child(6) { height: 80%; animation-delay: 0.6s; }

.intel {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  color: var(--paper);
  background:
    linear-gradient(rgba(20, 18, 15, 0.25), rgba(20, 18, 15, 0.25)),
    repeating-linear-gradient(135deg, rgba(248, 242, 223, 0.08) 0 1px, transparent 1px 12px);
}

.intel > div {
  padding: 18px;
  border: 1px solid rgba(248, 242, 223, 0.26);
  border-radius: 6px;
}

.intel strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.18;
}

.intel-label {
  color: var(--gold);
}

.answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 520ms ease, opacity 360ms ease;
}

.answer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.answer-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  padding: 0 clamp(24px, 5vw, 56px);
}

.answer.is-open .answer-card {
  padding-top: clamp(28px, 5vw, 52px);
  padding-bottom: clamp(28px, 5vw, 52px);
}

.answer-kicker {
  color: var(--red);
}

h2 {
  max-width: 900px;
  margin-top: 12px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.95;
}

.answer-card p:not(.answer-kicker) {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.choice {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease;
}

.choice.primary {
  border: 2px solid var(--green);
  color: var(--paper);
  background: var(--green);
}

.choice.secondary {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes pulse {
  0%, 100% { transform: scaleY(0.7); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

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

  .dossier {
    min-height: 690px;
  }

  .briefcase {
    width: min(220px, 44vw);
    right: 28px;
    bottom: 28px;
  }

  .intel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0 18px;
  }

  .dossier {
    min-height: 670px;
    padding: 24px;
  }

  .dossier::before {
    inset: 10px;
  }

  .stamp {
    position: static;
    display: inline-block;
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .lede {
    font-size: 1.04rem;
  }

  .reveal-button {
    width: 100%;
    margin-top: 30px;
  }

  .briefcase {
    left: auto;
    right: 24px;
    bottom: 28px;
    width: min(180px, 54vw);
    translate: 0 0;
  }

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

  .signal {
    display: none;
  }

  .choice {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
