/* ============================================================
   X3 AMSTERDAM · PAGE FOR STARS
   Visual System — "Stadium" aesthetic, locked to brand anchors
   ============================================================
   PALETTE (locked)
   --xbiz-blue : #1FB5E5   (L3 / Conference)
   --x3-red    : #E5202C   (L2 / Expo)
   --xma-gold  : #F4C53D   (Awards accent)
   --xma-blue  : #0E1A45   (Awards base)
   --ink       : #0A0A0B   (base)
   --paper     : #F4F4F1   (signage white)

   TYPE
   Display: "Anton" — condensed signage, all-caps, stadium
   Body   : "Space Grotesk"
   Mono   : "IBM Plex Mono" — utility labels, floor numbers
   ============================================================ */

:root {
  --xbiz-blue: #1FB5E5;
  --xbiz-blue-deep: #0F8FBD;
  --x3-red: #E5202C;
  --x3-red-deep: #B01620;
  --xma-gold: #F4C53D;
  --xma-blue: #0E1A45;
  --xma-blue-deep: #060D2A;
  --ink: #0A0A0B;
  --ink-2: #1A1A1D;
  --paper: #F4F4F1;
  --paper-2: #D8D8D2;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "proxima-nova", "Proxima Nova", "Mulish", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Menlo", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Smarter line-breaking to avoid widows / awkward last-line breaks */
p, li, .fh-lede, .cta-lede, .lede, .faq-item p {
  text-wrap: pretty;
}
h1, h2, h3, h4, .fh-headline, .faq-title {
  text-wrap: balance;
}

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

a { color: inherit; text-decoration: none; }

/* ============================================================
   PERSISTENT CHROME — top-left lockup, left floor rail, top-right
   minimap, sticky inquiry button bottom-right
   ============================================================ */

.chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.chrome > * { pointer-events: auto; }

/* Top-left lockup */
.lockup {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}
.lockup-text {
  display: flex;
  align-items: center;
  gap: 12px;
  mix-blend-mode: difference;
  color: var(--paper);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(0, 0, 0, 0.55));
  white-space: nowrap;
}
.lockup .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5a5a5a;
  animation: dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dot-pulse {
  0%, 100% {
    background: #5a5a5a;
    transform: scale(1);
    box-shadow: 0 0 0 rgba(229, 32, 44, 0);
  }
  50% {
    background: var(--x3-red);
    transform: scale(1.35);
    box-shadow: 0 0 12px rgba(229, 32, 44, 0.8);
  }
}
.lockup b { font-weight: 700; letter-spacing: 0.18em; }
.lockup-text > span { opacity: 0.7; }
/* Toggle between long & short date strings at narrow viewports */
.lockup-dates-short { display: none; }

@media (max-width: 640px) {
  .lockup-venue { display: none; }
}
@media (max-width: 480px) {
  .lockup-dates { display: none; }
  .lockup-dates-short { display: inline; }
}

/* Floor rail (left) */
.floor-rail {
  position: absolute;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: var(--paper);
}
.floor-rail .floor {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.35;
  transition: opacity 0.4s ease;
  cursor: pointer;
}
.floor-rail .floor.active { opacity: 1; }
.floor-rail .floor .bar {
  width: 24px; height: 2px;
  background: currentColor;
  transition: width 0.4s ease;
}
.floor-rail .floor.active .bar { width: 48px; }
.floor-rail .floor .label {
  display: flex; flex-direction: column; gap: 2px;
}
.floor-rail .floor .lvl { font-weight: 700; }
.floor-rail .floor .name { opacity: 0.6; font-size: 9px; }

/* Top-right elevator (vertical cross-section) */
.elevator {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 200px;
  background: rgba(10, 10, 11, 0.72);
  border: 1px solid rgba(244, 244, 241, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.elevator .el-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 9px;
  opacity: 0.7;
}
.elevator .el-head .el-live { display: flex; align-items: center; gap: 6px; }
.elevator .el-head .el-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--x3-red);
  box-shadow: 0 0 8px var(--x3-red);
  animation: pulse 2s ease-in-out infinite;
}
.elevator .el-stack {
  position: relative;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.elevator .el-track {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(244, 244, 241, 0.15);
}
.elevator .el-marker {
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.6s cubic-bezier(.65,.05,.36,1);
  pointer-events: none;
  z-index: 2;
}
.elevator .el-marker::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--xma-gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--xma-gold);
}
.elevator .el-marker .ring {
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--xma-gold);
  border-radius: 50%;
  opacity: 0.5;
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.5); }
}
.elevator .el-floor {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  background: transparent;
  border: none;
  color: inherit;
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.elevator .el-floor:hover { opacity: 1; transform: translateX(2px); }
.elevator .el-floor.active { opacity: 1; }
.elevator .el-fnum {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0;
  text-align: center;
  line-height: 1;
  color: var(--paper);
}
.elevator .el-fbar {
  height: 16px;
  width: 100%;
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.elevator .el-fbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.18) 0 2px,
    transparent 2px 6px
  );
  opacity: 0.5;
}
.elevator .el-fbar-blue { background: var(--xbiz-blue); }
.elevator .el-fbar-red { background: var(--x3-red); }
.elevator .el-fbar-gold { background: var(--xma-gold); }
.elevator .el-floor.active .el-fbar {
  box-shadow: 0 0 0 1px var(--paper), 0 0 12px currentColor;
}
.elevator .el-fname {
  font-size: 9.5px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.elevator .el-fname b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--paper);
}
.elevator .el-fname em {
  font-style: normal;
  opacity: 0.55;
  display: block;
  font-size: 8px;
  letter-spacing: 0.1em;
  margin-top: 1px;
}
.elevator .el-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 244, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.elevator .el-label {
  color: var(--xma-gold);
  font-weight: 700;
  font-size: 10px;
}
.elevator .el-prog {
  flex: 1;
  height: 2px;
  background: rgba(244, 244, 241, 0.12);
  position: relative;
  overflow: hidden;
}
.elevator .el-prog-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--xma-gold);
  transition: width 0.3s ease;
}

/* Inquiry sticky (bottom-right) */
.inquiry-sticky {
  position: absolute;
  bottom: 24px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.inquiry-sticky:hover { transform: translateY(-2px); }
.inquiry-sticky .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.inquiry-sticky:hover .arrow { transform: translateX(4px); }

/* ============================================================
   SECTION SHELLS
   ============================================================ */

section {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 96px 80px 64px;
}

.floor-section { /* legacy slot — snap removed */ }

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.005em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(31, 181, 229, 0.18), transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(229, 32, 44, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(244, 197, 61, 0.10), transparent 50%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 40px;
}
.hero-logos img {
  height: 52px;
  width: auto;
  opacity: 0.9;
}
@media (max-width: 640px) {
  .hero-logos { gap: 24px; }
  .hero-logos img { height: 40px; }
}
.hero h1 {
  font-size: clamp(56px, 8.6vw, 156px);
  letter-spacing: -0.01em;
}
.hero h1 .ch {
  opacity: 0;
  transition: opacity 0.06s ease-out;
}
.hero h1 .ch.typed {
  opacity: 1;
}
.hero h1 .nowrap {
  white-space: nowrap;
}
.hero h1 .row { display: block; overflow: hidden; }
.hero h1 .accent-blue { color: var(--xbiz-blue); }
.hero h1 .accent-red { color: var(--x3-red); }
.hero h1 .accent-gold { color: var(--xma-gold); }
.hero .lede {
  margin-top: 32px;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.5;
  opacity: 0.85;
}
.hero .meta {
  margin-top: 40px;
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Countdown */
.countdown {
  margin-top: 56px;
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 532px;
}
.cd-card {
  background: rgba(244, 244, 241, 0.05);
  border: 1px solid rgba(244, 244, 241, 0.12);
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 2px;
}
.cd-lab {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--x3-red);
  font-weight: 500;
}
.cd-val {
  font-family: var(--font-mono);
  font-size: 45px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .countdown { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cd-card { padding: 12px 10px; }
  .cd-val { font-size: 36px; }
  .cd-lab { font-size: 9px; letter-spacing: 0.12em; }
}
.hero .meta .label { opacity: 0.5; }
.hero .meta .value {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Hero venue card */
.venue-card {
  background: linear-gradient(180deg, rgba(244, 244, 241, 0.04), rgba(244, 244, 241, 0.01));
  border: 1px solid rgba(244, 244, 241, 0.1);
  padding: 28px;
  position: relative;
}
.venue-card .vc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.venue-card svg { width: 100%; height: auto; }
.venue-card .vc-foot {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.venue-card .vc-foot .row { display: flex; align-items: center; gap: 8px; }
.venue-card .vc-foot .sw { width: 14px; height: 14px; }
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
.scroll-cue .line { width: 1px; height: 40px; background: currentColor; }

/* ============================================================
   FLOOR SECTIONS — shared
   ============================================================ */

.floor-section {
  color: var(--paper);
  position: relative;
}
/* ===================== FLOOR HEADER · BASE ===================== */
.floor-section .floor-header {
  position: relative;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(244, 244, 241, 0.22);
  margin-bottom: 32px;
}
.fh-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.fh-logo {
  height: 47px;
  width: auto;
}
.fh-headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.005em;
  margin: 0;
}
.fh-lede {
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.92;
  margin: 0;
}

/* ============= VARIANT · BANNER (default) =============
   Magazine-cover style: thin meta strip above a massive headline
   that runs the full width. Lede below at constrained max-width. */
[data-header="banner"] .floor-section .floor-header {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo eyebrow"
    "headline headline"
    "lede lede";
  column-gap: 24px;
  row-gap: 14px;
  align-items: center;
}
[data-header="banner"] .fh-eyebrow { grid-area: eyebrow; justify-self: start; align-self: center; }
[data-header="banner"] .fh-logo { grid-area: logo; justify-self: start; align-self: center; }
[data-header="banner"] .fh-headline {
  grid-area: headline;
  font-size: clamp(72px, 11vw, 184px);
  margin-top: 8px;
}
[data-header="banner"] .fh-lede {
  grid-area: lede;
  max-width: 760px;
  margin-top: 4px;
}

/* ============= VARIANT · NUMBERED =============
   Giant floor digit anchors the left, content stacks compact on right. */
[data-header="numbered"] .floor-section .floor-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num eyebrow logo"
    "num headline headline"
    "num lede     lede";
  column-gap: 36px;
  row-gap: 10px;
  align-items: start;
}
[data-header="numbered"] .floor-section .floor-header::before {
  content: attr(data-floor-num);
  grid-area: num;
  font-family: var(--font-display);
  font-size: clamp(140px, 20vw, 300px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  align-self: start;
  color: inherit;
}
[data-header="numbered"] .fh-eyebrow { grid-area: eyebrow; align-self: center; }
[data-header="numbered"] .fh-logo { grid-area: logo; align-self: center; justify-self: end; height: 32px; }
[data-header="numbered"] .fh-headline {
  grid-area: headline;
  font-size: clamp(56px, 7.2vw, 132px);
  margin-top: 6px;
}
[data-header="numbered"] .fh-lede {
  grid-area: lede;
  max-width: 660px;
  margin-top: 10px;
}

/* ============= VARIANT · INLINE =============
   Headline left + lede right, side-by-side. Meta strip above. */
[data-header="inline"] .floor-section .floor-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "eyebrow logo"
    "headline lede";
  column-gap: 64px;
  row-gap: 18px;
  align-items: end;
}
[data-header="inline"] .fh-eyebrow { grid-area: eyebrow; align-self: center; }
[data-header="inline"] .fh-logo { grid-area: logo; justify-self: end; align-self: center; }
[data-header="inline"] .fh-headline {
  grid-area: headline;
  font-size: clamp(64px, 8.2vw, 144px);
  align-self: end;
}
[data-header="inline"] .fh-lede {
  grid-area: lede;
  max-width: 480px;
  align-self: end;
}

/* Benefits grid */
.benefits {
  display: grid;
  gap: 24px;
}
.benefits.cols-4 { grid-template-columns: repeat(4, 1fr); }
.benefits.cols-3 { grid-template-columns: repeat(3, 1fr); }

.benefit {
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 11, 0.18);
  border: 1px solid rgba(244, 244, 241, 0.14);
  overflow: hidden;
}
.benefit .photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}
.benefit .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease, filter 0.4s ease;
}
.benefit:hover .photo img { transform: scale(1.04); }
.benefit .photo .num {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.benefit .body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.benefit .body h3 {
  font-size: 36px;
  line-height: 0.95;
}
.benefit .body p {
  font-size: 1em;
  line-height: 1.25;
  opacity: 0.9;
}

/* ============================================================
   L3 — XBIZ CONFERENCE (blue)
   ============================================================ */
.floor-l3 {
  background: var(--xbiz-blue);
  color: var(--paper);
}
.floor-l3 .fh-headline { color: var(--paper); }

/* ============================================================
   L2 — X3 EXPO (red)
   ============================================================ */
.floor-l2 {
  background: var(--x3-red);
  color: var(--paper);
}

/* ============================================================
   STAGE — XMA (gold + night blue)
   ============================================================ */
.floor-stage {
  background: var(--xma-blue);
  color: var(--paper);
  overflow: hidden;
}
.floor-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(244, 197, 61, 0.22), transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(244, 197, 61, 0.10), transparent 50%);
  pointer-events: none;
}
.floor-stage .floor-header { border-bottom-color: rgba(244, 197, 61, 0.4); }
.floor-stage .fh-headline { color: var(--xma-gold); }
.floor-stage .stage-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.floor-stage .stage-feature {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.floor-stage .stage-feature img {
  width: 100%; height: 100%; object-fit: cover;
}
.floor-stage .stage-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.floor-stage .stage-side div {
  overflow: hidden;
}
.floor-stage .stage-side img {
  width: 100%; height: 100%; object-fit: cover;
}
.floor-stage .stage-copy {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.floor-stage .stage-copy p {
  font-size: 22px;
  line-height: 1.35;
  max-width: 640px;
}
.floor-stage .stage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.floor-stage .stage-stats .stat .v {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--xma-gold);
  letter-spacing: 0;
  display: block;
  line-height: 0.9;
}
.floor-stage .stage-stats .stat .l { opacity: 0.6; margin-top: 6px; display: block; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  padding: 96px 80px 64px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(31, 181, 229, 0.18), transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(229, 32, 44, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(244, 197, 61, 0.10), transparent 50%);
  z-index: 0;
  pointer-events: none;
}
.cta-section .cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  font-size: clamp(56px, 8vw, 144px);
  line-height: 0.88;
}
.cta-section h2 .br { color: var(--x3-red); }
.cta-section .cta-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  justify-items: start;
}
.cta-section .cta-lede { font-size: 22px; line-height: 1.4; max-width: 560px; }
.cta-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-self: start;
}
.cta-btn {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 16px;
  padding: 28px 36px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta-btn--xbiz { background: var(--xbiz-blue); color: var(--paper); }
.cta-btn--xbiz:hover { background: var(--paper); color: var(--xbiz-blue); }
.cta-btn--x3 { background: var(--x3-red); color: var(--paper); }
.cta-btn--x3:hover { background: var(--paper); color: var(--x3-red); }
.cta-btn .arrow {
  display: inline-block;
  font-size: 18px;
  transition: transform 0.2s ease;
}
.cta-btn:hover .arrow { transform: translateX(6px); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 80px 64px;
}
.faq-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.faq-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(244, 244, 241, 0.18);
  flex-wrap: wrap;
}
.faq-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}
.faq-group { margin-bottom: 28px; }
.faq-group:last-child { margin-bottom: 0; }

/* Tabs */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(244, 244, 241, 0.14);
}
.faq-tab {
  background: transparent;
  border: none;
  color: var(--xma-gold);
  font-family: var(--font-mono);
  font-size: 0.875em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 24px 14px 0;
  margin-right: 28px;
  cursor: pointer;
  position: relative;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.faq-tab:hover { opacity: 0.75; }
.faq-tab.active { opacity: 1; }
.faq-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 28px; bottom: -1px;
  height: 2px;
  background: var(--xma-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.faq-tab.active::after { transform: scaleX(1); }
.faq-tab-num {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0;
  color: var(--xma-gold);
}
.faq-panes {
  width: 100%;
  min-width: 0;
}
.faq-pane { animation: fadeFAQ 0.3s ease; width: 100%; min-width: 0; }
.faq-pane[hidden] { display: none; }
@keyframes fadeFAQ {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-cat { display: none; }

.faq-item {
  border-bottom: 1px solid rgba(244, 244, 241, 0.08);
  width: 100%;
  min-width: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.3;
  user-select: none;
  transition: opacity 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { opacity: 0.8; }
.faq-mark {
  position: relative;
  width: 12px; height: 12px;
  flex-shrink: 0;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.faq-mark::before {
  top: 50%; left: 0; right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-mark::after {
  left: 50%; top: 0; bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-mark::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-item p {
  padding: 0 32px 14px 0;
  font-size: 1em;
  line-height: 1.5;
  opacity: 0.82;
  max-width: 100%;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Wrapper inserted by JS around the <p> so we can animate it */
.faq-answer-wrap {
  overflow: hidden;
  /* default state: managed by JS */
}

/* FAQ schedule table */
.faq-schedule {
  padding: 6px 32px 18px 0;
  overflow-x: auto;
}
.sched-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  border: 1px solid rgba(244, 244, 241, 0.18);
}
.sched-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 500;
  color: var(--xma-gold);
  padding: 12px 14px;
  border: 1px solid rgba(244, 244, 241, 0.18);
  background: rgba(244, 197, 61, 0.06);
}
.sched-table td {
  vertical-align: top;
  padding: 14px 16px;
  border: 1px solid rgba(244, 244, 241, 0.18);
  width: 25%;
}
.sched-table ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sched-table li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.9;
}
.sched-table li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--x3-red);
}
.sched-note {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.6;
  margin-top: 2px;
}

@media (max-width: 720px) {
  .faq-section { padding: 64px 24px; }
  .faq-head { gap: 12px; margin-bottom: 36px; padding-bottom: 20px; }
  .faq-eyebrow { font-size: 10px; }
  .faq-item summary { font-size: 15px; }
  .faq-item p { padding-right: 24px; font-size: 14.5px; }
}

footer {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 80px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(244, 244, 241, 0.12);
  scroll-snap-align: end;
}
footer .logos {
  display: flex;
  align-items: center;
  gap: 28px;
}
footer .logos img { height: 26px; width: auto; opacity: 0.7; }
footer span { opacity: 0.65; font-weight: 400; }
footer > span { display: inline-flex; flex-wrap: wrap; gap: 0 0.35em; justify-content: center; }
footer .nowrap { white-space: nowrap; display: inline-block; }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks {
  position: fixed;
  bottom: 24px;
  left: 28px;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(244, 244, 241, 0.15);
  padding: 20px 22px;
  width: 280px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  display: none;
}
.tweaks.open { display: block; }
.tweaks h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks h4 .x {
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
}
.tweak-group { margin-bottom: 16px; }
.tweak-group .lab {
  text-transform: uppercase;
  opacity: 0.6;
  letter-spacing: 0.15em;
  font-size: 9px;
  margin-bottom: 8px;
  display: block;
}
.tweak-group .opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tweak-group .opts button {
  background: rgba(244, 244, 241, 0.06);
  border: 1px solid rgba(244, 244, 241, 0.14);
  color: var(--paper);
  padding: 8px 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tweak-group .opts button.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Photo treatments */
[data-photo="duotone"] .benefit .photo img,
[data-photo="duotone"] .floor-stage .stage-feature img,
[data-photo="duotone"] .floor-stage .stage-side img {
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: luminosity;
}
[data-photo="duotone"] .floor-l3 .benefit .photo { background: var(--xbiz-blue-deep); }
[data-photo="duotone"] .floor-l2 .benefit .photo { background: var(--x3-red-deep); }
[data-photo="duotone"] .floor-stage .stage-feature,
[data-photo="duotone"] .floor-stage .stage-side div { background: var(--xma-blue-deep); }

[data-photo="cropped"] .benefit .photo img { object-position: 50% 30%; transform: scale(1.4); }
[data-photo="cropped"] .benefit:hover .photo img { transform: scale(1.5); }

/* Responsive */
@media (max-width: 1100px) {
  section { padding: 96px 32px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(56px, 14vw, 96px); }
  .benefits.cols-4, .benefits.cols-3 { grid-template-columns: 1fr 1fr; }
  [data-header="banner"] .floor-section .floor-header,
  [data-header="numbered"] .floor-section .floor-header,
  [data-header="inline"] .floor-section .floor-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "logo"
      "headline"
      "lede";
    column-gap: 0;
    row-gap: 16px;
  }
  [data-header="numbered"] .floor-section .floor-header::before {
    font-size: clamp(96px, 18vw, 160px);
    margin-bottom: 8px;
  }
  [data-header="numbered"] .floor-section .floor-header {
    grid-template-areas:
      "num"
      "eyebrow"
      "logo"
      "headline"
      "lede";
  }
  [data-header="inline"] .fh-headline,
  [data-header="inline"] .fh-lede { max-width: 100%; }
  .floor-stage .stage-grid { grid-template-columns: 1fr; }
  .floor-stage .stage-copy { grid-template-columns: 1fr; }
  .elevator { width: 168px; padding: 10px 12px; }
  .floor-rail { display: none; }
  .cta-section .cta-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  section { padding: 56px 20px; min-height: auto; }
  .hero { padding-top: 100px; padding-bottom: 40px; }
  .faq-section { padding: 48px 24px; }
  .cta-section { padding: 56px 24px; }
  .benefits.cols-4, .benefits.cols-3 { grid-template-columns: 1fr; }
  .elevator { display: none; }
  .lockup { font-size: 9px; gap: 8px; }
  .inquiry-sticky { padding: 12px 14px; font-size: 9px; bottom: 16px; right: 16px; }
  footer { flex-direction: column; padding: 32px 20px; gap: 16px; text-align: center; }
}
