/* ==========================================================================
   The Adeptai Agency — styles.css
   Design language: "White Glove Treatment For Black Box Technology"
   Noir surfaces, ivory type, champagne accents, hairline borders.
   Fonts: Space Grotesk (display) · Italianno (accent script)
          Fira Sans (body) · JetBrains Mono (labels/numbers)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0c;
  --bg-2: #0d0d11;
  --bg-3: #121218;
  --line: rgba(240, 235, 224, 0.08);
  --line-strong: rgba(240, 235, 224, 0.16);
  --text: #f2efe7;
  --text-dim: #a8a296;
  --text-faint: #716c61;
  --gold: #c9a876;
  --gold-bright: #e8cfa0;
  --gold-dim: rgba(201, 168, 118, 0.32);
  --gold-glow: rgba(201, 168, 118, 0.12);
  --indigo-glow: rgba(99, 108, 255, 0.07);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Italianno", "Snell Roundhand", "Brush Script MT", cursive;
  --font-body: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul[class],
ol[class] {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: #0a0a0c;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 3000;
  background: var(--gold);
  color: #0a0a0c;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display-xl {
  font-size: clamp(2.7rem, 6.2vw, 4.7rem);
}

.display-lg {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.display-md {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

/* Script accent words inside headlines (Italianno runs small — compensate) */
.serif {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--gold-bright);
  font-size: 1.32em;
  line-height: 0.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.lede {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.75;
  max-width: 62ch;
  text-wrap: pretty;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.8rem, 5vw, 4.2rem);
}

.section-head h2 {
  margin-bottom: 1.1rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}

.section-tint {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.014) 18%, rgba(255, 255, 255, 0.014) 82%, transparent);
}

.hr-top {
  border-top: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: var(--text);
  color: #0a0a0c;
  border: 1px solid var(--text);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -12px rgba(201, 168, 118, 0.45);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(240, 235, 224, 0.04);
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: none;
}

.btn-sm {
  padding: 0.62rem 1.25rem;
  font-size: 0.88rem;
}

.text-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s, gap 0.3s var(--ease);
}

.text-link:hover {
  color: var(--gold-bright);
  gap: 0.8rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.footer-brand .logo-img {
  height: 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.logo .ai {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1.6em;
  line-height: 0.6;
  color: var(--gold-bright);
  margin-left: 3px;
}

.logo .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: 5px;
  align-self: center;
  translate: 0 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-links > li {
  position: relative;
}

.nav-links a,
.nav-links .sub-toggle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0;
}

.nav-links a:hover,
.nav-links .sub-toggle:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
}

.sub-toggle .caret {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}

.has-sub .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: rgba(14, 14, 18, 0.92);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.has-sub:hover .caret,
.has-sub.open .caret {
  transform: rotate(-135deg) translateY(-2px);
}

.sub-menu a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  transition: background 0.25s;
}

.sub-menu a:hover {
  background: rgba(240, 235, 224, 0.05);
}

.sub-menu a strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
}

.sub-menu a span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 2px;
  font-weight: 400;
}

.sub-menu .sub-all {
  border-top: 1px solid var(--line);
  margin-top: 0.35rem;
}

.sub-menu .sub-all strong {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-cta {
  display: inline-flex;
}

/* Hamburger */
.nav-toggle {
  display: none;
  z-index: 1200;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(8, 8, 10, 0.92);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 1.5rem) 2rem 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}

body.nav-open .mobile-nav {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  padding: 0.55rem 0;
  display: block;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), color 0.3s;
  transition-delay: var(--d, 0s);
}

.mobile-nav nav a:hover,
.mobile-nav nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.mobile-nav nav a.sub {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.42rem 0 0.42rem 1.2rem;
  border-left: 1px solid var(--line-strong);
  margin-left: 0.3rem;
}

body.nav-open .mobile-nav nav a {
  opacity: 1;
  transform: none;
}

.mobile-nav-foot {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-top: 2rem;
}

.mobile-nav-foot .mono-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .glow-gold {
  position: absolute;
  width: 900px;
  height: 900px;
  top: -320px;
  left: -240px;
  background: radial-gradient(circle, var(--gold-glow), transparent 62%);
  filter: blur(10px);
}

.hero-bg .glow-indigo {
  position: absolute;
  width: 800px;
  height: 800px;
  bottom: -380px;
  right: -220px;
  background: radial-gradient(circle, var(--indigo-glow), transparent 60%);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(240, 235, 224, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 235, 224, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 25%, transparent 72%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy h1 {
  margin-bottom: 1.6rem;
}

.hero-copy .lede {
  margin-bottom: 2.4rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.hero-note .sep {
  color: var(--gold-dim);
  margin-inline: 0.55rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: dropline 2.2s var(--ease) infinite;
}

@keyframes dropline {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  45% {
    transform: scaleY(1);
    transform-origin: top;
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---------- The black box (3D cube) ---------- */
.scene {
  perspective: 1200px;
  display: grid;
  place-items: center;
  min-height: 480px;
  position: relative;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(201, 168, 118, 0.16);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}

.orbit-1 {
  width: 470px;
  height: 470px;
}

.orbit-2 {
  width: 590px;
  height: 590px;
  animation-duration: 44s;
  animation-direction: reverse;
  border-color: rgba(240, 235, 224, 0.07);
}

.orbit::before {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 14px 3px rgba(201, 168, 118, 0.5);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tilt {
  transform-style: preserve-3d;
  transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform 0.45s ease-out;
}

.floaty {
  animation: floaty 7s ease-in-out infinite alternate;
  transform-style: preserve-3d;
}

@keyframes floaty {
  from {
    transform: translateY(-12px);
  }

  to {
    transform: translateY(12px);
  }
}

.cube {
  --s: 300px;
  width: var(--s);
  height: var(--s);
  position: relative;
  transform-style: preserve-3d;
  animation: cubespin 42s linear infinite;
}

@keyframes cubespin {
  from {
    transform: rotateX(-18deg) rotateY(0deg);
  }

  to {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}

.face {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(242, 239, 231, 0.055), rgba(242, 239, 231, 0.012) 52%, rgba(201, 168, 118, 0.07));
  border: 1px solid rgba(201, 168, 118, 0.3);
  box-shadow: inset 0 0 70px rgba(201, 168, 118, 0.06);
  display: grid;
  place-items: center;
}

.face-front {
  transform: translateZ(calc(var(--s) / 2));
}

.face-back {
  transform: rotateY(180deg) translateZ(calc(var(--s) / 2));
}

.face-right {
  transform: rotateY(90deg) translateZ(calc(var(--s) / 2));
}

.face-left {
  transform: rotateY(-90deg) translateZ(calc(var(--s) / 2));
}

.face-top {
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
}

.face-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--s) / 2));
}

.face-front::after,
.face-back::after {
  content: "ai";
  font-family: var(--font-serif);
  font-style: normal;
  font-size: calc(var(--s) * 0.42);
  color: rgba(232, 207, 160, 0.85);
  text-shadow: 0 0 44px rgba(201, 168, 118, 0.45);
}

.cube-shadow {
  position: absolute;
  bottom: 12%;
  width: 46%;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 168, 118, 0.22), transparent 70%);
  filter: blur(16px);
  animation: shadowpulse 7s ease-in-out infinite alternate;
}

@keyframes shadowpulse {
  from {
    transform: scale(1.06);
    opacity: 0.9;
  }

  to {
    transform: scale(0.88);
    opacity: 0.55;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.05rem;
  -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;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee-track .diamond {
  color: var(--gold);
  font-size: 0.55rem;
  letter-spacing: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Stats (the honest ones) ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line-strong);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.stat-num em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  color: var(--gold-bright);
}

.stat-label {
  color: var(--text-faint);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 24ch;
}

/* ---------- Split (sticky) layout ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.sticky-col {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.prose p + p {
  margin-top: 1.25rem;
}

.prose p {
  color: var(--text-dim);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 3px;
  transition: color 0.25s, text-decoration-color 0.25s;
}

.prose a:hover {
  color: var(--gold-bright);
  text-decoration-color: var(--gold-bright);
}

.pullquote {
  margin-top: 2.2rem;
  padding: 1.8rem 2rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(201, 168, 118, 0.07), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--text);
}

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.004));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, -20%), rgba(201, 168, 118, 0.09), transparent 42%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-dim);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  border: 1px solid var(--gold-dim);
  background: rgba(201, 168, 118, 0.06);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.97rem;
  flex-grow: 1;
}

.card .text-link {
  margin-top: 1.6rem;
}

.card-num {
  position: absolute;
  top: 1.6rem;
  right: 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chips li a,
.chips li span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.chips li a:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201, 168, 118, 0.05);
}

.chips-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
}

.step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: -4.5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 12px rgba(201, 168, 118, 0.45);
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2.7rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 118, 0.45);
  margin-bottom: 1.1rem;
}

.step h3 {
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}

.step h3 .serif {
  font-size: 1.4em;
}

.step p {
  color: var(--text-dim);
  font-size: 0.93rem;
}

/* ---------- Hairline tile grid (why us) ---------- */
.lined-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tile {
  background: var(--bg);
  padding: 2.2rem 2rem;
  transition: background 0.4s;
}

.tile:hover {
  background: var(--bg-2);
}

.tile .tile-idx {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

.tile h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
}

.tile p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Industries ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem 2.4rem;
}

.industry {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.industry .idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 0.7rem;
}

.industry h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.industry p {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.6rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.3s;
}

.faq-q:hover {
  color: var(--gold-bright);
}

.faq-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--gold);
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--gold);
  background: rgba(201, 168, 118, 0.08);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a-inner p {
  color: var(--text-dim);
  padding: 0 3.5rem 1.7rem 0.2rem;
  max-width: 68ch;
}

.faq-a-inner p + p {
  margin-top: -0.7rem;
  padding-top: 0;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

/* ---------- CTA band ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: clamp(3.2rem, 7vw, 5.8rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  background: radial-gradient(1100px 480px at 50% -15%, rgba(201, 168, 118, 0.13), transparent 62%), var(--bg-2);
}

.cta-panel .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 65% 90% at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 65% 90% at 50% 0%, #000 20%, transparent 70%);
}

.cta-panel h2 {
  margin-bottom: 1.2rem;
  position: relative;
}

.cta-panel .lede {
  margin: 0 auto 2.4rem;
  position: relative;
}

.cta-panel .hero-ctas {
  justify-content: center;
  margin-bottom: 0;
  position: relative;
}

.cta-note {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  position: relative;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.page-hero .hero-bg .glow-gold {
  top: -460px;
  left: 50%;
  transform: translateX(-50%);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--text-faint);
  transition: color 0.25s;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs .sep {
  color: var(--gold-dim);
}

.breadcrumbs [aria-current] {
  color: var(--text-dim);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  margin-bottom: 1.4rem;
  max-width: 20ch;
}

.page-hero .lede {
  margin-bottom: 2.2rem;
}

/* ---------- Service detail lists ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.4s;
}

.svc:hover {
  background: var(--bg-2);
}

.svc h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.svc p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* Outcome / deliverable rows */
.rows {
  border-top: 1px solid var(--line);
}

.rows > li {
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr;
  gap: 1.6rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.rows .idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.rows h3 {
  font-size: 1.15rem;
}

.rows p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo {
  margin-bottom: 1.2rem;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.92rem;
  max-width: 34ch;
  margin-bottom: 1.4rem;
}

.footer-brand .email {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer-brand .email:hover {
  color: var(--gold-bright);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.3rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.94rem;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-col p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.75;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.footer-bottom .tagline {
  color: var(--gold-dim);
}

/* ---------- 404 ---------- */
.error-hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 14vw, 9rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 168, 118, 0.5);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--text);
  background: rgba(240, 235, 224, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.85rem 1.05rem;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a876' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201, 168, 118, 0.045);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 0.4rem;
}

.form-foot .micro {
  font-size: 0.8rem;
  color: var(--text-faint);
  max-width: 40ch;
}

/* ---------- Audit modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.4s;
}

.modal-panel {
  position: relative;
  width: min(600px, 100%);
  max-height: min(88svh, 780px);
  overflow-y: auto;
  background: rgba(13, 13, 17, 0.82);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  border: 1px solid var(--gold-dim);
  border-radius: 26px;
  padding: clamp(1.7rem, 4vw, 2.6rem);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.modal.open .modal-panel {
  transform: none;
  opacity: 1;
}

.modal.open .modal-backdrop {
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

.modal-close:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.modal-lede {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin: 0.8rem 0 1.6rem;
  max-width: 52ch;
}

body.modal-open {
  overflow: hidden;
}

.form-status {
  grid-column: 1 / -1;
  font-size: 0.86rem;
  color: #d99a84;
}

/* ---------- Cookie consent bar ---------- */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translate(-50%, 120%);
  z-index: 1400;
  width: min(700px, calc(100% - 2rem));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  padding: 1rem 1.3rem;
  background: rgba(13, 13, 17, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.cookie-bar.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cookie-bar p {
  font-size: 0.86rem;
  color: var(--text-dim);
  max-width: 46ch;
}

.cookie-bar a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar a:hover {
  color: var(--gold-bright);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex: none;
}

.form-success {
  grid-column: 1 / -1;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 1.2rem 0;
}

.form-success strong {
  color: var(--gold-bright);
}

/* ---------- Slim CTA strip ---------- */
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(201, 168, 118, 0.07), transparent 65%);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2rem 2.4rem;
}

.cta-strip h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.45rem;
}

.cta-strip p {
  color: var(--text-dim);
  max-width: 52ch;
}

.cta-strip .btn {
  flex: none;
}

/* ---------- Articles ---------- */
.article-list {
  border-top: 1px solid var(--line);
}

.article-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1rem 2.5rem;
  padding: 2.1rem 0.4rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.3s;
}

.article-item:hover {
  background: rgba(255, 255, 255, 0.015);
}

.article-item .date {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-item h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  margin-bottom: 0.5rem;
}

.article-item h2 a {
  color: var(--text);
  transition: color 0.3s;
}

.article-item h2 a:hover {
  color: var(--gold-bright);
}

.article-item .excerpt {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 64ch;
}

.article-item .read {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
  text-transform: uppercase;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2.6rem;
}

.article-meta .d {
  color: var(--gold-dim);
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  margin: 2.7rem 0 1rem;
}

.article-body h3 {
  font-size: 1.16rem;
  margin: 2rem 0 0.7rem;
}

.article-body p {
  color: var(--text-dim);
  margin-bottom: 1.15rem;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  color: var(--text-dim);
  margin: 0 0 1.2rem 1.35rem;
}

.article-body li {
  margin-bottom: 0.55rem;
}

.article-body li::marker {
  color: var(--gold);
}

.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 3px;
  transition: color 0.25s;
}

.article-body a:hover {
  color: var(--gold-bright);
}

@media (max-width: 780px) {
  .article-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .cta-strip {
    padding: 1.6rem 1.5rem;
  }
}

/* ---------- Reveal animations ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

html.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Utility ---------- */
.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mt-4 {
  margin-top: 4rem;
}

.center {
  text-align: center;
}

.gold {
  color: var(--gold-bright);
}

.mono-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .scene {
    min-height: 400px;
    order: -1;
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 5.5rem);
    padding-bottom: 6rem;
  }

    .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.6rem 2.2rem;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lined-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .sticky-col {
    position: static;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 0.98rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem 1.4rem;
  }

  .cards-grid,
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.4rem;
  }

  .lined-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .rows > li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .faq-a-inner p {
    padding-right: 0.5rem;
  }

  .cube {
    --s: 210px;
  }

  .orbit-1 {
    width: 320px;
    height: 320px;
  }

  .orbit-2 {
    width: 400px;
    height: 400px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
