/* ============================================================
   DESIGN SYSTEM — TOKENS
   Premium SaaS layout architecture
   ============================================================ */
:root {
  /* Colors */
  --ink-900: #06070a;
  --ink-800: #0b0d12;
  --ink-700: #10121a;
  --ink-600: #161923;
  --ink-500: #1e222e;
  --ink-400: #252a38;
  --stroke:  rgba(255,255,255,0.07);
  --stroke-hi: rgba(255,255,255,0.13);
  --stroke-focus: rgba(240,192,64,0.4);

  --text-primary:   #eceef3;
  --text-secondary: #7e8899;
  --text-tertiary:  #3f4757;

  --gold:      #f0c040;
  --gold-soft: rgba(240,192,64,0.12);
  --gold-glow: rgba(240,192,64,0.18);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-ui:      'Geist', system-ui, -apple-system, sans-serif;

  /* Layout — multi-width container system */
  --w-full:   100%;
  --w-wide:   1440px;   /* hero, full-bleed sections */
  --w-base:   1200px;   /* standard content */
  --w-narrow: 920px;    /* text-heavy sections */
  --w-text:   680px;    /* pure prose */

  /* Spacing scale — 8pt base */
  --s-1:  8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-5:  48px;
  --s-6:  64px;
  --s-7:  96px;
  --s-8:  128px;
  --s-9:  192px;
  --s-10: 256px;

  /* Section vertical rhythm */
  --section-y: clamp(80px, 12vw, 160px);

  /* Nav */
  --nav-h: 64px;

  /* Motion */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* Border radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
}

body.light-theme {
  --ink-900: #f5f7fa;
  --ink-800: #ffffff;
  --ink-700: #f0f2f6;
  --ink-600: #e6e9ef;
  --ink-500: #dfe3ea;

  --text-primary: #0b0d12;
  --text-secondary: #4a5565;
  --text-tertiary: #7a8596;

  --stroke: rgba(0,0,0,0.06);
  --stroke-hi: rgba(0,0,0,0.12);
  --gold: #b7791f;
  --gold-soft: rgba(183,121,31,0.08);
  --gold-glow: rgba(183,121,31,0.15);
}
body.light-theme .display-xl,
body.light-theme .display-lg,
body.light-theme .display-md {
  color: #0b0d12;
}
body.light-theme .text-outline {
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.15);
}
body.light-theme .hero-grid-bg {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
body.light-theme .hero-glow,
body.light-theme .hero-glow-2 {
  display: none;
}
body.light-theme .stat-number {
  color: #0b0d12;
}
body.light-theme .pull-quote p {
  color: rgba(0,0,0,0.35);
}
body.light-theme .mp-title {
  color: #0b0d12;
}
body.light-theme .mp-title {
  color: #0b0d12;
}

body.light-theme .hero-headline {
  color: #0b0d12;
}
body {
  transition: background .4s ease, color .4s ease;
}
/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--ink-900);
  overflow-x: hidden;
}
body {
  font-family: var(--font-ui);
  color: var(--text-primary);
  background: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: none; }
input, textarea { font-family: inherit; }
* { cursor: none !important; }

/* ============================================================
   CURSOR SYSTEM
   ============================================================ */
#cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width .2s var(--ease-expo), height .2s var(--ease-expo),
              opacity .3s, background .2s;
}
#cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(240,192,64,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width .4s var(--ease-expo), height .4s var(--ease-expo),
              border-color .25s, opacity .3s;
}
body.is-hovering #cursor-dot { width: 8px; height: 8px; }
body.is-hovering #cursor-ring {
  width: 48px; height: 48px;
  border-color: rgba(240,192,64,0.55);
}
body.is-clicking #cursor-dot { width: 4px; height: 4px; }
body.is-clicking #cursor-ring { width: 28px; height: 28px; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(240,192,64,0.3) 100%);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10000;
  will-change: transform;
}

/* ============================================================
   GRAIN TEXTURE
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* ============================================================
   LAYOUT SYSTEM
   Multi-width container architecture
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--w-base);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}
.container--wide {
  max-width: var(--w-wide);
  padding-left: clamp(24px, 4vw, 80px);
  padding-right: clamp(24px, 4vw, 80px);
}
.container--narrow {
  max-width: var(--w-narrow);
}
.container--text {
  max-width: var(--w-text);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .6s var(--ease-expo),
              border-color .6s var(--ease-expo);
  border-bottom: 1px solid transparent;
}
#nav.is-scrolled {
  background: rgba(6,7,10,0.88);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: var(--stroke);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.nav-logo {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(.9rem, 1.2vw, 1rem);
  letter-spacing: -.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.nav-logo .dot { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  font-size: .825rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.nav-ctas {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex-shrink: 0;
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 500;
  border-radius: var(--r-md);
  padding: 9px 18px;
  transition: all .22s var(--ease-expo);
  white-space: nowrap;
  line-height: 1;
}
.btn--ghost {
  color: var(--text-secondary);
  border: 1px solid var(--stroke-hi);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--gold);
  color: #0a0700;
  border: 1px solid var(--gold);
  font-weight: 600;
}
.btn--primary:hover {
  background: #f5ce55;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240,192,64,0.25);
}
.btn--primary:active { transform: translateY(0); }

.btn--lg {
  font-size: .95rem;
  padding: 13px 28px;
  border-radius: var(--r-md);
}

.btn-arrow {
  display: inline-block;
  transition: transform .2s var(--ease-expo);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   HAMBURGER & MOBILE DRAWER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--text-secondary);
  transform-origin: center;
  transition: transform .3s var(--ease-expo), opacity .2s, width .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(6,7,10,.97);
  backdrop-filter: blur(32px);
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px clamp(20px, 4vw, 56px);
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease-expo), transform .3s var(--ease-expo);
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.mobile-drawer a {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 16px 0;
  border-bottom: 1px solid var(--stroke);
  width: 100%;
  letter-spacing: -.025em;
  transition: color .2s;
}
.mobile-drawer a:hover { color: var(--text-primary); }
.mobile-drawer .mob-cta {
  margin-top: 32px;
  display: inline-block;
  padding: 14px 28px;
  background: var(--gold);
  color: #0a0700;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--r-md);
  border: none;
  width: auto;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
section { position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--s-3);
}
.section-label::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--text-tertiary);
  flex-shrink: 0;
}

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.5vw, 8rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.04em;
  color: #fff;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  color: #fff;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
}
.serif-italic {
  font-style: italic;
  color: var(--gold);
}
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.18);
  font-style: italic;
}
.body-lg {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}
.body-md {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}
.body-sm {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   HERO SECTION
   Full-viewport, wide container, grid architecture
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Architectural grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--stroke) 1px, transparent 1px),
    linear-gradient(90deg, var(--stroke) 1px, transparent 1px);
  background-size: clamp(60px, 6vw, 100px) clamp(60px, 6vw, 100px);
  mask-image: radial-gradient(ellipse 75% 75% at 60% 20%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 60% 20%, black 0%, transparent 100%);
  will-change: transform;
}

/* Gold vignette radial */
.hero-glow {
  position: absolute;
  width: 900px; height: 700px;
  top: -200px; right: -100px;
  background: radial-gradient(ellipse at center,
    rgba(240,192,64,0.065) 0%,
    rgba(240,192,64,0.02) 40%,
    transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 600px; height: 600px;
  bottom: -100px; left: -200px;
  background: radial-gradient(ellipse at center,
    rgba(100,140,255,0.04) 0%,
    transparent 65%);
  pointer-events: none;
}

/* Hero two-column layout on wide screens */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  background: var(--gold-soft);
  border: 1px solid rgba(240,192,64,0.2);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-4);
  opacity: 0;
}
.hero-badge-pip {
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; color: #0a0800; font-weight: 800;
}

.hero-headline {
  margin-bottom: var(--s-4);
  opacity: 0;
}

.hero-sub {
  max-width: 440px;
  margin-bottom: var(--s-5);
  opacity: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
}

/* Hero right panel — social proof / stat card */
.hero-panel {
  background: var(--ink-700);
  border: 1px solid var(--stroke-hi);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
  opacity: 0;
  will-change: transform;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,192,64,0.35), transparent);
}
.panel-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--s-3);
}
.panel-stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.ps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--ink-600);
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  transition: border-color .2s, background .2s;
}
.ps-row:hover {
  border-color: var(--stroke-hi);
  background: var(--ink-500);
}
.ps-name {
  font-size: .82rem;
  color: var(--text-primary);
  font-weight: 500;
}
.ps-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  font-style: italic;
}
.panel-cta-note {
  font-size: .75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: var(--s-2);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--stroke-hi);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--gold);
  border-radius: 999px;
  animation: scrollWheel 2s var(--ease-smooth) infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.scroll-label {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ============================================================
   STATS BAR
   Full-width, edge-to-edge on large screens
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  position: relative;
  z-index: 2;
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-cell {
  padding: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 56px);
  border-right: 1px solid var(--stroke);
  transition: background .3s;
  position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(255,255,255,0.015); }
.stat-cell::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-expo);
}
.stat-cell:hover::after { transform: scaleX(1); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: #fff;
  line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: 8px;
}
.stat-number .unit { color: var(--gold); font-style: italic; }
.stat-desc {
  font-size: .78rem;
  color: var(--text-tertiary);
  line-height: 1.55;
}

/* ============================================================
   ABOUT / VALUE SECTION
   Wide two-col sticky architecture
   ============================================================ */
.about-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: clamp(60px, 8vw, 140px);
  align-items: start;
}
.about-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.about-sticky .section-label { margin-bottom: var(--s-3); }
.about-sticky .display-md { margin-bottom: var(--s-3); }

.about-body {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: var(--s-2);
}

.pull-quote {
  margin-top: var(--s-5);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--stroke);
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  line-height: 1.3;
  color: rgba(255,255,255,0.5);
  letter-spacing: -.02em;
}
.pull-quote p em { color: var(--gold); font-style: normal; }

/* Feature rows */
.features-list { display: flex; flex-direction: column; }
.feature-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 22px;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--stroke);
  align-items: start;
  transition: border-color .25s;
  cursor: default;
}
.feature-item:first-child { border-top: 1px solid var(--stroke); }
.feature-item:hover { border-bottom-color: var(--stroke-hi); }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--gold-soft);
  border: 1px solid rgba(240,192,64,0.14);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background .25s, border-color .25s, transform .25s var(--ease-expo);
}
.feature-item:hover .feature-icon {
  background: rgba(240,192,64,0.18);
  border-color: rgba(240,192,64,0.3);
  transform: scale(1.06);
}
.feature-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.feature-body {
  font-size: .83rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   PROJECTS SECTION
   Full-width table with edge-to-edge hover states
   ============================================================ */
.projects-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--stroke);
}
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 6vw, 80px);
  gap: var(--s-3);
  flex-wrap: wrap;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.link-arrow:hover {
  color: var(--text-secondary);
  border-color: var(--stroke-hi);
}
.link-arrow:hover .btn-arrow { transform: translateX(4px); }

/* Project rows */
.project-list { display: flex; flex-direction: column; }
.project-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(18px, 2.5vw, 26px) clamp(16px, 2vw, 24px);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .25s, border-color .25s;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.project-row + .project-row { margin-top: 2px; }
.project-row:hover {
  background: rgba(255,255,255,0.025);
  border-color: var(--stroke);
}
.project-row.is-faded {
  opacity: .32;
  pointer-events: none;
}
.proj-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.proj-content {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-width: 0;
}
.proj-text { min-width: 0; }
.proj-name {
  font-size: clamp(.9rem, 1.4vw, 1rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.015em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-sub {
  font-size: .78rem;
  color: var(--text-tertiary);
}
.proj-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.proj-tag {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid var(--stroke-hi);
  color: var(--text-secondary);
  transition: border-color .2s;
}
.project-row:hover .proj-tag { border-color: rgba(255,255,255,0.2); }
.proj-thumb {
  width: 96px; height: 62px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--stroke);
  flex-shrink: 0;
  background: var(--ink-600);
}
.proj-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.65) contrast(1.1);
  transition: filter .6s var(--ease-expo), transform .7s var(--ease-expo);
  will-change: transform;
}
.project-row:hover .proj-thumb img {
  filter: grayscale(0) brightness(.85);
  transform: scale(1.1);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
  position: relative;
}
.marquee-fade-left {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: clamp(60px, 8vw, 120px);
  background: linear-gradient(to right, var(--ink-900), transparent);
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-right {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: clamp(60px, 8vw, 120px);
  background: linear-gradient(to left, var(--ink-900), transparent);
  z-index: 2;
  pointer-events: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeAnim 24s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 52px;
  padding-right: 52px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.marquee-item::after {
  content: "\2726";
  color: var(--gold);
  font-size: .5rem;
  opacity: .7;
}
@keyframes marqueeAnim {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   PROCESS SECTION
   3-col grid with connected numbered steps
   ============================================================ */
.process-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--stroke);
}
.process-head { margin-bottom: clamp(48px, 7vw, 96px); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-800);
}
.process-card {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid var(--stroke);
  transition: background .35s;
  position: relative;
  overflow: hidden;
}
.process-card:last-child { border-right: none; }
.process-card:hover { background: rgba(255,255,255,0.018); }
.process-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease-expo);
}
.process-card:hover::before { transform: scaleX(1); }
.pc-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--text-tertiary);
  line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: var(--s-4);
  transition: color .3s;
}
.process-card:hover .pc-num { color: var(--gold); }
.pc-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -.015em;
}
.pc-body {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.72;
  font-weight: 300;
}

/* ============================================================
   CONTACT SECTION
   Two-col: editorial left + refined form right
   ============================================================ */
.contact-section {
  padding: var(--section-y) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
}
.contact-left .display-md { margin-bottom: var(--s-3); }
.contact-left .body-md { margin-bottom: clamp(32px, 4vw, 48px); }

.contact-meta { display: flex; flex-direction: column; gap: 10px; }
.meta-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--ink-700);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  transition: border-color .2s, background .2s;
}
.meta-card:hover {
  border-color: var(--stroke-hi);
  background: var(--ink-600);
}
.meta-icon {
  width: 30px; height: 30px;
  background: var(--gold-soft);
  border: 1px solid rgba(240,192,64,0.12);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}
.meta-label {
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}
.meta-value {
  font-size: .84rem;
  color: var(--text-secondary);
}

/* Form */
.form-wrap {
  background: var(--ink-700);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.5vw, 48px);
  position: relative;
  overflow: hidden;
}
.form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,192,64,0.3), transparent);
}
.form-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--s-4);
  letter-spacing: -.01em;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.form-field input,
.form-field textarea {
  background: var(--ink-600);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: .875rem;
  color: var(--text-primary);
  outline: none;
  resize: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .25s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-tertiary); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--stroke-focus);
  box-shadow: 0 0 0 3px rgba(240,192,64,0.07);
}
.form-footer {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
  flex-wrap: wrap;
}
.form-note {
  font-size: .72rem;
  color: var(--text-tertiary);
}
.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(52,211,153,0.07);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--r-sm);
  color: #6ee7b7;
  font-size: .85rem;
  margin-top: var(--s-3);
}

/* ============================================================
   FOOTER
   Full-width with proper column layout
   ============================================================ */
footer {
  border-top: 1px solid var(--stroke);
  padding: clamp(28px, 4vw, 44px) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-logo {
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: -.025em;
  color: var(--text-secondary);
}
.footer-logo .dot { color: var(--gold); }
.footer-nav {
  display: flex;
  gap: var(--s-3);
}
.footer-nav a {
  font-size: .78rem;
  color: var(--text-tertiary);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--text-secondary); }
.footer-copy {
  font-size: .72rem;
  color: var(--text-tertiary);
}

/* ============================================================
   REVEAL ANIMATION SYSTEM
   Single unified class, GPU-optimized
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .8s var(--ease-expo),
    transform .9s var(--ease-expo);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity .8s var(--ease-expo),
    transform .9s var(--ease-expo);
  will-change: opacity, transform;
}
.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}
/* Stagger delays */
.reveal[data-delay="1"], .reveal-left[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"], .reveal-left[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"], .reveal-left[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"], .reveal-left[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"], .reveal-left[data-delay="5"] { transition-delay: 400ms; }

/*dark-lite button style */

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--stroke-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: transparent;
  transition: background .2s, border-color .2s, transform .2s;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .about-sticky { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-ctas .btn--ghost { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer { display: flex; }
  .process-grid { grid-template-columns: 1fr; border-radius: var(--r-md); }
  .process-card { border-right: none; border-bottom: 1px solid var(--stroke); }
  .process-card:last-child { border-bottom: none; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(3) { grid-column: 1 / -1; border-right: none; border-top: 1px solid var(--stroke); }
  .project-row { grid-template-columns: 48px 1fr; }
  .proj-tags, .proj-thumb { display: none; }
}
@media (max-width: 600px) {
  :root { --section-y: clamp(64px, 10vw, 100px); }
  .stats-bar-inner { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--stroke); }
  .stat-cell:last-child { border-bottom: none; }
  .stat-cell:nth-child(3) { border-top: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-nav { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
}