@import url("https://fonts.googleapis.com/css2?family=Bungee:wght@400&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --cream: #fff8ea;
  --paper: rgba(255, 250, 241, 0.92);
  --butter: #ffd34d;
  --orange: #f59d27;
  --tomato: #ef4a31;
  --navy: #183a79;
  --sky: #76d3f8;
  --grass: #3f9957;
  --ink: #211914;
  --line: rgba(33, 25, 20, 0.12);
  --line-strong: rgba(33, 25, 20, 0.18);
  --shadow: 0 20px 50px rgba(73, 39, 13, 0.16);
  --headline-font: "Bungee", Impact, sans-serif;
  --body-font: "Space Grotesk", "Trebuchet MS", sans-serif;
  --mono-font: "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 14px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 211, 77, 0.65), transparent 16%),
    radial-gradient(circle at 86% 9%, rgba(118, 211, 248, 0.5), transparent 15%),
    radial-gradient(circle at 84% 86%, rgba(63, 153, 87, 0.18), transparent 15%),
    linear-gradient(180deg, #fffaf2 0%, #ffe9c9 48%, #fffdf7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.88) 1px, transparent 0),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px, 32px 32px, 32px 32px;
  mask-image: radial-gradient(circle at center, black 58%, transparent 95%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100% - 20px, 1160px);
  margin: 0 auto;
  padding: 14px 0 108px;
}

.masthead,
.hero,
.panel,
.closing {
  position: relative;
  overflow: clip;
  border: 2px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.masthead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px 18px;
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: var(--headline-font);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.masthead__tag {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(33, 25, 20, 0.64);
}

.nav {
  display: none;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(145deg, rgba(255, 251, 246, 0.96), rgba(255, 232, 184, 0.92));
}

.hero__media,
.hero__copy {
  display: grid;
  gap: 16px;
}

.hero__copy {
  order: 1;
}

.hero__media {
  order: 2;
}

.hero-screen,
.story-card,
.family-card,
.obsession-card,
.lab-card,
.travel-card,
.evidence-card,
.report-card,
.dispatch-card,
.field-note,
.kpi-card,
.peek-card {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-screen {
  background: rgba(17, 26, 49, 0.98);
  color: white;
}

.hero-screen__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-family: var(--mono-font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-screen__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 211, 77, 0.96);
  color: var(--ink);
}

.hero-screen__live {
  color: rgba(255, 255, 255, 0.74);
}

.hero-screen img {
  width: 100%;
  aspect-ratio: 0.95;
  object-fit: cover;
  object-position: center 36%;
}

.hero-screen__caption {
  display: grid;
  gap: 8px;
  padding: 14px;
  line-height: 1.5;
}

.hero-screen__caption strong {
  font-size: 1rem;
}

.hero-screen__caption span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-selector {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.hero-selector::-webkit-scrollbar,
.obsession-grid::-webkit-scrollbar {
  display: none;
}

.hero-selector__button {
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hero-selector__button.is-active {
  border-color: rgba(24, 58, 121, 0.22);
  background: rgba(24, 58, 121, 0.95);
  color: white;
}

.hero-selector__button:hover,
.hero-selector__button:focus-visible {
  transform: translateY(-1px);
}

.hero-peek,
.hero-kpis,
.receipt-list,
.lab-grid,
.travel-grid,
.family-grid,
.story-grid,
.evidence-grid {
  display: grid;
  gap: 14px;
}

.hero-peek > *,
.hero-kpis > *,
.family-grid > *,
.story-grid > *,
.lab-grid > *,
.travel-grid > *,
.evidence-grid > * {
  min-width: 0;
}

.peek-card,
.kpi-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.peek-card p,
.kpi-card p,
.story-card__tag,
.family-card__tag,
.obsession-card__tag,
.poll-card__title,
.range-wrap span {
  margin: 0 0 8px;
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(33, 25, 20, 0.58);
}

.peek-card h3,
.kpi-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(33, 25, 20, 0.62);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--headline-font);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 12vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 9vw, 3.2rem);
}

h3 {
  font-size: clamp(1.05rem, 5vw, 1.4rem);
}

.hero__lede,
.section-copy,
.dispatch-card__copy,
.story-card p,
.family-card__body p,
.obsession-card__body p,
.lab-card p,
.travel-copy p,
.travel-card figcaption,
.evidence-card figcaption,
.report-card p,
.closing__copy {
  font-size: 1rem;
  line-height: 1.64;
}

.hero__lede {
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.button:active,
.hero-selector__button:active,
.nav a:active,
.mobile-dock a:active {
  transform: translateY(1px) scale(0.99);
}

.button:focus-visible,
.hero-selector__button:focus-visible,
.nav a:focus-visible,
.mobile-dock a:focus-visible,
input[type="range"]:focus-visible {
  outline: 3px solid rgba(118, 211, 248, 0.95);
  outline-offset: 3px;
}

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--tomato), #d63d1f);
  box-shadow: 0 14px 28px rgba(239, 74, 49, 0.28);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(33, 25, 20, 0.14);
}

.button--dark {
  color: white;
  background: linear-gradient(135deg, var(--navy), #071f4d);
}

.micro-note {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(33, 25, 20, 0.62);
}

.dispatch-card {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(195, 234, 247, 0.85));
}

.dispatch-card__title {
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1.1;
}

.dispatch-card__copy {
  margin: 14px 0 18px;
}

.ticker {
  margin: 14px 0 20px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 24, 21, 0.96);
  color: white;
  box-shadow: var(--shadow);
}

.ticker__track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 12px 18px;
  font-family: var(--mono-font);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: ticker-scroll 28s linear infinite;
}

.ticker__track span::after {
  content: "/";
  margin-left: 28px;
  color: var(--butter);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

main > * {
  min-width: 0;
}

.panel {
  padding: 20px;
}

.hero[id],
.panel[id] {
  scroll-margin-top: 14px;
}

.panel--story {
  background:
    radial-gradient(circle at top left, rgba(255, 211, 77, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(255, 248, 231, 0.98), rgba(255, 232, 182, 0.92));
}

.panel--family {
  background:
    linear-gradient(135deg, rgba(17, 56, 115, 0.97), rgba(41, 118, 178, 0.94));
  color: white;
}

.panel--family .eyebrow,
.panel--family .section-copy,
.panel--travel .eyebrow,
.panel--travel .section-copy,
.field-note .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.panel--obsessions {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 242, 213, 0.95));
}

.panel--lab {
  background:
    radial-gradient(circle at top right, rgba(118, 211, 248, 0.3), transparent 22%),
    linear-gradient(135deg, rgba(255, 251, 245, 0.98), rgba(241, 233, 255, 0.92));
}

.panel--travel {
  background:
    linear-gradient(135deg, rgba(14, 45, 95, 0.98), rgba(49, 126, 191, 0.94));
  color: white;
}

.panel--evidence {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 240, 202, 0.94));
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-copy {
  margin: 0;
  max-width: 48rem;
}

.story-card {
  background: rgba(255, 255, 255, 0.78);
}

.story-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.story-card figcaption {
  padding: 16px;
  line-height: 1.55;
}

.story-card--receipt {
  padding: 20px;
}

.story-card--receipt p:last-child {
  margin-bottom: 0;
}

.receipt-list {
  margin: 18px 0;
}

.receipt-list div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(33, 25, 20, 0.12);
}

.receipt-list div:last-child {
  border-bottom: 0;
}

.receipt-list span {
  font-weight: 500;
  color: rgba(33, 25, 20, 0.64);
}

.receipt-list span,
.receipt-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.receipt-list strong {
  text-align: left;
}

.family-card,
.travel-card,
.lab-card {
  background: rgba(255, 255, 255, 0.12);
}

.family-card img,
.obsession-card img,
.travel-card img,
.evidence-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.family-card__body,
.obsession-card__body {
  padding: 18px;
}

.family-card__tag {
  color: rgba(221, 238, 255, 0.9);
}

.travel-card img {
  height: auto;
  max-height: clamp(260px, 78vw, 420px);
  object-fit: contain;
  object-position: center;
}

.family-card--mom img {
  object-position: center 18%;
}

.family-card--wide img {
  min-height: 280px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-row span {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.tag-row--dark span {
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.obsession-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 84%);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.obsession-card {
  background: rgba(255, 255, 255, 0.88);
  scroll-snap-align: start;
}

.obsession-card__tag {
  color: rgba(33, 25, 20, 0.5);
}

.obsession-card__body p:last-child,
.family-card__body p:last-child {
  margin-bottom: 0;
}

.lab-grid {
  gap: 16px;
}

.lab-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.lab-card__mono {
  margin: 0 0 12px;
  font-family: var(--mono-font);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.launch-readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.launch-readout strong {
  font-family: var(--headline-font);
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1;
  color: var(--tomato);
}

.launch-readout span {
  font-weight: 700;
  color: rgba(33, 25, 20, 0.64);
}

.range-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.range-wrap strong {
  font-family: var(--headline-font);
  font-size: 1.9rem;
  color: var(--navy);
}

input[type="range"] {
  width: 100%;
  margin: 0 0 12px;
  accent-color: var(--tomato);
}

.radar {
  margin-bottom: 12px;
}

.radar__track {
  overflow: hidden;
  height: 16px;
  border-radius: 999px;
  background: rgba(24, 58, 121, 0.12);
}

.radar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--grass), var(--butter), var(--tomato));
  transition: width 180ms ease;
}

.radar__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--mono-font);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.travel-layout {
  display: grid;
  gap: 16px;
}

.travel-copy p {
  margin: 18px 0 0;
}

.field-note {
  margin-top: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.field-note p:last-of-type {
  margin-bottom: 18px;
}

.travel-card {
  background: rgba(255, 255, 255, 0.12);
}

.travel-card figcaption {
  padding: 16px;
}

.evidence-layout {
  display: grid;
  gap: 16px;
}

.evidence-card {
  background: rgba(255, 255, 255, 0.9);
}

.evidence-card figcaption {
  padding: 16px;
}

.report-card {
  padding: 22px;
  background: rgba(255, 249, 235, 0.96);
}

.report-card h3 {
  font-size: clamp(1.35rem, 7vw, 1.9rem);
  line-height: 1.12;
}

.report-card p {
  margin-top: 14px;
}

.poll-card {
  margin-top: 22px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(24, 58, 121, 0.08);
}

.poll-card__bar {
  overflow: hidden;
  height: 16px;
  border-radius: 999px;
  background: rgba(24, 58, 121, 0.12);
}

.poll-card__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--butter), var(--orange));
}

.poll-card__copy {
  margin: 10px 0 0;
}

.closing {
  display: grid;
  gap: 14px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(239, 74, 49, 0.97), rgba(242, 156, 37, 0.94));
  color: white;
}

.closing .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.closing h2 span {
  display: inline;
  color: #fff7ce;
  font-size: 0.48em;
}

.closing__copy {
  margin: 0;
}

.mobile-dock {
  position: fixed;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 2px solid rgba(33, 25, 20, 0.1);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(46, 29, 11, 0.16);
}

.mobile-dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 16px;
  font-weight: 700;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-dock a:hover,
.mobile-dock a:focus-visible {
  background: rgba(255, 211, 77, 0.3);
}

.mobile-dock a.is-active,
.nav a.is-active {
  color: var(--navy);
  background: rgba(255, 211, 77, 0.34);
  box-shadow: inset 0 0 0 2px rgba(24, 58, 121, 0.12);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

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

@media (min-width: 700px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
    padding-bottom: 32px;
  }

  .hero,
  .panel,
  .closing {
    padding: 26px;
  }

  .masthead {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .masthead__tag {
    flex: 1;
    margin-left: 16px;
  }

  .hero-kpis,
  .hero-peek,
  .lab-grid,
  .travel-grid,
  .family-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .family-card--wide,
  .story-card--receipt {
    grid-column: span 2;
  }

  .obsession-grid {
    grid-auto-columns: minmax(300px, 42%);
  }

  .mobile-dock {
    display: none;
  }
}

@media (min-width: 520px) {
  .receipt-list div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
  }

  .receipt-list strong {
    text-align: right;
    justify-self: end;
  }
}

@media (min-width: 980px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    font-weight: 700;
  }

  .nav a {
    padding: 8px 12px;
    border-radius: 999px;
    transition: transform 160ms ease, background-color 160ms ease;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(255, 211, 77, 0.32);
    transform: translateY(-1px);
  }

  .hero {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    align-items: start;
    padding: 34px;
  }

  .hero-screen img {
    aspect-ratio: 0.88;
  }

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

  .hero-peek {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-grid {
    grid-template-columns: 1.05fr 0.95fr 0.95fr;
  }

  .story-card--receipt {
    grid-column: span 1;
    grid-row: span 2;
  }

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

  .family-card--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  }

  .family-card--wide img {
    height: 100%;
  }

  .obsession-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }

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

  .travel-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .evidence-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
    gap: 24px;
  }

  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 18px;
  }

  .evidence-card {
    grid-column: span 1;
    transform: none;
  }

  .evidence-card--wide {
    grid-column: span 2;
  }

  .evidence-card--tall {
    grid-row: span 2;
  }

  .evidence-card img {
    height: clamp(250px, 22vw, 340px);
  }

  .evidence-card--tall img {
    height: clamp(440px, 38vw, 560px);
  }

  .report-card {
    position: sticky;
    top: 26px;
    max-width: 360px;
    justify-self: end;
  }

  .closing {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .closing h2 {
    max-width: 14ch;
    text-wrap: balance;
  }

  .closing h2 span {
    display: block;
    margin-top: 0.18em;
  }

  .closing__copy {
    max-width: 42rem;
    font-size: clamp(1rem, 1vw + 0.65rem, 1.18rem);
  }
}

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

  .button,
  .hero-selector__button,
  .nav a,
  .mobile-dock a,
  .ticker__track,
  .radar__fill {
    transition: none;
    animation: none;
  }
}
