/* ============================================================
   CHEW: THE LAB — Core Stylesheet
   Obsidian and gold, with soul. Old-money vault gravitas, warm at heart.
   ============================================================ */

:root {
  --black: #0A0A0B;        /* Obsidian */
  --black-soft: #14140F;   /* Vault */
  --panel: rgba(255,255,255,0.04);
  --panel-border: rgba(201,162,39,0.18);
  --panel-border-soft: rgba(232,206,122,0.20);

  --gold: #C9A227;         /* Ember Gold — matte and rich, never brassy */
  --gold-light: #E8CE7A;   /* Light Gold — highlights, glows, hairlines */
  --gold-deep: #8A6E1C;

  --text: #F2EEE4;         /* Bone — never pure white */
  --text-muted: #8A857A;   /* Ash — secondary text */
  --text-faint: rgba(138,133,122,0.82);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(201,162,39,0.07), transparent 60%),
    radial-gradient(ellipse 55% 40% at 96% 8%, rgba(242,238,228,0.03), transparent 60%),
    radial-gradient(ellipse 60% 45% at 4% 92%, rgba(201,162,39,0.04), transparent 60%),
    var(--black);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  position: relative;
}
/* Faint film-grain texture — the difference between "flat black" and "a lit room" */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.1em 0; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 116px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--panel { background: var(--black-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-block;
  margin-bottom: 1em;
}

/* ---------- Background texture: subtle financial-grid glow ---------- */
.hero-glow {
  position: absolute;
  inset: -10%;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(242,238,228,0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(201,162,39,0.10), transparent 60%);
}

/* Focal glow — a real light source behind the headline, not ambient wash */
.hero-focal-glow {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 26% 46%, rgba(232,206,122,0.20), transparent 65%);
  animation: focal-breathe 8s ease-in-out infinite;
}
@keyframes focal-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .hero-focal-glow { animation: none; } }
[data-parallax] { will-change: transform; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242,238,228,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,238,228,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.35rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--black); font-size: 1.05rem;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--gold-light); text-decoration: none; }
.nav a.current { color: var(--gold-light); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--black-soft);
    flex-direction: column; align-items: flex-start; gap: 0;
    border-bottom: 1px solid var(--panel-border);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav.open { max-height: 520px; }
  .nav a { width: 100%; padding: 15px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s cubic-bezier(.16,1,.3,1), border-color 0.4s ease;
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.12s; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: #14120A;
  box-shadow: 0 4px 20px rgba(201,162,39,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-gold:hover { box-shadow: 0 10px 32px rgba(201,162,39,0.4), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-outline { background: transparent; border-color: rgba(242,238,228,0.3); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); background: rgba(201,162,39,0.06); }
.btn-steel { background: var(--gold-deep); color: var(--text); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }

/* ---------- Glass panels / cards ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.glass.card {
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.glass.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}
.card { padding: 32px; }
.card h3 { margin-bottom: 10px; color: var(--gold-light); }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(201,162,39,0.22), rgba(138,133,122,0.14));
  border: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.3rem;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 20px;
  background: rgba(138,133,122,0.14); color: var(--text-muted);
  border: 1px solid var(--panel-border-soft);
  margin-bottom: 14px;
}
.tag--gold { background: rgba(201,162,39,0.15); color: var(--gold-light); border-color: var(--panel-border); }

.rule { border: none; border-top: 1.5px solid var(--gold-deep); width: 56px; margin: 0 0 28px 0; opacity: 0.7; }

/* ---------- Stat strip ---------- */
.stat-strip { border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }
.founder-photo {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-signature { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-light); margin-top: 18px; }
.founder-title { font-size: 0.85rem; color: var(--text-faint); margin-top: 2px; }

.stat-strip .grid { padding: 40px 0; }
.stat-strip .card { padding: 0 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.06); }
.stat-strip .card:last-child { border-right: none; }
@media (max-width: 900px) { .stat-strip .card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 20px; } }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--text); }
.form-field .hint { font-size: 0.82rem; color: var(--text-faint); margin-top: 5px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; border-radius: 8px;
  border: 1.5px solid rgba(242,238,228,0.15);
  background: rgba(255,255,255,0.03); color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field select option { background: var(--black-soft); }
fieldset { border: 1.5px solid rgba(242,238,228,0.15); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 22px 0; }
legend { font-weight: 600; font-size: 0.9rem; padding: 0 8px; color: var(--text); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }

.form-status { padding: 14px 16px; border-radius: 8px; font-size: 0.93rem; margin-top: 18px; display: none; }
.form-status.visible { display: block; }
.form-status.success { background: rgba(201,162,39,0.12); color: var(--gold-light); border: 1px solid var(--panel-border-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black-soft); border-top: 1px solid var(--panel-border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--gold-light); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.93rem; }
.footer-grid li a { color: var(--text-muted); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  font-size: 0.82rem; color: var(--text-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- Page hero ---------- */
.page-hero { padding: 72px 0 60px; overflow: hidden; }

.status-note {
  border-left: 3px solid var(--gold-light);
  background: rgba(201,162,39,0.08);
  padding: 16px 20px; border-radius: 0 8px 8px 0; font-size: 0.94rem; color: var(--text-muted);
}

.text-center { text-align: center; }
.max-prose { max-width: 66ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   Homepage — cinematic hero, framework, chapter storytelling
   ============================================================ */

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero-home { min-height: 82vh; display: flex; align-items: center; padding: 118px 0 72px; }
@media (max-width: 980px) { .hero-home { min-height: auto; padding: 108px 0 56px; } }

/* ---------- Hero accent visual (fills empty space beside the text column) ---------- */
.hero-visual-accent {
  position: absolute; top: 50%; right: 7%; transform: translateY(-50%);
  width: 260px; height: 260px; z-index: 1; opacity: 0.92;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 1180px) { .hero-visual-accent { display: none; } }
.hero-visual-accent .visual-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--panel-border);
  animation: ring-pulse 6s ease-in-out infinite;
}
.hero-visual-accent .visual-ring.ring-2 { inset: 34px; border-color: var(--panel-border-soft); animation-delay: -3s; }
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.03); opacity: 0.9; }
}
.hero-visual-accent svg { position: relative; z-index: 2; width: 60%; height: 60%; }
.hero-visual-accent svg .bar { transform-origin: bottom; animation: bar-rise 1.6s cubic-bezier(.16,1,.3,1) both; }
@keyframes bar-rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.hero-visual-accent .dust {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,206,122,0.9), transparent 70%);
  filter: blur(0.5px);
  animation: dust-float 8s ease-in-out infinite;
}
@keyframes dust-float {
  0%, 100% { transform: translate(0,0); opacity: 0.35; }
  50% { transform: translate(8px,-14px); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual-accent .visual-ring, .hero-visual-accent svg .bar, .hero-visual-accent .dust { animation: none; }
}

.hero-home h1 { letter-spacing: -0.025em; }
.hero-eyebrow-line { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero-eyebrow-line .rule-short {
  width: 32px; height: 1.5px; background: var(--gold); opacity: 0.8;
  animation: rule-draw 0.8s cubic-bezier(.16,1,.3,1) 0.9s both;
}
@keyframes rule-draw { from { width: 0; opacity: 0; } to { width: 32px; opacity: 0.8; } }

/* ---------- The open: the page arrives, it doesn't just load ---------- */
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-cinematic-content > * {
  animation: hero-arrive 1s cubic-bezier(.16,1,.3,1) both;
}
.hero-cinematic-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-cinematic-content > *:nth-child(2) { animation-delay: 0.35s; }
.hero-cinematic-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-cinematic-content > *:nth-child(4) { animation-delay: 0.85s; }
@media (prefers-reduced-motion: reduce) {
  .hero-cinematic-content > * { animation: none; opacity: 1; transform: none; }
}

/* ---------- Living glow: the primary CTA breathes, softly — the light source of the page ---------- */
.cta-glow { animation: cta-pulse 3.2s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(201,162,39,0.25), inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 rgba(232,206,122,0);
  }
  50% {
    box-shadow: 0 8px 40px rgba(201,162,39,0.55), inset 0 1px 0 rgba(255,255,255,0.4), 0 0 60px 6px rgba(232,206,122,0.28);
  }
}
.cta-glow:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cta-glow { animation: none; } }

/* ---------- Cinematic hero (full-bleed photo layer) ---------- */
/* Photo layer waits on assets/hero-photo.jpg; the gold-lit gradient underneath
   is the fallback while that file doesn't exist, so nothing needs to change
   here once it's dropped in. */
.hero-cinematic { position: relative; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(100deg, rgba(10,10,11,0.94) 0%, rgba(10,10,11,0.74) 40%, rgba(10,10,11,0.4) 72%, rgba(10,10,11,0.18) 100%),
    url('assets/hero-photo.jpg');
  background-size: cover;
  background-position: center;
}
.hero-cinematic-content { max-width: 620px; }
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 130px;
  z-index: 1; pointer-events: none; opacity: 0.9;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); margin-top: 56px;
}
.scroll-cue .chevron { animation: chevron-bob 2s ease-in-out infinite; }
@keyframes chevron-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .chevron { animation: none; } }

/* ---------- Chapter framing ---------- */
.chapter-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 18px;
}
.chapter-label .chapter-index {
  font-family: var(--font-display); font-size: 1rem; color: var(--gold-light);
  letter-spacing: 0; border: 1px solid var(--panel-border); border-radius: 50%;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Framework pillars (4-up) ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card {
  padding: 30px 26px;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1), border-color 0.4s ease, background 0.4s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--panel-border);
  background: rgba(255,255,255,0.06);
}
.pillar-number {
  font-family: var(--font-display); font-size: 0.95rem; color: var(--gold-light);
  border: 1px solid var(--panel-border); border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pillar-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pillar-card p { font-size: 0.92rem; }

/* ---------- Pillar strip (icon-forward, sits under hero) ---------- */
.pillar-strip { position: relative; padding-top: 8px; }
.pillar-strip .pillar-card--icon {
  background: transparent; border: none; backdrop-filter: none;
  text-align: center; padding: 8px 20px 0;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.pillar-strip .pillar-grid > .pillar-card--icon:last-child { border-right: none; }
@media (max-width: 980px) { .pillar-strip .pillar-card--icon { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 24px; } }
.pillar-card--icon:hover { background: transparent; }
.pillar-icon {
  width: 60px; height: 60px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--panel-border);
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.pillar-icon svg { width: 30px; height: 30px; }
.pillar-card--icon:hover .pillar-icon { border-color: var(--gold); transform: scale(1.06); }
.pillar-card--icon h3 { font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.pillar-card--icon p { font-size: 0.88rem; }

/* ---------- Journey stage cards (elevated) ---------- */
.stage-card {
  padding: 20px 20px 22px; flex: 1 1 160px;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.stage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

/* ---------- Buttons: gold shimmer sweep ---------- */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.5) 42%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(.16,1,.3,1);
}
.btn-gold:hover::after { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) { .btn-gold::after { display: none; } }

/* ---------- Enter The Lab: rooms showcase ---------- */
#the-lab { scroll-margin-top: 90px; }
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rooms-grid { grid-template-columns: 1fr; } }

.room-card {
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.01) 38%, rgba(0,0,0,0.22) 100%),
    linear-gradient(190deg, #18170f 0%, #0b0a07 100%);
  border: 1px solid rgba(201,162,39,0.14);
  box-shadow: 0 20px 40px -22px rgba(0,0,0,0.7);
  transition: transform 0.6s cubic-bezier(.16,1,.3,1), box-shadow 0.6s cubic-bezier(.16,1,.3,1), border-color 0.6s ease;
}
/* Dark and quiet at rest — gold only arrives when the visitor engages */
.room-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(201,162,39,0.14), transparent 60%);
  opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.glass.card.room-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,206,122,0.5);
  box-shadow: 0 28px 48px -22px rgba(0,0,0,0.75), 0 0 32px rgba(201,162,39,0.14);
}
.room-card:hover::before { opacity: 1; }
.room-icon {
  width: 52px; height: 52px; border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(155deg, rgba(255,255,255,0.06), rgba(0,0,0,0.2));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; position: relative; z-index: 1;
  transition: border-color 0.5s ease, transform 0.5s cubic-bezier(.16,1,.3,1);
}
.room-card:hover .room-icon {
  border-color: var(--gold);
  transform: scale(1.05);
}
.room-icon svg { width: 26px; height: 26px; }
.room-card h3 { font-size: 1.06rem; margin-bottom: 9px; position: relative; z-index: 1; }
.room-card p { font-size: 0.92rem; position: relative; z-index: 1; }

/* ---------- Closing / legacy section ---------- */
.legacy-close { position: relative; overflow: hidden; padding: 112px 0; }
.legacy-close .hero-glow { opacity: 0.7; }
.legacy-close h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
