/* ============================================================
   EXAR GLOBAL SOLUTIONS — Website
   Design tokens + two visual directions + section styles
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img { max-width: 100%; display: block; -webkit-user-drag: none; user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: color-mix(in oklch, var(--cyan) 35%, transparent); color: var(--ink); }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* accent pair — overridden by [data-accent] */
  --blue: #2E6BFF;
  --blue-deep: #1A3FB8;
  --cyan: #00E5FF;
  --violet: #8A2BE2;   /* Archarya only */

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- accent variants ---- */
[data-accent="electric"] { --blue:#2E6BFF; --blue-deep:#1A3FB8; --cyan:#00E5FF; }
[data-accent="azure"]    { --blue:#1488E6; --blue-deep:#0B5AA8; --cyan:#27E0C8; }
[data-accent="indigo"]   { --blue:#5A6BFF; --blue-deep:#3A33C4; --cyan:#46C8FF; }

/* ============================================================
   DIRECTION A — IMMERSIVE DARK (default)
   ============================================================ */
[data-direction="dark"] {
  --bg: #06070B;
  --bg-2: #0A0C12;
  --bg-3: #0F1219;
  --surface: rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.055);
  --hair: rgba(255,255,255,0.09);
  --hair-2: rgba(255,255,255,0.16);
  --ink: #EDEFF5;
  --ink-dim: #9AA0B2;
  --ink-faint: #5C6273;
  --glass-blur: 16px;
  --glow: 0.5;
  --shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
  color-scheme: dark;
}

/* ============================================================
   DIRECTION B — DAYLIGHT ENTERPRISE
   ============================================================ */
[data-direction="light"] {
  --bg: #EEF1F7;
  --bg-2: #FFFFFF;
  --bg-3: #F5F7FB;
  --surface: rgba(15,30,70,0.025);
  --surface-2: rgba(15,30,70,0.045);
  --hair: rgba(13,26,60,0.10);
  --hair-2: rgba(13,26,60,0.18);
  --ink: #0B1020;
  --ink-dim: #4A5266;
  --ink-faint: #8A92A6;
  --glass-blur: 14px;
  --glow: 0.18;
  --shadow: 0 30px 60px -28px rgba(20,40,90,0.28);
  color-scheme: light;
}

/* ============================================================
   BASE
   ============================================================ */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.025em; margin: 0; }
.h-grad {
  background: linear-gradient(100deg, var(--cyan), var(--blue) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
p { margin: 0; text-wrap: pretty; }

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(30px, 4.6vw, 54px); margin: 18px 0 0; }
.section-head p { margin-top: 20px; color: var(--ink-dim); font-size: clamp(16px,1.6vw,19px); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  border: 1px solid transparent; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  color: #04060C; font-weight: 600;
  box-shadow: 0 10px 30px -8px color-mix(in oklch, var(--blue) calc(var(--glow)*100%), transparent);
}
.btn-primary:hover { box-shadow: 0 16px 44px -8px color-mix(in oklch, var(--cyan) calc(var(--glow)*100%), transparent); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--hair-2); backdrop-filter: blur(var(--glass-blur));
}
.btn-ghost:hover { border-color: var(--cyan); background: var(--surface-2); }

/* ---------- glass card base ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: padding .4s var(--ease), background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px var(--gutter);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand .bt { display: flex; flex-direction: column; line-height: 1; }
.brand .bt b { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand .bt span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--ink-faint); margin-top: 4px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--ink-dim); transition: color .25s; position: relative; }
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:-6px; height:1px; width:0; background: var(--cyan); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .nav-cta .btn span.lbl { display:none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 90px; overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 70% 30%, color-mix(in oklch, var(--blue) calc(var(--glow)*26%), transparent), transparent 55%),
    radial-gradient(90% 70% at 15% 80%, color-mix(in oklch, var(--cyan) calc(var(--glow)*18%), transparent), transparent 50%),
    linear-gradient(180deg, transparent 60%, var(--bg) 99%);
}
.hero .wrap { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 80px); margin: 22px 0; }
.hero .sub { font-size: clamp(16px, 1.7vw, 20px); color: var(--ink-dim); max-width: 540px; }
.hero-cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust { margin-top: 54px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }

/* floating glass cluster (right) */
.hero-stage { position: relative; height: 460px; }
.float-card {
  position: absolute; border-radius: 18px; padding: 18px;
  background: var(--surface); border: 1px solid var(--hair-2);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow);
  will-change: transform;
}
.float-card .fc-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.float-card .fc-val { font-family: var(--font-display); font-weight: 600; font-size: 28px; margin-top: 4px; }
.float-card .fc-val small { font-size: 14px; color: var(--cyan); }
.fc-1 { top: 18px; left: 6%; width: 200px; }
.fc-2 { top: 150px; right: 0; width: 220px; }
.fc-3 { bottom: 22px; left: 16%; width: 230px; }
.ring {
  position: absolute; inset: 0; margin: auto; width: 280px; height: 280px;
  border-radius: 50%; border: 1px solid var(--hair-2);
  box-shadow: 0 0 80px -10px color-mix(in oklch, var(--cyan) calc(var(--glow)*60%), transparent) inset;
}
.ring::after { content:""; position:absolute; inset:-40px; border-radius:50%; border:1px dashed var(--hair); }
.hero-orb {
  position:absolute; inset:0; margin:auto; width:120px; height:120px; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, var(--cyan), var(--blue) 55%, var(--blue-deep));
  box-shadow: 0 0 90px -6px color-mix(in oklch, var(--blue) calc(var(--glow)*90%), transparent);
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { display: none; }
}

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--cyan), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%,100%{opacity:.3; transform:scaleY(.6)} 50%{opacity:1; transform:scaleY(1)} }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(24px); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vmcard { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hair); position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .4s, background .4s; }
.vmcard:hover { transform: translateY(-6px); border-color: color-mix(in oklch, var(--cyan) 50%, var(--hair)); background: var(--surface-2); }
.vmcard .vm-ix { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.18em; }
.vmcard h3 { font-size: 22px; margin: 16px 0 12px; }
.vmcard p { color: var(--ink-dim); font-size: 15px; }
.vmcard .vm-glow { position:absolute; right:-50px; top:-50px; width:140px; height:140px; border-radius:50%; background: radial-gradient(circle, color-mix(in oklch, var(--cyan) calc(var(--glow)*55%), transparent), transparent 70%); opacity:0; transition: opacity .4s; }
.vmcard:hover .vm-glow { opacity: 1; }
.values { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--surface); color: var(--ink-dim); }

.stats-band { margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg-2); padding: 34px 26px; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 52px); line-height: 1; letter-spacing: -0.03em; }
.stat .num small { font-size: 0.5em; color: var(--cyan); margin-left: 2px; }
.stat .lbl { margin-top: 10px; color: var(--ink-dim); font-size: 13px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .stats-band { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--hair); overflow: hidden;
  transition: transform .45s var(--ease), border-color .4s, background .4s;
  min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
}
.svc::before { content:""; position:absolute; inset:0; background: linear-gradient(160deg, color-mix(in oklch, var(--cyan) 0%, transparent), transparent); opacity:0; transition: opacity .45s; }
.svc:hover { transform: translateY(-8px); border-color: color-mix(in oklch, var(--cyan) 55%, var(--hair)); }
.svc:hover::before { opacity: .08; background: linear-gradient(160deg, var(--cyan), transparent 60%); }
.svc .svc-ix { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.14em; position: relative; z-index:1; }
.svc .svc-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--hair-2); background: var(--bg-2); margin-bottom: 18px; position: relative; z-index:1; transition: border-color .4s, transform .4s var(--ease); }
.svc:hover .svc-ic { border-color: var(--cyan); transform: translateY(-2px); }
.svc .svc-ic svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.6; }
.svc h3 { font-size: 18px; position: relative; z-index:1; }
.svc p { color: var(--ink-dim); font-size: 13.5px; margin-top: 8px; position: relative; z-index:1; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ARCHARYA — always immersive dark band
   ============================================================ */
.archarya {
  --bg-2: #0A0C12; --surface: rgba(255,255,255,0.04); --surface-2: rgba(255,255,255,0.06);
  --hair: rgba(255,255,255,0.09); --hair-2: rgba(255,255,255,0.16);
  --ink: #EDEFF5; --ink-dim: #9AA0B2; --ink-faint: #5C6273; --glow: 0.55;
  background:
    radial-gradient(90% 70% at 80% 10%, color-mix(in oklch, var(--violet) 22%, transparent), transparent 55%),
    radial-gradient(80% 60% at 10% 90%, color-mix(in oklch, var(--cyan) 16%, transparent), transparent 55%),
    #06070B;
  color: var(--ink); position: relative; overflow: hidden;
}
.archarya::before {
  content:""; position:absolute; inset:0; opacity:.5;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 100%);
}
.arch-grad { background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.arch-top { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.arch-lede .badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--hair-2); padding: 7px 14px; border-radius: 999px; background: var(--surface); }
.arch-lede h2 { font-size: clamp(32px, 4.6vw, 56px); margin: 22px 0 18px; }
.arch-lede p { color: var(--ink-dim); font-size: 17px; max-width: 520px; }
.arch-visual { position: relative; height: 420px; }
.arch-glyph-wrap { position:absolute; inset:0; display:grid; place-items:center; }
.arch-glyph-wrap svg.big { width: 300px; filter: drop-shadow(0 0 50px rgba(138,43,226,0.4)); }
.mock {
  position: absolute; border-radius: 14px; border: 1px solid var(--hair-2);
  background: linear-gradient(160deg, #0E1119, #090B11);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.8); overflow: hidden; padding: 12px;
  backdrop-filter: blur(8px);
}
.mock .mock-bar { display: flex; gap: 5px; margin-bottom: 8px; }
.mock .mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--hair-2); }
.mock .mock-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.mock .mock-body { margin-top: 8px; border-radius: 8px; height: calc(100% - 40px); position: relative; overflow: hidden; }
.mock-1 { width: 230px; top: 0; right: 4%; }
.mock-1 .mock-body { height: 130px; }
.mock-2 { width: 210px; bottom: 10px; left: 0; }
.mock-2 .mock-body { height: 120px; }
.mock-3 { width: 190px; bottom: 60px; right: 16%; }
.mock-3 .mock-body { height: 100px; }
/* abstract lab visuals inside mocks */
.viz-chem { background: radial-gradient(circle at 30% 70%, rgba(0,229,255,.5), transparent 40%), radial-gradient(circle at 70% 40%, rgba(138,43,226,.5), transparent 45%), #07080d; }
.viz-eng { background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 18px), repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 18px), #07080d; }
.viz-analytics { background: linear-gradient(0deg, rgba(0,229,255,.12), transparent), #07080d; }
.viz-analytics::after { content:""; position:absolute; left:6%; right:6%; bottom:14%; height:46%; background: linear-gradient(180deg, transparent, rgba(0,229,255,.25)); clip-path: polygon(0 100%, 12% 60%, 28% 72%, 44% 40%, 60% 54%, 76% 22%, 100% 38%, 100% 100%); }

.arch-features { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; z-index: 1; }
.feat { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair); transition: border-color .35s, background .35s; }
.feat:hover { border-color: color-mix(in oklch, var(--violet) 55%, var(--hair)); background: var(--surface-2); }
.feat .fdot { flex-shrink:0; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: linear-gradient(var(--cyan), var(--violet)); box-shadow: 0 0 10px var(--cyan); }
.feat span { font-size: 14px; color: var(--ink); }
.arch-cta { margin-top: 44px; display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; flex-wrap: wrap; }
.arch-cta .multi { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 920px) { .arch-top { grid-template-columns: 1fr; } .arch-visual { height: 360px; } .arch-features { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .arch-features { grid-template-columns: 1fr; } }

/* ============================================================
   WHY CHOOSE US — metrics
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.metric { padding: 30px 22px; border-radius: var(--radius); border: 1px solid var(--hair); background: var(--surface); text-align: left; position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.metric:hover { transform: translateY(-6px); border-color: color-mix(in oklch, var(--cyan) 50%, var(--hair)); }
.metric .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4vw, 46px); line-height: 1; letter-spacing: -0.03em; }
.metric .num small { font-size: .5em; color: var(--cyan); }
.metric .lbl { margin-top: 12px; font-size: 13.5px; color: var(--ink-dim); }
.metric .bar { margin-top: 16px; height: 3px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.metric .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.metric.in .bar i { width: var(--pct, 100%); }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   TECHNOLOGY STACK
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tech {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  border-radius: 14px; border: 1px solid var(--hair); background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.tech:hover { transform: translateY(-4px); border-color: var(--cyan); background: var(--surface-2); }
.tech .t-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--hair-2); flex-shrink: 0; }
.tech .t-ic svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }
.tech .t-name { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.tech .t-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }
@media (max-width: 820px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tech-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tst-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tst { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--hair); background: var(--surface); position: relative; transition: transform .4s var(--ease), border-color .4s; }
.tst:hover { transform: translateY(-5px); border-color: color-mix(in oklch, var(--cyan) 45%, var(--hair)); }
.tst .quote-mark { font-family: var(--font-display); font-size: 60px; line-height: .6; color: color-mix(in oklch, var(--cyan) 55%, transparent); height: 26px; }
.tst blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.tst .who { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.tst .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--cyan)); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #04060C; flex-shrink: 0; }
.tst .who .n { font-weight: 600; font-size: 15px; font-family: var(--font-display); }
.tst .who .r { font-size: 12.5px; color: var(--ink-dim); }
@media (max-width: 720px) { .tst-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member {
  position: relative; padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--hair); overflow: hidden;
  transition: transform .45s var(--ease), border-color .4s, background .4s;
}
.member:hover { transform: translateY(-7px); border-color: color-mix(in oklch, var(--cyan) 50%, var(--hair)); background: var(--surface-2); }
.member .m-glow { position:absolute; left:-40px; top:-40px; width:150px; height:150px; border-radius:50%; background: radial-gradient(circle, color-mix(in oklch, var(--cyan) calc(var(--glow)*50%), transparent), transparent 70%); opacity:0; transition: opacity .4s; }
.member:hover .m-glow { opacity:1; }
.member .m-av {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 26px; color: #04060C;
  background: linear-gradient(140deg, var(--cyan), var(--blue)); position: relative; z-index: 1;
  box-shadow: 0 12px 30px -10px color-mix(in oklch, var(--blue) calc(var(--glow)*90%), transparent);
}
.member:nth-child(3n+2) .m-av { background: linear-gradient(140deg, var(--blue), var(--violet)); }
.member:nth-child(3n) .m-av { background: linear-gradient(140deg, var(--violet), var(--cyan)); }
.member .m-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-top: 20px; position: relative; z-index: 1; }
.member .m-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-top: 6px; position: relative; z-index: 1; }
.member .m-bio { color: var(--ink-dim); font-size: 13.5px; margin-top: 14px; position: relative; z-index: 1; }
.member .m-social { margin-top: 18px; display: flex; gap: 8px; position: relative; z-index: 1; }
.member .m-social a { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--hair-2); background: var(--bg-2); transition: border-color .3s, transform .3s var(--ease); }
.member .m-social a:hover { border-color: var(--cyan); transform: translateY(-2px); }
.member .m-social svg { width: 15px; height: 15px; fill: var(--ink-dim); }
.member .m-social a:hover svg { fill: var(--cyan); }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(44px, 6vw, 80px); text-align: center;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 60%, var(--cyan));
  color: #03060E; }
.cta-band h2 { font-size: clamp(28px, 4vw, 48px); color: #03060E; }
.cta-band p { margin: 16px auto 30px; max-width: 540px; color: rgba(4,8,18,0.78); font-size: 17px; }
.cta-band .btn-dark { background: #06070B; color: #fff; }
.cta-band .btn-dark:hover { box-shadow: 0 16px 40px -10px rgba(0,0,0,0.5); }
.cta-band .cta-orbits { position:absolute; inset:0; opacity:.5; pointer-events:none; }
.cta-band .cta-orbits span { position:absolute; border:1px solid rgba(255,255,255,0.25); border-radius:50%; }

.footer { padding: 80px 0 36px; border-top: 1px solid var(--hair); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand p { color: var(--ink-dim); font-size: 14px; max-width: 280px; }
.foot-contact { margin-top: 20px; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-dim); }
.foot-contact a:hover { color: var(--cyan); }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 18px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-col a { font-size: 14px; color: var(--ink-dim); transition: color .25s; }
.foot-col a:hover { color: var(--ink); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--hair-2); background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.socials a:hover { border-color: var(--cyan); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: var(--ink-dim); }
.socials a:hover svg { fill: var(--cyan); }
.foot-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); letter-spacing: 0.04em; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
#tweaks { position: fixed; right: 18px; bottom: 18px; z-index: 1000; width: 268px;
  background: color-mix(in oklch, #0B0E16 92%, transparent); color: #EDEFF5;
  border: 1px solid rgba(0,229,255,0.28); border-radius: 16px; padding: 16px 16px 18px;
  backdrop-filter: blur(18px); box-shadow: 0 20px 60px -16px rgba(0,0,0,0.7), 0 0 30px rgba(0,229,255,0.1);
  font-family: var(--font-body); display: none; }
#tweaks.on { display: block; }
#tweaks .tk-h { display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
#tweaks .tk-h b { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #00E5FF; font-weight: 500; }
#tweaks .tk-h button { background: none; border: 0; color: #5C6273; font-size: 16px; line-height: 1; }
#tweaks .tk-row { margin-bottom: 16px; }
#tweaks .tk-row > label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #8A90A2; margin-bottom: 8px; }
#tweaks .seg { display: flex; gap: 6px; }
#tweaks .seg button { flex: 1; padding: 8px 6px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #C8CCD8; font-size: 12px; font-family: var(--font-display); transition: all .25s; }
#tweaks .seg button.sel { border-color: #00E5FF; background: rgba(0,229,255,0.14); color: #fff; }
#tweaks .sw-row { display: flex; gap: 8px; }
#tweaks .sw { width: 34px; height: 34px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; }
#tweaks .sw.sel { border-color: #fff; }
