/* ============================================
   NEXUS NX-7 — Warm cinematic stylesheet
   ============================================ */
:root {
  /* ---- warm whites ---- */
  --warm-white: #FBF7F0;   /* slightly warmer cream */
  --bone: #F4EEE3;
  --ivory: #ECE4D5;
  --platinum: #DCD3C1;

  /* ---- gold accents ---- */
  --gold: #C9A96E;
  --gold-bright: #EFD194;
  --gold-deep: #97703A;

  /* ---- warm blacks ---- */
  --warm-gray: #8A857D;
  --charcoal: #1F1B16;
  --deep: #15110D;
  --void: #07060A;          /* deeper, slightly cooler-leaning rich black */
  --pitch: #030203;
  --glow: rgba(201, 169, 110, 0.18);

  --f-display: 'Cinzel', 'Times New Roman', serif;
  --f-editorial: 'Cormorant Garamond', Georgia, serif;
  --f-mono: 'Space Mono', 'Courier New', monospace;
}

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

html, body {
  background: var(--void);
  color: var(--warm-white);
  font-family: var(--f-editorial);
  font-weight: 300;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body { background: var(--pitch); }
body { cursor: none; }
@media (hover: none) { body { cursor: auto; } }

::selection { background: rgba(201, 169, 110, 0.3); color: var(--warm-white); }

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

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

/* ============================================
   GLOBAL CHROME — loading bar, cursor, skip
   ============================================ */
.loading-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright));
  z-index: 9999;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.6);
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold-bright);
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 50%;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
.cursor-hover .cursor-dot { transform: translate(-50%, -50%) scale(0); }
.cursor-hover .cursor-ring { transform: translate(-50%, -50%) scale(1.6); border-color: var(--gold-bright); opacity: 0.7; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ============================================
   BUTTONS, PANELS, TYPE
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s ease;
  border: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(201, 169, 110, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--warm-white);
  border: 1px solid rgba(251, 247, 240, 0.3);
}

/* Magnetic interactive wrapper */
.magnetic { display: inline-block; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  transition: left 0.7s ease;
  pointer-events: none;
}
.btn:hover::after { left: 100%; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.h-display {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.02;
}

.h-editorial {
  font-family: var(--f-editorial);
  font-style: italic;
  font-weight: 300;
  color: rgba(250, 248, 245, 0.75);
  line-height: 1.5;
}

/* ============================================
   GLASS PANEL + BEVELED CARD
   ============================================ */
.glass {
  background: rgba(201, 169, 110, 0.05);
  border: 1px solid rgba(201, 169, 110, 0.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.grid-pulse {
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 9s linear infinite;
}
@keyframes gridShift { to { background-position: 60px 60px; } }

.noise-bg {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.79  0 0 0 0 0.66  0 0 0 0 0.43  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================
   INTRO OVERLAY
   ============================================ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--void);
  overflow: hidden;
}
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro-skip {
  position: absolute;
  top: 28px; right: 36px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(250, 248, 245, 0.5);
  cursor: none;
  opacity: 0;
  z-index: 5;
  text-transform: uppercase;
  background: none; border: none;
  padding: 8px 14px;
  border: 1px solid rgba(201, 169, 110, 0.2);
}
.intro-skip:hover { color: var(--gold); border-color: var(--gold); }

.intro-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 8vw 12vh;
  text-align: center;
  pointer-events: none;
  z-index: 3;
}
.intro-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--gold);
  opacity: 0;
  margin-bottom: 18px;
  min-height: 1.2em;
}
.intro-eyebrow .cursor-blink { display: inline-block; width: 7px; margin-left: 4px; color: var(--gold); animation: blink 0.7s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.intro-headline {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 7.5vw, 130px);
  letter-spacing: 0.14em;
  color: var(--warm-white);
  margin-bottom: 14px;
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 0 60px rgba(201, 169, 110, 0.28);
}
.intro-headline .gap { display: inline-block; width: 0.5em; }
.intro-headline .lt {
  display: inline-block;
  opacity: 0;
  filter: brightness(2);
}
.intro-headline .lt.in {
  animation: letter-glow 0.6s ease forwards;
}
@keyframes letter-glow {
  0% { opacity: 0; transform: translateY(8px); filter: brightness(2.4) drop-shadow(0 0 12px var(--gold)); }
  60% { filter: brightness(1.4) drop-shadow(0 0 6px var(--gold-bright)); }
  100% { opacity: 1; transform: translateY(0); filter: brightness(1); }
}

.intro-subtitle {
  font-family: var(--f-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.9vw, 24px);
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
  opacity: 0;
  min-height: 1.4em;
}

.intro-rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 28px;
}

.intro-stats {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold);
  opacity: 0;
  margin-top: 10px;
}

.intro-cta {
  margin-top: 28px;
  display: inline-flex;
  gap: 16px;
  padding: 18px 22px;
  opacity: 0;
  pointer-events: auto;
}

.intro-sweep {
  position: absolute;
  top: 0; left: -50%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.12), transparent);
  filter: blur(40px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: var(--void);
}
#three-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(201, 169, 110, 0.18), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(160, 120, 64, 0.15), transparent 60%);
  animation: heroPulse 4s ease-in-out infinite;
  z-index: 1;
}
@keyframes heroPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 60%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 60%, black 30%, transparent 80%);
  z-index: 1;
  animation: gridShift 10s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8vw;
  text-align: center;
}

.hero-eyebrow { margin-bottom: 24px; }
.hero-title {
  font-size: clamp(40px, 7.5vw, 130px);
  margin-bottom: 14px;
  text-shadow: 0 0 80px rgba(201, 169, 110, 0.2);
}
.hero-sub {
  font-size: clamp(15px, 1.7vw, 24px);
  margin-bottom: 16px;
  max-width: 640px;
}
.hero-spec {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 38px;
}
.hero-rule { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.scroll-ind {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 4px;
  color: rgba(250, 248, 245, 0.4);
}
.scroll-ind .line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================
   PAGE WRAPPER — sits over fixed three.js canvas
   ============================================ */
.page {
  position: relative;
  z-index: 2;
}

/* Section common */
section.scene {
  position: relative;
  padding: clamp(80px, 12vh, 180px) 8vw;
  background: var(--void);
  overflow: hidden;
}
section.scene::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
section.scene > * { position: relative; z-index: 1; }

.section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1.06;
  margin-bottom: 22px;
}
.section-lede {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: clamp(14px, 1.2vw, 18px);
  max-width: 540px;
  color: rgba(250, 248, 245, 0.7);
  line-height: 1.65;
}

/* ============================================
   SECTION 2 — ARM
   ============================================ */
.arm-section {
  background: linear-gradient(180deg, var(--void), #110F0C 50%, var(--void));
}
.arm-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.arm-left .stat-pill {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.4);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.arm-stage {
  position: relative;
  height: 560px;
  perspective: 1200px;
}
.arm-wrap {
  position: absolute;
  inset: 0;
  transform: rotateY(-18deg) rotateX(8deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.arm-wrap svg { width: 100%; height: 100%; overflow: visible; }
.arm-wrap .ghost {
  position: absolute; inset: 0;
  opacity: 0.08; filter: blur(8px);
  transform: translateZ(-80px) scale(1.04);
}
.arm-light {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 201, 138, 0.5), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
  z-index: 2;
  top: 30%; left: 60%;
}

/* ============================================
   SECTION 3 — FLIP CARDS
   ============================================ */
.cards-section { background: #0D0B08; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
  perspective: 1400px;
}
.flip {
  position: relative;
  height: 340px;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.68, -0.4, 0.32, 1.4);
  cursor: none;
}
.flip:hover { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(201, 169, 110, 0.18);
  background: var(--deep);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(201, 169, 110, 0.12);
  overflow: hidden;
}
.flip-front .ico {
  width: 44px; height: 44px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.4;
}
.flip-front h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-top: 18px;
}
.flip-front .num {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.6;
}
.flip-front .teaser {
  font-family: var(--f-editorial);
  font-style: italic;
  color: rgba(250, 248, 245, 0.55);
  font-size: 14px;
}
.flip-back {
  background: #0D0B08;
  transform: rotateY(180deg);
}
.flip-back h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--gold-bright);
  margin-bottom: 12px;
}
.flip-back p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.7);
}
.flip-back .stat {
  font-family: var(--f-mono);
  font-size: 28px;
  color: var(--gold-bright);
  margin-top: auto;
  margin-bottom: 8px;
}
.flip-back .link {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold);
}
.flip-face::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(201, 169, 110, 0.12) 50%, transparent 60%);
  transition: left 0.7s ease;
  pointer-events: none;
}
.flip:hover .flip-face::after { left: 100%; }

/* ============================================
   SECTION 4 — FILM REEL
   ============================================ */
.reel-section { background: linear-gradient(180deg, var(--void) 0%, #0E0C09 100%); }
.reel-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
.reel-strip {
  height: 14px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 20px 0;
}
.reel-strip .perf {
  width: 8px; height: 8px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 50%;
}
.reel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
  cursor: grab;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track.dragging { cursor: grabbing; }
.reel-item {
  flex: 0 0 360px;
  height: 500px;
  scroll-snap-align: start;
  padding: 32px;
  position: relative;
  border-left: 1px solid rgba(201, 169, 110, 0.2);
  background: linear-gradient(160deg, #181410 0%, #0D0B08 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  user-select: none;
  overflow: hidden;
}
.reel-item:nth-child(odd) { background: linear-gradient(160deg, #1d1813 0%, #0A0907 100%); }
.reel-item:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
  background: linear-gradient(160deg, #211b15 0%, #0e0c09 100%);
}
.reel-item .chapter-num {
  position: absolute;
  top: -10px; right: 20px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 8rem;
  color: rgba(201, 169, 110, 0.07);
  line-height: 1;
  pointer-events: none;
}
.reel-item .tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 8px;
}
.reel-item h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.reel-item p {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: 14px;
  color: rgba(250, 248, 245, 0.6);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.reel-item:hover p { max-height: 200px; }
.reel-item .sketch {
  width: 100%; height: 180px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.2;
}
.reel-item .sketch path, .reel-item .sketch line, .reel-item .sketch circle, .reel-item .sketch polyline {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.6s ease;
}
.reel-item:hover .sketch path,
.reel-item:hover .sketch line,
.reel-item:hover .sketch circle,
.reel-item:hover .sketch polyline { stroke-dashoffset: 0; }

/* ============================================
   SECTION 5 — STATS
   ============================================ */
.stats-section {
  background: linear-gradient(180deg, var(--void) 0%, #100E0B 50%, var(--void) 100%);
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.stats-left .ruler { width: 0; height: 1px; background: var(--gold); margin: 26px 0 30px; }
.stats-bot-svg { width: 80px; height: 80px; margin-top: 30px; }
.stats-bot-svg path, .stats-bot-svg circle, .stats-bot-svg line { stroke: var(--gold); fill: none; stroke-width: 1.4; }
.stats-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.stat {
  position: relative;
  padding: 30px 28px 30px 36px;
  border-left: 1px solid rgba(201, 169, 110, 0.25);
}
.stat .bar { width: 0; height: 1px; background: var(--gold); margin-bottom: 16px; }
.stat .num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--warm-white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
}
.stat .unit { font-size: 0.5em; color: var(--gold); margin-left: 6px; letter-spacing: 4px; }
.stat .label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 5px;
  color: rgba(250, 248, 245, 0.4);
  margin-top: 10px;
}

/* ============================================
   SECTION 6 — TILES
   ============================================ */
.tiles-section { background: #0B0908; }
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 60px;
  perspective: 1600px;
}
.tile {
  position: relative;
  height: 230px;
  padding: 26px;
  background: rgba(201, 169, 110, 0.035);
  border: 1px solid rgba(201, 169, 110, 0.12);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: none;
}
.tile:hover {
  transform: translateY(-8px) rotateX(-4deg);
  border-color: rgba(201, 169, 110, 0.45);
  background: rgba(201, 169, 110, 0.09);
  box-shadow: 0 30px 60px rgba(201, 169, 110, 0.12);
}
.tile .dot {
  position: absolute;
  top: 14px; left: 14px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse { 50% { opacity: 0.35; box-shadow: 0 0 14px var(--gold); } }
.tile .tlabel {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 6px;
}
.tile .tvalue {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--warm-white);
  margin-top: 12px;
}
.tile .tdesc {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(250, 248, 245, 0.4);
  margin-top: 6px;
}
.tile .micro {
  height: 1px;
  width: 100%;
  background: rgba(201, 169, 110, 0.15);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
.tile .micro::after {
  content: '';
  position: absolute; left: 0; top: 0; height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 1.6s ease;
}

/* ============================================
   SECTION 7 — CINEMATIC PARALLAX + TILT
   ============================================ */
.cinema-section {
  position: relative;
  height: 90vh;
  min-height: 700px;
  overflow: hidden;
  background: #0A0806;
  display: flex; align-items: center; justify-content: center;
}
.cin-layer { position: absolute; inset: -10%; will-change: transform; }
.cin-far {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(201, 169, 110, 0.22), transparent 60%),
    linear-gradient(180deg, #0e0b08, #1c1612);
}
.cin-mid {
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}
.cin-near {
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.cin-near svg {
  width: clamp(380px, 60vw, 900px);
  height: auto;
  opacity: 0.7;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
.cin-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,9,7, 0.55), transparent 25%, transparent 75%, rgba(10,9,7,0.75)),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(201, 169, 110, 0.12) 100%);
}
.cin-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 0 8vw;
}
.cin-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 64px);
  letter-spacing: 0.06em;
  text-shadow: 0 0 60px rgba(201, 169, 110, 0.3);
}
.cin-sub {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: clamp(14px, 1.3vw, 20px);
  color: rgba(250, 248, 245, 0.7);
  margin-top: 18px;
  margin-bottom: 50px;
}
.tilt-card {
  width: min(500px, 90%);
  margin: 0 auto;
  padding: 36px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tilt-card .inner { transform: translateZ(40px); }
.tilt-card .highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(201, 169, 110, 0.14), transparent 70%);
}
.tilt-card h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.tilt-card .meta {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 4px; color: var(--gold);
  margin-bottom: 18px;
}
.tilt-card p {
  font-family: var(--f-editorial); font-style: italic;
  color: rgba(250, 248, 245, 0.7); line-height: 1.6; font-size: 15px;
}
.tilt-card .row {
  display: flex; gap: 24px; margin-top: 22px;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
  padding-top: 20px;
}
.tilt-card .row > div { flex: 1; }
.tilt-card .row .v { font-family: var(--f-display); font-size: 24px; color: var(--gold-bright); }
.tilt-card .row .k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 3px; color: rgba(250, 248, 245, 0.4); margin-top: 4px; }

/* ============================================
   SECTION 8 — TESTIMONIALS + ACCORDION
   ============================================ */
.testi-section { background: #0C0A07; }
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.testi-list { display: flex; flex-direction: column; gap: 22px; }
.testi {
  padding: 28px 30px;
  border-left: 3px solid rgba(201, 169, 110, 0.5);
  background: rgba(201, 169, 110, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-left-color 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.testi:hover { transform: translateX(6px); border-left-color: var(--gold-bright); }
.testi blockquote {
  font-family: var(--f-editorial); font-style: italic;
  font-size: 17px;
  color: rgba(250, 248, 245, 0.85);
  line-height: 1.65;
}
.testi .who {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-top: 18px;
  text-transform: uppercase;
}
.testi .role { color: var(--warm-gray); font-family: var(--f-mono); font-size: 9px; margin-top: 4px; letter-spacing: 3px; }

.accordion { border-top: 1px solid rgba(201, 169, 110, 0.12); }
.acc-item {
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  cursor: none;
}
.acc-item.open { border-left: 2px solid var(--gold); background: rgba(201, 169, 110, 0.04); }
.acc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(250, 248, 245, 0.85);
}
.acc-head .plus { color: var(--gold); transition: transform 0.4s ease; font-size: 16px; }
.acc-item.open .plus { transform: rotate(45deg); }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 22px;
}
.acc-body-inner {
  padding: 0 0 24px;
  font-family: var(--f-editorial); font-style: italic; font-size: 15px;
  color: rgba(250, 248, 245, 0.6);
  line-height: 1.6;
}
.acc-body-inner .meter {
  margin-top: 14px;
  height: 2px;
  background: rgba(201, 169, 110, 0.12);
  position: relative;
}
.acc-body-inner .meter::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  width: var(--m, 60%);
}
.acc-item.open .acc-body { max-height: 300px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  position: relative;
  background: #050403;
  padding: 120px 8vw 60px;
  text-align: center;
  overflow: hidden;
}
#footer-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.7;
}
footer .inner { position: relative; z-index: 2; }
.foot-mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 84px);
  letter-spacing: 0.12em;
  color: var(--warm-white);
  margin-bottom: 16px;
  transition: text-shadow 1.8s ease;
}
.foot-mark.glow { text-shadow: 0 0 80px rgba(201, 169, 110, 0.7), 0 0 30px rgba(232, 201, 138, 0.5); }
.foot-sub { font-family: var(--f-editorial); font-style: italic; font-size: 18px; color: rgba(250, 248, 245, 0.55); margin-bottom: 50px; }
.foot-nav { display: flex; justify-content: center; gap: clamp(20px, 4rem, 64px); margin-bottom: 50px; flex-wrap: wrap; }
.foot-nav a {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 4px;
  color: rgba(250, 248, 245, 0.6); text-transform: uppercase;
  transition: color 0.3s ease;
}
.foot-nav a:hover { color: var(--gold); }
.foot-rule { width: 80%; max-width: 600px; height: 1px; margin: 0 auto 30px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.foot-meta { font-family: var(--f-mono); font-size: 9px; letter-spacing: 4px; color: rgba(250, 248, 245, 0.25); }
.foot-icons { display: flex; gap: 22px; justify-content: center; margin: 28px 0; }
.foot-icons a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(201, 169, 110, 0.3); border-radius: 50%; transition: all 0.3s ease; }
.foot-icons a svg { width: 12px; height: 12px; stroke: var(--gold); fill: none; }
.foot-icons a:hover { border-color: var(--gold-bright); transform: translateY(-3px); }

/* ============================================
   ENTRANCE STATES — spring eased
   ============================================ */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-x { opacity: 0; transform: translateX(-80px); transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-x.in { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.34, 1.56, 0.64, 1); }
.reveal-scale.in { opacity: 1; transform: scale(1); }
.reveal-blur { opacity: 0; filter: blur(20px); transform: translateY(30px); transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-blur.in { opacity: 1; filter: blur(0); transform: translateY(0); }

/* SPLIT TEXT — letter-by-letter spring reveal */
.split { display: inline-block; perspective: 800px; }
.split .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotateX(-60deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom center;
}
.split.in .ch { opacity: 1; transform: translateY(0) rotateX(0); }
.split .word { display: inline-block; overflow: hidden; padding: 0.1em 0.06em 0.05em; }

/* Subtle floating animation for hero pieces */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float { animation: float 6s ease-in-out infinite; }

/* MARQUEE — continuous horizontal scroll */
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  padding: 32px 0;
  background: linear-gradient(180deg, var(--void), #0c0a07 50%, var(--void));
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 12vw;
  pointer-events: none;
  z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--void), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--void), transparent); }
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 0.06em;
  color: rgba(251, 247, 240, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 64px;
  text-transform: uppercase;
}
.marquee-item .sep {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold-bright);
  flex-shrink: 0;
}
.marquee-item.outline {
  -webkit-text-stroke: 1px rgba(201, 169, 110, 0.6);
  color: transparent;
}

/* Floating dust particles overlay (decorative) */
.dust {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(201, 169, 110, 0.4), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(232, 201, 138, 0.3), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(201, 169, 110, 0.35), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(232, 201, 138, 0.25), transparent),
    radial-gradient(1px 1px at 15% 70%, rgba(201, 169, 110, 0.3), transparent);
  background-size: 320px 320px, 280px 280px, 360px 360px, 240px 240px, 400px 400px;
  animation: dustDrift 28s linear infinite;
  opacity: 0.7;
}
@keyframes dustDrift {
  to { background-position: 320px -320px, -280px 280px, 360px -360px, -240px 240px, 400px -400px; }
}

/* hover lift utility */
.lift { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease; }
.lift:hover { transform: translateY(-6px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .arm-grid, .stats-grid, .testi-grid { grid-template-columns: 1fr; gap: 50px; }
  .cards-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .reel-item { flex-basis: 280px; }
  #three-canvas { opacity: 0.6; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  .btn { padding: 16px 26px; font-size: 10px; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  section.scene { padding: 80px 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
