/* ============================================================
   JETT LABS — Vibiz-inspired website
   Tokens, base, components
   ============================================================ */

:root {
  /* Colors */
  --bg: #FAFAFA;
  --bg-soft: #F4F4F2;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --muted: #6B6B6B;
  --muted-2: #9A9A99;
  --border: rgba(10, 10, 10, 0.08);
  --border-strong: rgba(10, 10, 10, 0.14);

  /* Brand — from logo */
  --accent: #3D5AFE;       /* electric blue, primary accent */
  --accent-2: #2842E6;
  --magenta: #E91E63;      /* secondary, used in gradient only */
  --magenta-2: #FF3D77;

  /* Dark */
  --dark: #0A0A0C;
  --dark-2: #131318;
  --dark-soft: #1C1C22;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-border-strong: rgba(255, 255, 255, 0.14);
  --dark-muted: rgba(255, 255, 255, 0.62);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 240ms;
  --med: 480ms;
  --slow: 720ms;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(10,10,10,.04), 0 0 0 1px var(--border);
  --sh-md: 0 4px 16px rgba(10,10,10,.05), 0 1px 2px rgba(10,10,10,.04), 0 0 0 1px var(--border);
  --sh-lg: 0 12px 40px rgba(10,10,10,.08), 0 2px 8px rgba(10,10,10,.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  transition: width var(--fast) var(--ease), height var(--fast) var(--ease), background var(--fast) var(--ease);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,255,255,0.7);
  transition: width var(--fast) var(--ease), height var(--fast) var(--ease), border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
body.cursor-hover .cursor-dot { width: 0; height: 0; }
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.95);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 140px 0;
  position: relative;
}
@media (max-width: 1024px) { .section { padding: 100px 0; } }
@media (max-width: 640px)  { .section { padding: 72px 0; } }

.section-tight { padding: 96px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 999px;
}

.section-title {
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 18px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.section-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.5;
}

/* Section index "01 /" */
.sec-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sec-index .bar { width: 28px; height: 1px; background: var(--border-strong); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn .arrow {
  width: 16px; height: 16px;
  transition: transform var(--fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(61, 90, 254, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(0,0,0,0.04); }

.btn-pill-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* Dark variants */
.on-dark .btn-primary { background: #fff; color: var(--dark); }
.on-dark .btn-primary:hover { background: var(--accent); color: #fff; }
.on-dark .btn-secondary { color: #fff; box-shadow: inset 0 0 0 1px var(--dark-border-strong); }
.on-dark .btn-secondary:hover { background: #fff; color: var(--dark); box-shadow: inset 0 0 0 1px #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--fast) var(--ease);
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.nav-logo .logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background-image: url('assets/logo-jett.png');
  background-size: cover;
  background-position: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 450;
  letter-spacing: -0.005em;
  transition: background var(--fast) var(--ease);
}
.nav-link:hover { background: rgba(0,0,0,0.05); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  gap: 2px;
}
.lang-switch button {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.lang-switch button.active { color: var(--ink); }
.lang-switch .sep { color: var(--muted-2); }

.hamburger { display: none; width: 40px; height: 40px; border-radius: 999px; align-items: center; justify-content: center; }
.hamburger svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .lang-switch { display: none; }
  .hamburger { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 50%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 30% 50%, rgba(233, 30, 99, 0.18), transparent 55%),
              radial-gradient(ellipse at 70% 50%, rgba(61, 90, 254, 0.20), transparent 55%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}
.hero-pill .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero-pill .badge .dot {
  width: 6px; height: 6px; background: #4ADE80; border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
}

.hero-h1 {
  font-size: clamp(48px, 7.4vw, 108px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 16ch;
}
.hero-h1 .accent {
  background: linear-gradient(110deg, var(--magenta) 0%, var(--accent) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 800ms var(--ease) forwards;
}
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 60px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.hero-meta-item svg { width: 16px; height: 16px; color: var(--accent); }

/* Hero canvas / faux IDE */
.hero-canvas-wrap {
  margin-top: 80px;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(10,10,10,0.20), 0 0 0 1px var(--border);
  background: #0A0A0C;
  aspect-ratio: 16 / 9;
}
.hero-canvas-wrap::before {
  /* glow ring */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(233,30,99,0.4), rgba(61,90,254,0.4));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.7;
}

/* IDE chrome */
.ide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 36px 1fr;
  background: #0A0A0C;
  color: #E5E7EB;
  font-family: var(--font-mono);
  font-size: 13px;
}
.ide-bar {
  display: flex; align-items: center;
  padding: 0 14px;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #0F0F13;
}
.ide-bar .lights { display: flex; gap: 6px; }
.ide-bar .light { width: 11px; height: 11px; border-radius: 999px; background: #2A2A30; }
.ide-bar .light.r { background: #FF5F57; }
.ide-bar .light.y { background: #FEBC2E; }
.ide-bar .light.g { background: #28C840; }
.ide-bar .tabs { display: flex; gap: 2px; margin-left: 12px; }
.ide-bar .tab {
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  border-radius: 6px;
}
.ide-bar .tab.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.ide-bar .right {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: rgba(255,255,255,0.4);
}
.ide-bar .led { width: 8px; height: 8px; border-radius: 999px; background: #4ADE80; box-shadow: 0 0 8px rgba(74,222,128,0.7); }

.ide-body {
  display: grid;
  grid-template-columns: 180px 1fr 360px;
  min-height: 0;
}
@media (max-width: 900px) {
  .ide-body { grid-template-columns: 1fr; }
  .ide-side, .ide-dash { display: none; }
}

.ide-side {
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 12px 6px;
  background: #0C0C0F;
  font-size: 12px;
}
.ide-side .group { padding: 8px 12px 4px; color: rgba(255,255,255,0.4); letter-spacing: 0.02em; font-size: 11px; text-transform: uppercase; }
.ide-side .file { display: flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 6px; color: rgba(255,255,255,0.7); }
.ide-side .file.active { background: rgba(61,90,254,0.16); color: #fff; }
.ide-side .file svg { width: 14px; height: 14px; opacity: 0.7; }

.ide-code {
  padding: 18px 22px;
  overflow: hidden;
  position: relative;
  line-height: 1.7;
}
.ide-code .line { display: flex; gap: 18px; }
.ide-code .ln { color: rgba(255,255,255,0.25); width: 16px; text-align: right; }
.code-blue { color: #82AAFF; }
.code-pink { color: #FF6E9F; }
.code-green { color: #C3E88D; }
.code-purple { color: #C792EA; }
.code-yellow { color: #FFCB6B; }
.code-gray { color: rgba(255,255,255,0.45); }
.code-white { color: #E5E7EB; }
.caret {
  display: inline-block;
  width: 7px; height: 15px;
  background: #82AAFF;
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ide-dash {
  border-left: 1px solid rgba(255,255,255,0.06);
  background: #0C0C0F;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
  font-family: var(--font);
}
.dash-h { display: flex; align-items: center; justify-content: space-between; }
.dash-h-title { font-size: 12px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 8px; }
.dash-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.dash-stat-row { display: flex; justify-content: space-between; align-items: flex-end; }
.dash-stat-label { font-size: 11px; color: rgba(255,255,255,0.5); }
.dash-stat-val { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.dash-stat-delta {
  font-size: 11px; color: #4ADE80;
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px;
}

.dash-sparkline { margin-top: 10px; height: 32px; }
.dash-sparkline path.stroke { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.dash-sparkline path.fill { fill: url(#sgrad); opacity: 0.5; }

.dash-shield {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,0.7);
}
.dash-shield .ring {
  position: relative; width: 36px; height: 36px;
}
.dash-shield .ring circle {
  fill: none; stroke-width: 3; stroke-linecap: round;
  cx: 18; cy: 18; r: 15;
  transform: rotate(-90deg); transform-origin: center;
}
.dash-shield .ring .bg { stroke: rgba(255,255,255,0.1); }
.dash-shield .ring .fg { stroke: #4ADE80; stroke-dasharray: 94; stroke-dashoffset: 8; }
.dash-shield .ring .num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #4ADE80;
}

.dash-logs { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.65); display: flex; flex-direction: column; gap: 4px; }
.dash-logs .log { display: flex; gap: 8px; align-items: center; }
.dash-logs .log .t { color: rgba(255,255,255,0.35); }
.dash-logs .log .tag {
  font-size: 9px; padding: 2px 5px; border-radius: 4px; text-transform: uppercase;
  font-family: var(--font); font-weight: 600; letter-spacing: 0.02em;
}
.tag-ok { background: rgba(74,222,128,0.15); color: #4ADE80; }
.tag-info { background: rgba(61,90,254,0.18); color: #82AAFF; }
.tag-warn { background: rgba(254,188,46,0.16); color: #FEBC2E; }

/* Floating cursor in hero */
.ghost-cursor {
  position: absolute;
  top: 30%; left: 18%;
  z-index: 5;
  pointer-events: none;
  animation: ghost-float 6s var(--ease) infinite;
}
.ghost-cursor .label {
  position: absolute;
  top: 22px; left: 22px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
}
@keyframes ghost-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(40px, 30px); }
  50% { transform: translate(120px, 60px); }
  75% { transform: translate(60px, 20px); }
}

/* Press logos strip */
.hero-strip {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.hero-strip .strip-label { letter-spacing: -0.005em; }
.hero-strip-logos { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; opacity: 0.75; }
.hero-strip-logos .logo { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); opacity: 0.55; }

/* ============================================================
   ABOUT (Section 01)
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
}
@media (max-width: 1024px) { .about { grid-template-columns: 1fr; gap: 40px; } }

.about-right p {
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.about-right p .muted { color: var(--muted); }

.metrics {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) { .metrics { grid-template-columns: 1fr; } }
.metric {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 28px;
  transition: all var(--fast) var(--ease);
}
.metric:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.metric-val {
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric-val .unit { color: var(--accent); }
.metric-label { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ============================================================
   SERVICES (Section 02) — 3 large cards
   ============================================================ */
.services-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  transition: all var(--med) var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--border-strong);
}
.svc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.svc-illus {
  height: 200px;
  margin: -12px -28px 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft), transparent);
}
.svc-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}
.svc-desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.svc-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px;
}
.chip {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10,10,10,0.04);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.svc-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  width: max-content;
}
.svc-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 100%;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.svc-card:hover .svc-link::after { transform: scaleX(1); }
.svc-link svg { width: 14px; height: 14px; transition: transform var(--fast) var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(3px); }

/* ============================================================
   LOGOS MARQUEE
   ============================================================ */
.logos-section {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.logos-title {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marq 38s linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
@keyframes marq { to { transform: translateX(-50%); } }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(10,10,10,0.45);
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; }

/* ============================================================
   PROJECTS (Section 03)
   ============================================================ */
.projects-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-auto-rows: minmax(360px, auto);
  gap: 20px;
}
@media (max-width: 900px) { .projects-grid { grid-template-columns: 1fr; } }
.projects-grid > :nth-child(4n+1),
.projects-grid > :nth-child(4n+4) { /* large variants */ }

.project {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: all var(--med) var(--ease);
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}
.project-mockup {
  flex: 1;
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--bg-soft);
}
.project-foot {
  padding: 24px 26px 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.project-foot .left { min-width: 0; }
.project-name { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.project-meta { margin-top: 4px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.project-meta .sep { width: 3px; height: 3px; background: var(--muted-2); border-radius: 999px; }
.project-stack { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.project-kpi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.project-kpi.up { background: var(--accent); }
.project-kpi.brand { background: linear-gradient(110deg, var(--magenta), var(--accent)); }

/* Project mockups (CSS-painted) */
.mock {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard mockup */
.mock-dash {
  background: radial-gradient(120% 100% at 0% 0%, #1A1A22, #0A0A0C);
  color: #fff;
}
.mock-dash .panel {
  width: 84%; height: 78%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr 1fr;
}
.mock-dash .panel .header {
  grid-column: span 2;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.65);
}
.mock-dash .panel .header .right { display: flex; gap: 6px; }
.mock-dash .panel .header .pill {
  background: rgba(255,255,255,0.08); padding: 3px 8px; border-radius: 999px; font-size: 10px;
}
.mock-dash .panel .header .pill.live { background: rgba(74,222,128,0.18); color: #4ADE80; }
.mock-dash .card-mini {
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}
.mock-dash .card-mini .v { font-size: 18px; color: #fff; font-weight: 500; margin-top: 2px; letter-spacing: -0.02em; }
.mock-dash .chart-mini { grid-column: span 2; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.mock-dash .chart-mini svg { width: 100%; height: 100%; }

/* Map mockup (fintech / logistics) */
.mock-map {
  background: linear-gradient(140deg, #0A0E1A, #131830);
}
.mock-map svg { width: 90%; height: 90%; }

/* E-comm mockup */
.mock-shop {
  background: #F3F1EC;
  padding: 20px;
}
.mock-shop .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; width: 100%; height: 100%;
}
.mock-shop .item {
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #E8E5DE);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: flex-end;
  padding: 10px;
  font-size: 10px;
  color: var(--ink);
}
.mock-shop .item .price { background: #fff; padding: 3px 6px; border-radius: 6px; font-weight: 500; }

/* Security mockup */
.mock-sec {
  background: linear-gradient(140deg, #1A0A1A, #0A0814);
  color: #fff;
}
.mock-sec .grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  width: 84%; height: 78%;
}
.mock-sec .cell {
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
.mock-sec .cell.ok { background: rgba(74,222,128,0.18); border-color: rgba(74,222,128,0.4); }
.mock-sec .cell.warn { background: rgba(254,188,46,0.18); border-color: rgba(254,188,46,0.4); }
.mock-sec .cell.crit { background: rgba(233,30,99,0.22); border-color: rgba(233,30,99,0.5); }
.mock-sec .overlay {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  display: flex; align-items: center; gap: 8px;
}

/* Mobile app mockup */
.mock-mobile { background: linear-gradient(140deg, #EEF2FF, #F5F3FF); padding: 20px; align-items: flex-end; }
.mock-mobile .phones { display: flex; gap: 16px; }
.mock-mobile .phone {
  width: 120px; height: 230px;
  border-radius: 20px;
  background: #0A0A0C;
  border: 8px solid #0A0A0C;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px -10px rgba(10,10,10,0.25);
}
.mock-mobile .phone .screen {
  width: 100%; height: 100%; border-radius: 12px;
  background: linear-gradient(180deg, #131318, #1F1F26);
  padding: 12px 10px;
  color: #fff;
}
.mock-mobile .phone .screen .bar { height: 28px; background: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 8px; }
.mock-mobile .phone .screen .bar.lg { height: 56px; background: linear-gradient(135deg, var(--magenta), var(--accent)); }
.mock-mobile .phone .screen .bar.sm { height: 16px; width: 70%; }

/* AI / chat mockup */
.mock-ai {
  background: #0A0A0C;
  color: #fff;
  padding: 24px;
}
.mock-ai .convo {
  width: 88%; height: 88%;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 12px;
}
.mock-ai .msg {
  padding: 10px 14px; border-radius: 14px;
  max-width: 80%;
}
.mock-ai .msg.user {
  align-self: flex-end;
  background: var(--accent); color: #fff;
}
.mock-ai .msg.ai {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
}
.mock-ai .typing { display: flex; gap: 4px; padding: 6px 0; }
.mock-ai .typing span { width: 6px; height: 6px; background: var(--muted-2); border-radius: 999px; animation: pulse 1.2s infinite; }
.mock-ai .typing span:nth-child(2) { animation-delay: 0.15s; }
.mock-ai .typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* ============================================================
   TEAM (Section 04)
   ============================================================ */
.team-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.member {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--med) var(--ease);
}
.member:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.member .photo {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  background-size: cover;
  background-position: center top;
  filter: grayscale(100%);
  transition: filter var(--med) var(--ease), transform var(--slow) var(--ease);
}
.member:hover .photo { filter: grayscale(0%); transform: scale(1.03); }
.member-info { padding: 16px 18px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.member-info .left { min-width: 0; }
.member-name { font-size: 15px; font-weight: 500; letter-spacing: -0.015em; }
.member-role { margin-top: 4px; font-size: 12px; color: var(--muted); }
.member-link {
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(0,0,0,0.04);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--fast) var(--ease);
  flex-shrink: 0;
}
.member-link:hover { background: var(--accent); color: #fff; }
.member-link svg { width: 14px; height: 14px; }

.team-quote {
  margin-top: 56px;
  text-align: center;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.025em;
  color: var(--muted);
  font-weight: 400;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}
.team-quote em { font-style: normal; color: var(--ink); }

/* Photo placeholder portraits (generated) */
.portrait-svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   PARTNERS (Section 05)
   ============================================================ */
.partners-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

.partner-cell {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  transition: all var(--fast) var(--ease);
  color: rgba(10,10,10,0.6);
}
.partner-cell:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: var(--border-strong);
}
.partner-cell svg { max-width: 110px; max-height: 40px; }

/* ============================================================
   WALL OF LOVE
   ============================================================ */
.wall {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
  overflow: hidden;
}
.wall-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
}
.rating-pill .stars { color: #FBBF24; letter-spacing: 0.5px; }

.wall-rows { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }

.t-card {
  flex-shrink: 0;
  width: 380px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.t-quote { font-size: 14px; line-height: 1.55; color: var(--ink); letter-spacing: -0.005em; }
.t-author { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--bg-soft); background-size: cover; background-position: center; flex-shrink: 0; }
.t-name { font-size: 13px; font-weight: 500; }
.t-role { font-size: 12px; color: var(--muted); }

/* ============================================================
   SCHEDULE — dark section
   ============================================================ */
.schedule {
  background: var(--dark);
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.schedule .on-dark { color: #fff; }
.schedule .glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  top: -200px; left: -200px;
  background: radial-gradient(closest-side, rgba(233,30,99,0.28), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.schedule .glow2 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  bottom: -200px; right: -100px;
  background: radial-gradient(closest-side, rgba(61,90,254,0.32), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) { .schedule-grid { grid-template-columns: 1fr; gap: 48px; } }

.schedule h2 {
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
.schedule .gradient-text {
  background: linear-gradient(110deg, var(--magenta-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.schedule p { color: var(--dark-muted); font-size: 18px; max-width: 50ch; line-height: 1.5; margin: 24px 0 36px; }

.schedule-bullets { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-direction: column; gap: 14px; }
.schedule-bullets li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.schedule-bullets li .ck {
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #4ADE80;
  flex-shrink: 0;
}
.schedule-bullets li .ck svg { width: 14px; height: 14px; }

.cal-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
}
.cal-card .cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-card .cal-month { font-size: 15px; font-weight: 500; }
.cal-card .cal-nav { display: flex; gap: 8px; }
.cal-card .cal-nav button {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal-card .cal-nav button:hover { background: rgba(255,255,255,0.12); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 18px;
}
.cal-grid .dow { text-align: center; font-size: 11px; color: rgba(255,255,255,0.4); padding: 6px 0; text-transform: uppercase; letter-spacing: 0.04em; }
.cal-grid .day {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background var(--fast) var(--ease);
}
.cal-grid .day:hover { background: rgba(255,255,255,0.08); }
.cal-grid .day.muted { color: rgba(255,255,255,0.2); cursor: default; }
.cal-grid .day.muted:hover { background: transparent; }
.cal-grid .day.avail { background: rgba(61,90,254,0.18); color: #fff; }
.cal-grid .day.avail:hover { background: rgba(61,90,254,0.32); }
.cal-grid .day.active { background: var(--accent); color: #fff; }
.cal-grid .day.today { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }

.cal-slots { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cal-slot {
  padding: 10px 12px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.cal-slot:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.cal-slot.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.cal-foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.cal-foot .who {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.cal-foot .avatars { display: flex; }
.cal-foot .avatars > * { width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--dark); background-size: cover; background-position: center; margin-left: -8px; }
.cal-foot .avatars > *:first-child { margin-left: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color var(--fast) var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q .icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--med) var(--ease);
  position: relative;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: ""; position: absolute;
  background: currentColor;
  transition: transform var(--med) var(--ease);
}
.faq-q .icon::before { width: 12px; height: 1.5px; }
.faq-q .icon::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-q .icon { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--med) var(--ease);
}
.faq-a-inner {
  padding: 0 0 28px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
}
.faq-item.open .faq-a { max-height: 300px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final {
  text-align: center;
  padding: 140px 0 120px;
}
.cta-final h2 {
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}
.cta-final h2 .gradient-text {
  background: linear-gradient(110deg, var(--magenta), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-final p {
  margin: 24px auto 36px;
  max-width: 50ch;
  font-size: 18px;
  color: var(--muted);
}
.cta-final .hero-ctas { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 96px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 60px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 320px; }
.footer-brand .nav-logo { color: #fff; }
.footer-brand p { font-size: 14px; color: var(--dark-muted); line-height: 1.55; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin: 0 0 18px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.85); transition: color var(--fast) var(--ease); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dark-muted);
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom a:hover { color: #fff; }

/* Big footer wordmark */
.footer-wordmark {
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 80px 0 -30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }
[data-reveal-delay="6"] { transition-delay: 480ms; }

/* ============================================================
   SHOWCASE — 3D circular auto-rotating carousel
   ============================================================ */
.showcase {
  padding: 40px 0 120px;
  position: relative;
  overflow: hidden;
}
.showcase-head {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.showcase-head .section-title {
  margin-left: auto; margin-right: auto;
  max-width: 18ch;
}
.showcase-head .section-sub {
  margin-left: auto; margin-right: auto;
  text-align: center;
}

/* Stage — 3D scene */
.carousel {
  --card-w: min(440px, 36vw);
  --card-h: calc(var(--card-w) * 0.625);
  --radius: calc(var(--card-w) * 1.05);
  position: relative;
  width: 100%;
  height: calc(var(--card-h) + 120px);
  perspective: 2400px;
  perspective-origin: 50% 50%;
  user-select: none;
}

.carousel-track {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateY(0deg);
  will-change: transform;
}

.cd {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0A0A0C;
  box-shadow:
    0 30px 80px -10px rgba(10, 10, 10, 0.28),
    0 0 0 1px rgba(10, 10, 10, 0.06);
  transform-style: preserve-3d;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: opacity 900ms var(--ease), filter 900ms var(--ease), box-shadow 500ms var(--ease);
  opacity: 0.12;
  filter: saturate(0.35) blur(1.5px);
}
.cd.is-far {
  opacity: 0.08;
  filter: saturate(0.25) blur(2px);
}
.cd.is-near {
  opacity: 0.5;
  filter: saturate(0.75) blur(0);
}
.cd.is-active {
  opacity: 1;
  filter: saturate(1) blur(0);
  box-shadow:
    0 45px 120px -10px rgba(10, 10, 10, 0.48),
    0 0 0 1px rgba(10, 10, 10, 0.10);
}

/* Browser chrome */
.cd-chrome {
  height: 42px;
  background: #F4F4F2;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 14px;
  flex-shrink: 0;
}
.cd-chrome .lights { display: flex; gap: 6px; flex-shrink: 0; }
.cd-chrome .light { width: 11px; height: 11px; border-radius: 999px; }
.cd-chrome .light.r { background: #FF5F57; }
.cd-chrome .light.y { background: #FEBC2E; }
.cd-chrome .light.g { background: #28C840; }
.cd-chrome .url {
  flex: 1;
  height: 26px;
  background: #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  border: 1px solid rgba(10, 10, 10, 0.05);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cd-chrome .url svg { width: 11px; height: 11px; flex-shrink: 0; color: #4ADE80; }
.cd-chrome .url .path { color: var(--ink); font-weight: 500; }

/* Card body — media area */
.cd-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #0A0A0C;
}
.cd-body img,
.cd-body video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer meta strip (always visible) */
.cd-meta {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  pointer-events: none;
}
.cd.is-active .cd-meta {
  opacity: 1;
  transform: translateY(0);
}
.cd-meta .left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cd-meta .industry {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}
.cd-meta .name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.cd-meta .visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease);
  pointer-events: auto;
}
.cd-meta .visit:hover { background: var(--accent); color: #fff; }
.cd-meta .visit svg { width: 11px; height: 11px; }

/* Placeholder gradient when no media */
.cd-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  letter-spacing: -0.005em;
  background: linear-gradient(135deg, #0A0A0C, #1A1A22);
}
.cd-placeholder .ph-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 25% 30%, rgba(233, 30, 99, 0.22), transparent 60%),
    radial-gradient(60% 60% at 75% 70%, rgba(61, 90, 254, 0.26), transparent 60%);
  pointer-events: none;
}
.cd-placeholder .ph-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cd-placeholder .ph-text .nm {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}
.cd-placeholder .ph-text .lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Carousel controls */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px -4px rgba(10, 10, 10, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.carousel-nav:hover { background: var(--ink); color: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-nav svg { width: 16px; height: 16px; }
.carousel-nav.prev { left: 16px; }
.carousel-nav.next { right: 16px; }
@media (min-width: 1280px) {
  .carousel-nav.prev { left: 32px; }
  .carousel-nav.next { right: 32px; }
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.carousel-dots button {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.12);
  cursor: pointer;
  transition: all 300ms var(--ease);
  padding: 0;
}
.carousel-dots button:hover { background: rgba(10, 10, 10, 0.32); }
.carousel-dots button.active {
  width: 44px;
  background: var(--ink);
}

/* Pause indicator */
.carousel-pause-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: -0.005em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}
.carousel.is-paused .carousel-pause-hint { opacity: 1; }
.carousel-pause-hint .led {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.2);
}

/* Responsive */
@media (max-width: 720px) {
  .carousel { --card-w: 64vw; }
  .carousel-nav { width: 38px; height: 38px; }
  .cd-chrome { height: 32px; padding: 0 10px; gap: 8px; }
  .cd-chrome .url { font-size: 9px; height: 22px; }
  .cd-meta { padding: 8px 12px; left: 10px; right: 10px; bottom: 10px; }
  .cd-meta .name { font-size: 12px; }
  .cd-meta .visit { padding: 6px 10px; font-size: 11px; }
}
