/* =========================================================
   VOLTEX NOVA — Design System (rebuild)
   - One accent (amber-700 / #c2410c), used sparingly
   - Light + dark themes via [data-theme]
   - Restraint over decoration
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Fraunces:opsz,wght@9..144,400;9..144,500&family=JetBrains+Mono:wght@400;500&display=swap");

/* =========================================================
   Tokens — DARK (default)
   ========================================================= */
:root,
:root[data-theme="dark"] {
  /* Surfaces */
  --background:        #0a0a0a;     /* near-black, neutral */
  --surface:           #111112;     /* elevated card */
  --surface-2:         #18181b;     /* hover / nested */
  --border:            #232326;     /* hairline */
  --border-strong:     #2e2e33;     /* hairline-strong, hover */

  /* Foreground */
  --foreground:        #f4f4f5;     /* primary text */
  --foreground-muted:  #a1a1aa;     /* secondary text */
  --foreground-subtle: #71717a;     /* tertiary, mono labels */
  --foreground-faint:  #52525b;

  /* Brand */
  --primary:           #f4f4f5;     /* primary CTA bg in dark = near-white */
  --primary-foreground:#0a0a0a;     /* text on primary */
  --accent:            #c2410c;     /* deep amber, used <5% */
  --accent-foreground: #ffffff;
  --accent-soft:       rgba(194, 65, 12, 0.10);

  /* Effects */
  --shadow-card:       0 1px 0 rgba(255,255,255,0.03) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-elev:       0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px -12px rgba(0,0,0,0.6);
  --ring:              rgba(244, 244, 245, 0.4);
}

/* =========================================================
   Tokens — LIGHT
   ========================================================= */
:root[data-theme="light"] {
  --background:        #ffffff;
  --surface:           #fafafa;       /* zinc-50 */
  --surface-2:         #f4f4f5;       /* zinc-100 */
  --border:            #e4e4e7;       /* zinc-200 */
  --border-strong:     #d4d4d8;

  --foreground:        #09090b;       /* zinc-950 */
  --foreground-muted:  #52525b;       /* zinc-600 */
  --foreground-subtle: #71717a;       /* zinc-500 */
  --foreground-faint:  #a1a1aa;

  --primary:           #09090b;
  --primary-foreground:#fafafa;
  --accent:            #c2410c;
  --accent-foreground: #ffffff;
  --accent-soft:       rgba(194, 65, 12, 0.08);

  --shadow-card:       0 1px 2px rgba(0,0,0,0.04);
  --shadow-elev:       0 4px 16px -8px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.04);
  --ring:              rgba(9, 9, 11, 0.4);
}

/* =========================================================
   Static tokens (theme-agnostic)
   ========================================================= */
:root {
  /* Type scale */
  --t-mono:            11px;
  --t-body:            clamp(15px, 1.05vw, 16px);
  --t-lead:            clamp(16px, 1.2vw, 19px);

  /* Spacing — 8px base grid */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;--s-11: 160px;

  /* Fluid section padding */
  --section-y:       clamp(64px, 10vw, 128px);
  --section-y-tight: clamp(48px, 8vw, 96px);

  /* Radii */
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-4: 20px; --r-5: 28px; --r-pill: 999px;

  /* Layout */
  --max:    1200px;
  --gutter: clamp(20px, 4vw, 32px);

  /* Motion — skill-defined easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast:   0.2s;
  --d-base:   0.4s;
  --d-slow:   0.6s;

  /* Density */
  --density: 1;
}

[data-density="compact"] { --density: 0.78; }

/* =========================================================
   Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* fixed pill nav clearance for #anchor jumps */
}
@media (max-width: 720px) {
  html { scroll-padding-top: 80px; }
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.005em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* No more body::before orbs / body::after grid — removed */

main, header, footer { position: relative; z-index: 1; }

/* =========================================================
   Type
   ========================================================= */
h1, h2, h3, h4, h5 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.08;
  color: var(--foreground);
}

h1 {
  font-size: clamp(32px, 6.4vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-weight: 500;
}
h2 {
  font-size: clamp(26px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h3 {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h4 { font-size: 18px; letter-spacing: -0.01em; font-weight: 500; }

p { margin: 0; color: var(--foreground-muted); }
.lead {
  font-size: var(--t-lead);
  color: var(--foreground-muted);
  max-width: 60ch;
  line-height: 1.55;
  font-weight: 400;
}

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

em.editorial {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--foreground-muted);
}

/* Eyebrow */
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foreground-subtle);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--foreground-subtle);
}
.eyebrow.no-bar::before { display: none; }
.eyebrow.accent { color: var(--accent); }
.eyebrow.accent::before { background: var(--accent); }

/* Removed .grad-text — no gradient text */

/* =========================================================
   Layout
   ========================================================= */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: calc(var(--section-y) * var(--density)) 0;
  position: relative;
}
.section.tight { padding: calc(var(--section-y-tight) * var(--density)) 0; }

.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: calc(var(--s-8) * var(--density));
  max-width: 720px;
}

.section-header h2 { text-wrap: balance; }
.section-header p   { text-wrap: pretty; max-width: 56ch; }

@media (min-width: 900px) {
  .section-header.split {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    max-width: none;
    gap: 64px;
  }
  .section-header.split p { justify-self: end; max-width: 42ch; }
}

.rule {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* =========================================================
   Buttons — solid neutral primary, no gradient, no glow
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--d-fast) var(--ease-out),
              background-color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out);
  white-space: nowrap;
  user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.btn-primary {
  color: var(--primary-foreground);
  background: var(--primary);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: color-mix(in oklch, var(--primary) 90%, transparent);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  color: var(--foreground);
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-ghost:active { transform: scale(0.98); }

.btn-link {
  color: var(--foreground);
  padding: 4px 0;
  background: transparent;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  border-left: 0; border-right: 0; border-top: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.btn-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn .arrow { transition: transform var(--d-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-link:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Card primitive
   ========================================================= */
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  transition: border-color var(--d-fast) var(--ease-out),
              transform var(--d-fast) var(--ease-out),
              background-color var(--d-fast) var(--ease-out);
}
.surface.elev { box-shadow: var(--shadow-card); }

/* =========================================================
   Navbar — pill, top-center, theme-aware
   ========================================================= */
.nav {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 16px;
  /* Solid (slightly translucent) background — avoids per-frame backdrop blur
     which was a significant scroll-jank source. */
  background: color-mix(in oklch, var(--background) 96%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 12px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--foreground);
  color: var(--background);
  font-family: "Inter";
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.04em;
}
.brand-word {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--foreground);
}

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--foreground-muted);
  transition: color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}
.nav-link:hover { color: var(--foreground); }
.nav-link.active { color: var(--foreground); background: var(--surface-2); }

.nav-cta {
  margin-left: 4px;
  padding: 8px 14px;
  font-size: 13px;
}

.nav-mobile { display: none; }

/* Theme toggle button */
.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground-muted);
  display: grid; place-items: center;
  cursor: pointer;
  margin-left: 4px;
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.theme-toggle:hover { color: var(--foreground); border-color: var(--border-strong); }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    font-size: 13px;
    cursor: pointer;
  }
  .nav-mobile svg { width: 14px; height: 14px; transition: transform var(--d-fast) var(--ease-out); }
  .nav-mobile.is-open svg { transform: rotate(90deg); }
  .nav-inner { padding: 4px 4px 4px 12px; }
}

/* Mobile drawer — slides down from top, sits below the pill nav */
.nav-drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 75;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 88px 24px 24px;
  transform: translateY(-100%);
  transition: transform var(--d-base) var(--ease-out);
  pointer-events: none;
  visibility: hidden;
}
.nav-drawer.is-open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.nav-drawer ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 2px;
}
.nav-drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--r-2);
  color: var(--foreground);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background-color var(--d-fast) var(--ease-out);
}
.nav-drawer a:hover { background: var(--surface); }
.nav-drawer a.active { background: var(--surface-2); border-color: var(--border); }
.nav-drawer a .arrow {
  color: var(--foreground-subtle);
  transition: transform var(--d-fast) var(--ease-out);
}
.nav-drawer a:hover .arrow { transform: translateX(2px); color: var(--foreground); }
.nav-drawer .drawer-cta {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500;
}

/* Show drawer toggle only at mobile breakpoint */
@media (min-width: 921px) {
  .nav-drawer { display: none; }
}

/* Lock background scroll when drawer open */
body.nav-open { overflow: hidden; }

/* Scroll progress — single hairline, no glow */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  width: var(--p, 0%);
  background: var(--accent);
  z-index: 90;
  transition: width 0.1s linear;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  margin-top: var(--s-10);
  padding: var(--s-9) 0 var(--s-7);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: var(--s-7);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.footer-brand .lead {
  font-size: 14px;
  max-width: 36ch;
  margin-top: 16px;
  color: var(--foreground-muted);
}
.footer-col h5 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foreground-subtle);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  color: var(--foreground-muted);
  font-size: 14px;
  transition: color var(--d-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--foreground); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--foreground-subtle);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.05em;
}

/* Floating CTA fab — removed */

/* =========================================================
   Reveal-on-scroll — initial state set in CSS, animated by Motion (motion.dev)
   We deliberately do NOT set will-change permanently — it creates GPU layers
   that slow scroll repaints. Motion adds it during animation only.
   ========================================================= */
[data-reveal],
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
}
[data-motion="off"] [data-reveal],
[data-motion="off"] [data-reveal-stagger] > * {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* =========================================================
   Marquee (logos)
   ========================================================= */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 64px;
  animation: marquee 60s linear infinite;
  width: max-content;
  align-items: center;
}
[data-motion="off"] .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

.tech-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--foreground-subtle);
  font-family: "Inter";
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color var(--d-fast) var(--ease-out);
}
.tech-logo:hover { color: var(--foreground); }

/* =========================================================
   Service / feature card (rebuilt — border-first, no gradient bg)
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (max-width: 540px) { .card-grid { grid-template-columns: 1fr; } }

/* Auto-fit grid utility — graceful collapse from N→1 columns */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.card {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: var(--r-4);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--d-fast) var(--ease-out),
              transform var(--d-fast) var(--ease-out);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card .card-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--t-mono);
  color: var(--foreground-subtle);
  letter-spacing: 0.18em;
  font-weight: 500;
}
.card .card-title {
  font-family: "Inter";
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 12px;
  color: var(--foreground);
  line-height: 1.25;
}
.card .card-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--foreground-muted);
  line-height: 1.55;
}
.card .card-meta {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--foreground-muted);
  text-transform: uppercase;
  font-weight: 500;
}
.chip.accent {
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 40%, transparent);
  background: var(--accent-soft);
}

/* Service icon — flat outline, no gradient plate */
.svc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--foreground);
}
.svc-icon svg { width: 18px; height: 18px; stroke-width: 1.5; }

/* =========================================================
   Stats counter
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--background);
}
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

.stat {
  background: var(--background);
  padding: 32px 28px;
  position: relative;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
@media (min-width: 800px) {
  .stat:nth-child(4n) { border-right: none; }
  .stat:nth-last-child(-n+4) { border-bottom: none; }
}
@media (max-width: 800px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

.stat .num {
  font-family: "Inter";
  font-weight: 500;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--foreground);
}
.stat .num .unit { color: var(--foreground-subtle); margin-left: 2px; }
.stat .lbl {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foreground-subtle);
  margin-top: 14px;
  display: block;
  font-weight: 500;
}

/* =========================================================
   Forms
   ========================================================= */
.field {
  position: relative;
  display: block;
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  color: var(--foreground-subtle);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 16px;
  height: 44px;
  border-radius: var(--r-2);
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out);
}
.field textarea { height: auto; resize: vertical; min-height: 120px; padding-top: 12px; }
.field input::placeholder, .field textarea::placeholder { color: var(--foreground-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 1px var(--foreground);
}

/* =========================================================
   3D tilt artifact (used in hero — single card, mouse-tracked)
   ========================================================= */
.tilt-stage {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.tilt-card {
  position: relative;
  border-radius: var(--r-4);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elev);
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.5s var(--ease-out), border-color var(--d-fast) var(--ease-out);
  will-change: transform;
}
.tilt-card.is-tilting { transition: transform 0.08s linear; }

/* Inner depth layers — pushed forward in Z to give parallax feel on tilt */
.tilt-layer { transform-style: preserve-3d; }
.tilt-z-1 { transform: translateZ(20px); }
.tilt-z-2 { transform: translateZ(40px); }
.tilt-z-3 { transform: translateZ(60px); }

[data-motion="off"] .tilt-card { transform: none !important; transition: none; }

/* Tilt is mouse-only; on coarse pointers (touch) and narrow viewports,
   keep the card flat. The data-tilt JS also bails on touch. */
@media (pointer: coarse), (max-width: 720px) {
  .tilt-card, .tilt-card.is-tilting { transform: none !important; }
  .tilt-z-1, .tilt-z-2, .tilt-z-3 { transform: none; }
}

/* =========================================================
   Utilities
   ========================================================= */
.flex { display: flex; }
.col { flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .hide-mobile { display: none !important; } }

/* Selection */
::selection { background: var(--accent); color: var(--accent-foreground); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
  border: 2px solid var(--background);
}
::-webkit-scrollbar-thumb:hover { background: var(--foreground-subtle); }
