/* =====================================================================
   Tizuvo 3D MotionView — Spatial Luxury Design System (v1)
   Obsidian Glass · Champagne Gold · WebGL Camera Choreography · 3D Tilt
   ===================================================================== */
:root {
  --bg: #06070A;
  --bg-elev: rgba(13, 15, 22, 0.62);
  --glass: rgba(16, 19, 27, 0.56);
  --glass-strong: rgba(12, 14, 20, 0.80);
  --line: rgba(226, 230, 240, 0.11);
  --line-2: rgba(226, 230, 240, 0.20);
  --line-gold: rgba(226, 194, 144, 0.42);

  --text: #F7F4EE;
  --text-2: #D8DCE5;
  --muted: #9FA7B8;

  --gold: #C8A97E;
  --gold-2: #E6C895;
  --gold-3: #F8E5BF;
  --gold-soft: rgba(226, 194, 144, 0.13);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --max: 1220px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

@media (min-width: 960px) {
  :root { --header-h: 78px; }
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  color-scheme: dark;
  overflow-x: clip;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }

::selection { background: rgba(230, 200, 149, 0.36); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.2rem;
  background: var(--gold-2);
  color: #08090C;
  font-weight: 600;
  border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

.text-link {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #121520 0%, #06070A 72%);
  transition: opacity 0.65s var(--ease), visibility 0s linear 0.65s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
}
.preloader-mark {
  filter: drop-shadow(0 0 28px rgba(230, 200, 149, 0.35));
  animation: pulseMark 1.6s ease-in-out infinite;
}
@keyframes pulseMark {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}
.preloader-bar {
  width: 180px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.preloader-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-3));
  transform-origin: left;
  transform: scaleX(0.18);
  transition: transform 0.45s var(--ease);
}
.preloader-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ---------- Fixed 3D WebGL Stage ---------- */
.stage-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.motion-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
body.inspect-mode .stage-wrap {
  pointer-events: auto;
  cursor: grab;
}
body.inspect-mode .stage-wrap:active {
  cursor: grabbing;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, transparent 35%, rgba(6, 7, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.35) 0%, transparent 18%, transparent 82%, rgba(6, 7, 10, 0.65) 100%);
}
.stage-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(to right, rgba(226, 230, 240, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 230, 240, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 10%, transparent 78%);
}

/* Foreground content sits cleanly above WebGL */
.motion-content,
.site-footer {
  position: relative;
  z-index: 2;
  transition: opacity 0.55s var(--ease), transform 0.65s var(--ease), filter 0.55s var(--ease);
}

/* Inspect Mode hides foreground UI smoothly so 3D sculpture takes full stage */
body.inspect-mode {
  overflow: hidden;
}
body.inspect-mode .motion-content,
body.inspect-mode .site-footer,
body.inspect-mode .site-header,
body.inspect-mode .chapter-rail {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  filter: blur(8px);
}

/* ---------- 3D Inspect HUD ---------- */
.inspect-hud {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
@media (min-width: 768px) { .inspect-hud { padding: 1.75rem 2.25rem; } }
.inspect-hud[hidden] { display: none; }
body.inspect-mode .inspect-hud { opacity: 1; }

.inspect-top,
.inspect-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}
.inspect-top > *,
.inspect-bottom > * {
  pointer-events: auto;
}

.inspect-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  background: var(--glass-strong);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.inspect-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--glass-strong);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.inspect-group-label {
  padding: 0 0.65rem 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.inspect-pill {
  min-height: 36px;
  padding: 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.inspect-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.inspect-pill.is-active {
  color: #090A0D;
  background: linear-gradient(180deg, var(--gold-3), var(--gold));
  font-weight: 600;
}

.inspect-telemetry {
  display: none;
  align-items: center;
  gap: 1.1rem;
  padding: 0.55rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}
.inspect-telemetry b { color: var(--gold-2); font-weight: 500; }
@media (min-width: 900px) { .inspect-telemetry { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.28s var(--ease), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.28s ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.86rem; }
.btn-lg { min-height: 54px; padding: 0 1.7rem; font-size: 0.98rem; }
.btn-block { width: 100%; }

.btn-primary {
  color: #090A0D;
  background: linear-gradient(180deg, var(--gold-3) 0%, var(--gold-2) 45%, var(--gold) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 36px -12px rgba(230, 200, 149, 0.65);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 20px 46px -12px rgba(230, 200, 149, 0.85);
}

.btn-ghost {
  color: var(--text);
  background: rgba(16, 19, 27, 0.55);
  border-color: var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  border-color: var(--line-gold);
  color: var(--gold-2);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.btn-subtle {
  color: var(--gold-2);
  background: rgba(226, 194, 144, 0.08);
  border-color: rgba(226, 194, 144, 0.28);
  backdrop-filter: blur(12px);
}
.btn-subtle:hover {
  background: rgba(226, 194, 144, 0.16);
  border-color: var(--gold-2);
  transform: translateY(-1px);
}

.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, opacity 0.45s ease;
}
.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: saturate(150%) blur(20px);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  flex-shrink: 0;
}
.brand-logo { width: 120px; height: auto; }
@media (min-width: 640px) { .brand-logo { width: 140px; } }
.brand-tag {
  padding: 0.16rem 0.48rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #090A0D;
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
  border-radius: 6px;
}

.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.header-cta { display: none; }
.classic-link {
  display: none;
  align-items: center;
  min-height: 40px;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.classic-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1120px) { .classic-link { display: inline-flex; } }

.btn-3d-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  background: rgba(226, 194, 144, 0.09);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.btn-3d-toggle:hover {
  background: rgba(226, 194, 144, 0.18);
  box-shadow: 0 0 24px -4px rgba(230, 200, 149, 0.45);
  transform: translateY(-1px);
}
.btn-3d-toggle span { display: none; }
@media (min-width: 480px) { .btn-3d-toggle span { display: inline; } }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), background-color 0.25s ease;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--line-gold); background: var(--gold-soft); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: var(--gold-2); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* Mobile Nav Panel */
.primary-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(6, 7, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.primary-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.nav-list { display: flex; flex-direction: column; }
.nav-list li { border-bottom: 1px solid var(--line); }
.nav-link {
  display: flex;
  align-items: center;
  min-height: 58px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  transition: color 0.2s ease, padding-left 0.3s var(--ease);
}
.nav-link:hover { color: var(--gold-2); padding-left: 0.35rem; }
.nav-mobile-foot { display: grid; gap: 0.65rem; justify-items: center; }
.nav-classic { font-size: 0.9rem; color: var(--text-2); padding: 0.4rem; }
.nav-mail { font-family: var(--mono); font-size: 0.85rem; color: var(--gold-2); }

@media (max-width: 959px) {
  body.nav-open { overflow: hidden; }
}

@media (min-width: 960px) {
  .nav-toggle, .nav-mobile-foot { display: none; }
  .primary-nav {
    position: static;
    height: auto;
    padding: 4px;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(14, 17, 25, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-list { flex-direction: row; gap: 2px; }
  .nav-list li { border: 0; }
  .nav-link {
    min-height: 40px;
    padding: 0 0.95rem;
    font-size: 0.87rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-2);
    border-radius: 999px;
  }
  .nav-link:hover {
    padding-left: 0.95rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
  }
}

/* ---------- Spatial Chapter Rail ---------- */
.chapter-rail {
  display: none;
}
@media (min-width: 1280px) {
  .chapter-rail {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    transition: opacity 0.45s ease;
  }
  .rail-track {
    position: absolute;
    right: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    overflow: hidden;
  }
  .rail-progress {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-3), var(--gold));
    transform-origin: top;
    transform: scaleY(0);
  }
  .rail-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .rail-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.15rem 0;
  }
  .rail-dot::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #141822;
    border: 1.5px solid rgba(226, 230, 240, 0.35);
    transition: transform 0.3s var(--ease), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .rail-dot span {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease), color 0.25s ease;
    pointer-events: none;
    white-space: nowrap;
  }
  .rail-dot:hover span,
  .rail-dot.is-active span {
    opacity: 1;
    transform: none;
  }
  .rail-dot.is-active span { color: var(--gold-2); }
  .rail-dot.is-active::after {
    background: var(--gold-2);
    border-color: var(--gold-3);
    transform: scale(1.25);
    box-shadow: 0 0 14px rgba(230, 200, 149, 0.8);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding: 0.42rem 0.95rem 0.42rem 0.72rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--text-2);
  background: rgba(16, 19, 27, 0.65);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7EE2A8;
  flex-shrink: 0;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #7EE2A8;
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  from { opacity: 0.85; transform: scale(0.6); }
  to { opacity: 0; transform: scale(1.9); }
}

.hero-title {
  max-width: 15ch;
  color: var(--text);
  font-size: clamp(2.45rem, 6.8vw, 4.9rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}
.hl-gold {
  background: linear-gradient(110deg, var(--gold-3) 0%, var(--gold-2) 48%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 48ch;
  margin-top: 1.35rem;
  color: var(--text-2);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.65;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 460px;
  margin-top: 2.25rem;
  padding: 1.15rem 1.25rem;
  background: rgba(12, 15, 22, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
}
.hero-trust li { display: grid; gap: 0.1rem; }
.hero-trust li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.hero-trust strong {
  color: var(--gold-2);
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero-trust span { font-size: 0.76rem; color: var(--muted); }

/* Right Hero Framing over the live 3D Sculpture */
.hero-stage-frame {
  position: relative;
  min-height: 320px;
  display: none;
}
@media (min-width: 1024px) {
  .hero-stage-frame {
    display: block;
    min-height: 460px;
  }
}

.hud-card {
  position: absolute;
  left: -4%;
  bottom: 4%;
  width: 225px;
  padding: 1.1rem 1.2rem;
  background: rgba(12, 15, 22, 0.68);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hud-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 10px var(--gold-2);
}
.hud-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hud-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  line-height: 1.9;
  color: var(--text-2);
}
.hud-row b { color: var(--gold-2); font-weight: 600; }
.hud-bar {
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.hud-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-3));
  transform-origin: left;
  animation: fillBar 2s 0.5s var(--ease) both;
}
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.orbit-tags .otag {
  position: absolute;
  padding: 0.42rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(14, 17, 25, 0.65);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  animation: floatTag 6.5s ease-in-out infinite;
}
.otag-1 { top: 4%; left: 10%; }
.otag-2 { top: 18%; right: 2%; animation-delay: -2s; color: var(--gold-2); border-color: var(--line-gold); }
.otag-3 { bottom: 26%; right: 4%; animation-delay: -4s; }
.otag-4 { bottom: 2%; right: 24%; animation-delay: -1.2s; }
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--gold-2));
  animation: cuePulse 2.2s ease-in-out infinite;
}
@keyframes cuePulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
.scroll-cue-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 0;
  border-block: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.68);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex-shrink: 0; }
.marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  font-size: clamp(0.98rem, 1.9vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee-list li::after {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold-2);
  box-shadow: 0 0 10px rgba(230, 200, 149, 0.7);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 5.5rem 0;
}
@media (min-width: 768px) { .section { padding: 7.5rem 0; } }

.section-head { max-width: 680px; margin-bottom: 3rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 3.75rem; } }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.05rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 1.55rem;
  padding: 0 0.45rem;
  border: 1px solid var(--line-gold);
  background: var(--gold-soft);
  border-radius: 999px;
  font-size: 0.68rem;
}

.section-title {
  color: var(--text);
  font-size: clamp(1.95rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.65);
}
.section-sub {
  max-width: 56ch;
  margin-top: 1.1rem;
  color: var(--text-2);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

/* ---------- 3D Tilt & Specular Spotlight System ---------- */
.tilt-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.4s ease, opacity 0.85s var(--ease);
  will-change: transform;
}
.tilt-card:hover {
  border-color: var(--line-gold);
  box-shadow: 0 32px 70px -24px rgba(0, 0, 0, 0.85), 0 0 38px -18px rgba(230, 200, 149, 0.35);
}
.card-depth {
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateZ(18px);
}

.spot {
  position: relative;
  overflow: hidden;
}
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(230, 200, 149, 0.14), transparent 46%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }

/* ---------- Scroll Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: perspective(1100px) translate3d(0, 32px, -24px) rotateX(4deg);
  transition: opacity 0.9s var(--ease), transform 0.95s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* ---------- Audit Deck ---------- */
.audit-deck {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(20, 23, 33, 0.72), rgba(12, 14, 20, 0.78));
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -28px rgba(0, 0, 0, 0.85);
}
@media (min-width: 768px) { .audit-deck { padding: 2.5rem 2.75rem; } }
@media (min-width: 960px) {
  .audit-deck {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.5rem;
  }
}
.audit-title {
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.audit-sub { margin-top: 0.65rem; color: var(--muted); }
.audit-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 560px) { .audit-form { flex-direction: row; } }
.audit-input {
  flex: 1;
  min-height: 54px;
  padding: 0 1.25rem;
  color: var(--text);
  background: rgba(6, 7, 10, 0.72);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.audit-input:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(230, 200, 149, 0.16);
}

/* ---------- Services Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
}
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-lg { grid-column: span 2; }
}
@media (min-width: 720px) { .card-wide { grid-column: 1 / -1; } }

.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: linear-gradient(165deg, rgba(20, 24, 34, 0.66), rgba(11, 13, 19, 0.62));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
@media (min-width: 640px) { .card { padding: 2.1rem; } }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--gold-2);
  background: var(--gold-soft);
  border: 1px solid var(--line-gold);
  border-radius: 15px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}
.card:hover .card-icon {
  transform: translateY(-2px) rotate(-6deg) scale(1.06);
  box-shadow: 0 0 28px -4px rgba(230, 200, 149, 0.55);
}
.card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.card-title {
  color: var(--text);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
}
.card-lg .card-title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.card-text { margin-top: 0.75rem; color: var(--muted); font-size: 0.96rem; }
.card-lg .card-text { max-width: 54ch; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
.tags li {
  padding: 0.3rem 0.72rem;
  font-size: 0.76rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.code-strip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  background: rgba(6, 7, 10, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.cs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
.code-strip code {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.code-strip b { color: var(--gold-2); font-weight: 600; }

.card-wide {
  flex-direction: column;
  gap: 1.5rem;
  background:
    radial-gradient(620px circle at 100% 0%, rgba(230, 200, 149, 0.16), transparent 56%),
    linear-gradient(165deg, rgba(20, 24, 34, 0.74), rgba(11, 13, 19, 0.68));
  border-color: var(--line-gold);
}
@media (min-width: 820px) {
  .card-wide {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.card-wide .card-num { display: block; margin-bottom: 0.7rem; color: var(--gold-2); }
.card-wide .card-title { font-size: clamp(1.38rem, 2.5vw, 1.9rem); max-width: 28ch; }

/* ---------- Impact Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem; } }

.stat-pod {
  padding: 2rem 1.5rem;
  background: linear-gradient(165deg, rgba(18, 22, 31, 0.68), rgba(10, 12, 18, 0.62));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
}
.stat-num {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--text) 10%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num small { font-size: 0.56em; color: var(--gold-2); }
.stat-label { margin-top: 0.85rem; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* ---------- Process Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
}
@media (min-width: 720px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.step {
  padding: 1.85rem;
  background: linear-gradient(165deg, rgba(18, 22, 31, 0.66), rgba(10, 12, 18, 0.60));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.35rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-2);
  background: var(--gold-soft);
  border: 1px solid var(--line-gold);
  border-radius: 12px;
}
.step-title {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step-text { margin-top: 0.65rem; font-size: 0.94rem; color: var(--muted); }

/* ---------- Standards ---------- */
.standards-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .standards-wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 3.5rem;
  }
  .sticky-head { position: sticky; top: calc(var(--header-h) + 2.5rem); margin-bottom: 0; }
}
.standards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
}
@media (min-width: 640px) { .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.standard {
  padding: 1.85rem;
  background: linear-gradient(165deg, rgba(18, 22, 31, 0.68), rgba(10, 12, 18, 0.62));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
}
.standard-code {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.standard-title {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.standard-text { margin-top: 0.6rem; font-size: 0.93rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: start; }
}
.faq-list { display: grid; gap: 0.85rem; }
.faq-item {
  background: rgba(14, 17, 25, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease;
}
.faq-item[open] { border-color: var(--line-gold); }
.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.45rem;
  font-size: 1.04rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--gold-2);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.45rem 1.35rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 3.5rem; }
}
.contact-title {
  color: var(--text);
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.direct-card {
  margin-top: 2rem;
  padding: 1.6rem;
  background: rgba(14, 17, 25, 0.68);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
}
.mini-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.direct-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.direct-email {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--gold-2);
}
.btn-copy {
  min-height: 36px;
  padding: 0 0.95rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
}
.btn-copy:hover { border-color: var(--line-gold); color: var(--gold-2); }
.copy-status { min-height: 1.2rem; margin-top: 0.45rem; font-size: 0.82rem; color: var(--gold-2); }
.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0 0.95rem;
  font-size: 0.86rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.social-pill:hover { border-color: var(--line-gold); color: var(--gold-2); }

.contact-form {
  display: grid;
  gap: 1.15rem;
  padding: 1.85rem;
  background: linear-gradient(165deg, rgba(18, 22, 31, 0.74), rgba(10, 12, 18, 0.70));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(22px);
}
@media (min-width: 640px) { .contact-form { padding: 2.25rem; } }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.45rem; }
.field-label { font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
.field-input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--text);
  background: rgba(6, 7, 10, 0.72);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field-input:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(230, 200, 149, 0.14);
}
.field-select { cursor: pointer; }
.field-textarea { resize: vertical; min-height: 120px; }
.form-status { min-height: 1.3rem; font-size: 0.88rem; color: var(--muted); }
.form-status.is-error { color: #FF8F8F; }
.form-status.is-success { color: #7EE2A8; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 5rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.45), rgba(6, 7, 10, 0.94) 30%);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; }
}
.footer-logo { width: 148px; }
.footer-tagline { margin-top: 1.1rem; max-width: 34ch; font-size: 0.94rem; color: var(--muted); }
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-2);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-col-title {
  margin-bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.footer-col-list { display: grid; gap: 0.5rem; }
.footer-link { font-size: 0.92rem; color: var(--muted); transition: color 0.2s ease; }
.footer-link:hover { color: var(--gold-2); }
.footer-link-strong { color: var(--text); font-weight: 500; }

.footer-word {
  width: 100%;
  margin: 3.5rem 0 2rem;
  opacity: 0.12;
  pointer-events: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preloader { display: none; }
  .marquee-track, .pulse::after, .otag, .scroll-cue-line { animation: none; }
  .tilt-card { transform: none !important; }
}
