/* ============================================================
   GUILDSTEW — v3 · NAVY + ORANGE first, flowy modern
   Brand palette per StyleGuide.pdf
   Cream is now an OCCASIONAL accent, not the canvas.
   ============================================================ */

:root {
  /* Brand · primary */
  --orange:        #FF5300;
  --orange-hot:    #FF6A1F;
  --orange-dark:   #A03900;
  --orange-darker: #5C1F00;
  --orange-light:  #F8A47C;
  --orange-pale:   #FCC9A8;

  /* Brand · purplish navy spectrum */
  --navy:          #14182D;     /* primary canvas */
  --navy-2:        #1D2240;     /* raised surface */
  --navy-3:        #2A2F50;     /* hover / border */
  --navy-deep:     #090B1A;     /* footer floor */
  --indigo-haze:   #2E2768;     /* purple accent for glows */

  --slate:         #7C84A8;
  --slate-2:       #A3ABCC;
  --slate-3:       #C8CFE6;

  /* Brand · accents (teal) */
  --teal-deep:     #04685A;
  --teal:          #1FA88F;
  --teal-light:    #37F2D1;

  /* Brand · paper (occasional) */
  --cream:         #FAF7F2;
  --cream-2:       #F1ECE2;
  --ink:           #0D0D0D;

  /* Semantic */
  --bg:            var(--navy);
  --fg:            var(--cream);
  --fg-muted:      var(--slate-2);
  --accent:        var(--orange);
  --accent-2:      var(--teal-light);

  /* Soft shadows (replacing chunky 3D) */
  --shadow-sm:     0 6px 18px -6px rgba(0,0,0,0.45);
  --shadow:        0 18px 40px -16px rgba(0,0,0,0.55);
  --shadow-lg:     0 40px 80px -28px rgba(0,0,0,0.6);
  --glow-orange:   0 0 60px -10px rgba(255,83,0,0.55);
  --glow-teal:     0 0 60px -10px rgba(31,168,143,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.7 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Ambient flowing gradient on body — sits behind everything */
body::after {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(255,83,0,0.18), transparent 60%),
    radial-gradient(ellipse 50% 55% at 95% 30%, rgba(46,39,104,0.55), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 95%, rgba(31,168,143,0.12), transparent 60%);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.05); }
}

/* === Typography === */
h1, h2, h3, .display {
  font-family: 'Cherry Cream Soda', 'Caprasimo', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  color: var(--cream);
}

/* Unified section heading size (hero h1 and inline h3s override) */
section h2 { font-size: clamp(2rem, 4vw, 3.4rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-light);
  font-weight: 600;
}
.eyebrow .dash { display: inline-block; width: 22px; height: 2px; background: currentColor; opacity: 0.7; }

.text-orange { color: var(--orange); }
.text-teal   { color: var(--teal-light); }

/* Italic emphasis style (was Caveat handwriting) */
em.h {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 500;
  color: var(--orange-light);
}

/* ============================================================
   UNIFIED WEB FRAME — used to dress every UI mock as a
   browser window. Each frame is a video-ready slot:
   drop a <video class="frame-video"> into .web-frame-body
   and the static mock falls behind it.
   ============================================================ */
.win-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(9,11,26,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.win-chrome .dots {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.win-chrome .dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.win-chrome .dots span:nth-child(1) { background: #FF5F57; }
.win-chrome .dots span:nth-child(2) { background: #FEBC2E; }
.win-chrome .dots span:nth-child(3) { background: #28C840; }
.win-chrome .url {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--slate-2);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.win-chrome .url::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 8px var(--teal-light);
  flex: 0 0 auto;
}

.web-frame {
  position: relative;
  background: linear-gradient(165deg, rgba(35,41,68,0.92), rgba(20,24,45,0.98));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  transition: transform 0.5s cubic-bezier(.4,.2,.2,1);
}
.web-frame:hover { transform: translateY(-4px); }

.web-frame-body {
  position: relative;
  padding: 18px;
  min-height: 200px;
}

/* ============================================================
   LAPTOP — wraps a web-frame to make it read as a real
   computer (display + hinge + base). The screen is the frame.
   ============================================================ */
.laptop {
  position: relative;
  padding-bottom: 36px;
}
.laptop > .web-frame {
  border-radius: 18px 18px 6px 6px;
  border-bottom-color: rgba(255,255,255,0.18);
  box-shadow: var(--shadow-lg), 0 0 80px -20px rgba(255,83,0,0.25);
}
.laptop::after {
  content: '';
  position: absolute;
  left: -3.5%;
  right: -3.5%;
  bottom: 18px;
  height: 14px;
  background:
    linear-gradient(180deg, rgba(80,90,130,0.6) 0%, rgba(40,50,80,0.85) 30%, rgba(20,24,45,1) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px 2px 12px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 30px 60px -20px rgba(0,0,0,0.7);
}
.laptop::before {
  /* hinge notch */
  content: '';
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  width: 110px;
  height: 5px;
  background: rgba(0,0,0,0.65);
  border-radius: 0 0 8px 8px;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.5);
}
/* Subtle reflective floor under the laptop */
.laptop-stage {
  position: relative;
}
.laptop-stage::after {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -30px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

/* Make any web-frame's body adapt to its video naturally */
.web-frame-body.video-fill {
  padding: 0;
  background: #000;
  overflow: hidden;
}
.web-frame-body.video-fill video {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   VIDEO CYCLE — crossfade between multiple clips with a
   flowy orange wash swiping across as the transition.
   ============================================================ */
.video-cycle {
  position: relative;
  aspect-ratio: 16 / 9;
}
.video-cycle .vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.04);
  transition: opacity 0.9s cubic-bezier(.4,.2,.2,1),
              filter 0.9s cubic-bezier(.4,.2,.2,1),
              transform 1.2s cubic-bezier(.4,.2,.2,1);
}
.video-cycle .vid.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  z-index: 1;
}

/* Flow wipe — orange ellipse sweeps across the frame */
.video-cycle .flow-wipe {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  transition: opacity 0.3s;
}
.video-cycle .flow-wipe::before,
.video-cycle .flow-wipe::after {
  content: '';
  position: absolute;
  top: -30%;
  bottom: -30%;
  width: 80%;
  background: radial-gradient(ellipse at center,
              rgba(255, 140, 60, 0.85) 0%,
              rgba(255, 83, 0, 0.55) 35%,
              rgba(255, 83, 0, 0) 70%);
  filter: blur(38px);
  transform: translateX(-180%) skewX(-12deg) scale(1.2);
  transition: transform 1.4s cubic-bezier(.5,.1,.2,1);
}
.video-cycle .flow-wipe::after {
  background: radial-gradient(ellipse at center,
              rgba(255, 200, 140, 0.7) 0%,
              rgba(255, 83, 0, 0.3) 40%,
              rgba(255, 83, 0, 0) 75%);
  transform: translateX(-220%) skewX(-12deg) scale(1.3);
  transition-delay: 80ms;
  filter: blur(50px);
}
.video-cycle.transitioning .flow-wipe { opacity: 1; }
.video-cycle.transitioning .flow-wipe::before { transform: translateX(180%) skewX(-12deg) scale(1.2); }
.video-cycle.transitioning .flow-wipe::after  { transform: translateX(220%) skewX(-12deg) scale(1.3); }
/* Optional "click-to-play" caption overlay — leave a thin marker */
.web-frame[data-recording]::after {
  content: attr(data-recording);
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(9,11,26,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--orange-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

/* Strip nested mocks' own chrome when sitting inside a web-frame */
.web-frame-body > .char-sheet,
.web-frame-body > .campaign-card,
.web-frame-body > .player-ui,
.web-frame-body > .overlay-mock {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}
.web-frame-body > .char-sheet::before,
.web-frame-body > .campaign-card::before {
  display: none;
}
.web-frame-body > .char-sheet .char-sheet-head,
.web-frame-body > .campaign-card .sys {
  padding-left: 4px; padding-right: 4px;
}
.web-frame-body > .overlay-mock {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.text-cream  { color: var(--cream); }
.text-navy   { color: var(--navy); }

/* === Layout === */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 900px; margin: 0 auto; }

/* Every section behaves as a full-viewport "page": fills the
   screen, centers its content, and snaps into place. min-height
   (not height) lets taller sections grow so nothing is clipped. */
section {
  position: relative;
  min-height: 100vh;
  padding: 120px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}
section > .container,
section > .flow-divider { flex: none; }

/* ============================================================
   ORGANIC FLOW DECORATIONS — reusable across sections
   ============================================================ */
.flow-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.flow-glow.orange { background: var(--orange); }
.flow-glow.teal   { background: var(--teal); }
.flow-glow.purple { background: var(--indigo-haze); }

/* Curved section divider (place at top or bottom of a section) */
.flow-divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}
.flow-divider.top    { top: -1px; }
.flow-divider.bottom { bottom: -1px; }
.flow-divider svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   NAV — airy, no hard pill; soft backdrop fades in on scroll
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(.6,.2,.1,1.2);
  will-change: transform;
}
.nav > * { pointer-events: auto; }

/* Soft fade-in backdrop activated by JS .scrolled */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,11,26,0.85) 0%, rgba(9,11,26,0.4) 70%, rgba(9,11,26,0) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav.scrolled::before { opacity: 1; }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s;
}
.nav-logo::before {
  content: '';
  position: absolute;
  inset: -22px -32px;
  background: radial-gradient(ellipse, rgba(255,83,0,0.32), transparent 65%);
  filter: blur(16px);
  z-index: -1;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.nav-logo:hover { transform: scale(1.03); }
.nav-logo:hover::before { opacity: 1; }
.nav-logo img {
  height: 62px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(20, 24, 45, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 999px;
  padding: 5px;
}
.nav-link {
  color: var(--slate-3);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
  color: var(--orange-light);
  background: rgba(255, 83, 0, 0.1);
}

/* Smaller CTA in nav */
.nav .btn {
  padding: 11px 20px;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--indigo-haze) 0%, var(--teal-light) 100%);
  box-shadow: 0 10px 28px -8px rgba(46, 39, 104, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.nav .btn:hover {
  box-shadow: 0 18px 36px -8px rgba(55, 242, 209, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(255,83,0,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.2s cubic-bezier(.4,.2,.2,1), box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -8px rgba(255,83,0,0.7), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  box-shadow: none;
}

.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* Mint/teal secondary CTA */
.btn-mint {
  background: rgba(31,168,143,0.12);
  color: var(--teal-light);
  border: 1px solid rgba(55,242,209,0.5);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.btn-mint:hover {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: var(--cream);
  border-color: transparent;
  box-shadow: 0 16px 36px -10px rgba(31,168,143,0.6);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 3.5s infinite;
  transform: skewX(-20deg);
}
@keyframes shimmer { 0% { left: -60%; } 60%, 100% { left: 130%; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 160px 0 100px;
  background: transparent;
  overflow: visible;
}

.hero .flow-glow.g1 { top: -10%; left: -8%;  width: 600px; height: 600px; }
.hero .flow-glow.g2 { bottom: -190px; right: -6%; width: 660px; height: 660px; opacity: 0.4; z-index: 0; }

/* Big background mark */
.hero-mark { display: none; }
.hero-mark img { width: 100%; height: 100%; object-fit: contain; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-3);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,83,0,0.6);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,83,0,0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(255,83,0,0); }
}

.hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 26px;
  color: var(--cream);
}
.hero h1 .yes-chef {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform-origin: bottom left;
  animation: tilt 4s ease-in-out infinite;
}
@keyframes tilt {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}
.underline {
  position: relative;
  display: inline-block;
}
.underline::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: -2px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 8 Q40 1 80 7 T160 6 T198 8' stroke='%23FF5300' stroke-width='4' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s cubic-bezier(.4,.2,.2,1) 0.25s;
}
.reveal.in .underline::after { transform: scaleX(1); }

.hero p.lede {
  font-size: 1.18rem;
  color: var(--slate-3);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat strong {
  display: block;
  font-family: 'Cherry Cream Soda', serif;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.hero-stat span {
  font-size: 0.76rem;
  color: var(--slate);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 6px;
  display: block;
}

/* ============================================================
   HERO DASHBOARD MOCK (now glassy / flowy)
   ============================================================ */
.hero-app { position: relative; }
.app-frame {
  position: relative;
  background: linear-gradient(165deg, rgba(35,41,68,0.85), rgba(20,24,45,0.85));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-lg), 0 0 80px -20px rgba(255,83,0,0.25);
  backdrop-filter: blur(20px);
  transition: transform 0.6s cubic-bezier(.4,.2,.2,1);
}
.app-frame:hover { transform: translateY(-6px); }

.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 12px;
}
.app-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.app-bar .dot.live {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255,83,0,0.7);
}
.app-bar .url {
  margin-left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

.app-body {
  background: rgba(9,11,26,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  min-height: 460px;
}

.app-side {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-side h6 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.side-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--slate-3);
  font-weight: 500;
  transition: background 0.2s;
}
.side-row:hover { background: rgba(255,255,255,0.05); }
.side-row .av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-light);
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}
.side-row.active {
  background: linear-gradient(135deg, rgba(255,83,0,0.18), rgba(255,83,0,0.05));
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255,83,0,0.4);
}

.app-main { display: grid; gap: 14px; }
.app-tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
}
.app-tile-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.app-tile-title h5 {
  font-family: 'Cherry Cream Soda', serif;
  font-size: 1rem;
  color: var(--cream);
}
.app-tile-title .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--slate);
  letter-spacing: 0.12em;
}
.init-grid { display: flex; flex-direction: column; gap: 4px; }
.init-grid .row {
  display: grid;
  grid-template-columns: 28px 1fr 50px 64px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--slate-3);
}
.init-grid .row.live {
  background: linear-gradient(90deg, rgba(255,83,0,0.22), rgba(255,83,0,0.06));
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255,83,0,0.45);
}
.init-grid .row.live .num {
  background: var(--orange);
  color: var(--cream);
  box-shadow: 0 0 10px rgba(255,83,0,0.6);
}
.init-grid .row .num {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono';
  font-size: 0.72rem;
  font-weight: 700;
}
.init-grid .row.foe .num { background: var(--teal-deep); }
.init-grid .row .hp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--slate-2);
  text-align: right;
}
.init-grid .row .status {
  font-family: 'JetBrains Mono';
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.init-grid .row.live .status { color: var(--orange-light); }

.dice-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.die {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Cherry Cream Soda';
  font-size: 1.1rem;
  position: relative;
  transition: transform 0.3s;
}
.die:hover { transform: translateY(-2px) rotate(-4deg); }
.die.crit {
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255,83,0,0.55);
}

/* Sticky doodle notes — restyled as floating chips */
.sticky {
  position: absolute;
  background: rgba(20,24,45,0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--slate-3);
  box-shadow: var(--shadow);
  z-index: 3;
}
.sticky.tr { top: -16px; right: -16px; }
.sticky.bl {
  bottom: -16px; left: -24px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
  border-color: transparent;
  font-style: normal;
  font-weight: 700;
  box-shadow: 0 16px 40px -10px rgba(255,83,0,0.6);
}

.float-icon {
  position: absolute;
  pointer-events: none;
  width: 58px;
  opacity: 0.14;
  color: var(--navy-deep);
  animation: floaty 12s ease-in-out infinite;
}
.float-icon svg {
  width: 100%;
  height: auto;
  display: block;
  fill: currentColor;
}
.float-icon.light {
  color: var(--orange-light);
  opacity: 0.13;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-30px) rotate(14deg); }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 70px;
  position: relative;
  z-index: 2;
}
.section-head h2 {
  margin: 14px 0 20px;
  color: var(--cream);
}
.section-head p {
  color: var(--slate-2);
  font-size: 1.08rem;
}

/* ============================================================
   INTRO  (disorganization)  — NAVY w/ flowing accents
   ============================================================ */
.intro { padding-top: 100px; position: relative; overflow: visible; }
.intro .flow-glow.g1 { top: auto; bottom: -170px; right: -8%; width: 540px; height: 540px; opacity: 0.35; z-index: 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.intro h2 {
  margin-bottom: 24px;
  color: var(--cream);
}
.intro h2 .strike {
  position: relative;
  display: inline-block;
  color: var(--cream);
}
.intro h2 .strike::after {
  content: '';
  position: absolute;
  left: -8px; right: -8px; top: 50%;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: rotate(-2deg);
  border-radius: 4px;
  animation: strike 1.2s cubic-bezier(.4,.2,.2,1) both;
  transform-origin: left;
  box-shadow: 0 0 18px rgba(255,83,0,0.5);
}
@keyframes strike {
  from { transform: rotate(-2deg) scaleX(0); }
  to   { transform: rotate(-2deg) scaleX(1); }
}
.intro p { color: var(--slate-2); font-size: 1.06rem; margin-bottom: 14px; max-width: 56ch; }
.intro p em.h {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--orange-light);
}

.bites {
  background: linear-gradient(165deg, rgba(46,39,104,0.4), rgba(20,24,45,0.6));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
  backdrop-filter: blur(20px);
}
.bites::before {
  content: 'QUICK BITES';
  position: absolute;
  top: -12px; left: 22px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px -4px rgba(255,83,0,0.5);
}
.bites ul { list-style: none; }
.bites li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.97rem;
  color: var(--slate-3);
  align-items: flex-start;
}
.bites li:last-child { border-bottom: none; }
.bites li strong { color: var(--cream); }
.bite-num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: 'Cherry Cream Soda', serif;
  font-size: 0.95rem;
  box-shadow: 0 6px 14px -4px rgba(255,83,0,0.55);
}

/* ============================================================
   FEATURE BLOCKS
   ============================================================ */
.feature { padding: 130px 0; position: relative; overflow: hidden; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.feature.reverse .feature-grid { grid-template-columns: 1.1fr 1fr; direction: rtl; }
.feature.reverse .feature-grid > * { direction: ltr; }

/* Campaigns teal glow bleeds UP into the navy Characters section
   (teal-on-navy flows smoothly; bleeding down would clash with the
   orange Systems band). */
.feature.feature-bg-glow-l { overflow: visible; }
.feature.feature-bg-glow-r { overflow: visible; }
.feature-bg-glow-l .flow-glow {
  top: -170px;
  bottom: auto;
  left: -6%;
  width: 580px;
  height: 580px;
  opacity: 0.4;
  z-index: 0;
}

.feature h2 {
  margin: 14px 0 24px;
  color: var(--cream);
}
.feature p { color: var(--slate-2); margin-bottom: 14px; max-width: 540px; }
.feature em.h {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  color: var(--orange-light);
}

.feature-bg-glow-r .flow-glow { top: auto; bottom: -180px; right: -8%; width: 560px; height: 560px; opacity: 0.4; z-index: 0; }

/* ============================================================
   GENERIC CARD
   ============================================================ */
.card {
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

/* ============================================================
   CHARACTER SHEET
   ============================================================ */
.char-sheet {
  background: linear-gradient(165deg, rgba(35,41,68,0.85), rgba(20,24,45,0.95));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  position: relative;
}
.char-sheet::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--orange);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}
.char-sheet-head {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.char-sheet-head .name {
  font-family: 'Cherry Cream Soda', serif;
  font-size: 1.5rem;
  color: var(--cream);
}
.char-sheet-head .race {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--orange-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.char-sheet-body { padding: 24px; position: relative; }
.char-sheet-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.portrait-box {
  width: 110px;
  height: 130px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
}
.portrait-box img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hp-bar {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}
.hp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  width: 72%;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255,83,0,0.5);
  animation: hp-throb 2.4s ease-in-out infinite;
}
@keyframes hp-throb {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15); }
}
.hp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--slate-2);
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.06em;
}
.hp-label span:last-child { color: var(--orange); }
.char-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stat-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  line-height: 1.1;
  color: var(--slate-2);
  letter-spacing: 0.08em;
}
.stat-pill strong {
  display: block;
  font-family: 'Cherry Cream Soda', serif;
  font-size: 1.15rem;
  color: var(--cream);
  margin-top: 2px;
}

/* ============================================================
   CAMPAIGN CARD
   ============================================================ */
.campaign-card {
  position: relative;
  background: linear-gradient(165deg, rgba(46,39,104,0.65), rgba(20,24,45,0.95));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.campaign-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,83,0,0.35), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(31,168,143,0.25), transparent 55%);
  pointer-events: none;
}
.campaign-card > * { position: relative; z-index: 1; }
.campaign-card .sys {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--orange-light);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.campaign-card h4 {
  font-family: 'Cherry Cream Soda', serif;
  font-size: 2.3rem;
  color: var(--cream);
  line-height: 1.04;
  margin-bottom: 22px;
}
.campaign-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
}
.campaign-stat .lab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--orange-light);
  letter-spacing: 0.18em;
}
.campaign-stat .val {
  font-family: 'Cherry Cream Soda', serif;
  font-size: 1.9rem;
  color: var(--cream);
  margin-top: 4px;
}
.campaign-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 12px;
}
.party-avs { display: flex; }
.party-avs .av {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--navy-2);
  background: var(--orange);
  margin-left: -8px;
}
.party-avs .av:first-child { margin-left: 0; }
.party-avs .av:nth-child(2) { background: var(--teal); }
.party-avs .av:nth-child(3) { background: var(--orange-light); }
.party-avs .av:nth-child(4) { background: var(--indigo-haze); }

/* ============================================================
   SYSTEMS  ·  ORANGE BAND with curved dividers
   ============================================================ */
.systems-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hot) 50%, #FF7E2B 100%);
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
  color: var(--cream);
}
.systems-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.13) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.systems-band .section-head h2,
.systems-band .section-head p { color: var(--cream); }
.systems-band .section-head .text-orange { color: var(--navy); }
.systems-band .eyebrow { color: rgba(255,247,242,0.85); }
.systems-band em.h {
  display: inline-block;
  background: var(--indigo-haze);
  color: var(--teal-light);
  padding: 3px 12px 4px;
  border-radius: 6px;
  font-style: italic;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transform: rotate(-2deg);
  margin-top: 8px;
  box-shadow: 0 4px 14px -2px rgba(0,0,0,0.3);
  white-space: normal;
  line-height: 1.4;
}

.systems-marquee {
  overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.08);
  margin: 50px 0 30px;
  position: relative;
  z-index: 2;
}
.systems-track {
  display: flex;
  gap: 60px;
  animation: scroll-x 35s linear infinite;
  width: max-content;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }
.sys-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cherry Cream Soda', serif;
  font-size: 1.7rem;
  color: var(--cream);
  white-space: nowrap;
  opacity: 0.95;
}
.sys-chip .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,24,45,0.25);
}
.sys-chip.teal .dot { background: var(--teal-light); }

.systems-legend {
  position: relative; z-index: 2;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: rgba(255,247,242,0.85);
  letter-spacing: 0.08em;
}
.systems-legend strong { color: var(--cream); font-weight: 700; }

/* curved dividers around orange band */
.systems-band .flow-divider svg path { fill: var(--navy); }

/* ============================================================
   SAFETY
   ============================================================ */
.safety { position: relative; overflow: visible; }
.safety .flow-glow.g1 {
  top: -180px;
  left: -10%;
  width: 620px;
  height: 620px;
  opacity: 0.45;
  z-index: 1;
}
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.safety h2 { color: var(--cream); }
.safety p  { color: var(--slate-2); margin-bottom: 14px; }
.safety strong { color: var(--cream); }

.safety-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool {
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.tool:hover {
  transform: translateY(-4px);
  border-color: rgba(255,83,0,0.4);
  box-shadow: var(--shadow), 0 0 40px -10px rgba(255,83,0,0.35);
}
.tool .glyph {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-family: 'Cherry Cream Soda';
  font-size: 1.35rem;
  box-shadow: 0 8px 24px -6px rgba(255,83,0,0.55);
}
.tool h4 {
  font-family: 'Cherry Cream Soda', serif;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 6px;
}
.tool p { font-size: 0.9rem; color: var(--slate-2); margin: 0; }

/* ============================================================
   BACK OF HOUSE / FRONT OF HOUSE
   ============================================================ */
.house { padding: 150px 0; position: relative; overflow: visible; transition: background 0.8s cubic-bezier(.4,.2,.2,1); }
.house .flow-glow.g1 { top: -140px; left: -6%;  width: 580px; height: 580px; transition: background 0.8s, opacity 0.8s; z-index: 0; }
.house .flow-glow.g2 { bottom: -160px;  right: -6%; width: 600px; height: 600px; opacity: 0.45; transition: background 0.8s, opacity 0.8s; z-index: 0; }
.house h2 { color: var(--cream); transition: color 0.6s ease; }
.house h2 .text-orange { transition: color 0.6s ease; }
.house h3 { transition: color 0.6s ease; }
.house p  { color: var(--slate-2); transition: color 0.6s ease; }
.house strong { transition: color 0.6s ease; }
.house .eyebrow { justify-content: center; transition: color 0.6s ease; }
.house .house-tabs { transition: background 0.6s ease, border-color 0.6s ease; }
.house .house-tab { transition: color 0.3s ease, background 0.5s ease, box-shadow 0.5s ease; }
.house .feel-list li { transition: color 0.6s ease, border-color 0.6s ease; }

/* ============================================================
   FoH MODE — orange canvas with bright purple accents
   Text stays cream; only accent colors shift.
   ============================================================ */
.house.foh-mode {
  background: linear-gradient(165deg, #FF6A1F 0%, #FF5300 55%, #E04600 100%);
}
.house.foh-mode .flow-glow.g1,
.house.foh-mode .flow-glow.g2 {
  background: var(--orange-light);
  opacity: 0.5;
}
.house.foh-mode p { color: rgba(250, 247, 242, 0.92); }
.house.foh-mode strong { color: var(--indigo-haze); }
.house.foh-mode .eyebrow { color: var(--indigo-haze); }
.house.foh-mode .text-orange { color: var(--indigo-haze); }

.house.foh-mode .house-tabs {
  background: rgba(9, 11, 26, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
}
.house.foh-mode .house-tab { color: rgba(250, 247, 242, 0.78); }
.house.foh-mode .house-tab:hover { color: var(--cream); }
.house.foh-mode .house-tab.active {
  background: linear-gradient(135deg, var(--indigo-haze) 0%, var(--teal-light) 100%);
  color: var(--cream);
  box-shadow: 0 8px 24px -6px rgba(46, 39, 104, 0.55);
}

.house.foh-mode .feel-list li {
  color: rgba(250, 247, 242, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.house.foh-mode .feel-list li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2768' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12 l4 4 l10 -10'/></svg>");
}

.house-tabs {
  display: flex;
  gap: 4px;
  margin: 0 auto 56px;
  background: rgba(255,255,255,0.04);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  width: fit-content;
  backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}
.house-tab {
  background: transparent;
  border: none;
  color: var(--slate-2);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
}
.house-tab:hover { color: var(--cream); }
.house-tab.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
  box-shadow: 0 6px 18px -4px rgba(255,83,0,0.55);
}

.house-panel { display: none; }
.house-panel.active { display: block; animation: fade-up 0.5s ease-out; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.house-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.house h3 {
  font-family: 'Cherry Cream Soda';
  color: var(--cream);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.house strong { color: var(--orange-light); }

/* DM panel */
.dm-ui {
  background: linear-gradient(165deg, rgba(9,11,26,0.95), rgba(20,24,45,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  box-shadow: var(--shadow-lg), 0 0 60px -20px rgba(255,83,0,0.25);
  overflow: hidden;
}
.dm-ui .dm-cols { padding: 20px; }
.dm-window-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dm-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.dm-window-bar span:first-child { background: var(--orange); box-shadow: 0 0 8px rgba(255,83,0,0.7); }

.dm-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dm-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px;
}
.dm-block h5 {
  font-family: 'JetBrains Mono';
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--orange-light);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.initiative-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.init-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  transition: all 0.3s;
}
.init-row.current {
  background: linear-gradient(90deg, rgba(255,83,0,0.22), rgba(255,83,0,0.05));
  border-color: rgba(255,83,0,0.5);
}
.init-num {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--cream);
  font-size: 0.7rem;
}
.init-row.current .init-num { background: var(--orange); box-shadow: 0 0 8px rgba(255,83,0,0.55); }
.init-row.enemy .init-num   { background: var(--teal-deep); }
.init-name { color: var(--cream); font-family: 'Inter'; font-weight: 500; font-size: 0.82rem; }
.init-hp   { color: var(--orange-light); font-size: 0.72rem; }

.dm-chat-line { color: var(--slate-2); margin-bottom: 4px; font-size: 0.74rem; }
.dm-chat-line .who { color: var(--orange-light); }
.dm-chat-line.dm .who { color: var(--orange); }

.dm-block ul.notes { list-style: none; font-family: 'Inter'; font-size: 0.78rem; color: var(--slate-3); }
.dm-block ul.notes li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 8px;
}
.dm-block ul.notes li:last-child { border-bottom: none; }
.dm-block ul.notes li::before { content: '✦'; color: var(--orange); }

/* Player panel — glass card */
.player-ui {
  background: linear-gradient(165deg, rgba(35,41,68,0.85), rgba(20,24,45,0.95));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  display: grid;
  gap: 16px;
}
.player-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.player-head .pp {
  width: 56px; height: 56px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.player-head .pp img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.player-head h4 { font-family: 'Cherry Cream Soda'; font-size: 1.4rem; color: var(--cream); margin-bottom: 2px; }
.player-head .sub { font-family: 'JetBrains Mono'; font-size: 0.66rem; color: var(--slate-2); letter-spacing: 0.16em; text-transform: uppercase; }
.player-head .turn {
  margin-left: auto;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
  font-family: 'JetBrains Mono';
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  padding: 7px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 8px 22px -6px rgba(255,83,0,0.55);
  animation: pulseShadow 2.4s ease-in-out infinite;
}
@keyframes pulseShadow {
  0%, 100% { box-shadow: 0 8px 22px -6px rgba(255,83,0,0.55); }
  50%      { box-shadow: 0 8px 28px -4px rgba(255,83,0,0.85); }
}

.player-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.p-block h5 {
  font-family: 'JetBrains Mono';
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--slate-2);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.action-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 12px;
  font-family: 'Inter';
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.18s;
}
.action-btn:hover {
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  border-color: transparent;
  color: var(--cream);
  transform: translateX(3px);
}
.action-btn .dmg {
  font-family: 'JetBrains Mono';
  font-size: 0.7rem;
  color: var(--orange-light);
  font-weight: 600;
}
.action-btn:hover .dmg { color: var(--cream); }

.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.p-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-align: center;
  padding: 10px 4px;
}
.p-stat .label { font-family: 'JetBrains Mono'; font-size: 0.58rem; color: var(--slate-2); letter-spacing: 0.1em; }
.p-stat .val   { font-family: 'Cherry Cream Soda'; font-size: 1.4rem; color: var(--orange); }

.feel-list { list-style: none; margin-top: 24px; }
.feel-list li {
  padding: 12px 0 12px 38px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.96rem;
  color: var(--slate-3);
}
.feel-list.light li { color: var(--slate-3); }
.feel-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8A47C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12 l4 4 l10 -10'/></svg>") no-repeat center / contain;
}

/* ============================================================
   PIE CHART
   ============================================================ */
.pie-section { padding: 140px 0; position: relative; overflow: visible; }
.pie-section .flow-glow.g1 { top: -160px; left: -10%; width: 540px; height: 540px; opacity: 0.4; z-index: 0; }
.pie-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative; z-index: 2;
}
.pie-section h2 { color: var(--cream); }
.pie-section p  { color: var(--slate-2); margin-bottom: 14px; }
.pie-section strong { color: var(--cream); }
.pie-section em.h { font-style: italic; color: var(--orange-light); }

.pie-viz {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}
.pie-viz svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.4)) drop-shadow(0 0 60px rgba(255,83,0,0.25));
}
.pie-legend {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.pie-legend-inner {
  background: linear-gradient(165deg, rgba(35,41,68,0.95), rgba(20,24,45,1));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 36%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.pie-legend-inner strong {
  font-family: 'Cherry Cream Soda';
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1;
}
.pie-legend-inner span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--slate-2);
  font-family: 'JetBrains Mono';
  margin-top: 6px;
  display: block;
}

.pie-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.pie-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.88rem;
  color: var(--slate-3);
  font-weight: 500;
}
.pie-tag .sw { width: 12px; height: 12px; border-radius: 4px; }
.pie-tag.dashed { border-style: dashed; }

.pie-section .card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   DECORATIVE CHARACTER FIGURES (peppered through sections)
   ============================================================ */
.char-figure {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
/* keep section copy above the figures */
.feature-grid, .lang-grid, .brewery-grid { position: relative; z-index: 2; }

/* Karliah — steps out in front of the Characters demo, bottom-left */
.char-figure.karliah {
  left: -64px;
  bottom: 129px;
  height: 80%;
  max-height: 620px;
  width: auto;
  z-index: 3;
  filter: drop-shadow(0 28px 46px rgba(0,0,0,0.5));
}

/* Trinket merchant — navy-bg GIF, feathered so it dissolves into
   the navy Tavern section like it's transparent. Perches above the
   marketplace UI window on the right, tucked behind its top edge. */
.tavern-ui-col { position: relative; }
.char-figure.merchant {
  top: -176px;
  right: 18px;
  left: auto;
  bottom: auto;
  width: 248px;
  height: 248px;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  opacity: 0.96;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 44%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 46%, #000 44%, transparent 68%);
}

/* Ladle — the chef mascot, now presiding over the final CTA,
   leaning in just above the "Want in early?" header */
.ladle-waitlist {
  display: block;
  width: 280px;
  height: auto;
  margin: -20px auto -6px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,0.4));
}
@media (max-width: 980px) {
  .ladle-waitlist { width: 210px; }
}

@media (max-width: 980px) {
  .char-figure { display: none; }
}

/* ============================================================
   THE TAVERN (creator marketplace)
   ============================================================ */
.tavern { padding: 130px 0; position: relative; overflow: visible; }
.tavern .flow-glow.g1 { top: auto; bottom: -160px; right: -10%; width: 540px; height: 540px; opacity: 0.4; z-index: 0; }
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
  position: relative; z-index: 2;
}
.tavern h2 { color: var(--cream); }
.tavern p  { color: var(--slate-2); margin-bottom: 14px; }
.tavern strong { color: var(--cream); }
.tavern em.h { font-style: italic; color: var(--orange-light); }

.tavern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.shop-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  cursor: pointer;
}
.shop-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,83,0,0.4);
  background: rgba(255,83,0,0.06);
}
.shop-item .thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
}
.shop-item .thumb.thumb-teal        { background: linear-gradient(135deg, var(--teal), var(--teal-light)); }
.shop-item .thumb.thumb-purple      { background: linear-gradient(135deg, var(--indigo-haze), #4D3FA3); }
.shop-item .thumb.thumb-orange-deep { background: linear-gradient(135deg, var(--orange-dark), var(--orange)); }
.shop-item .thumb.thumb-teal-deep   { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); }
.shop-item .thumb.thumb-purple-deep { background: linear-gradient(135deg, #1F1A4A, var(--indigo-haze)); }
.shop-item .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.25), transparent 55%);
  pointer-events: none;
}
.shop-item .thumb .glyph {
  font-family: 'Cherry Cream Soda';
  font-size: 2.4rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.shop-item .thumb .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9,11,26,0.7);
  color: var(--cream);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.shop-item .thumb .badge.hot {
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
}
.shop-item .name {
  font-family: 'Cherry Cream Soda', serif;
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 3px;
}
.shop-item .by {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--slate);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.shop-item .price {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--orange-light);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ============================================================
   BREWERY
   ============================================================ */

/* ============================================================
   BREWERY
   ============================================================ */
.brewery { padding: 140px 0; position: relative; overflow: visible; }
.brewery .flow-glow.g1 { top: -150px; left: -10%;  width: 540px; height: 540px; opacity: 0.4; z-index: 0; }
.brewery .flow-glow.g2 { top: auto; bottom: -160px; right: -8%; width: 520px; height: 520px; opacity: 0.35; z-index: 0; }
.brewery h2 { color: var(--cream); }
.brewery p  { color: var(--slate-2); margin-bottom: 14px; }
.brewery strong { color: var(--cream); }
.brewery em.h { font-style: italic; color: var(--orange-light); }

.brewery-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
  position: relative; z-index: 2;
}

.spice-rack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tool-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.tool-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(165deg, rgba(255,83,0,0.12), rgba(255,83,0,0.03));
  border-color: rgba(255,83,0,0.4);
  box-shadow: 0 0 40px -10px rgba(255,83,0,0.35);
}
.tool-card .ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  display: grid;
  place-items: center;
  font-family: 'Cherry Cream Soda';
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 12px;
  box-shadow: 0 8px 18px -6px rgba(255,83,0,0.55);
}
.tool-card:nth-child(2n) .ico {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 8px 18px -6px rgba(31,168,143,0.45);
}
.tool-card h5 {
  font-family: 'Cherry Cream Soda';
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 4px;
}
.tool-card small {
  font-family: 'JetBrains Mono';
  font-size: 0.62rem;
  color: var(--slate);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   STREAMING
   ============================================================ */
.streaming { padding: 140px 0; position: relative; overflow: visible; }
.streaming .flow-glow.g1 { top: -150px; right: -10%; width: 560px; height: 560px; opacity: 0.4; z-index: 0; }
.stream-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
  position: relative; z-index: 2;
}
.streaming h2 { color: var(--cream); }
.streaming p  { color: var(--slate-2); margin-bottom: 14px; }
.streaming strong { color: var(--cream); }

/* Twitch-style overlay mock */
.overlay-mock {
  background: linear-gradient(135deg, #1D2240, #2E2768);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.overlay-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,83,0,0.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(31,168,143,0.3), transparent 50%);
}
.overlay-mock::after {
  content: '◉ LIVE';
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
  font-family: 'JetBrains Mono';
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  padding: 5px 11px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 8px 20px -4px rgba(255,83,0,0.55);
}
.overlay-bottom {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  display: flex;
  gap: 8px;
}
.overlay-card {
  background: rgba(9,11,26,0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--cream);
  flex: 1;
}
.overlay-card .lab {
  font-family: 'JetBrains Mono';
  font-size: 0.6rem;
  color: var(--orange-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.overlay-card .val {
  font-family: 'Cherry Cream Soda';
  font-size: 1.15rem;
}

.viewer-toggle {
  position: absolute;
  bottom: 78px; left: 14px;
  display: flex;
  gap: 4px;
  background: rgba(9,11,26,0.6);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.viewer-toggle button {
  background: transparent;
  border: none;
  color: var(--slate-3);
  font-family: 'JetBrains Mono';
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
}
.viewer-toggle button.on {
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: var(--cream);
}

/* ============================================================
   WAITLIST  — Orange band (kept)
   ============================================================ */
.waitlist {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hot) 100%);
  color: var(--cream);
  padding: 150px 0;
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.13) 1.4px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 50%, transparent 100%);
  pointer-events: none;
}
.waitlist::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  pointer-events: none;
}
.waitlist-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.waitlist h2 { color: var(--cream); margin-bottom: 18px; }
.waitlist p { color: rgba(250,247,242,0.92); font-size: 1.1rem; margin-bottom: 36px; }
.waitlist .eyebrow { color: var(--cream); justify-content: center; }

.waitlist-form {
  display: flex;
  gap: 7px;
  background: rgba(9,11,26,0.4);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 7px 7px 7px 24px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.45);
  max-width: 540px;
  margin: 0 auto;
}
.waitlist-form[hidden] { display: none; }

/* Tabs for alpha vs contact */
.waitlist-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 22px;
  background: rgba(9, 11, 26, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.waitlist-tab {
  background: transparent;
  border: none;
  color: rgba(250, 247, 242, 0.78);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}
.waitlist-tab:hover { color: var(--cream); }
.waitlist-tab.active {
  background: var(--cream);
  color: var(--orange);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35);
}

/* Contact form (stacked) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 540px;
  margin: 0 auto;
}
.contact-form[hidden] { display: none; }
.contact-form .contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.contact-form input,
.contact-form textarea {
  background: rgba(9, 11, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--cream);
  outline: none;
  resize: vertical;
  transition: border-color 0.25s, background 0.25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(9, 11, 26, 0.55);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 247, 242, 0.55);
}
.contact-form textarea {
  min-height: 110px;
  font-family: 'Inter', sans-serif;
}
.contact-form button {
  align-self: center;
  margin-top: 4px;
  background: var(--cream);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
}
.contact-form button:hover {
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-1px);
}

/* Honeypot — visually hidden but still in the DOM */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* Inline form status */
.form-status {
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
  min-height: 18px;
  color: rgba(250, 247, 242, 0.85);
}
.form-status.success { color: var(--cream); }
.form-status.error {
  color: var(--navy);
  background: var(--cream);
  padding: 8px 14px;
  border-radius: 10px;
  align-self: center;
  display: inline-block;
}

/* Alpha success state */
.alpha-success {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  background: rgba(9, 11, 26, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.45);
}
.alpha-success[hidden] { display: none; }
.alpha-success .seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.35);
}
.alpha-success h3 {
  font-family: 'Cherry Cream Soda', serif;
  color: var(--cream);
  font-size: 1.8rem;
  margin-bottom: 10px;
  line-height: 1.1;
}
.alpha-success p {
  color: rgba(250, 247, 242, 0.92);
  margin-bottom: 18px;
  font-size: 0.96rem;
}
.alpha-success strong { color: var(--cream); }
.alpha-success .code-box {
  background: rgba(9, 11, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 20px;
  margin-top: 4px;
}
.alpha-success .code-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(255, 247, 242, 0.6);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.alpha-success .code-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: 0.08em;
}
.waitlist-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter';
  font-size: 1rem;
  color: var(--cream);
  outline: none;
}
.waitlist-form input::placeholder { color: rgba(255,247,242,0.6); }
.waitlist-form button {
  background: var(--cream);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: 'Inter';
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.waitlist-form button:hover { background: var(--navy); color: var(--cream); transform: translateY(-1px); }

.waitlist-roles {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.role-chip {
  background: rgba(9,11,26,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 90px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,83,0,0.15), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
  position: relative; z-index: 2;
}
.footer h6 {
  font-family: 'JetBrains Mono';
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--orange-light);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer a {
  color: var(--slate-2);
  text-decoration: none;
  display: block;
  margin-bottom: 9px;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer a:hover { color: var(--orange-light); }
.footer .footer-credit {
  display: inline;
  margin: 0;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(transparent 65%, rgba(255,83,0,0.25) 65%);
  background-size: 100% 100%;
  transition: background 0.3s, color 0.3s;
}
.footer .footer-credit:hover {
  color: var(--orange-light);
  background: linear-gradient(transparent 60%, rgba(255,164,124,0.4) 60%);
}
.footer-logo {
  margin-bottom: 12px;
}
.footer-logo img {
  width: auto;
  height: 110px;
  display: block;
}
.footer-tagline { color: var(--slate-2); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--slate);
  position: relative; z-index: 2;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--slate-2);
  text-decoration: none;
  display: inline-block;
  margin: 0;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--orange-light); }
.footer-legal .sep {
  color: var(--slate);
  opacity: 0.5;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid, .intro-grid, .feature-grid, .house-grid, .pie-grid,
  .brewery-grid, .lang-grid, .safety-grid, .stream-grid {
    grid-template-columns: 1fr;
  }
  .feature.reverse .feature-grid { direction: ltr; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 90px 0; }
  .container { padding: 0 20px; }
  .waitlist-form { flex-direction: column; border-radius: 24px; padding: 12px; }
  .waitlist-form button { width: 100%; }
  .safety-tools, .tavern-grid { grid-template-columns: 1fr 1fr; }
  .spice-rack { grid-template-columns: 1fr 1fr; }
  .sticky.tr, .sticky.bl { display: none; }
  .app-body { grid-template-columns: 1fr; }
}

/* ---- Tablet ---- */
@media (max-width: 860px) {
  /* full-viewport "pages" are a desktop conceit; let mobile flow
     naturally so content is never trapped by 100vh + browser chrome */
  html { scroll-snap-type: none; }
  section { min-height: auto; padding: 76px 0; }
  .hero { min-height: 100vh; padding: 130px 0 70px; }
  .nav { padding: 14px 18px; }
  .nav-logo img { height: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .house-tabs { flex-wrap: wrap; justify-content: center; }
}

/* ---- Phone ---- */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  section { padding: 58px 0; }
  .hero { padding: 116px 0 56px; }

  .hero h1 { font-size: clamp(2.3rem, 11vw, 5.4rem); }
  .hero p.lede { font-size: 1.05rem; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 18px 26px; }
  .hero-stat strong { font-size: 1.7rem; }

  .nav-logo img { height: 44px; }
  .nav .btn { padding: 9px 15px; font-size: 0.82rem; }

  .section-head { margin-bottom: 42px; }
  .systems-legend { gap: 12px 22px; font-size: 0.74rem; }

  .tavern-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pie-tags { grid-template-columns: 1fr; }
  .contact-form .contact-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }

  .house-tab { font-size: 0.82rem; padding: 9px 15px; }
  .waitlist-tabs { width: 100%; max-width: 360px; }
  .alpha-success, .contact-form, .waitlist-form { max-width: 100%; }
  .ladle-waitlist { width: 168px; }
  .waitlist h2 { font-size: clamp(2rem, 9vw, 4rem); }
}

/* ---- Small phone ---- */
@media (max-width: 380px) {
  .tavern-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px 20px; }
}
