/* =========================================================
   $HOTDOG: styles
   Palette pulled from the art: Costco red & blue, bun cream,
   mustard, relish, and the navy of the space scenes.
   ========================================================= */

:root {
  --red: #E11F2A;
  --red-deep: #B8151E;
  --blue: #1468D6;
  --blue-deep: #0E4FAA;
  --blue-bright: #2B7BE6;
  --navy: #0A1330;
  --navy-2: #111D45;
  --navy-3: #182759;
  --navy-deep: #060B1E;
  --cream: #F7EBD3;
  --cream-2: #EEDCB6;
  --bun: #D9A65C;
  --mustard: #F2C12E;
  --relish: #7BAA38;
  --white: #FFFFFF;
  --paper: #FFFDF7;
  --ink: #14120F;
  --ink-2: #3D3832;
  --ink-3: #6B645B;

  --chart-debt: #4F94EA;
  --chart-dog: #F0564C;

  --font-display: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Libre Franklin", "Franklin Gothic", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-cond: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 24px 60px -20px rgba(6, 11, 30, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* in-page scrolling is animated in script.js */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: var(--font-mono); }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--mustard); color: var(--ink); padding: .6rem 1rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Film grain to match the illustrations */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ---------- Type ---------- */
.wm {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.01em;
  line-height: 1;
}
.wm--hot { color: var(--red); }
.wm--dog { color: var(--white); }
.wm--ink { color: var(--ink); }

.eyebrow {
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: currentColor; border-radius: 2px; transform: rotate(45deg) scale(.8); }
.eyebrow--onblue { color: var(--mustard); }
.eyebrow--live { color: var(--white); }
.eyebrow--live::before { display: none; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--mustard);
  box-shadow: 0 0 0 0 rgba(242,193,46,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,193,46,.6);} 70% { box-shadow: 0 0 0 10px rgba(242,193,46,0);} 100% { box-shadow: 0 0 0 0 rgba(242,193,46,0);} }

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h2 em { font-style: italic; font-weight: 900; color: var(--red); }
.h2--big { font-size: clamp(2.6rem, 6vw, 5rem); }

.lede {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--wide { max-width: 54rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; white-space: nowrap; line-height: 1;
  transition: transform .18s var(--ease), background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(225,31,42,.7); }
.btn--red:hover { background: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--cream); }
.btn--sm { padding: .65rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.08rem; }

.iconbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); color: var(--white); text-decoration: none;
  transition: border-color .18s, background-color .18s, transform .18s var(--ease);
}
.iconbtn:hover { border-color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }

.link {
  display: inline-block; margin-top: .6rem; font-weight: 600; color: var(--blue); text-decoration: none;
  border-bottom: 2px solid rgba(20,104,214,.25); transition: border-color .18s;
}
.link:hover { border-color: var(--blue); }

/* ---------- Contract address pill ---------- */
.ca {
  display: inline-flex; align-items: center; gap: .6rem; max-width: 100%;
  margin-top: 1.6rem; padding: .45rem .45rem .45rem .9rem;
  background: rgba(6,11,30,.35); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; color: var(--white); backdrop-filter: blur(6px);
}
.ca__label { font-family: var(--font-cond); font-size: .78rem; letter-spacing: .14em; opacity: .75; }
.ca__value { font-size: .86rem; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca__copy {
  flex: none; font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  background: var(--white); color: var(--ink); border: 0; border-radius: 999px; padding: .5rem .9rem;
  transition: background-color .18s, transform .18s var(--ease);
}
.ca__copy:hover { background: var(--mustard); transform: translateY(-1px); }
.ca--light { background: var(--cream); border-color: var(--cream-2); color: var(--ink); backdrop-filter: none; }
.ca--light .ca__copy { background: var(--ink); color: var(--white); }
.ca--light .ca__copy:hover { background: var(--red); }
.ca--footer { margin-top: 1rem; }

/* grid items must be allowed to shrink so the CA pill can ellipsize on narrow screens */
.hero__copy, .hero__side, .buy__intro, .facts__intro, .footer__brand, .cta__copy { min-width: 0; }
.ca { max-width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent; transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.nav--solid { background: rgba(10,19,48,.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.nav__logo { text-decoration: none; font-size: 1.55rem; display: inline-flex; align-items: baseline; gap: .1em; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links > a {
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  color: var(--white); text-decoration: none; opacity: .9; position: relative;
}
.nav__links > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--mustard); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav__links > a:hover::after { transform: scaleX(1); }
.nav__mobile-actions { display: none; }
.nav__actions { display: flex; align-items: center; gap: .7rem; }
.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span { width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: inline-flex; }
  .nav__actions .btn { display: none; }
  .nav__links {
    position: fixed; inset: 74px 0 0 0; z-index: 99;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.4rem;
    padding: 2rem var(--gutter) 3rem; background: var(--navy);
    transform: translateX(100%); transition: transform .3s var(--ease); overflow: auto;
  }
  .nav--open .nav__links { transform: translateX(0); }
  .nav__links > a { font-size: 1.6rem; }
  .nav__mobile-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
  /* backdrop-filter would turn the nav into the containing block for the fixed panel, so drop it while open */
  .nav.nav--open { background: var(--navy); backdrop-filter: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: var(--blue);
  background-image:
    radial-gradient(60% 50% at 80% 20%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(6,11,30,.25), transparent 60%);
  margin-top: -74px; padding-top: 74px;
  overflow: clip;
}
.hero__grid {
  display: grid; gap: 2.5rem; align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; min-height: calc(100svh - 74px); } }

.wordmark {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(4.6rem, 14vw, 11.5rem); line-height: .82; letter-spacing: -.03em;
  margin: .6rem 0 1.2rem -.03em;
}
.wordmark__line { display: block; transform: translateY(110%); opacity: 0; animation: riseIn .9s var(--ease) forwards; }
.wordmark__hot { color: var(--red); text-shadow: 0 0 0 rgba(0,0,0,0); }
.wordmark__dog { color: var(--white); animation-delay: .12s; }
@keyframes riseIn { to { transform: translateY(0); opacity: 1; } }
.wordmark { clip-path: inset(-20% -10% -6% -10%); }

.hero__lede {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.3; max-width: 30ch;
  text-wrap: balance;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero__art { position: relative; }
.poster {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow-soft);
}
.poster img { border-radius: calc(var(--radius) - 8px); width: 100%; }
.poster--hero {
  transform: rotate(-2.2deg);
  box-shadow: 14px 14px 0 var(--red), var(--shadow-soft);
  animation: settle 1s var(--ease) both; animation-delay: .25s;
  transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform;
}
.poster--hero:hover { transform: rotate(-.6deg) scale(1.01); }
@keyframes settle { from { transform: rotate(-6deg) translateY(40px); opacity: 0; } to { transform: rotate(-2.2deg) translateY(0); opacity: 1; } }

.sticker {
  position: absolute; left: -18px; bottom: -22px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--red); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-12deg); box-shadow: 0 14px 30px -12px rgba(6,11,30,.6);
  outline: 3px dashed rgba(255,255,255,.8); outline-offset: -9px;
  font-family: var(--font-cond); text-transform: uppercase; line-height: 1;
  animation: stickerIn .8s var(--ease) both; animation-delay: .7s;
}
.sticker__big { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; }
.sticker__small { font-size: .72rem; letter-spacing: .14em; margin-top: .2rem; }
@keyframes stickerIn { from { transform: rotate(-40deg) scale(.4); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
@media (max-width: 900px) {
  .hero__art { max-width: 560px; margin: 0 auto; padding-bottom: 1rem; }
  .sticker { width: 104px; height: 104px; left: -6px; bottom: -6px; }
  .sticker__big { font-size: 1.6rem; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--red); color: var(--white); overflow: hidden;
  font-family: var(--font-cond); font-weight: 600; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .8rem 0; border-top: 2px solid rgba(255,255,255,.15); border-bottom: 2px solid rgba(6,11,30,.2);
}
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 42s linear infinite; will-change: transform; }
.marquee__track span { padding: 0 1.4rem; white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: 1.1rem; line-height: 1; align-self: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Sections: shared ---------- */
section { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; }

/* ---------- Thesis ---------- */
.thesis { background: var(--navy); color: var(--white); }
.thesis .lede { color: rgba(255,255,255,.82); }

/* The menu board: the thesis, literally. */
.menu {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-2), var(--navy-3));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 0 120px rgba(20,104,214,.18), 0 30px 80px -30px rgba(0,0,0,.7);
  padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1.2rem, 3.5vw, 2.6rem) clamp(1rem, 2.5vw, 1.6rem);
}
.menu::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
.menu__head {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-cond); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mustard);
  padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.menu__row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: baseline; gap: .2rem .9rem;
  padding: .9rem 0; font-family: var(--font-cond); text-transform: uppercase;
  font-size: clamp(1.15rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.1;
}
.menu__row + .menu__row { border-top: 1px dashed rgba(255,255,255,.1); }
.menu__item { white-space: nowrap; }
.menu__leader { align-self: end; margin-bottom: .42em; border-bottom: 3px dotted rgba(255,255,255,.28); min-width: 1.5rem; }
.menu__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.menu__price--live { color: var(--white); }
.menu__price--live .d { display: inline-block; width: .56em; text-align: center; }
.menu__price--live .c { display: inline-block; width: .26em; text-align: center; }
.menu__price--live .s { display: inline-block; margin-right: .06em; }
.menu__row--dog .menu__price { color: var(--mustard); }
.menu__tag {
  font-size: .72rem; letter-spacing: .14em; padding: .3em .6em; border-radius: 4px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); align-self: center; white-space: nowrap;
}
.menu__tag--up { background: rgba(240,86,76,.18); color: #FFB4AE; }
.menu__tag--up::before { content: "▲ "; font-size: .7em; }
.menu__foot { margin-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.5); }
@media (max-width: 640px) {
  .menu__row { grid-template-columns: 1fr auto; }
  .menu__leader { display: none; }
  .menu__item { grid-column: 1 / -1; font-size: .8em; color: rgba(255,255,255,.75); }
  .menu__price { grid-column: 1; }
  .menu__tag { grid-column: 2; justify-self: end; }
}

/* Stat tiles */
.stats {
  display: grid; gap: 1rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.stat {
  padding: 1.3rem 1.4rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.stat__value {
  display: block; font-family: var(--font-cond); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; color: var(--white);
}
.stat__label { display: block; margin-top: .35rem; font-size: .92rem; color: rgba(255,255,255,.72); line-height: 1.45; }

/* Chart card */
.chart-card {
  margin-top: 1rem; padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
}
.chart-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.chart-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.chart-card__sub { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: .2rem; }
.legend { display: flex; gap: 1.2rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
.legend__key { width: 22px; height: 2px; border-radius: 2px; display: inline-block; }
.legend__key--debt { background: var(--chart-debt); }
.legend__key--dog { background: var(--chart-dog); }
.chart { position: relative; width: 100%; outline-offset: 6px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: rgba(255,255,255,.1); stroke-width: 1; }
.chart .axis text { fill: rgba(255,255,255,.6); font-family: var(--font-cond); font-size: 12px; letter-spacing: .04em; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line--debt { stroke: var(--chart-debt); }
.chart .line--dog { stroke: var(--chart-dog); }
.chart .area--debt { fill: var(--chart-debt); opacity: .1; }
.chart .dot { stroke: var(--navy); stroke-width: 2; }
.chart .dot--debt { fill: var(--chart-debt); }
.chart .dot--dog { fill: var(--chart-dog); }
.chart .endlabel text { fill: rgba(255,255,255,.9); font-family: var(--font-body); font-size: 12px; font-weight: 600; }
.chart .endlabel .k { stroke-width: 2; }
.chart .crosshair { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.chart .hover-dot { stroke: var(--navy); stroke-width: 2; }
.chart__tip {
  position: absolute; z-index: 2; pointer-events: none; min-width: 150px;
  background: var(--navy-deep); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: .6rem .75rem;
  font-size: .85rem; color: var(--white); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6);
  transform: translate(-50%, calc(-100% - 14px));
}
.chart__tip .t { font-family: var(--font-cond); letter-spacing: .1em; font-size: .72rem; color: rgba(255,255,255,.6); margin-bottom: .3rem; }
.chart__tip .r { display: flex; align-items: center; gap: .5rem; justify-content: space-between; white-space: nowrap; }
.chart__tip .r + .r { margin-top: .15rem; }
.chart__tip .r b { font-weight: 700; }
.chart__tip .r span { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.7); }
.chart__tip .r i { width: 14px; height: 2px; display: inline-block; border-radius: 2px; }
.chart-table { margin-top: 1rem; font-size: .88rem; color: rgba(255,255,255,.75); }
.chart-table summary { cursor: pointer; font-weight: 600; color: rgba(255,255,255,.85); }
.chart-table__scroll { overflow-x: auto; margin-top: .8rem; }
.chart-table table { border-collapse: collapse; width: 100%; min-width: 520px; font-variant-numeric: tabular-nums; }
.chart-table caption { text-align: left; caption-side: top; padding-bottom: .5rem; color: rgba(255,255,255,.6); }
.chart-table th, .chart-table td { text-align: right; padding: .35rem .6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }

/* ---------- Lore ---------- */
.lore { background: var(--cream); color: var(--ink); }
.lore .lede { color: var(--ink-2); }
.board {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(3, 1fr); align-items: start;
  padding-top: 1rem;
}
/* Hover = transform + opacity only (compositor-friendly); the lifted shadow lives on a pseudo-element */
.poster--pin { transform: rotate(var(--tilt, 0deg)) translateZ(0); transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.poster--pin::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  box-shadow: 0 34px 70px -24px rgba(6,11,30,.5); opacity: 0; transition: opacity .6s cubic-bezier(.22,.61,.36,1);
}
.poster--pin:hover { transform: rotate(0deg) translateY(-6px) translateZ(0); }
.poster--pin:hover::after { opacity: 1; }
/* invisible halo so the pointer stays "inside" while the poster lifts/un-tilts (no edge flicker) */
.poster--pin::before, .poster--hero::before { content: ""; position: absolute; inset: -18px; }
.poster--pin:nth-child(2) { margin-top: 2.5rem; }
.poster figcaption {
  padding: .9rem .4rem .4rem; font-size: .95rem; color: var(--ink-2); line-height: 1.4;
}
.poster figcaption strong { font-family: var(--font-display); font-weight: 800; font-style: italic; color: var(--ink); font-size: 1.12rem; display: block; }
.tape {
  position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(242,193,46,.75); box-shadow: 0 2px 4px rgba(0,0,0,.08); z-index: 1;
  clip-path: polygon(2% 0, 98% 3%, 100% 100%, 0 96%);
}
@media (max-width: 900px) {
  .board {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 1.5rem var(--gutter) 2rem; margin: 0 calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .board::-webkit-scrollbar { display: none; }
  .board > * { scroll-snap-align: center; }
  .poster--pin:nth-child(2) { margin-top: 0; }
}

/* On the record: a real timeline, so the years earn their place */
.testimony { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 2px solid rgba(20,18,15,.12); }
.testimony__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.5rem; margin-bottom: 1.6rem; }
.testimony__head .eyebrow { margin-bottom: 0; }
.testimony__sub { color: var(--ink-3); font-size: .95rem; }
.testimony__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
.testimony__item { padding-top: .9rem; border-top: 3px solid var(--red); }
.testimony__year { font-family: var(--font-cond); font-weight: 600; font-size: .95rem; letter-spacing: .1em; color: var(--red); }
.testimony__quote { margin: .45rem 0 0; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.15rem; line-height: 1.25; color: var(--ink); text-wrap: pretty; }
.testimony__who { margin-top: .55rem; font-size: .84rem; line-height: 1.4; color: var(--ink-3); }
@media (max-width: 1000px) { .testimony__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .testimony__list { grid-template-columns: 1fr 1fr; gap: 1.2rem; } }
@media (max-width: 420px) { .testimony__list { grid-template-columns: 1fr; } }

/* ---------- How to buy ---------- */
.buy { background: var(--white); color: var(--ink); }
.buy__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .buy__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } .buy__intro { position: sticky; top: 100px; } }
.buy .lede { color: var(--ink-2); }
.buy__warn { margin-top: 1.2rem; font-size: .92rem; color: var(--ink-3); max-width: 48ch; }
.buy__warn a { color: var(--blue); font-weight: 600; }
.steps { display: grid; gap: .75rem; counter-reset: none; }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 1.2rem; align-items: start;
  padding: 1.5rem 1.6rem 1.5rem 1.2rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--cream-2);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.step:hover { transform: translateX(4px); }
.step__num {
  font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 3.2rem; line-height: .9; color: var(--red);
  text-align: center; margin-top: -.05em;
}
.step__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.step__body p { margin-top: .45rem; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 520px) { .step { grid-template-columns: 52px 1fr; padding: 1.2rem 1.1rem; } .step__num { font-size: 2.4rem; } }

/* ---------- Facts / receipt ---------- */
.facts { background: var(--red); color: var(--white); overflow: clip; }
.facts::after {
  /* giant faded wordmark in the background */
  content: "$HOT DOG"; position: absolute; right: -2%; bottom: -6%; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(8rem, 22vw, 20rem); line-height: .8;
  color: rgba(255,255,255,.06); white-space: nowrap; letter-spacing: -.04em;
}
.facts .wrap { position: relative; z-index: 1; }
.facts .eyebrow { color: var(--mustard); }
.facts .h2 em { color: var(--white); }
.facts .lede { color: rgba(255,255,255,.88); }
.facts__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) {
  .facts__grid { grid-template-columns: 1fr minmax(320px, 440px); gap: 5rem; }
  .facts__intro { position: sticky; top: 110px; }
}
.facts__links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.facts__links .btn--ghost { border-color: rgba(255,255,255,.6); }

.receipt {
  position: relative; background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.5;
  padding: 2rem 1.6rem 2.4rem; margin-inline: auto; width: 100%; max-width: 440px;
  transform: rotate(1.2deg);
  box-shadow: 0 40px 80px -30px rgba(6,11,30,.7);
  /* torn / perforated bottom edge */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px),
    97.5% 100%, 95% calc(100% - 10px), 92.5% 100%, 90% calc(100% - 10px), 87.5% 100%, 85% calc(100% - 10px), 82.5% 100%, 80% calc(100% - 10px), 77.5% 100%, 75% calc(100% - 10px), 72.5% 100%, 70% calc(100% - 10px), 67.5% 100%, 65% calc(100% - 10px), 62.5% 100%, 60% calc(100% - 10px), 57.5% 100%, 55% calc(100% - 10px), 52.5% 100%, 50% calc(100% - 10px), 47.5% 100%, 45% calc(100% - 10px), 42.5% 100%, 40% calc(100% - 10px), 37.5% 100%, 35% calc(100% - 10px), 32.5% 100%, 30% calc(100% - 10px), 27.5% 100%, 25% calc(100% - 10px), 22.5% 100%, 20% calc(100% - 10px), 17.5% 100%, 15% calc(100% - 10px), 12.5% 100%, 10% calc(100% - 10px), 7.5% 100%, 5% calc(100% - 10px), 2.5% 100%, 0 calc(100% - 10px));
  transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform;
}
.receipt:hover { transform: rotate(0deg); }
.receipt__top { text-align: center; padding-bottom: 1rem; border-bottom: 1px dashed rgba(20,18,15,.35); }
.receipt__brand { font-size: 2rem; line-height: 1; margin-bottom: .5rem; }
.receipt__brand .wm { font-size: inherit; }
.receipt__meta { font-size: .74rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.receipt__lines { padding: 1rem 0; border-bottom: 1px dashed rgba(20,18,15,.35); }
.receipt__lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; }
.receipt__lines dt { color: var(--ink-2); }
.receipt__lines dd { margin: 0; font-weight: 700; text-align: right; }
.receipt__total { display: flex; justify-content: space-between; padding: .9rem 0; font-weight: 700; font-size: 1rem; border-bottom: 1px dashed rgba(20,18,15,.35); }
.receipt__ca { padding: 1rem 0 .4rem; display: grid; gap: .3rem; }
.receipt__ca code { font-size: .72rem; word-break: break-all; }
.receipt__copy {
  justify-self: start; margin-top: .3rem; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  background: var(--ink); color: var(--white); border: 0; padding: .45rem .75rem; border-radius: 4px;
}
.receipt__copy:hover { background: var(--red); }
.barcode { width: 70%; height: 42px; margin: 1rem auto .4rem; color: var(--ink); }
.receipt__thanks { text-align: center; font-size: .78rem; letter-spacing: .08em; color: var(--ink-2); }

/* ---------- Gallery ---------- */
.gallery { background: var(--navy); color: var(--white); }
.gallery .lede { color: rgba(255,255,255,.8); }
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--navy-2);
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; text-align: left;
  transform: translateZ(0); will-change: transform;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translateZ(0); will-change: transform; backface-visibility: hidden;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.tile--tall img { object-position: 50% 15%; }
/* scale (not translate) so the tile never slides out from under the pointer and flickers */
.tile:hover { transform: scale(1.02) translateZ(0); }
.tile:hover img { transform: scale(1.06) translateZ(0); }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem;
  font-family: var(--font-cond); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(6,11,30,.85));
}

/* ---------- CTA ---------- */
.cta { background: var(--blue); color: var(--white); overflow: clip; }
.cta .lede { color: rgba(255,255,255,.88); }
.cta .h2 em { color: var(--mustard); }
.cta__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.poster--cta { transform: rotate(2deg); max-width: 520px; margin-inline: auto; box-shadow: -14px 14px 0 var(--navy), var(--shadow-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 3.5rem 0 2.5rem; font-size: .9rem; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__legal { grid-column: 1 / -1; } .footer__copy { grid-column: 1 / -1; } }
.footer__tag { margin-top: .6rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-content: start; justify-content: flex-start; }
@media (min-width: 800px) { .footer__links { justify-content: flex-end; } }
.footer__links a { color: rgba(255,255,255,.8); text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.footer__links a:hover { color: var(--mustard); }
.footer__legal { color: rgba(255,255,255,.5); font-size: .82rem; line-height: 1.55; max-width: 80ch; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer__copy { color: rgba(255,255,255,.5); font-size: .82rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--white); padding: .8rem 1.2rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease); box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 96vh; }
.lightbox::backdrop { background: rgba(6,11,30,.88); backdrop-filter: blur(6px); }
.lightbox__fig { position: relative; background: var(--white); padding: 10px 10px 0; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.lightbox__fig img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: calc(var(--radius) - 8px); }
.lightbox__fig figcaption { padding: .8rem .4rem .9rem; font-size: .95rem; color: var(--ink-2); font-family: var(--font-display); font-weight: 600; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: var(--white); border: 3px solid var(--white); font-size: 1.6rem; line-height: 1;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Motion preferences ----------
   Only the attention-grabbing entrance effects are dropped; the ticker keeps
   rolling (slower) and hovers/scrolling stay smooth, because the site owner
   explicitly wants the tape moving. */
@media (prefers-reduced-motion: reduce) {
  .wordmark__line, .poster--hero, .sticker { animation: none; opacity: 1; transform: none; }
  .poster--hero { transform: rotate(-2.2deg); }
  .sticker { transform: rotate(-12deg); }
  .marquee__track { animation-duration: 60s; }
  .live-dot { animation: none; }
}
