/* ============================================================
   VANTUM — Site styles
   Loaded AFTER tokens.css. Holds: reset, layout, the 3D-flip
   button system (CSS-variable driven so Tweaks adjust globally),
   custom cursor, nav, footer, and per-page styles.
   ============================================================ */

/* ---- Tweakable runtime variables (overridden by tweaks.js) ---- */
:root {
  --flip-dur: 0.42s;
  --flip-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --btn-persp: 1000px;
  --btn-track: 2.5px;
  --pf-front: #D4909A;   /* primary front — rose gold   */
  --pf-back:  #FFFFFF;   /* primary back  — crisp white */
  --pf-text:  #0B0F19;   /* dark face text */
  --ghost-line: rgba(212,144,154,0.40);
  --maxw: 1280px;
  --gutter: clamp(24px, 6vw, 72px);
  /* enforce Plus Jakarta Sans for all UI/body; Playfair stays for serif */
  --font-sans: 'Plus Jakarta Sans', 'Montserrat', system-ui, sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--color-bg-base); }
body {
  margin: 0;
  background: transparent;
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* fixed background video loop — the sole site background foundation.
   Two stacked layers (#global-video-bg + #global-video-bg-2) crossfade
   for a seamless infinite loop; see initVideo() in site.js. */
#global-video-bg, #global-video-bg-2 {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -2; pointer-events: none;
  background-color: #0B0F19;
  filter: brightness(0.78) contrast(0.95);
  -webkit-filter: brightness(0.78) contrast(0.95);
  /* keep the layer GPU-buffered so the loop wrap is seamless */
  will-change: opacity, transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
::selection { background: rgba(244,194,201,0.25); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Custom cursor active: hide native cursor everywhere */
body.cursor-on,
body.cursor-on a,
body.cursor-on button,
body.cursor-on .btn3d { cursor: none; }

.container { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.section { padding: clamp(88px, 13vh, 150px) var(--gutter); position: relative; }

/* ============================================================
   THE 3D BOX-FLIP BUTTON SYSTEM  (genuine, GPU-accelerated)
   <a class="btn3d btn3d--primary">
     <span class="btn3d__inner">
       <span class="btn3d__front">Get in Touch</span>
       <span class="btn3d__back">Let's Talk →</span>
     </span>
   </a>
   The container holds the perspective; the inner flipper is a real
   3D box (preserve-3d). The front face sits +half-height toward the
   viewer, the back face is the box's top face. On hover the whole
   box rolls forward 90° on its X axis — a true edge-rolling tile.
   ============================================================ */
.btn3d {
  --btn-h: 46px;
  --half: 23px;          /* exactly half the height */
  --btn-radius: 8px;     /* rounded corners (set to 24px for a pill) */
  --tx: 0deg;            /* cursor-driven tilt (set by initButtonTilt) */
  --ty: 0deg;
  --edge-ang: 135deg;    /* angle of the revealed dusty-rose edge */
  --edge-op: 0;          /* edge tint opacity — 0 at rest */
  display: inline-block;
  position: relative;
  height: var(--btn-h);
  perspective: var(--btn-persp);
  overflow: visible;     /* MUST be visible — hidden flattens the 3D box */
  border-radius: var(--btn-radius);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
  /* cursor-driven 3D lean toward the pointer (own perspective) */
  transform: perspective(1000px) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease-in-out;
  will-change: transform, filter;
}
/* anisotropic dusty-rose glass edge — a tinted plate set BEHIND the
   clear faces; the cursor tilt + flip rotation reveal it on one side,
   reading as the coloured thickness of a dyed-crystal block. The front
   plane stays crystal-clear (faces unchanged). */
/* DUSTY-ROSE EDGE FACET — a turned side of the volumetric glass block.
   It is NOT a solid fill: a transparent rose tint over a synchronized
   refractive backdrop, so it acts as a coloured lens that still
   refracts/distorts the video behind it. Revealed on one side by the
   cursor tilt + barrel flip. Rose-gold specular border with hard stops. */
.btn3d::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: rgba(180,120,130,0.28);
  background-blend-mode: overlay;
  -webkit-backdrop-filter: blur(25px) saturate(160%) contrast(110%);
  backdrop-filter: url(#lg-soft) blur(22px) saturate(160%) contrast(110%);
  /* sub-pixel rose-gold specular with crisp machine-cut stops */
  box-shadow: inset 0 0 0 0.6px rgba(213,160,124,0.75),
              inset 0 1px 0 0 rgba(255,236,224,0.5);
  transform: translateZ(-8px);
  opacity: var(--edge-op);
  transition: opacity 0.4s ease;
  pointer-events: none; z-index: -1;
}
/* unified liquid-glass buttons — refractive crystal lens, rose by
   default, brighter on hover. White label keeps every face legible. */
.btn3d__front,
.btn3d__back {
  position: relative;
  background: rgba(255,255,255,0.06) !important;   /* colourless front — rose lives only on the edge */
  color: rgba(255,255,255,0.94) !important;
  border: 0.5px solid rgba(255,255,255,0.18) !important;
  -webkit-backdrop-filter: blur(25px) saturate(160%) contrast(110%); backdrop-filter: url(#lg-soft) blur(22px) saturate(160%) contrast(110%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.28),
              inset 0 -1px 3px rgba(0,0,0,0.06);
  transition: background 0.5s var(--ease-vantum-fluid), border-color 0.5s var(--ease-vantum-fluid),
              box-shadow 0.5s var(--ease-vantum-fluid);
}
/* chameleonic specular edge on each face — the gradient angle tracks
   the cursor tilt (--edge-ang) and shifts from laser-white toward a
   gleaming rose-gold on the shaded side. */
.btn3d__front::after,
.btn3d__back::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 0.5px;
  pointer-events: none;
  background: linear-gradient(var(--edge-ang),
    rgba(255,255,255,0.82) 0%, rgba(213,160,124,0.55) 32%, rgba(255,255,255,0.03) 68%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background 0.4s ease;
}
.btn3d:hover {
  background: transparent;
}
.btn3d:hover .btn3d__front,
.btn3d:hover .btn3d__back {
  background: rgba(255,255,255,0.2) !important;
  color: rgba(255,255,255,0.99) !important;
  border: 0.5px solid rgba(255,255,255,0.45) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: url(#lg-strong) blur(14px) saturate(160%);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.4),
              inset 0 -1px 4px rgba(0,0,0,0.07);
}
.btn3d__inner {
  position: relative;
  display: block;
  height: var(--btn-h);
  border-radius: var(--btn-radius);
  transform-style: preserve-3d;
  transform: rotateX(0deg);
  transition: transform var(--flip-dur) var(--flip-ease);
}
.btn3d__front,
.btn3d__back {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 36px;
  border-radius: var(--btn-radius);
  overflow: hidden;      /* clip face backgrounds to the rounded corners */
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--btn-track);
  text-transform: uppercase;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: background 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
/* front is the in-flow sizer (gives the box its width); back fills it */
.btn3d__front { position: relative; transform: translateZ(var(--half)); }
.btn3d__back  { position: absolute; left: 0; right: 0; top: 0; transform: rotateX(-90deg) translateZ(var(--half)); }

/* ---- Variant: Primary (rose → platinum) ---- */
.btn3d--primary .btn3d__front { background: var(--pf-front); color: var(--pf-text); }
.btn3d--primary .btn3d__back  { background: var(--pf-back);  color: var(--pf-text); }

/* ---- Variant: Ghost (outline → rose fill) ---- */
.btn3d--ghost .btn3d__front {
  background: transparent;
  border: 1px solid var(--ghost-line);
  color: rgba(240,237,232,0.70);
}
.btn3d--ghost .btn3d__back { background: var(--pf-front); color: var(--pf-text); }

/* ---- Variant: Submit (rose → deep rose) ---- */
.btn3d--submit .btn3d__front { background: var(--pf-front); color: var(--pf-text); }
.btn3d--submit .btn3d__back  { background: #C98A7A; color: var(--pf-text); }

/* ---- Hover / flipped: roll the whole box forward 90° ---- */
.btn3d:hover .btn3d__inner,
.btn3d.is-flipped .btn3d__inner { transform: rotateX(90deg); }

/* ---- Sizes (translateZ tracks half the height) ---- */
.btn3d--sm { --btn-h: 36px; --half: 18px; }
.btn3d--sm .btn3d__front, .btn3d--sm .btn3d__back { padding: 0 22px; font-size: 9px; letter-spacing: 2px; }
.btn3d--lg { --btn-h: 52px; --half: 26px; }
.btn3d--lg .btn3d__front, .btn3d--lg .btn3d__back { padding: 0 44px; font-size: 11px; letter-spacing: 3px; }

/* ============================================================
   ALTERNATE FLIP MECHANISMS  (all rotate the inner box)
   Applied globally via a <body> class (Tweaks).
   ============================================================ */

/* --- Coin flip: faces back-to-back, full 180° spin on Y axis --- */
.flip-coin .btn3d__front { transform: rotateY(0deg); }
.flip-coin .btn3d__back  { transform: rotateY(180deg); }
.flip-coin .btn3d:hover .btn3d__inner,
.flip-coin .btn3d.is-flipped .btn3d__inner { transform: rotateY(180deg); }

/* --- Swivel: faces back-to-back, full 180° flip on X axis --- */
.flip-swivel .btn3d__front { transform: rotateX(0deg); }
.flip-swivel .btn3d__back  { transform: rotateX(180deg); }
.flip-swivel .btn3d:hover .btn3d__inner,
.flip-swivel .btn3d.is-flipped .btn3d__inner { transform: rotateX(180deg); }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cur-dot, .cur-ring {
  position: fixed; left: 0; top: 0; pointer-events: none;
  border-radius: 50%; z-index: 9999;
  will-change: transform;
}
.cur-dot {
  width: 6px; height: 6px;
  background: #E69CA7;
  margin: -3px 0 0 -3px;
  transition: width .18s var(--ease-vantum-fluid), height .18s var(--ease-vantum-fluid),
              opacity .18s ease, background .18s ease;
}
.cur-ring {
  width: 28px; height: 28px; margin: -14px 0 0 -14px; z-index: 9998;
  border: 1px solid rgba(230,156,167,0.45);
  background: rgba(230,156,167,0.03);
  border-radius: 50%;
  transition: width .28s var(--ease-vantum-fluid), height .28s var(--ease-vantum-fluid),
              margin .28s var(--ease-vantum-fluid), background .28s var(--ease-vantum-fluid);
}
/* over an interactive surface: keep ONE elegant ring (no bordered-disc
   dot duplicate), and hide the trailing label so it never covers links */
body.cur-hover .cur-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: #E69CA7; border: none; mix-blend-mode: normal;
}
body.cur-hover .cur-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(230,156,167,0.55);
  background: rgba(230,156,167,0.04);
}
body.cur-hover .cur-label {
  opacity: 0 !important; visibility: hidden !important;
}
body.cur-flash .cur-dot { transform-origin: center; animation: curFlash .12s var(--ease-vantum-fluid); }
@keyframes curFlash { 0%{ filter: brightness(1) } 50%{ filter: brightness(2.4) } 100%{ filter: brightness(1) } }
/* trailing label that lags behind the cursor */
.cur-label {
  position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9997;
  margin: 12px 0 0 14px;
  font-family: var(--font-sans); font-size: 0.65rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #E69CA7;
  white-space: nowrap; opacity: 0;
  transition: opacity .15s ease, visibility .15s ease, color 0.2s ease;
  will-change: transform, opacity;
}
.cur-label.is-visible { opacity: 0.9; }
@media (pointer: coarse) { .cur-dot, .cur-ring, .cur-label { display: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 var(--gutter);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--duration-page) var(--ease-vantum-fluid),
              border-color var(--duration-page) var(--ease-vantum-fluid),
              backdrop-filter var(--duration-page) var(--ease-vantum-fluid);
}
.nav.is-scrolled {
  background: rgba(20,23,31,0.72);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid rgba(244,194,201,0.10);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 30px; }
.nav__brand .v-wordmark { font-size: 18px; font-weight: 500; letter-spacing: 0.12em; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__menu { display: flex; gap: 22px; }
.nav__menu a {
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-2); transition: color var(--duration-ui) var(--ease-vantum-fluid); position: relative;
  white-space: nowrap;
}
.nav__menu a:hover { color: var(--fg-rose); }
.nav__menu a.is-active { color: var(--fg-rose); }
.nav__menu a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: var(--fg-rose); opacity: 0.6;
}
.nav__toggle { display: none; background: none; border: 0; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--fg-1); margin: 5px 0; }

/* ============================================================
   SHARED PIECES
   ============================================================ */
.label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--fg-rose);
}
.label.is-center { justify-content: center; }
.label::before { content: ""; width: 34px; height: 1px; background: rgba(244,194,201,0.5); }
.label.is-center::after { content: ""; width: 34px; height: 1px; background: rgba(244,194,201,0.5); }

.eyebrow-page { /* big page intro */ text-align: center; }
/* ============================================================
   NAV BADGE — "ACRA VERIFIED" liquid-glass capsule
   ============================================================ */
.nav__badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px 0 12px; border-radius: 100px;
  border: 0.5px solid rgba(180,120,130,0.4);
  background: rgba(10,12,18,0.35);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(240,237,232,0.85); white-space: nowrap; cursor: default;
  will-change: transform;
  transition: border-color var(--duration-ui) var(--ease-vantum-fluid), background var(--duration-ui) var(--ease-vantum-fluid);
}
.nav__badge:hover { border-color: rgba(180,120,130,0.65); background: rgba(20,14,18,0.5); }
.nav__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 40% 35%, #F4C2C9, #C98A7A 70%);
  animation: badgePulse 2s infinite ease-in-out;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,144,154,0.55); transform: scale(1); }
  50%      { box-shadow: 0 0 0 5px rgba(212,144,154,0); transform: scale(1.28); }
}
@media (prefers-reduced-motion: reduce) { .nav__badge .dot { animation: none; } }
@media (max-width: 600px) { .nav__badge { display: none; } }

/* ============================================================
   HERO MARQUEE — infinite refractive rail
   ============================================================ */
.hero-marquee {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 15px 0; overflow: hidden;
  border-top: 0.5px solid rgba(180,120,130,0.25);
  border-bottom: 0.5px solid rgba(180,120,130,0.25);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hero-marquee__track {
  display: flex; width: max-content; will-change: transform;
  animation: heroMarquee 42s linear infinite;
}
.hero-marquee:hover .hero-marquee__track { animation-play-state: paused; }
.hero-marquee__seq { display: inline-flex; align-items: center; flex: 0 0 auto; }
.hero-marquee__item {
  display: inline-flex; align-items: center; gap: 30px; padding-left: 30px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(232,233,238,0.78); white-space: nowrap;
}
.hero-marquee__item::after { content: "\2726"; color: rgba(180,120,130,0.72); font-size: 11px; line-height: 1; }
@keyframes heroMarquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) { .hero-marquee__track { animation: none; } }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; }
/* elegant italic emphasis inside serif headings — dusty-rose accent */
.serif i, .serif em, i.it {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: #D4909A; -webkit-text-fill-color: #D4909A;
}
.metal {
  background: var(--gradient-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 17px; line-height: 1.65; color: var(--fg-2); }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-row.is-center { justify-content: center; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-vantum-fluid), transform .7s var(--ease-vantum-fluid); }
.reveal.is-in { opacity: 1; transform: none; }

/* ambient glow helper */
.ambient-top::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 70% 0%, rgba(201,138,122,0.18) 0%, rgba(20,23,31,0) 55%);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px var(--gutter) 80px; overflow: hidden; }
.hero__bg {
  position: absolute; left: -80px; bottom: -40px; width: 540px; opacity: 0.18; filter: blur(1px);
  -webkit-mask-image: radial-gradient(circle at 40% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 40% 50%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px); align-items: center; width: 100%; max-width: var(--maxw); margin: 0 auto;
}
.hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); margin: 0 0 28px; }
.hero .lede { max-width: 460px; margin: 0 0 40px; }
.stat-row { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.stat__n { font-family: var(--font-serif); font-size: 32px; color: var(--fg-rose); line-height: 1; }
.stat__l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-3); margin-top: 8px; }
.hero__visual { position: relative; }
.hero__frame {
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(244,194,201,0.14);
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5)); animation: heroFloat 6s var(--ease-vantum-fluid) infinite;
}
@keyframes heroFloat { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }
.hero__badge {
  position: absolute; left: -34px; bottom: 40px; width: 92px; height: 92px; border-radius: 18px;
  background: rgba(26,29,38,0.85); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(244,194,201,0.18); display: flex; align-items: center; justify-content: center;
}
.hero__badge img { height: 52px; }

/* ============================================================
   HERO 3D CUBE
   Mouse-reactive, auto-drifting cube of brand verbs. Sits in the
   hero's right column; init in site.js (guarded by #hero-cube).
   ============================================================ */
.cube-viewport {
  width: 100%; min-height: 540px;
  perspective: 1200px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cube-gl-mount {
  width: 100%; height: 540px;
  position: relative; z-index: 1;
}
.cube-gl-mount canvas { display: block; width: 100% !important; height: 100% !important; }
.cube-wrapper {
  width: 280px; height: 280px; position: relative;
  background: transparent;
  transform-style: preserve-3d; will-change: transform;
  transform: rotateX(-18deg) rotateY(24deg);
}
.cube-face {
  position: absolute; width: 280px; height: 280px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(200,230,255,0.05) 100%);
  -webkit-backdrop-filter: blur(40px) saturate(200%); backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
  backface-visibility: visible;
}
/* pink-tinted specular streak — static (no animation, no white-block) */
.cube-face::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.95) 0%,
    rgba(242,178,186,0.4) 15%,
    rgba(255,255,255,0) 50%);
  pointer-events: none; transform: none; animation: none; z-index: 1;
}
.cube-face::after { display: none; content: none; }
.cube-face span {
  position: relative; z-index: 2;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: none; -webkit-background-clip: unset; background-clip: unset;
  -webkit-text-fill-color: unset;
}
/* face mapping (translateZ = half the 280px edge) */
.cube-front  { transform: rotateY(0deg)    translateZ(140px); }
.cube-back   { transform: rotateY(180deg)  translateZ(140px); }
.cube-right  { transform: rotateY(90deg)   translateZ(140px); }
.cube-left   { transform: rotateY(-90deg)  translateZ(140px); }
.cube-top    { transform: rotateX(90deg)   translateZ(140px); }
.cube-bottom { transform: rotateX(-90deg)  translateZ(140px); }
/* soft pink caustic glow behind the cube */
.cube-glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,178,186,0.28) 0%, rgba(20,23,31,0) 68%);
  z-index: -1; pointer-events: none;
}
@media (max-width: 920px) { .cube-viewport { min-height: 360px; } }
/* mobile: the background "liquid glass wave" video is dimmed to ~0.38 opacity
   by initVideo() so it stays subtle. Because the source footage is dark, we
   BOOST its brightness/contrast here (mobile-only) so the rose wave is actually
   perceptible over the near-black page instead of vanishing. Also force the
   layers visible so nothing can hide them. Desktop filter is left untouched. */
@media (max-width: 767px) {
  #global-video-bg, #global-video-bg-2 {
    display: block !important;
    visibility: visible !important;
    filter: brightness(1.34) contrast(1.12) saturate(1.18) !important;
    -webkit-filter: brightness(1.34) contrast(1.12) saturate(1.18) !important;
  }
}
/* mobile: scale the cube box down; camera pull-back in cube-gl.js (fitCamera,
   ≤767px) shrinks the cube itself so its corners never clip. Desktop untouched. */
@media (max-width: 767px) {
  .cube-viewport { min-height: 380px; }
  .cube-gl-mount { height: 380px; }
  .cube-glow { width: 240px; height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .cube-wrapper { transform: rotateX(-18deg) rotateY(24deg) !important; } }

/* ============================================================
   GLASS CARDS / SERVICE TILES
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: rgba(26,29,38,0.85); border: 1px solid rgba(244,194,201,0.08); border-radius: var(--radius-card);
  padding: 34px 30px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform var(--duration-ui) var(--ease-vantum-fluid), border-color var(--duration-ui) var(--ease-vantum-fluid);
  display: flex; flex-direction: column; gap: 16px;
}
.card:hover { transform: translateY(-2px); border-color: rgba(244,194,201,0.28); }
.icon-box {
  width: 46px; height: 46px; border-radius: var(--radius-icon); background: var(--gradient-metal);
  display: flex; align-items: center; justify-content: center; color: #14171F;
}
.icon-box svg { width: 22px; height: 22px; }
.card h3 { margin: 0; font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-1); }
.card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.card .card__foot { margin-top: auto; padding-top: 6px; }
.card__num { font-family: var(--font-serif); font-size: 13px; color: var(--fg-3); letter-spacing: 0.1em; }

/* ============================================================
   FEATURE / SPLIT SECTIONS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid rgba(244,194,201,0.14); filter: drop-shadow(0 20px 50px rgba(0,0,0,0.45)); }
.split__media img { width: 100%; }
/* flagship glass nameplate asset — native grading preserved, deep anchor shadow */
.split__media--asset {
  aspect-ratio: 2752 / 1536;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.75));
  will-change: transform;
}
.split__media--asset img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* services telemetry plane — deeper spatial drop-shadow */
.split__media--asset2 { filter: drop-shadow(0 30px 60px rgba(0,0,0,0.85)); }
/* process glass track — anchoring shadow + explicit GPU layer */
.split__media--asset3 { filter: drop-shadow(0 25px 50px rgba(0,0,0,0.8)); transform: translateZ(0); }
.split h2 { margin: 0 0 22px; font-size: clamp(2rem, 4vw, 3.2rem); }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.steps { display: grid; gap: 0; margin-top: 40px; }
.step {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.07); align-items: start;
}
.step:last-child { border-bottom: 1px solid rgba(255,255,255,0.07); }
.step__n { font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--fg-rose); line-height: 1; }
.step h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.step p { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.step__meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-3); margin-top: 14px; }

/* ============================================================
   WHY US — value grid + metrics
   ============================================================ */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.metric { padding: 30px 26px; border: 1px solid rgba(244,194,201,0.08); border-radius: var(--radius-card); background: rgba(26,29,38,0.55); }
.metric__n { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--fg-rose); line-height: 1; }
.metric__l { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-3); margin-top: 12px; }

/* ---- Meet the Visionary ---- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.founder__photo {
  width: 100%; aspect-ratio: 2752 / 1536; display: block;
  border: 1px solid rgba(212,144,154,0.4); border-radius: 14px;
  background: rgba(26,29,38,0.55); overflow: hidden;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  will-change: transform;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.founder__socials { display: flex; gap: 14px; margin-top: 22px; }
.founder__socials a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-2);
  padding: 10px 16px; border: 1px solid rgba(244,194,201,0.18); border-radius: 8px;
  transition: color var(--duration-ui) var(--ease-vantum-fluid), border-color var(--duration-ui) var(--ease-vantum-fluid), transform var(--duration-ui) var(--ease-vantum-fluid);
}
.founder__socials a:hover { color: var(--fg-rose); border-color: rgba(244,194,201,0.45); transform: translateY(-2px); }
.founder__socials svg { width: 16px; height: 16px; }
.founder__name { font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin: 0 0 14px; }
.founder__title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--fg-rose); margin: 0 0 28px; }
.founder__bio { font-size: 16px; line-height: 1.7; color: var(--fg-2); margin: 0 0 20px; max-width: 620px; }
.founder__bio:last-child { margin-bottom: 0; }
.founder__bio strong { color: var(--fg-1); font-weight: 600; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-3); }
.field input, .field textarea, .field select {
  background: rgba(26,29,38,0.6); border: 1px solid rgba(255,255,255,0.10); color: var(--fg-1);
  padding: 14px 16px; font-family: var(--font-sans); font-size: 14px; border-radius: 0; outline: none;
  transition: border-color var(--duration-ui) var(--ease-vantum-fluid), background var(--duration-ui) var(--ease-vantum-fluid);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(244,194,201,0.55); background: rgba(26,29,38,0.85); }
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.contact-info .line { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 18px; }
.contact-info .line h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-3); font-weight: 600; }
.contact-info .line p { margin: 0; font-size: 15px; color: var(--fg-1); }

/* ============================================================
   FOOTER (particle field + CTA)
   ============================================================ */
.footer {
  position: relative; background: transparent; overflow: hidden;
  border-top: 1px solid rgba(244,194,201,0.08); padding: clamp(90px,14vh,160px) var(--gutter) 48px;
}
.footer__canvas { position: absolute; inset: 0; pointer-events: none; }
.footer__inner { position: relative; max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer h2 { font-size: clamp(2.4rem,6vw,5rem); margin: 0 auto 26px; max-width: 820px; }
.footer .lede { max-width: 460px; margin: 0 auto 38px; font-size: 15px; }
.footer .hint { color: var(--fg-3); font-size: 12px; }
.footer__bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 92px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__bar .brand { display: flex; align-items: center; gap: 10px; }
.footer__bar .brand img { height: 24px; }
.footer__copy { font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-3); transition: color var(--duration-ui) var(--ease-vantum-fluid); }
.footer__links a:hover { color: var(--fg-rose); }

/* ============================================================
   TWEAKS PANEL (vanilla)
   ============================================================ */
#tweaks { position: fixed; right: 20px; bottom: 20px; z-index: 10000; width: 280px;
  background: rgba(20,23,31,0.92); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(244,194,201,0.18); border-radius: 14px; color: var(--fg-1);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5); display: none; font-family: var(--font-sans); cursor: default;
}
#tweaks.is-open { display: block; }
#tweaks .tw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: grab; }
#tweaks .tw-head b { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-rose); font-weight: 600; }
#tweaks .tw-close { background: none; border: 0; color: var(--fg-3); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }
#tweaks .tw-body { padding: 6px 16px 16px; max-height: 70vh; overflow-y: auto; }
#tweaks .tw-sec { font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-3); margin: 16px 0 10px; }
#tweaks .tw-row { margin-bottom: 14px; }
#tweaks .tw-row > label { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.06em; color: var(--fg-2); margin-bottom: 8px; }
#tweaks .tw-row > label .val { color: var(--fg-rose); }
#tweaks input[type=range] { width: 100%; accent-color: var(--color-accent-rose); }
#tweaks .seg { display: flex; gap: 6px; }
#tweaks .seg button { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); color: var(--fg-2);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 4px; cursor: pointer; font-family: var(--font-sans);
  transition: all var(--duration-ui) var(--ease-vantum-fluid); }
#tweaks .seg button.is-on { background: var(--color-accent-rose); color: #14171F; border-color: var(--color-accent-rose); }
#tweaks .swatches { display: flex; gap: 8px; }
#tweaks .swatches button { width: 30px; height: 30px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; padding: 0; }
#tweaks .swatches button.is-on { border-color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  /* premium frosted-glass full-screen overlay menu */
  .nav__brand, .nav__toggle { position: relative; z-index: 3; }
  .nav__menu {
    position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 2;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 4px; padding: 96px clamp(28px, 8vw, 64px) 56px;
    background: rgba(13,16,24,0.66);
    -webkit-backdrop-filter: blur(36px) saturate(150%);
    backdrop-filter: blur(36px) saturate(150%);
    opacity: 0; pointer-events: none; transform: translateY(-10px);
    transition: opacity .42s var(--ease-vantum-fluid), transform .42s var(--ease-vantum-fluid);
    will-change: opacity, transform;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a {
    font-family: var(--font-serif); font-size: clamp(1.7rem, 8vw, 2.6rem);
    font-weight: 400; text-transform: none; letter-spacing: -0.01em; color: var(--fg-1);
    padding: 8px 2px; white-space: nowrap;
    opacity: 0; transform: translateY(16px);
    transition: opacity .55s var(--ease-vantum-fluid), transform .55s var(--ease-vantum-fluid), color .3s;
  }
  .nav__menu a.is-active { color: var(--fg-rose); }
  .nav__menu a.is-active::after { display: none; }
  .nav__menu.is-open a { opacity: 1; transform: none; }
  .nav__menu.is-open a:nth-child(1) { transition-delay: .10s; }
  .nav__menu.is-open a:nth-child(2) { transition-delay: .16s; }
  .nav__menu.is-open a:nth-child(3) { transition-delay: .22s; }
  .nav__menu.is-open a:nth-child(4) { transition-delay: .28s; }
  .nav__menu.is-open a:nth-child(5) { transition-delay: .34s; }
  .nav__links .btn3d { display: none; }
  .nav__toggle { display: block; }
  .nav__toggle span { transition: transform .32s var(--ease-vantum-fluid), opacity .2s ease; transform-origin: center; }
  .nav.is-menu-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.is-menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
body.nav-open { overflow: hidden; }

@media (max-width: 920px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .hero__visual { order: -1; }
  h1, h2 { text-wrap: balance; }
  .lede { text-wrap: pretty; }
}
@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .stat-row { gap: 28px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .footer__bar { justify-content: center; text-align: center; }
  :root { --gutter: 22px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 768px) { html, body { overflow-x: hidden; } }

/* ============================================================
   SERVICES — horizontal scroll track (GSAP ScrollTrigger)
   Vertical scroll intent → horizontal translation while pinned.
   Cards keep the liquid-glass treatment. Mobile falls back to a
   native inertial overflow-x track (see @media below + services init).
   ============================================================ */
.services-pin { position: relative; }
.services-viewport {
  height: 100vh; width: 100%; overflow: hidden;
  display: flex; align-items: center;
}
.services-cards-track {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  align-items: stretch; gap: 28px; padding: 0 8vw;
  will-change: transform; transform: translateZ(0);
}
.svc-intro {
  flex: 0 0 auto; width: min(420px, 82vw);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding-right: 12px;
}
.svc-intro h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; }
.svc-card {
  flex: 0 0 auto; width: min(390px, 82vw);
  display: flex; flex-direction: column; gap: 16px;
  padding: 38px 34px;
}
.svc-card .svc-num {
  font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.12em;
  color: var(--fg-rose); margin-bottom: 2px;
}
.svc-card h3 { margin: 0; }
.svc-card p { margin: 0; flex: 1; }
.svc-progress {
  position: absolute; left: 8vw; right: 8vw; bottom: 8vh; height: 2px;
  background: rgba(255,255,255,0.10); border-radius: 2px; overflow: hidden; z-index: 4;
}
.svc-progress__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, var(--color-accent-rose), var(--color-accent-copper)); }
.svc-hint {
  position: absolute; left: 8vw; bottom: calc(8vh + 16px); z-index: 4;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-3);
}
/* mobile: native inertial horizontal scroll, no pin */
/* mobile: weighted single-column vertical stack (no pin, no horizontal rail) */
@media (max-width: 768px) {
  .services-viewport { height: auto; min-height: 0; overflow: visible; display: block; }
  .services-cards-track {
    flex-direction: column; flex-wrap: nowrap; gap: 18px;
    padding: 8px var(--gutter) 8px; transform: none !important;
  }
  .svc-intro, .svc-card { width: 100%; flex: 0 0 auto; }
  .svc-progress, .svc-hint { display: none; }
}

/* ============================================================
   LIQUID-GLASS — hyper-real refractive lens for cards
   (Method B: SVG feDisplacementMap in backdrop-filter, injected by
   initLiquidGlass(). Genuinely refracts the fixed #global-video-bg.
   Layout / spacing / type on these elements is left untouched.)
   ============================================================ */
.card, .metric {
  position: relative;
  /* faint dusty-rose / champagne tint — crystal clear, never milky */
  background: rgba(220,180,185,0.10);
  /* refraction + clarity; Safari falls back to blur+saturate only */
  -webkit-backdrop-filter: blur(22px) saturate(145%) contrast(100%);
  backdrop-filter: url(#lg-soft) blur(20px) saturate(145%) contrast(100%);
  border: 0.5px solid rgba(255,255,255,0.14);
  /* dual-layer inset → physical glass thickness (top light, base shade) */
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.25),
              inset 0 -1px 3px rgba(0,0,0,0.05),
              0 10px 30px rgba(0,0,0,0.18);
  transition: transform 0.5s var(--ease-vantum-fluid),
              box-shadow 0.5s var(--ease-vantum-fluid),
              background 0.5s var(--ease-vantum-fluid);
  will-change: transform;
  transform: translateZ(0);
  isolation: isolate;
}
/* chameleonic specular border — crisp white/rose at the light source
   (top-left) fading to near-zero (bottom-right). Mask keeps corners round. */
.card::after, .metric::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.7) 0%, rgba(242,178,186,0.35) 26%, rgba(255,255,255,0.04) 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity 0.5s var(--ease-vantum-fluid);
}
/* moving specular sheen that follows the custom cursor */
.card::before, .metric::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 1;
  background: radial-gradient(140px circle at var(--lx,30%) var(--ly,0%),
    rgba(255,255,255,0.18), rgba(255,255,255,0) 60%);
  opacity: 0.7; transition: opacity 0.5s var(--ease-vantum-fluid);
}
.card:hover, .metric:hover:hover {
  background: rgba(232,196,200,0.13);
  /* magnify the lens (stronger displacement) + lift */
  backdrop-filter: url(#lg-strong) blur(22px) saturate(155%) contrast(102%);
  -webkit-backdrop-filter: blur(24px) saturate(155%) contrast(102%);
  transform: translateY(-2px) scale(1.035);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.35),
              inset 0 -1px 4px rgba(0,0,0,0.06),
              0 18px 44px rgba(0,0,0,0.24);
}
.card:hover::before, .metric:hover::before:hover::before { opacity: 1; }
.card:hover::after, .metric:hover::after:hover::after { opacity: 1; }
/* keep card inner content above the glass pseudo-layers */
.card > *, .metric > * > * { position: relative; z-index: 3; }

