/* ============================================
   INTRO: Cinematic scroll-to-enter
   ~150vh of scroll distance, tight and powerful
   ============================================ */
.scroll-dist {
  height: 250vh;
  position: relative;
  z-index: 1;
}

.intro-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 50;
  pointer-events: none;
}
.intro-overlay svg {
  width: 100%; height: 100%; display: block;
}
.intro-overlay.active {
  pointer-events: auto;
}

.hero--fixed {
  position: fixed !important;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 10;
}

.hero-placeholder {
  height: 100vh;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 0 var(--nav-padding-x);
  background: rgba(10, 10, 10, 0);
  transition:
    background 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    backdrop-filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.6s ease;
  opacity: 0;
}
.nav.visible { opacity: 1; }
.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__inner {
  flex: 0 0 calc(var(--nav-height) - 1px);
  height: calc(var(--nav-height) - 1px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
}
/* Full-bleed to viewport edges: extend by exactly the nav horizontal padding */
.nav__hairline-wrap {
  flex: 0 0 1px;
  position: relative;
  z-index: 2;
  width: calc(100% + 2 * var(--nav-padding-x));
  margin-left: calc(-1 * var(--nav-padding-x));
  height: 1px;
  pointer-events: none;
}
.nav__hairline {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform-origin: center center;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}
.nav-logo .b {
  font-family: var(--font-display); font-weight: 300; font-size: 30px;
  color: var(--color-gold); line-height: 1;
}
.nav-logo .name {
  font-family: var(--font-display); font-weight: 900; font-size: 13px;
  letter-spacing: 5px; text-transform: uppercase; color: var(--color-white);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.nav-link {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-muted);
  text-decoration: none; transition: color 0.3s ease;
}
.nav-link:hover { color: var(--color-gold); }
.nav-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--color-gold); color: var(--color-black);
  padding: 10px 24px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.nav-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  /* visible: fixed nav + parallax y must not clip headline or label */
  overflow: visible;
  z-index: 1;
  background: var(--color-black);
  min-height: 100svh;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  /* Safe band below fixed nav (professional pattern: layout clearance, not z-index tricks) */
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 5rem;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}

.hero__content {
  position: relative; z-index: 3; max-width: 1000px;
}

.hero__label {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 6px; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: 32px; opacity: 0;
}

.hero__heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6vw, 108px);
  letter-spacing: 6px; text-transform: uppercase; color: var(--color-white);
  line-height: 1.1; margin-bottom: 56px;
}
.hero__heading em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  color: var(--color-gold); text-transform: none; letter-spacing: 0;
  font-size: 1.107em;
}
.hero__heading .line {
  display: block; overflow: hidden;
}
.hero__heading .line-inner {
  display: block; transform: translateY(110%);
}

.hero__cta {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  background: var(--color-gold); color: var(--color-black);
  padding: 16px 48px; border: none; cursor: pointer; display: inline-block;
  text-decoration: none;
  opacity: 0; transform: translateY(20px);
  position: relative; z-index: 2;
  transition: filter 0.4s ease, box-shadow 0.4s ease;
}
.hero__cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 24px rgba(232, 197, 71, 0.2);
}

/* Hero frame lines: two horizontal rules that expand from center */
.hero__frame-line {
  position: absolute;
  left: 50%; top: 50%;
  height: 1px;
  background: var(--border-gold-subtle);
  transform: translateX(-50%);
  width: 0;
  z-index: 1;
}
.hero__frame-line--top { margin-top: -220px; }
.hero__frame-line--bottom { margin-top: 220px; }

/* ============================================
   HERO → CONCEPT SEAM (black #0A0A0A → surface #1A1A1A)
   Hairline draws here until it scrolls up to the nav; then handoff to #navHairline.
   ============================================ */
.hero-concept-seam {
  position: relative;
  z-index: 15;
  height: 0;
  overflow: visible;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  pointer-events: none;
}
.hero-concept-seam__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--color-gold);
  transform-origin: center center;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hero-concept-seam.is-merged .hero-concept-seam__line {
  opacity: 0;
  visibility: hidden;
}

/* ============================================
   CONCEPT
   ============================================ */
.concept {
  position: relative; overflow: hidden;
  background: var(--color-black);
  padding: 180px var(--section-px) 200px;
  text-align: center;
}
.concept__label {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: 20px; opacity: 0;
  position: relative; z-index: 2;
}
.concept__heading {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.5vw, 62px);
  letter-spacing: 3px; text-transform: uppercase; color: var(--color-white);
  line-height: 1.2; margin-bottom: 28px; max-width: 760px; margin-left: auto; margin-right: auto;
  opacity: 0; transform: translateY(30px);
  position: relative; z-index: 2;
}
.concept__heading em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  color: var(--color-gold); text-transform: none; letter-spacing: 0;
  font-size: 1.107em;
}
.concept__rule {
  width: 48px; height: 1px;
  background: var(--color-gold);
  margin: 0 auto 28px;
  opacity: 0; transform: scaleX(0);
  position: relative; z-index: 2;
}
.concept__body {
  font-size: 20px; color: var(--color-body); line-height: 1.85;
  max-width: 560px; margin: 0 auto;
  opacity: 0; transform: translateY(20px);
  position: relative; z-index: 2;
}
.concept__summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 560px; margin: 40px auto 0;
  border-top: 1px solid var(--border-light);
  position: relative; z-index: 2;
}
.concept__summary .stat-cell {
  padding: 28px 16px;
}
.concept__summary .stat-word {
  font-size: clamp(20px, 2.2vw, 32px);
}
.concept__format {
  margin-top: 88px;
  position: relative; z-index: 2;
}

/* ============================================
   HOW IT WORKS (labels/heading used inside .concept__format)
   ============================================ */
.how-it-works__label {
  text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: 20px; opacity: 0;
}
.how-it-works__heading {
  text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.5vw, 62px);
  letter-spacing: 3px; text-transform: uppercase; color: var(--color-white);
  line-height: 1.2; margin-bottom: 56px; opacity: 0; transform: translateY(20px);
}
.how-it-works__heading em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  color: var(--color-gold); text-transform: none; letter-spacing: 0;
  font-size: 1.107em;
}
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 860px; margin: 0 auto;
}
.feature-card {
  position: relative; overflow: hidden;
  background: var(--color-surface);
  padding: 48px 36px;
  border: 1px solid transparent;
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Gold hairline that draws across the top edge on hover */
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--color-gold);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover {
  border-color: rgba(232, 197, 71, 0.28);
  transform: translateY(-4px);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-card__icon {
  margin-bottom: 20px;
  color: var(--color-gold);
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover .feature-card__icon {
  transform: translateY(-3px) scale(1.08);
}
.feature-card__title {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-white);
  margin-bottom: 10px;
}
.feature-card__desc {
  font-size: 17px; color: var(--color-body); line-height: 1.75;
}

/* ============================================
   FORMAT STRIP (stats section)
   Three-column editorial moment. Words at scale,
   brief descriptions beneath. Chief.com proportions:
   generous whitespace, one focal point per column.
   ============================================ */
.stat-cell {
  padding: 56px 36px;
  text-align: center;
  border-right: 1px solid var(--border-light);
  position: relative; z-index: 2;
}
.stat-cell:last-child { border-right: none; }
.stat-word {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  font-size: clamp(30px, 4vw, 60px);
  color: var(--color-gold); line-height: 1; margin-bottom: 10px;
}
.stat-desc {
  font-family: var(--font-body); font-size: 14px;
  color: var(--color-muted); line-height: 1.5; letter-spacing: 0;
  white-space: nowrap;
}

/* ============================================
   RULES
   ============================================ */
.rules {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border-light);
  margin-top: 80px;
  padding-top: 64px;
}
.rules__inner {
  max-width: 560px; margin: 0 auto;
  position: relative; z-index: 2;
}
.rules__label {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: 48px; text-align: center;
}
.rules__list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: rule-counter;
}
.rule-item {
  counter-increment: rule-counter;
  display: flex; align-items: center; gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-white);
  line-height: 1.5;
}
.rule-item:last-child { border-bottom: none; }
.rule-item::before {
  content: counter(rule-counter);
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  font-size: 22px; color: var(--color-gold);
  flex-shrink: 0; min-width: 20px; text-align: right;
  letter-spacing: 0; text-transform: none;
}

/* ============================================
   SET-PIECE 3: THE ROOM
   Flowing section: the founders' story illuminates word by word
   from grey to white as the reader scrolls down. No pin.
   ============================================ */
.the-room {
  position: relative; overflow: hidden;
  background: var(--color-black);
  border-top: 1px solid var(--border-light);
  padding: 200px var(--section-px);
  text-align: center;
}
.the-room__inner {
  position: relative; z-index: 3;
}
/* Living gold light: a soft warm field behind the founders that grows as the
   story illuminates (intensity driven by sections.js) and breathes slowly, so
   the room feels like it warms as you read. Sits behind everything; never
   clickable. */
.the-room__glow {
  position: absolute;
  inset: -8% 0 0 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(58% 44% at 50% 50%, rgba(232, 197, 71, 0.13), rgba(232, 197, 71, 0.05) 46%, transparent 72%);
  will-change: opacity, transform;
}
.the-room__label {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: 20px;
}
.the-room__heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3.5vw, 62px);
  letter-spacing: 3px; text-transform: uppercase; color: var(--color-white);
  line-height: 1.2; margin-bottom: 20px;
}
.the-room__heading .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
}
.the-room__heading .gold-word {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.107em;
}
.the-room__divider {
  width: 0; height: 1px;
  background: var(--color-gold);
  margin: 0 auto 32px;
  opacity: 0;
}
.the-room__subtext {
  font-family: var(--font-display);
  font-weight: 300; font-style: italic; font-size: 18px;
  color: var(--color-gold);
  opacity: 0; transform: translateY(10px);
  margin-bottom: 56px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}

.room-points {
  display: flex; flex-direction: column; gap: 64px;
  max-width: 940px; margin: 64px auto 0;
  text-align: left;
}
.room-point {
  text-align: left;
}
.room-point__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 3.0vw, 47px);
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-white);
  line-height: 1.18; margin-bottom: 20px;
}
.room-point__desc {
  font-size: clamp(20px, 2.45vw, 38px);
  color: var(--color-white); line-height: 1.5;
}
/* Illuminated words: brightened on scroll by sections.js. Inline color is set
   by GSAP; this just guarantees no CSS transition fights the scrub. */
.lit-word { transition: none; }

/* Ambient gold line accents on left and right of the room section */
.the-room__accent {
  position: absolute;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  opacity: 0;
  z-index: 1;
}
.the-room__accent--left { top: 10%; left: 60px; }
.the-room__accent--right { top: 10%; right: 60px; }

/* ============================================
   WHO'S INSIDE
   ============================================ */
.whos-inside {
  position: relative; overflow: hidden;
  background: var(--color-surface);
  border-top: 1px solid var(--border-light);
  padding: 180px var(--section-px) 160px;
  text-align: center;
}
.whos-inside__inner {
  position: relative; z-index: 2;
}
.whos-inside__label {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: 20px;
}
.whos-inside__heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3.5vw, 62px);
  letter-spacing: 3px; text-transform: uppercase; color: var(--color-white);
  line-height: 1.2; margin-bottom: 40px;
}
.whos-inside__heading em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  color: var(--color-gold); text-transform: none; letter-spacing: 0;
  font-size: 1.107em;
}
.tag-cloud {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 700px; margin: 0 auto 36px;
}
.tag {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid rgba(232,197,71,0.10);
  padding: 10px 20px; color: var(--color-muted-light);
  opacity: 0; transform: translateY(12px);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.tag:hover {
  border-color: rgba(232,197,71,0.25);
  color: var(--color-white);
}
.whos-inside__body {
  font-size: 20px; color: var(--color-body); line-height: 1.8;
  max-width: 560px; margin: 0 auto;
  position: relative; z-index: 2;
}

/* ============================================
   GOLD CTA
   ============================================ */
.gold-cta {
  position: relative; overflow: hidden;
  background: var(--color-gold);
  padding: 160px var(--section-px);
  text-align: center;
}
.gold-cta__inner {
  position: relative; z-index: 2;
}
.gold-cta__heading {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 46px);
  line-height: 1.15;
  letter-spacing: 3px; text-transform: uppercase; color: var(--color-black);
  margin-bottom: 16px; opacity: 0; transform: translateY(20px);
}
.gold-cta__sub {
  font-size: 20px; line-height: 1.5; color: rgba(10,10,10,0.65); margin-bottom: 40px;
  max-width: 520px; margin-left: auto; margin-right: auto;
  opacity: 0; transform: translateY(20px);
}
.gold-cta__btn {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  background: var(--color-black); color: var(--color-gold);
  padding: 16px 48px; border: none; cursor: pointer; display: inline-block;
  opacity: 0; transform: translateY(20px);
  position: relative; z-index: 2;
  transition: filter 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}
.gold-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(10, 10, 10, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative; overflow: hidden;
  background: var(--color-black);
  border-top: 1px solid var(--border-light);
  padding: 60px var(--section-px);
  text-align: center;
}
.footer__inner { position: relative; z-index: 2; }
.footer__logo {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 8px;
}
.footer__logo .b {
  font-family: var(--font-display); font-weight: 300; font-size: 24px;
  color: var(--color-gold); line-height: 1;
}
.footer__logo .name {
  font-family: var(--font-display); font-weight: 900; font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--color-white);
}
.footer__tagline {
  font-family: var(--font-accent); font-style: italic; font-size: 14px;
  color: var(--color-gold); margin-bottom: 24px;
}
.footer__links {
  display: flex; justify-content: center; gap: 32px; margin-bottom: 24px;
}
.footer__link {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--color-muted-light);
  text-decoration: none; transition: color 0.3s ease;
}
.footer__link:hover { color: var(--color-white); }
.footer__copy {
  font-size: 12px; color: var(--color-muted-light);
}
