/* ============================================================
   THREXA LABS — Break The Formula
   Black & Gold luxury design system
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --bg-3: #101010;
  --gold: #FECA03;
  --gold-soft: #ffd94d;
  --gold-dim: rgba(254, 202, 3, 0.12);
  --ink: #f4f2ec;
  --ink-dim: #9a968a;
  --line: rgba(254, 202, 3, 0.14);
  --font: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  overflow-x: clip;
  /* warm layered base: never a flat black slab */
  background:
    radial-gradient(1100px 750px at 88% -8%, rgba(254, 202, 3, 0.055), transparent 62%),
    radial-gradient(900px 700px at -12% 34%, rgba(255, 157, 0, 0.04), transparent 60%),
    radial-gradient(1300px 900px at 50% 118%, rgba(224, 174, 0, 0.05), transparent 65%),
    linear-gradient(180deg, #080705 0%, #050504 55%, #060504 100%);
  background-attachment: fixed;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #0a0a0a; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a22; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { text-align: center; position: relative; }
.preloader-logo {
  width: clamp(70px, 10vw, 110px);
  margin: 0 auto 28px;
  animation: pulse-glow 1.4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(254,202,3,.25)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 34px rgba(254,202,3,.75)); transform: scale(1.05); }
}
.preloader-count {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.preloader-count::after { content: '%'; font-size: .45em; opacity: .6; margin-left: 4px; }
.preloader-bar {
  width: 190px; height: 2px; background: #1c1c1c;
  margin: 22px auto 0; overflow: hidden; border-radius: 2px;
}
.preloader-bar span {
  display: block; width: 0%; height: 100%;
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
}

/* ============ LIVING BACKGROUND LAYERS ============ */
.bg-tint {
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
  background-color: rgba(254, 202, 3, 0);
  transition: background-color 1.2s ease;
}
.bg-canvas {
  position: fixed; inset: 0; z-index: -1;
  width: 100vw; height: 100vh;
  pointer-events: none;
  filter: blur(0.5px);
}
/* cinematic vignette */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  background: radial-gradient(130% 130% at 50% 42%, transparent 58%, rgba(0, 0, 0, 0.42) 100%);
}

/* ============ GRAIN / CURSOR / PROGRESS ============ */
.grain {
  /* static dither: masks gradient banding without any flicker */
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 1001;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot { width: 8px; height: 8px; background: var(--gold); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(254,202,3,.5);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--gold); background: rgba(254,202,3,.08); }
@media (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 998;
  width: 100%; height: 2px;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(254,202,3,.6);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s, box-shadow .35s;
  will-change: transform;
}
.btn-solid {
  background: var(--gold); color: #0b0900;
  box-shadow: 0 0 0 rgba(254,202,3,0);
}
.btn-solid:hover {
  background: var(--gold-soft);
  box-shadow: 0 8px 44px rgba(254,202,3,.45);
}
.btn-ghost {
  border-color: var(--line); color: var(--ink);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 17px 38px; font-size: 1.02rem; }
.btn-xl {
  padding: 22px 48px;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 700;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px min(4vw, 48px);
  transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(254,202,3,.08);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.12rem; letter-spacing: .02em;
}
.nav-logo img { width: 34px; height: auto; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 38px); }
.nav-links a {
  font-size: .92rem; font-weight: 500;
  color: var(--ink-dim);
  position: relative;
  transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 11px 24px; font-size: .88rem; }
.nav-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-burger span {
  display: block; width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s;
}
.nav-burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-burger.is-open span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 890;
  background: rgba(5,5,5,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8vw;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 700;
  padding: 10px 0;
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid rgba(254,202,3,.09);
  transform: translateY(30px); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s, color .3s;
}
.mobile-menu-links a:hover { color: var(--gold); }
.mobile-menu.is-open .mobile-menu-links a { transform: translateY(0); opacity: 1; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(1) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(2) { transition-delay: .1s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(3) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(4) { transition-delay: .2s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(5) { transition-delay: .25s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(6) { transition-delay: .3s; }
.mobile-menu-foot { margin-top: 40px; color: var(--gold); font-weight: 500; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 5vw 90px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-glow {
  position: absolute; z-index: 0;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254,202,3,.10) 0%, rgba(254,202,3,.03) 40%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: .7; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%,-50%) scale(1.12); }
}
.hero-content { position: relative; z-index: 2; }
/* god-rays: two soft light shafts sweeping from the top */
.hero-rays {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.hero-rays i {
  position: absolute;
  top: -42%; left: 50%;
  width: 46vw; height: 150%;
  background: conic-gradient(from 180deg at 50% 0%,
    transparent 42%, rgba(254, 202, 3, 0.10) 49%, rgba(255, 243, 176, 0.16) 50%,
    rgba(254, 202, 3, 0.10) 51%, transparent 58%);
  mix-blend-mode: screen;
  transform-origin: 50% 0;
  animation: ray-sway 11s ease-in-out infinite alternate;
}
.hero-rays i:first-child { margin-left: -34vw; transform: rotate(14deg); }
.hero-rays i:last-child {
  margin-left: -8vw; transform: rotate(-11deg);
  animation-duration: 15s; animation-delay: -6s; opacity: .8;
}
@keyframes ray-sway {
  from { transform: rotate(16deg); }
  to   { transform: rotate(-16deg); }
}

.hero-title {
  font-size: clamp(3rem, 11.5vw, 10.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(22px, 4vh, 40px);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-title .solid { color: var(--ink); }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
}
.hero-sub {
  max-width: 620px; margin: 0 auto clamp(30px, 5vh, 48px);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-dim);
}
.hero-sub strong { color: var(--gold); font-weight: 600; }
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 8, 5, 0.5);
  padding: 20px 0;
  position: relative; z-index: 3;
}
.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  padding-right: .5em;
}
.marquee-track i {
  font-style: normal; color: var(--gold);
  margin: 0 .6em;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
.section { padding: clamp(90px, 14vh, 160px) 0; position: relative; }
.section-head { margin-bottom: clamp(44px, 7vh, 80px); }
.section-tag {
  display: inline-block;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-left: 34px;
  position: relative;
}
.section-tag::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 24px; height: 1px; background: var(--gold);
}
.section-tag--center {
  display: block; text-align: center; padding-left: 0; margin-bottom: 28px;
}
.section-tag--center::before {
  position: static; width: 100%; height: 1px; display: block; margin: 0 auto 12px;
}
.section-title {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.section-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--gold);
}
.section-title .accent { color: var(--gold); }

/* ============ ABOUT ============ */
.about { background: transparent; }
.about-statement {
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.32;
  max-width: 1080px;
  letter-spacing: -0.01em;
}
.about-statement em {
  font-style: normal; color: var(--gold);
}
.about-statement .w {
  display: inline-block;
  opacity: .14;
  transition: opacity .4s ease;
}
.about-statement .w.is-lit { opacity: 1; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(56px, 9vh, 96px);
}
.stat {
  background: var(--bg-2);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  transition: background .4s;
}
.stat:hover { background: var(--bg-3); }
.stat-num {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 700; line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline;
}
.stat-num b { font-size: .55em; margin-left: 2px; }
.stat-label {
  margin-top: 14px;
  font-size: .88rem; color: var(--ink-dim);
}

/* ============ SERVICES ============ */
.services { background: transparent; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(254,202,3,.045), rgba(254,202,3,0) 42%), var(--bg);
  padding: clamp(28px, 3.6vw, 46px);
  overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(254,202,3,.09), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(254,202,3,.45);
  box-shadow: 0 24px 70px -30px rgba(254,202,3,.28);
}
.service-num {
  font-size: .82rem; font-weight: 600;
  color: var(--gold);
  letter-spacing: .24em;
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.service-card h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--ink-dim); font-size: .98rem; max-width: 52ch; }
.service-arrow {
  position: absolute; right: 30px; bottom: 24px;
  font-size: 1.5rem; color: var(--gold);
  opacity: 0; transform: translateX(-12px);
  transition: opacity .4s, transform .4s var(--ease);
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ============ PARTNERS ============ */
.partners { background: transparent; text-align: left; }
.partners .section-head { text-align: left; }
.partners-marquee { padding: 34px 0; }
.partners-marquee .marquee-track { animation-duration: 30s; animation-direction: reverse; }
.partners-marquee .marquee-track span { display: inline-flex; align-items: center; }
.partner {
  display: inline-flex; align-items: center; gap: 20px;
  font-size: clamp(1.5rem, 3.8vw, 2.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: rgba(244,242,236,.55);
  transition: color .35s, text-shadow .35s;
}
.partner img {
  width: clamp(48px, 6vw, 72px);
  height: clamp(48px, 6vw, 72px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(254,202,3,.25);
  filter: grayscale(1) brightness(.85);
  transition: filter .4s, transform .4s var(--ease), box-shadow .4s;
}
.partner:hover {
  color: var(--gold);
  text-shadow: 0 0 34px rgba(254,202,3,.45);
}
.partner:hover img {
  filter: grayscale(0) brightness(1.05);
  transform: scale(1.14);
  box-shadow: 0 0 30px rgba(254,202,3,.5);
}
.partners-marquee i {
  font-style: normal; color: var(--gold);
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  margin: 0 .9em;
  vertical-align: middle;
}
.partners-more {
  text-align: center;
  margin-top: 34px;
  color: var(--ink-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
}
.partners-more b { color: var(--gold); }

/* ============ STORY ============ */
.story { background: transparent; }
.story-timeline {
  position: relative;
  max-width: 880px;
  margin-left: auto;
}
.story-timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(254,202,3,.14);
}
.story-progress {
  position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(to bottom, var(--gold-soft), var(--gold));
  box-shadow: 0 0 18px rgba(254,202,3,.7);
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.story-item.is-active::before {
  background: var(--gold);
  box-shadow: 0 0 26px rgba(254,202,3,.95);
}
.story-item {
  position: relative;
  padding: 0 0 clamp(48px, 7vh, 76px) clamp(44px, 6vw, 72px);
}
.story-item:last-child { padding-bottom: 0; }
.story-item::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(254,202,3,.5);
}
.story-marker span {
  display: inline-block;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.story-body h3 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.story-body p { color: var(--ink-dim); max-width: 62ch; font-size: 1.02rem; }
.story-body b { color: var(--ink); }
.story-quote {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gold);
  border: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 0 50px rgba(254,202,3,.25);
}

/* ============ TEAM ============ */
.team { background: transparent; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  padding: clamp(26px, 3vw, 38px) clamp(20px, 2.4vw, 30px);
  text-align: center;
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
  transform-style: preserve-3d;
  will-change: transform;
  display: block;
}
.team-card:hover {
  border-color: rgba(254,202,3,.5);
  box-shadow: 0 20px 60px -28px rgba(254,202,3,.3);
}
.team-avatar {
  width: clamp(72px, 8vw, 96px); height: clamp(72px, 8vw, 96px);
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #0b0900;
  position: relative; z-index: 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(254,202,3,.35), 0 10px 34px -12px rgba(254,202,3,.55);
  transition: transform .5s var(--ease);
}
.team-avatar::before {
  content: '';
  position: absolute; inset: -30%; z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #b8860b, var(--gold), #fff3b0, var(--gold), #8a6508, var(--gold), #b8860b);
  animation: avatar-spin 4.5s linear infinite;
}
@keyframes avatar-spin { to { transform: rotate(360deg); } }
.team-card:hover .team-avatar { transform: scale(1.08) rotate(-4deg); }
.team-card h3 { font-size: 1.22rem; font-weight: 700; }
.team-card p { color: var(--ink-dim); font-size: .88rem; margin-top: 4px; }
.team-link {
  display: inline-block;
  margin-top: 14px;
  font-size: .8rem; font-weight: 600;
  color: var(--gold);
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(254,202,3,.35);
  padding-bottom: 2px;
}

/* ============ CONTACT ============ */
.contact {
  background: transparent;
  text-align: center;
  overflow: hidden;
}
.contact-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46vw 46vw at 50% 118%, rgba(254,202,3,.16), transparent 62%);
}
.contact .container { position: relative; }
.contact-title {
  font-size: clamp(2.8rem, 9vw, 8rem);
  font-weight: 700;
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 18px 0 26px;
}
.contact-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
}
.contact-sub {
  color: var(--ink-dim);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: clamp(34px, 6vh, 54px);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 5, 4, 0.72);
  padding: 46px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.footer-logo img { width: 30px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: .88rem; color: var(--ink-dim); transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: .8rem; color: var(--ink-dim);
  text-align: right;
}
.footer-slogan { color: var(--gold); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* ============ REVEAL (initial states set in JS) ============ */
[data-reveal] { will-change: transform, opacity; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .story-timeline { margin-left: 0; }
}
@media (max-width: 460px) {
  .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================
   V2 — SUPER CRAZY EFFECTS
   ============================================================ */

/* Mouse spotlight orb (whole page) */
.orb {
  position: fixed; top: 0; left: 0; z-index: 3;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254,202,3,.16) 0%, rgba(254,202,3,.05) 40%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
}
@media (pointer: coarse) { .orb { display: none; } }

/* Cursor spark trail */
.trail-canvas {
  position: fixed; inset: 0; z-index: 1000;
  width: 100vw; height: 100vh;
  pointer-events: none;
}
@media (pointer: coarse) { .trail-canvas { display: none; } }

/* Hero glitch */
.hero-title .line { will-change: transform; }
.hero-title.is-glitching .line:first-child { animation: glitch-shift-a .09s steps(2) infinite; }
.hero-title.is-glitching .line:last-child  { animation: glitch-shift-b .07s steps(2) infinite; }
.hero-title.is-glitching .solid {
  text-shadow: 4px 0 rgba(254,202,3,.85), -4px 0 rgba(120,220,255,.4), 0 0 30px rgba(254,202,3,.4);
}
.hero-title.is-glitching .outline { -webkit-text-stroke-color: #fff; }
@keyframes glitch-shift-a {
  0% { transform: translate(-4px, 2px) skewX(3deg); }
  50% { transform: translate(4px, -1px) skewX(-2deg); }
  100% { transform: translate(-2px, 1px); }
}
@keyframes glitch-shift-b {
  0% { transform: translate(4px, -2px) skewX(-3deg); }
  50% { transform: translate(-4px, 1px) skewX(2deg); }
  100% { transform: translate(2px, -1px); }
}

/* Services: horizontal scroll on desktop */
.services-viewport { width: min(1240px, 92vw); margin: 0 auto; }
@media (min-width: 1025px) {
  .services { padding: clamp(60px, 8vh, 100px) 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .services .section-head { margin-bottom: clamp(30px, 5vh, 54px); }
  .services-viewport { width: 100%; overflow: hidden; }
  .services-grid {
    display: flex; flex-wrap: nowrap;
    gap: 28px;
    width: max-content;
    padding: 0 min(4vw, 48px);
  }
  .service-card {
    width: min(460px, 40vw);
    flex: 0 0 auto;
    display: flex; flex-direction: column; justify-content: flex-start;
  }
}

/* Contact aurora */
.aurora {
  position: absolute; inset: -35%;
  pointer-events: none;
  background: conic-gradient(from 0deg at 50% 60%,
    transparent 0deg, rgba(254,202,3,.20) 40deg, transparent 90deg,
    rgba(255,217,77,.14) 150deg, transparent 210deg,
    rgba(224,174,0,.18) 280deg, transparent 340deg);
  filter: blur(70px);
  animation: aurora-spin 16s linear infinite;
  opacity: .8;
}
@keyframes aurora-spin { to { transform: rotate(360deg); } }
.contact .container { position: relative; z-index: 2; }

/* Velocity-driven marquees: JS takes over the CSS animation */
.marquee-track.js-driven { animation: none; }

/* Section skew on scroll velocity */
.skew-target { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .orb, .trail-canvas { display: none !important; }
  .aurora, .team-avatar::before { animation: none !important; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain, .cursor-dot, .cursor-ring { display: none !important; }
  .marquee-track { animation: none; }
  .about-statement .w { opacity: 1; }
}
