/* ============ BARNEY — animal-hospital paper-chart aesthetic ============ */
:root {
  --paper: #f4f1e8;
  --paper-2: #ece8db;
  --ink: #24211c;
  --ink-soft: rgba(36, 33, 28, 0.68);
  --red: #d93a3a;
  --red-dark: #b32626;
  --tweed: #8a6f42;
  --tweed-dark: #4f4128;
  --plaid-blue: #5a7d9a;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Archivo Black", system-ui, sans-serif;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

/* visually hidden but available to assistive tech */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* visible keyboard focus for every interactive control */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* subtle halftone-dot paper texture */
.paper-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(36, 33, 28, 0.055) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

/* optional faint backdrop image behind the dots */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: center / cover no-repeat;
  opacity: 0.1;
  filter: saturate(0.7);
}

.mono-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
}

/* ============ intro page (admission screen) ============ */
.intro-main {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.intro-main.on { opacity: 1; }

.intro-cross {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  z-index: 5;
  animation: crosspulse 1.6s ease-in-out infinite;
}
.intro-cross::before, .intro-cross::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 4px;
}
.intro-cross::before { inset: 0 34%; }
.intro-cross::after { inset: 34% 0; }
@keyframes crosspulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.12); }
}

.intro-canvas { position: absolute; inset: 0; z-index: 10; }
.intro-canvas canvas { display: block; }

.intro-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2.6rem;
  pointer-events: none;
}
.loadbox { width: min(78vw, 34rem); display: flex; flex-direction: column; gap: 0.6rem; }
.loadbox-row { display: flex; justify-content: space-between; align-items: center; }
.loadbox-pct {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* EKG heartbeat monitor as the progress bar */
.ekg-box {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fbfaf4;
  box-shadow: var(--shadow-sm);
  padding: 0.4rem 0.6rem;
}
.ekg-box canvas { display: block; width: 100%; height: 46px; }

/* ============ header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.brand .brand-cross {
  display: inline-block;
  width: 15px; height: 15px;
  position: relative;
  flex: none;
}
.brand .brand-cross::before, .brand .brand-cross::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 2px;
}
.brand .brand-cross::before { inset: 0 33%; }
.brand .brand-cross::after { inset: 33% 0; }

.header-right { display: flex; align-items: center; gap: 1.2rem; min-width: 0; }

.ca-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  background: #fbfaf4;
  color: inherit;
  font-family: var(--mono);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.ca-chip:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-sm); }
.ca-chip .ca-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; color: var(--ink-soft); }
.ca-chip .ca-value { font-size: 0.7rem; font-weight: 600; color: var(--ink); }
.ca-chip .ca-copy { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.buy-btn {
  color: #fff;
  background: var(--red);
  border: 2px solid var(--ink);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-links a.buy-btn:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-sm);
}

/* ============ hero (chart layout: wordmark left, figure right) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 6.5rem 2rem 4.5rem;
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}
.hero-left { pointer-events: none; }
.hero-kicker {
  display: inline-block;
  pointer-events: auto;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.6rem;
  background: #fbfaf4;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3.6rem, 9.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 5px 5px 0 rgba(217, 58, 58, 0.22);
}
.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em) rotate(2deg);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-title.in span { opacity: 1; transform: none; }
.hero-tagline { margin-top: 1.6rem; }
.hero-tagline .lead {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-tagline .accent {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1rem 1.8rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.hero-cta:hover {
  background: var(--red-dark);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.hero-right { position: relative; min-height: 30rem; }
.hero-canvas { position: absolute; inset: -4rem -2rem; }
.hero-canvas canvas { display: block; }

/* patient chart card overlapping the figure */
.chart-card {
  position: absolute;
  right: 0;
  bottom: 1.5rem;
  z-index: 4;
  width: min(15.5rem, 70vw);
  background: #fbfaf4;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  overflow: hidden;
}
.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding: 0.45rem 0.8rem;
}
.chart-card-head i {
  width: 10px; height: 10px;
  position: relative;
  flex: none;
}
.chart-card-head i::before, .chart-card-head i::after {
  content: ""; position: absolute; background: var(--red); border-radius: 1px;
}
.chart-card-head i::before { inset: 0 33%; }
.chart-card-head i::after { inset: 33% 0; }
.chart-rows { padding: 0.7rem 0.8rem; }
.chart-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(36, 33, 28, 0.25);
}
.chart-row:last-child { border-bottom: none; }
.chart-row .k { color: var(--ink-soft); }
.chart-row .v { color: var(--ink); font-weight: 700; }
.chart-row .v.alert { color: var(--red); }

.hero-scroll {
  position: absolute;
  bottom: 1.3rem;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.hero-scroll .mono-label { font-size: 0.6rem; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============ caution-tape ticker ============ */
/* clips the tilted bar so its rotated corners never widen the page */
.ticker-clip { overflow: hidden; position: relative; z-index: 5; }
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 0.85rem 0;
  transform: rotate(-1.2deg) scale(1.02);
  z-index: 5;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 24s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding: 0 0.65rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--paper);
}
.ticker-item .flower { color: var(--red); font-size: 1em; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ sections ============ */
.section {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem;
  max-width: 78rem;
  margin: 0 auto;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin-bottom: 1rem;
  color: var(--ink);
  text-shadow: 4px 4px 0 rgba(217, 58, 58, 0.18);
}
.section-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.section-title.in span { opacity: 1; transform: none; }
.section-sub { margin-bottom: 3rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ buttons ============ */
.ghost-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fbfaf4;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.ghost-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary { color: #fff; background: var(--red); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

/* ============ detection protocol ============ */
.detect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}
.detect-card {
  position: relative;
  background: #fbfaf4;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem 1.6rem;
}
.detect-card .code {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(36, 33, 28, 0.16);
}
.detect-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0.5rem 0 0.7rem;
}
.detect-card p {
  font-size: 0.76rem;
  line-height: 1.9;
  color: var(--ink-soft);
}
.detect-card.flag { border-color: var(--red); }
.detect-card.flag .code { color: rgba(217, 58, 58, 0.22); }
.detect-card .tag {
  position: absolute;
  top: -0.75rem;
  right: 1rem;
  background: var(--red);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
}

/* ============ case file (encounter timeline) ============ */
.case-list {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 0 3.2rem;
}
/* spine running down the numbered markers */
.case-list::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 1.1rem;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--ink) 0 7px,
    transparent 7px 14px
  );
}
.case-item { position: relative; margin-bottom: 1.2rem; }
.case-item:last-child { margin-bottom: 0; }
.case-item .marker {
  position: absolute;
  left: -3.2rem;
  top: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card {
  background: #fbfaf4;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.4rem;
}
.case-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.case-head .ask {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.case-head .when {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.case-card p { font-size: 0.76rem; line-height: 1.9; color: var(--ink-soft); }
.case-card .line {
  display: block;
  margin-top: 0.7rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--red);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink);
}
/* the encounter where the mask slips */
.case-item.turn .marker { background: var(--red); border-color: var(--ink); color: #fff; }
.case-item.turn .case-card { border-color: var(--red); }

/* shared: a quoted line of his, set apart from the copy */
.case-note, .choice-threat {
  margin-top: 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink);
}
.choice-threat { margin: -1.6rem 0 2.4rem; }
.detect-note {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.detect-note::before { content: "▸ "; color: var(--red); font-weight: 700; }

/* ============ final shift choice ============ */
.choice-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.choice-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}
.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  background: #fbfaf4;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  cursor: pointer;
  font-family: var(--mono);
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.choice-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.choice-btn .key {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  background: var(--ink);
  border-radius: 5px;
  padding: 0.25rem 0.55rem;
}
.choice-btn .label {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.choice-btn.chosen { background: var(--ink); color: var(--paper); }
.choice-btn.chosen .key { background: var(--red); }
.choice-btn.chosen.bad .label { color: #ff9b9b; }
.choice-btn.chosen:not(.bad) .label { color: #9fe0b0; }

.choice-result {
  border: 2px dashed var(--ink);
  border-radius: 14px;
  padding: 1.6rem;
  min-height: 6.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  background: rgba(251, 250, 244, 0.6);
}
.choice-result .idle {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.choice-result .outcome { font-size: 0.85rem; line-height: 1.95; }
.choice-result .reward {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
}
.choice-result .reward.bad { background: var(--red); border-color: var(--red); }

/* ============ outbreak feed (TikTok embeds) ============ */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(325px, 100%), 1fr));
  gap: 1.5rem;
  align-items: start;
  justify-items: center;
}
.feed-item {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: #fbfaf4;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  overflow: hidden;
}
/* TikTok's script swaps the blockquote for its own iframe */
.feed-item .tiktok-embed {
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  border-radius: 10px;
  overflow: hidden;
}
.feed-item iframe { display: block; max-width: 100%; border-radius: 10px; }
/* fallback shown before embed.js runs, or permanently if TikTok is blocked */
.feed-item .tiktok-embed > section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 2rem 1.2rem;
  text-align: center;
}
.feed-item .tiktok-embed > section a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  text-decoration: none;
}
.feed-item .tiktok-embed > section a:hover { text-decoration: underline; }
.feed-item .tiktok-embed > section p {
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============ pfp maker ============ */
.pfp-wrap { display: flex; gap: 4rem; flex-wrap: wrap; align-items: flex-start; }
.pfp-preview-col { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
#pfpPreview {
  width: min(72vw, 300px);
  height: min(72vw, 300px);
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(217, 58, 58, 0.3);
  background: #fbfaf4;
}
.pfp-controls { display: flex; flex-direction: column; gap: 2.2rem; min-width: 18rem; max-width: 26rem; }
.pfp-group h3 { margin-bottom: 1.2rem; }

/* visual background swatches */
.swatch-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 4.4rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.swatch-thumb {
  display: block;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.swatch:hover .swatch-thumb { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.swatch.active .swatch-thumb {
  box-shadow: 0 0 0 3px var(--red), var(--shadow-sm);
}
.swatch-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.swatch:hover .swatch-label { color: var(--ink); }
.swatch.active .swatch-label { color: var(--red); font-weight: 700; }

/* ============ footer ============ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  padding: 4.5rem 2rem 0;
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  overflow: hidden;
}
.footer-grid {
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer-col h2 { margin-bottom: 1.2rem; }
.footer-col a {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }
.footer-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-align: center;
  padding-bottom: 7rem;
}
.footer-watermark {
  position: absolute;
  inset-inline: 0;
  bottom: -0.3em;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(4rem, 15vw, 16rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(36, 33, 28, 0.12);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 260%);
  z-index: 110;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.toast.show { transform: translate(-50%, 0); }

/* ============ motion preferences ============ */
@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .intro-cross,
  .feed-empty img,
  .hero-scroll .mono-label { animation: none; }
}

/* short desktop viewports */
@media (min-width: 861px) and (max-height: 740px) {
  .hero { padding-top: 5.5rem; padding-bottom: 3.5rem; }
  .hero-title { font-size: clamp(3rem, 7.5vw, 6rem); }
  .hero-scroll { display: none; }
}

/* ============ tablet / mobile ============ */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero { padding: 6rem 1.4rem 3rem; }
  .hero-left { text-align: center; }
  .hero-right { min-height: 0; margin-top: 0.5rem; }
  /* card flows BELOW the figure instead of covering him */
  .hero-canvas { position: relative; inset: auto; height: 21rem; margin: 0 -1rem; }
  .chart-card {
    position: static;
    width: min(17rem, 86vw);
    margin: 0.6rem auto 0;
    transform: rotate(1.5deg);
  }
  .hero-scroll { display: none; }
}
@media (max-width: 720px) {
  .site-header { padding: 0.8rem 1rem; }
  .header-right { gap: 0.7rem; }
  .ca-chip .ca-label { display: none; }
  .ca-chip .ca-value { overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
  .nav-links a:not(.buy-btn) { display: none; }
  .section { padding: 5.5rem 1.2rem; }
  .pfp-wrap { gap: 2.5rem; justify-content: center; }
  .pfp-controls { width: 100%; min-width: 0; align-items: center; }
  .swatch-row { justify-content: center; }
  .hero-title { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-tagline .lead, .hero-tagline .accent { letter-spacing: 0.14em; font-size: 0.68rem; }
}
