:root {
  --cream: #f3ecdd;
  --cream-2: #e9dfc9;
  --ink: #1c1710;
  --muted: #6b6151;
  --red: #a4621c;
  --red-dark: #7c4711;
  --amber: #b07a26;
  --sage: #768069;
  --line: #2b2a24;
  --rail: 4.75rem;
  --header-h: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
  font-family: "Arial Narrow", "Oswald", Impact, system-ui, sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(164, 98, 28, 0.10), transparent 18rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent 28%),
    var(--cream);
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

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

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--rail);
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  justify-items: center;
  gap: 1rem;
  padding-top: var(--header-h);
  color: var(--ink);
}

.rail__line {
  grid-row: 1 / -1;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1.3rem;
  width: 2px;
  background: var(--line);
}

.icon-button {
  position: relative;
  z-index: 1;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg,
.play-button svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 2.5;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 25;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid rgba(21, 19, 15, 0.12);
}

.nav {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.7rem 0 var(--rail);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--red);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* centred logo, independent of link widths */
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-grid;
  justify-items: center;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 0.8;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.brand span {
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 0.2rem;
  font-size: 0.38rem;
  letter-spacing: 0.3em;
  color: var(--ink);
}

.buy-button,
.dark-button {
  min-width: 4.8rem;
  min-height: 2rem;
  border: 0;
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.buy-button:hover,
.dark-button:hover {
  background: var(--red-dark);
}

.dark-button {
  min-width: 5.5rem;
  background: var(--ink);
}

.page-shell {
  min-height: 100vh;
}

.scroll-stage {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle at 54% 50%, rgba(105, 91, 70, 0.16), transparent 18rem),
    var(--cream);
}

.track {
  display: block;
  width: 100%;
}

.panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  padding: 6.4rem 5rem 3rem 6rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 82%, rgba(182, 92, 38, 0.08), transparent 17rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 45%),
    var(--cream);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(21, 19, 15, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 19, 15, 0.04) 1px, transparent 1px);
  background-size: 3rem 3rem, 3rem 3rem;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto 2.5rem 1.5rem 2.5rem;
  height: 1px;
  background: rgba(21, 19, 15, 0.18);
}

.bottle {
  position: fixed;
  z-index: 18;
  top: 50%;
  left: 50%;
  width: 18rem;
  transform: translate(-50%, -50%) rotate(-14deg);
  transform-origin: 52% 70%;
  pointer-events: none;
}

/* inner image carries the drop shadow + the independent idle float so it
   never fights the scroll-driven transforms on the outer .bottle */
.bottle__img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  filter:
    drop-shadow(1rem 1.6rem 1.4rem rgba(23, 20, 12, 0.42))
    drop-shadow(0 0.5rem 0.7rem rgba(23, 20, 12, 0.3));
}

.mega-title {
  margin: 0;
  color: var(--red);
  text-transform: uppercase;
  /* Anton = free condensed grunge-poster face (Druk stand-in) */
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-size: 9.6rem;
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-shadow: 0.035em 0.05em rgba(70, 37, 22, 0.12);
  mix-blend-mode: multiply;
}

.mega-title--hero {
  max-width: 58rem;
}

.mega-title--hero span {
  display: block;
}

.script {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 600;
}

/* worn screen-print ink texture (grunge poster) — erodes the letters
   with a tiling alpha mask instead of roughening the edges */
.distress {
  -webkit-mask-image: url("assets/grunge-mask.png");
  mask-image: url("assets/grunge-mask.png");
  -webkit-mask-size: 340px 340px;
  mask-size: 340px 340px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

/* ---- One continuous hero (Frame 1 -> Frame 2) ---- */
/* Taller than the viewport so the INDIA block + card scroll up past the
   fixed bottle. Only ONE of each element exists -> no duplicate overlap. */
.panel--hero {
  height: 182vh;
  min-height: 182vh;
}

.mega-title--hero {
  position: absolute;
  top: 50vh;          /* centred in the viewport so the bottle sits in front */
  transform: translateY(-50%);
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  z-index: 4;
  max-width: none;
  font-size: 11rem;
  line-height: 0.8;
}

.mega-title--hero span {
  display: block;
}

.seal {
  display: block;
  position: absolute;
  top: 27vh;          /* sits at the top of the headline, below the navbar */
  left: 23%;
  z-index: 6;
  width: 7.2rem;
  height: 7.2rem;
}

.seal svg {
  width: 100%;
  height: 100%;
  display: block;
}

.seal-text {
  fill: #15130f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.4px;
  font-weight: 700;
  letter-spacing: 0.35px;
}

.hero-teaser {
  position: absolute;
  left: 6rem;
  bottom: -2.6rem;
  z-index: 12;
}

.hero-teaser h2 {
  margin: 0;
  text-transform: uppercase;
  font-family: Impact, "Arial Black", "Arial Narrow", sans-serif;
  font-size: 4.6rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.copy-block {
  position: absolute;
  z-index: 12;
  max-width: 26rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.copy-block h2,
.copy-block h3,
.pairing-copy h3,
.year-heading h2 {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  font-family: Impact, "Arial Black", "Arial Narrow", sans-serif;
  line-height: 0.92;
  letter-spacing: 0;
}

.copy-block h2 {
  font-size: 4.2rem;
}

.copy-block h3,
.pairing-copy h3 {
  font-size: 2rem;
}

.copy-block p,
.pairing-copy p {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: 0.9rem;
}

/* INDIA block: starts peeking at the bottom (Frame 1), scrolls up to centre (Frame 2) */
.panel--hero .copy-block--intro {
  left: 6rem;
  top: 92vh;
  max-width: 25rem;
}

.copy-block--right {
  right: 7.5rem;
  top: 36%;
  width: 25rem;
}

.stats-card {
  position: absolute;
  z-index: 13;
  width: 19rem;
  padding: 1.7rem 1.8rem;
  border: 2px solid var(--line);
  background: rgba(239, 239, 223, 0.66);
  backdrop-filter: blur(2px);
  font-family: Arial, Helvetica, sans-serif;
}

/* stats card: peeks (ABV) at the bottom in Frame 1, scrolls up to full in Frame 2 */
.stats-card--full {
  right: 5rem;
  top: 89vh;
  min-height: 20rem;
}

.stat-sub {
  margin: 0 0 0.55rem !important;
  color: var(--muted);
  font-size: 0.66rem !important;
  letter-spacing: 0.02em;
}

.stats-card dl {
  display: grid;
  gap: 1.15rem;
  margin: 0;
}

.stats-card div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  align-items: center;
  border-bottom: 1px solid rgba(21, 19, 15, 0.35);
  padding-bottom: 1rem;
}

.stats-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stats-card dt {
  grid-column: 1 / -1;
  margin-bottom: 0.05rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stats-card dd {
  grid-column: 1;
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 2.6rem;
  line-height: 0.85;
}

.stats-card dd span {
  font-size: 1.3rem;
}

.stats-card dd + p {
  grid-column: 2;
  align-self: center;
}

.stats-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.stats-card a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.panel--mouthfeel {
  display: grid;
  grid-template-columns: minmax(16rem, 30rem) 1fr minmax(20rem, 27rem);
  align-items: center;
  gap: 2rem;
}

.panel--mouthfeel .mega-title {
  position: absolute;
  top: 11%;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  z-index: 4;
  font-size: 8.4rem;
  white-space: nowrap;
}

.video-card {
  position: relative;
  z-index: 15;
  width: 21rem;
  align-self: end;
  margin: 0 0 9rem;
  font-family: "Segoe Print", "Bradley Hand ITC", cursive;
  font-size: 0.92rem;
  font-weight: 700;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.video-card figcaption {
  margin-top: 0.55rem;
}

.panel--flavor {
  isolation: isolate;
}

.beer-glass {
  position: absolute;
  z-index: 8;
  left: 7%;
  bottom: -3rem;
  width: 17rem;
  transform: rotate(-13deg);
  filter: drop-shadow(1rem 1rem 0.9rem rgba(21, 19, 15, 0.17));
}

.splat {
  position: absolute;
  z-index: 14;
  width: 17rem;
  height: 17rem;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 3.6rem 3.2rem;
  color: #fff;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  /* organic paint-splatter silhouette (generated PNG used as a mask) */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.splat h3 {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.splat p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.splat--red {
  background: var(--red);
}

.splat--black {
  background: #080807;
}

.splat--orange {
  top: 15%;
  left: 13%;
  -webkit-mask-image: url("assets/splat-1.png");
  mask-image: url("assets/splat-1.png");
}

.splat--pine {
  left: 27%;
  bottom: 13%;
  -webkit-mask-image: url("assets/splat-2.png");
  mask-image: url("assets/splat-2.png");
}

.splat--caramel {
  right: 8%;
  top: 28%;
  width: 18rem;
  height: 18rem;
  -webkit-mask-image: url("assets/splat-3.png");
  mask-image: url("assets/splat-3.png");
}

.panel--year {
  display: grid;
  grid-template-columns: minmax(18rem, 38rem) minmax(18rem, 32rem);
  align-content: center;
  gap: 3.2rem;
}

.year-heading {
  position: absolute;
  top: 13%;
  left: 0;
  right: 0;
  z-index: 12;
  text-align: center;
}

.year-heading h2 {
  font-size: 4.5rem;
}

.lineup {
  position: absolute;
  z-index: 9;
  top: 44%;
  left: 50%;
  transform: translateX(-50%);
  width: min(58rem, 72vw);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.4rem;
}

.product {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* soft contact shadow on the cream, so the cut-outs feel planted */
.product::after {
  content: "";
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  width: 78%;
  height: 1.15rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(21, 19, 15, 0.32), rgba(21, 19, 15, 0) 70%);
  z-index: -1;
}

.product img {
  height: 10.5rem;
  width: auto;
  object-fit: contain;
  /* directional drop shadow around each bottle/can */
  filter:
    drop-shadow(0.5rem 1.1rem 0.7rem rgba(21, 19, 15, 0.32))
    drop-shadow(0 0.25rem 0.4rem rgba(21, 19, 15, 0.22));
}

/* the centre 12oz bottle is the slot the hero bottle drops into — make it lead */
.product--hero-slot img {
  /* prominent centre bottle; the falling hero bottle hands off to this one
     at rest (revealed via JS) so it scrolls away naturally with the page */
  height: 15rem;
}

.product--hero-slot::after {
  display: none;
}

.product span {
  text-align: center;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--muted);
}

.product span b {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

/* ---- Food pairing: its own full screen below YEAR ROUND ---- */
.pairing-section {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(20rem, 36rem) minmax(18rem, 26rem);
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  padding: 6rem 5rem 6rem calc(var(--rail) + 2rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle at 54% 50%, rgba(105, 91, 70, 0.14), transparent 18rem),
    var(--cream);
}

.food {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  box-shadow: 0.6rem 1rem 1.4rem rgba(21, 19, 15, 0.22);
}

.pairing-copy {
  max-width: 26rem;
  font-family: Arial, Helvetica, sans-serif;
}

/* ---- Site footer (Lagunitas theme: dark ink band, cream text, red accent) ---- */
.site-footer {
  position: relative;
  z-index: 20;
  background: var(--ink);
  color: var(--cream);
  padding: 4.75rem 5rem 5.5rem calc(var(--rail) + 2rem);
  border-top: 4px solid var(--red);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(20rem, 2fr) minmax(12rem, 1fr);
  gap: 3rem 4rem;
  align-items: start;
  max-width: 78rem;
}

.footer-brand {
  display: inline-grid;
  justify-items: start;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 0.82;
}

.footer-brand span {
  font-size: 1.85rem;
  letter-spacing: 0.1em;
}

.footer-brand small {
  margin-top: 0.35rem;
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  color: var(--cream);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 2.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--cream);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-cta {
  justify-self: end;
  text-align: right;
}

.footer-tag {
  margin: 0 0 1.1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--cream);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(239, 239, 223, 0.18);
  max-width: 78rem;
}

.footer-base p {
  margin: 0;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(239, 239, 223, 0.62);
}

@media (max-width: 1180px) {
  .mega-title {
    font-size: 6.9rem;
  }

  .panel--mouthfeel .mega-title {
    font-size: 6.4rem;
  }

  .bottle {
    width: 14rem;
  }

  .stats-card {
    right: 3.5rem;
    width: 16rem;
  }

  .copy-block--right {
    right: 4rem;
  }
}

@media (max-width: 860px) {
  :root { --rail: 3rem; --header-h: 3.55rem; }

  .nav-links { display: none; }
  .nav { padding: 0 0.8rem 0 var(--rail); }
  .brand span { font-size: 0.95rem; }
  .buy-button { min-width: 3.6rem; min-height: 1.7rem; font-size: 0.52rem; }
  .theme-toggle { transform: scale(0.85); }

  /* keep the fixed centre bottle + tall scroll stage so the 3D works on phones */
  .panel { width: 100%; height: 100vh; min-height: 100vh; padding: 5rem 1.1rem 3rem; }
  .panel--hero { height: 182vh; min-height: 182vh; }
  .track { display: block; width: 100%; }
  .panel::after { inset-inline: 1.1rem; }
  .bottle { width: 8.2rem; }

  /* HERO */
  .seal { display: none; }
  .mega-title { font-size: 13vw; }
  .mega-title--hero { top: 50vh; font-size: 13.5vw; line-height: 0.86; }
  .mega-title--hero span { display: block; }
  .panel--hero .copy-block--intro { left: 1.1rem; right: 1.1rem; width: auto; max-width: none; top: 100vh; }
  .copy-block--intro h2 { font-size: 2.6rem; }
  .copy-block p, .pairing-copy p { font-size: 0.9rem; }
  .stats-card--full { left: 1.1rem; right: 1.1rem; width: auto; min-height: 0; top: 134vh; padding: 1.1rem 1.2rem; }
  .stats-card dd { font-size: 2rem; }

  /* TASTING */
  .panel--mouthfeel { display: block; }
  .panel--mouthfeel .mega-title { position: absolute; top: 7%; left: 1.1rem; right: auto; font-size: 13vw; white-space: nowrap; }
  .video-card { position: absolute; top: 27%; left: 1.1rem; width: 62vw; margin: 0; }
  .copy-block--right { position: absolute; left: 1.1rem; right: 1.1rem; top: 60%; width: auto; transform: none; }
  .copy-block h2 { font-size: 2.6rem; }
  .copy-block h3, .pairing-copy h3 { font-size: 1.7rem; }

  /* OUR RANGE — tight single row keeps the bottle landing in the centre slot */
  .year-heading { top: 8%; }
  .year-heading h2 { font-size: 13vw; }
  .lineup { width: 96vw; gap: 0.28rem; flex-wrap: nowrap; }
  .product { flex: 1 1 0; gap: 0.4rem; }
  .product img { height: 4.2rem; }
  .product--hero-slot img { height: 5rem; }
  .product span { font-size: 0.44rem; }
  .product span b { font-size: 0.46rem; }
  .product::after { display: none; }

  /* PAIRING + FOOTER */
  .pairing-section { grid-template-columns: 1fr; min-height: auto; gap: 1.4rem; padding: 3rem 1.3rem; }
  .food { width: 100%; height: 12rem; }
  .pairing-copy { margin-top: 0; }
  .site-footer { padding: 2.6rem 1.3rem 3.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .footer-cta { justify-self: start; text-align: left; }
  .footer-base { margin-top: 1.8rem; }
}

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

  .bottle {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* ============================================================
   Dark / smoky theme + toggle switch
   ============================================================ */

/* --- the switch (3-way: Light / Night / Red Night) --- */
.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 4.6rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid rgba(21, 19, 15, 0.22);
  border-radius: 999px;
  background: var(--cream-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.theme-toggle::before {
  content: "\2600"; /* sun (light) */
  position: absolute;
  left: 0.46rem;
  opacity: 0.7;
}
.theme-toggle::after {
  content: "\263E"; /* moon (night / red night) */
  position: absolute;
  right: 0.5rem;
  opacity: 0.7;
}
.theme-toggle__thumb {
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
  transition: left 0.25s ease, right 0.25s ease, background 0.25s ease;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* thumb position per mode: light = left, night = centre, red = right */
html.dark:not(.theme-red) .theme-toggle__thumb {
  left: 50%;
  margin-left: -0.625rem;
}
html.dark.theme-red .theme-toggle__thumb {
  left: auto;
  right: 0.2rem;
}

html.dark .theme-toggle {
  background: #241d16;
  border-color: rgba(236, 227, 210, 0.28);
}
html.dark .theme-toggle::before { opacity: 0.4; }
html.dark .theme-toggle::after { opacity: 0.95; color: var(--red); }

/* --- dark palette --- */
html.dark {
  --cream: #16120e;
  --cream-2: #221b14;
  --ink: #ece3d2;
  --muted: #9c907d;
  --red: #d6973a;
  --red-dark: #b87a26;
  --line: #3a332b;
  background: #100c09;
}

/* smoky backgrounds (replace the cream + white-tint gradients) */
html.dark body {
  background:
    radial-gradient(circle at 72% 16%, rgba(214, 151, 58, 0.12), transparent 24rem),
    radial-gradient(120% 90% at 50% 115%, rgba(0, 0, 0, 0.65), transparent 60%),
    var(--cream);
}
html.dark .scroll-stage,
html.dark .panel {
  background:
    radial-gradient(circle at 54% 46%, rgba(214, 151, 58, 0.09), transparent 22rem),
    radial-gradient(130% 100% at 50% 120%, rgba(0, 0, 0, 0.45), transparent 65%),
    var(--cream);
}
html.dark .pairing-section {
  background:
    radial-gradient(circle at 50% 40%, rgba(214, 151, 58, 0.08), transparent 22rem),
    var(--cream);
}

/* grid + hairlines flip to light so they read on dark */
html.dark .panel::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
}
html.dark .panel::after {
  background: rgba(236, 227, 210, 0.14);
}

/* glowing amber headlines (multiply would vanish on dark) */
html.dark .mega-title {
  mix-blend-mode: normal;
  text-shadow: 0 0 30px rgba(214, 151, 58, 0.35);
}

/* header / rail */
html.dark .site-header {
  background: rgba(16, 12, 9, 0.82);
  border-bottom-color: rgba(236, 227, 210, 0.12);
  backdrop-filter: blur(6px);
}
html.dark .rail__line { background: var(--line); }

/* seal emblem strokes/fills are hard-coded dark -> recolour */
html.dark .seal svg circle { stroke: var(--ink); }
html.dark .seal svg text,
html.dark .seal svg .seal-text { fill: var(--ink); }
html.dark .seal svg g { fill: var(--red); }

/* buttons */
html.dark .dark-button {
  background: var(--red);
  color: #1a1209;
}

/* flavor splat: near-black splat would disappear on dark */
html.dark .splat--black { background: #5d3c1c; }

/* footer uses var(--ink) bg in light; keep it darkest in dark mode */
html.dark .site-footer {
  background: #0c0907;
  border-top-color: var(--red);
}
html.dark .footer-links a,
html.dark .footer-brand small { color: var(--ink); }
html.dark .footer-base p { color: rgba(236, 227, 210, 0.55); }
html.dark .footer-base { border-top-color: rgba(236, 227, 210, 0.16); }

/* ============================================================
   Flavor section — Indian decor (elephants, lamps, floral)
   ============================================================ */
.panel--flavor {
  overflow: hidden;
}

/* ornate elephants flanking left & right, facing inward */
.elephant {
  position: absolute;
  bottom: 4%;
  width: 24rem;
  max-width: 34vw;
  z-index: 6;
  filter: drop-shadow(0 0.7rem 1rem rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.elephant--left { left: 3rem; }
.elephant--right { right: 3rem; transform: scaleX(-1); }

/* faded fresco-mural backdrop (old-painting vibe) */
.panel--flavor::before,
.panel--flavor::after { display: none; }
.flavor-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/indri-fresco.png") center / cover no-repeat;
}
.flavor-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 7, 5, 0.48), rgba(10, 7, 5, 0.6));
}

/* painted botanical foliage at the side edges */
.foliage {
  position: absolute;
  bottom: 0;
  width: 13rem;
  max-width: 20vw;
  z-index: 3;
  opacity: 0.92;
  pointer-events: none;
}
.foliage--left { left: 0; }
.foliage--right { right: 0; transform: scaleX(-1); }

/* hanging lanterns — JS drops them in + sets them swinging */
.lamp {
  position: absolute;
  top: 0;
  z-index: 16;
  transform-origin: top center;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 0.35rem 0.7rem rgba(0, 0, 0, 0.55));
}
.lamp img {
  display: block;
  width: 100%;
}
.lamp--1 { left: 13%; width: 4.4rem; }
.lamp--2 { left: 31%; width: 5rem; }
.lamp--3 { right: 31%; width: 5rem; }
.lamp--4 { right: 13%; width: 4.4rem; }

/* the whisky glass, relocated into the pairing copy */
.pour-glass {
  width: 8.5rem;
  margin: 1.8rem 0 0;
  filter: drop-shadow(0 0.8rem 1rem rgba(0, 0, 0, 0.45));
}

@media (max-width: 860px) {
  .elephant { width: 8.4rem; max-width: 40vw; bottom: 2%; }
  .elephant--left { left: -0.8rem; }
  .elephant--right { right: -0.8rem; }
  .foliage { width: 5rem; }
  .lamp--1 { left: 5%; width: 2.7rem; }
  .lamp--2 { left: 27%; width: 3.1rem; }
  .lamp--3 { right: 27%; width: 3.1rem; }
  .lamp--4 { right: 5%; width: 2.7rem; }
}

/* ---- Navbar hides on scroll-down, returns on scroll-up ---- */
.site-header {
  transition: transform 0.35s ease;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* ---- Dark-mode stats card: dark panel, amber accents, readable text ---- */
html.dark .stats-card {
  background: rgba(24, 18, 13, 0.88);
  border-color: rgba(214, 151, 58, 0.5);
  color: var(--ink);
}
html.dark .stats-card div {
  border-bottom-color: rgba(236, 227, 210, 0.16);
}
html.dark .stats-card dt { color: var(--ink); }
html.dark .stats-card dd { color: var(--red); }
html.dark .stats-card .stat-sub { color: rgba(236, 227, 210, 0.6); }
html.dark .stats-card p { color: rgba(236, 227, 210, 0.78); }
html.dark .stats-card a { color: var(--red); font-weight: 700; }

/* ============================================================
   Red + Night theme (dark base, crimson accent instead of amber)
   ============================================================ */
html.theme-red {
  --red: #c0392b;
  --red-dark: #98271d;
}
html.theme-red body {
  background:
    radial-gradient(circle at 72% 16%, rgba(192, 57, 43, 0.16), transparent 24rem),
    radial-gradient(120% 90% at 50% 115%, rgba(0, 0, 0, 0.66), transparent 60%),
    var(--cream);
}
html.theme-red .scroll-stage,
html.theme-red .panel {
  background:
    radial-gradient(circle at 54% 46%, rgba(192, 57, 43, 0.12), transparent 22rem),
    radial-gradient(130% 100% at 50% 120%, rgba(0, 0, 0, 0.45), transparent 65%),
    var(--cream);
}
html.theme-red .mega-title { text-shadow: 0 0 30px rgba(192, 57, 43, 0.45); }
html.theme-red .stats-card { border-color: rgba(192, 57, 43, 0.55); }
html.theme-red .lamp { filter: drop-shadow(0 0.4rem 0.9rem rgba(192, 57, 43, 0.4)); }
