/* AXISITE — premium futuristic studio site
   tokens, base, motion */

:root {
  /* Core neutrals — graphite ladder with a faint cool tint */
  --bg-0: #06070a;
  --bg-1: #0a0c11;
  --bg-2: #0e1117;
  --bg-3: #13161d;
  --bg-4: #1a1e26;

  /* Hairlines and overlays */
  --line-1: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.18);

  /* Type */
  --fg-0: oklch(0.97 0.005 240);
  --fg-1: oklch(0.86 0.008 240);
  --fg-2: oklch(0.66 0.01 240);
  --fg-3: oklch(0.50 0.012 240);
  --fg-4: oklch(0.38 0.012 240);

  /* Accent — soft ice-blue (default) */
  --acc:        oklch(0.86 0.10 220);
  --acc-strong: oklch(0.78 0.13 220);
  --acc-glow:   oklch(0.86 0.14 220 / 0.35);
  --acc-tint:   oklch(0.86 0.10 220 / 0.10);

  /* Type families */
  --ff-display: "Geist", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ff-body:    "Geist", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ff-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0.0, 0.2, 1);

  /* Density */
  --pad-section: clamp(64px, 9vw, 140px);
  --pad-x: clamp(20px, 5vw, 80px);
  --gap: 16px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(120, 200, 255, 0.06), transparent 60%),
    radial-gradient(900px 500px at 80% 110%, rgba(120, 200, 255, 0.04), transparent 60%),
    var(--bg-0);
  overflow-x: hidden;
}

::selection { background: var(--acc-tint); color: var(--fg-0); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Animated grid background ───────────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(128, 225, 254, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 225, 254, 0.015) 1px, transparent 1px);
  background-size: 17px 17px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
}
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 360px at 50% 0%, rgba(140, 210, 255, 0.10), transparent 70%);
}
.grid-bg.intensity-off { display: none; }
.grid-bg.intensity-strong {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
}

/* Page-level scaffolding */
.page { position: relative; z-index: 1; }
.section {
  padding: var(--pad-section) var(--pad-x);
  position: relative;
}
.section--tight { padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(32px, 4vw, 64px); }
.container { max-width: 1280px; margin: 0 auto; width: 100%; }

/* ── Type scale ─────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc-glow);
}

.h-display {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg-0);
  margin: 0;
}
.h-display em {
  font-style: normal;
  background: linear-gradient(180deg, var(--fg-0) 0%, var(--fg-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-display .acc {
  font-style: normal;
  color: var(--acc);
}

.h-section {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg-0);
  margin: 0;
}

.lede {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-2);
  max-width: 56ch;
  line-height: 1.55;
  margin: 0;
}

.mono { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.04em; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--fg-0);
  --btn-fg: var(--bg-0);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border: 0.5px solid transparent;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  --btn-bg: linear-gradient(180deg, oklch(0.96 0.01 240) 0%, oklch(0.88 0.02 240) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 0 0 1px rgba(255,255,255,0.08),
    0 18px 60px -12px var(--acc-glow);
}
.btn--primary:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 0 0 1px rgba(255,255,255,0.12),
    0 24px 80px -12px var(--acc-glow);
}
.btn--ghost {
  --btn-bg: rgba(255,255,255,0.04);
  --btn-fg: var(--fg-0);
  border-color: var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,0.08); border-color: var(--line-3); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ── Cards & glass ──────────────────────────────────────────────────── */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%),
    var(--bg-2);
  border: 0.5px solid var(--line-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.card:hover {
  border-color: var(--line-3);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6),
              0 0 0 1px var(--line-1),
              0 0 60px -20px var(--acc-glow);
}
.card .card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%),
              var(--acc-tint), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover .card-glow { opacity: 1; }

.glass {
  background: rgba(14, 17, 23, 0.62);
  border: 0.5px solid var(--line-2);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 12px 40px rgba(0,0,0,0.45);
}

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-1);
}
.nav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 14px;
  color: var(--fg-0);
  padding-right: 14px;
  border-right: 0.5px solid var(--line-2);
  margin-right: 6px;
}
.nav .brand-mark {
  width: 18px; height: 18px; position: relative;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 12px; border-radius: 999px;
  color: var(--fg-2);
  transition: color .2s, background .2s;
  font-size: 13px;
}
.nav-links a:hover { color: var(--fg-0); background: rgba(255,255,255,0.04); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(120px, 14vh, 180px);
  padding-bottom: clamp(60px, 6vw, 100px);
}
.hero-inner { display: grid; gap: clamp(40px, 5vw, 64px); }
.hero-head { display: grid; gap: 24px; max-width: 1000px; }
.hero-meta {
  display: flex;
  gap: 3px;
  color: var(--fg-3);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.hero-meta p { white-space: nowrap; }
.hero-meta .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 12px oklch(0.78 0.18 145 / 0.6);
  animation: pulse 2s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Mockup wrapper */
.mockup {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid var(--line-2);
  background: var(--bg-2);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 60px 140px -40px rgba(0,0,0,0.7),
    0 0 100px -30px var(--acc-glow);
}
.mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(800px 400px at 50% -10%, rgba(140, 210, 255, 0.08), transparent 70%);
  z-index: 2;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 0.5px solid var(--line-1);
  background: rgba(0,0,0,0.25);
}
.mockup-bar .dots { display: flex; gap: 6px; }
.mockup-bar .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid var(--line-2);
}
.mockup-bar .url {
  flex: 1; max-width: 360px;
  height: 22px;
  display: flex; align-items: center;
  padding: 0 10px;
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--line-1);
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.mockup-bar .right { display: flex; gap: 8px; margin-left: auto; }
.mockup-bar .right span {
  font-family: var(--ff-mono); font-size: 10.5px;
  color: var(--fg-3);
  padding: 3px 8px; border-radius: 5px;
  border: 0.5px solid var(--line-1);
}

/* Dashboard mockup grid */
.dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 480px;
  background:
    radial-gradient(700px 400px at 70% 20%, rgba(120, 200, 255, 0.06), transparent 70%),
    var(--bg-1);
}
@media (max-width: 760px) { .dash { grid-template-columns: 1fr; height: auto; } }

.dash-side {
  border-right: 0.5px solid var(--line-1);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0,0,0,0.15);
}
@media (max-width: 760px) { .dash-side { display: none; } }
.dash-side .group {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-4);
  padding: 14px 10px 6px;
}
.dash-side .item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--fg-2);
  cursor: default;
  transition: background .15s, color .15s;
}
.dash-side .item:hover { color: var(--fg-0); background: rgba(255,255,255,0.03); }
.dash-side .item.active { background: rgba(255,255,255,0.05); color: var(--fg-0); }
.dash-side .item .ico {
  width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, var(--acc), oklch(0.78 0.13 220));
  opacity: .6;
}
.dash-side .item.active .ico { opacity: 1; box-shadow: 0 0 12px var(--acc-glow); }
.dash-side .item .badge {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--fg-3);
  padding: 1px 6px;
  border: 0.5px solid var(--line-1);
  border-radius: 4px;
}

.dash-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.dash-head h4 {
  margin: 0; font-family: var(--ff-display);
  font-weight: 500; font-size: 18px; letter-spacing: -0.01em;
  color: var(--fg-0);
}
.dash-head .crumb {
  font-family: var(--ff-mono); font-size: 10.5px;
  color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase;
}
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 600px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 12px 14px;
  border: 0.5px solid var(--line-1);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
}
.stat .lab {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.stat .val {
  margin-top: 6px;
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--fg-0);
}
.stat .delta {
  font-family: var(--ff-mono); font-size: 10.5px;
  color: oklch(0.78 0.18 145); margin-left: 8px;
}
.stat .delta.dn { color: oklch(0.72 0.18 30); }

/* SVG chart */
.chart {
  flex: 1;
  border: 0.5px solid var(--line-1);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent),
    rgba(0,0,0,0.2);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
}
.chart-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--ff-mono); font-size: 10.5px;
  color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase;
}
.chart-head .legend { display: flex; gap: 14px; }
.chart-head .legend i {
  display: inline-block; width: 8px; height: 2px; margin-right: 6px;
  background: var(--acc); vertical-align: middle;
}
.chart-head .legend i.b { background: var(--fg-3); }
.chart-svg { width: 100%; flex: 1; min-height: 0; }

/* Floating tag (cinematic detail) */
.float-tag {
  position: absolute;
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-1);
  letter-spacing: 0.04em;
  animation: float 6s ease-in-out infinite;
}
.float-tag .ico {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--acc), oklch(0.7 0.14 220));
  display: grid; place-items: center;
  color: var(--bg-0);
  font-weight: 600;
  box-shadow: 0 0 18px var(--acc-glow);
}
.float-tag.tl { top: -22px; left: 6%; animation-delay: 0s; }
.float-tag.br { bottom: -18px; right: 6%; animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 760px) { .float-tag { display: none; } }

/* ── Section header pattern ─────────────────────────────────────────── */
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head .left { display: grid; gap: 14px; max-width: 720px; }
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
}

/* ── Services ───────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.svc { grid-column: span 2; padding: 28px; min-height: 240px; display: flex; flex-direction: column; gap: 18px; }
.svc.feature { grid-column: span 3; }
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc.feature { grid-column: span 1; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}
.svc-num {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--fg-4);
}
.svc h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--fg-0);
}
.svc p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.55; max-width: 42ch; }
.svc .svc-tags { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.svc .tag {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 4px 8px;
  border: 0.5px solid var(--line-1);
  border-radius: 999px;
}
.svc-icon {
  width: 36px; height: 36px;
  border: 0.5px solid var(--line-2);
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.02);
  color: var(--acc);
}

/* ── Process timeline ───────────────────────────────────────────────── */
.proc {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--line-2);
  border-bottom: 0.5px solid var(--line-2);
  position: relative;
}
.proc::before {
  content: "";
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0.55;
}
.proc-step {
  padding: 32px 28px;
  border-right: 0.5px solid var(--line-1);
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  cursor: default;
  transition: background 0.25s ease;
}
.proc-step:last-child { border-right: 0; }
.proc-step:hover { background: rgba(255,255,255,0.015); }
.proc-step .num {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 10px;
}
.proc-step .num .marker {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--fg-4);
  transition: background 0.3s, box-shadow 0.3s;
}
.proc-step:hover .num .marker {
  background: var(--acc);
  box-shadow: 0 0 14px var(--acc-glow);
}
.proc-step h4 {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--fg-0);
}
.proc-step p {
  margin: 0;
  font-size: 13px; color: var(--fg-2); line-height: 1.5;
}
@media (max-width: 1000px) {
  .proc { grid-template-columns: 1fr 1fr; }
  .proc-step:nth-child(2n) { border-right: 0; }
  .proc-step { border-bottom: 0.5px solid var(--line-1); }
}
@media (max-width: 600px) {
  .proc { grid-template-columns: 1fr; }
  .proc-step { border-right: 0; }
}

/* ── Portfolio ──────────────────────────────────────────────────────── */
.portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) { .portfolio { grid-template-columns: 1fr; } }
.case {
  padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
  cursor: default;
}
.case.wide { grid-column: span 2; }
@media (max-width: 900px) { .case.wide { grid-column: span 1; } }
.case-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.case-meta .who {
  font-family: var(--ff-mono); font-size: 10.5px;
  color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase;
}
.case-meta .stat {
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--ff-mono); font-size: 10.5px;
  color: var(--acc);
  border: 0.5px solid var(--acc-tint);
  background: var(--acc-tint);
}
.case h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--fg-0);
}
.case p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.55; }

.case-mockup {
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid var(--line-1);
  background: var(--bg-1);
  position: relative;
  aspect-ratio: 16/10;
}
.case.wide .case-mockup { aspect-ratio: 16/7; }
.case-stats {
  display: flex; gap: 24px;
  padding-top: 14px;
  border-top: 0.5px solid var(--line-1);
}
.case-stats .pair { display: grid; gap: 2px; }
.case-stats .v {
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--fg-0);
}
.case-stats .l {
  font-family: var(--ff-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}

/* ── Portfolio strip (demoted) ──────────────────────────────────────── */
.portfolio-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 0.5px solid var(--line-1);
  border-radius: 16px;
  background:
    radial-gradient(60% 80% at 0% 0%, var(--acc-tint), transparent 60%),
    var(--bg-1);
  position: relative;
  overflow: hidden;
}
.portfolio-strip-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.portfolio-strip-title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -0.025em;
  color: var(--fg-0);
  line-height: 1.08;
}
.portfolio-strip-body { margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.6; max-width: 52ch; }
.portfolio-strip-vis {
  border: 0.5px solid var(--line-1);
  border-radius: 12px;
  background: var(--bg-2);
  aspect-ratio: 16/10;
  overflow: hidden;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
          mask-image: linear-gradient(180deg, #000 60%, transparent);
}
@media (max-width: 900px) {
  .portfolio-strip { grid-template-columns: 1fr; }
  .portfolio-strip-vis { display: none; }
}

/* ── Stack marquee ──────────────────────────────────────────────────── */
.stack-row {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-top: 0.5px solid var(--line-1);
  border-bottom: 0.5px solid var(--line-1);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.stack-row::before, .stack-row::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.stack-row::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.stack-row::after  { right: 0; background: linear-gradient(-90deg, var(--bg-0), transparent); }
.stack-track {
  display: flex; gap: 40px; align-items: center;
  width: max-content;
  animation: scroll 50s linear infinite;
}
.stack-row.rev .stack-track { animation-direction: reverse; animation-duration: 65s; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.stack-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0.5px solid var(--line-1);
  background: rgba(255,255,255,0.015);
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--fg-1);
  white-space: nowrap;
}
.stack-item .glyph {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--acc);
  opacity: 0.7;
  box-shadow: 0 0 8px var(--acc-glow);
}

/* ── Why grid ───────────────────────────────────────────────────────── */
.why {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why-feature {
  padding: 36px;
  display: grid; gap: 22px;
  align-content: end;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.why-feature .scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 360px at 80% 0%, var(--acc-tint), transparent 70%),
    radial-gradient(400px 260px at 0% 100%, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
}
.why-feature h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em; line-height: 1.05;
  font-weight: 500;
  color: var(--fg-0);
}
.why-feature p { margin: 0; color: var(--fg-2); font-size: 15px; max-width: 38ch; }

.why-list { display: grid; gap: 10px; }
.why-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  padding: 18px 22px;
  border: 0.5px solid var(--line-1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.012);
  align-items: center;
  transition: border-color .25s, background .25s;
}
.why-row:hover { border-color: var(--line-3); background: rgba(255,255,255,0.025); }
.why-row .num {
  font-family: var(--ff-mono);
  font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em;
}
.why-row .body { display: grid; gap: 4px; }
.why-row .body strong {
  font-family: var(--ff-display);
  font-weight: 500; font-size: 15px; color: var(--fg-0);
}
.why-row .body span { font-size: 13px; color: var(--fg-2); }
.why-row .arrow { color: var(--fg-4); transition: color .2s, transform .25s; }
.why-row:hover .arrow { color: var(--acc); transform: translateX(3px); }

/* ── Contact ────────────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-info { padding: 36px; display: grid; gap: 28px; align-content: start; }
.contact-info .h-section { font-size: clamp(28px, 3vw, 44px); }
.contact-info dl {
  display: grid; gap: 18px; margin: 0;
  padding-top: 20px;
  border-top: 0.5px solid var(--line-1);
}
.contact-info dl > div { display: grid; gap: 4px; }
.contact-info dt {
  font-family: var(--ff-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.contact-info dd { margin: 0; font-size: 15px; color: var(--fg-1); font-family: var(--ff-mono); }
.contact-info dd a:hover { color: var(--acc); }

.form { padding: 32px; display: grid; gap: 14px; align-content: start; }
.form-row { display: grid; gap: 6px; }
.form-row .lbl {
  font-family: var(--ff-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
  display: flex; justify-content: space-between;
}
.form-row .req { color: oklch(0.72 0.18 30); display: none; }
.form-row.invalid .req { display: inline; }
.form-row input, .form-row textarea, .form-row select {
  appearance: none;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: rgba(255,255,255,0.02);
  border: 0.5px solid var(--line-2);
  border-radius: 10px;
  color: var(--fg-0);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-row textarea { height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--fg-4); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--acc);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 4px var(--acc-tint);
}
.form-row.row-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.row-grid .form-row { gap: 6px; }
.form-row.invalid input, .form-row.invalid textarea, .form-row.invalid select {
  border-color: oklch(0.72 0.18 30);
}
.form-row input::selection, .form-row textarea::selection {
  background: var(--acc-strong);
  color: var(--bg-0);
}
.form-row select option {
  background: #ffffff;
  color: #111111;
}
.form .submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 8px; }
.form .legal {
  font-family: var(--ff-mono); font-size: 10.5px; color: var(--fg-3); letter-spacing: 0.04em;
}

/* Service chips inside contact */
.svc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.svc-chip {
  appearance: none;
  background: transparent;
  border: 0.5px solid var(--line-2);
  color: var(--fg-2);
  font-family: var(--ff-mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.svc-chip:hover { border-color: var(--line-3); color: var(--fg-0); }
.svc-chip[aria-pressed="true"] {
  border-color: var(--acc);
  background: var(--acc-tint);
  color: var(--acc);
}

.form .success {
  padding: 14px 16px;
  border-radius: 10px;
  border: 0.5px solid oklch(0.78 0.18 145 / 0.3);
  background: oklch(0.78 0.18 145 / 0.08);
  color: oklch(0.86 0.12 145);
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  margin-top: clamp(60px, 8vw, 120px);
  padding: clamp(60px, 8vw, 100px) var(--pad-x) 40px;
  border-top: 0.5px solid var(--line-1);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc) 50%, transparent);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 {
  margin: 0 0 14px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--fg-1); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--acc); }
.footer-brand .logo-large {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--fg-0);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 14px; color: var(--fg-2); max-width: 32ch; }
.footer-bottom {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 0.5px solid var(--line-1);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--ff-mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.04em;
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* Status pill in footer */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 999px;
  border: 0.5px solid var(--line-1);
  background: rgba(255,255,255,0.015);
  font-family: var(--ff-mono); font-size: 11px; color: var(--fg-2);
}
.status-pill .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 10px oklch(0.78 0.18 145 / 0.6);
  animation: pulse 2s var(--ease-soft) infinite;
}

/* ── Density variants ───────────────────────────────────────────────── */
[data-density="compact"]  { --pad-section: clamp(48px, 6vw, 96px); --pad-x: clamp(16px, 4vw, 56px); }
[data-density="spacious"] { --pad-section: clamp(80px, 12vw, 180px); --pad-x: clamp(24px, 6vw, 100px); }

/* ── Reveal on scroll ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ── Wires diagnostic ───────────────────────────────────────────────── */
[data-wires="1"] .section { outline: 1px dashed rgba(120, 200, 255, 0.25); outline-offset: -1px; }
[data-wires="1"] .card,
[data-wires="1"] .proc-step,
[data-wires="1"] .why-row { outline: 1px dashed rgba(255, 200, 120, 0.25); }

/* ── Brand mark ─────────────────────────────────────────────────────── */
.mark {
  display: inline-block;
  width: 18px; height: 18px;
  position: relative;
}
.mark::before, .mark::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 4px;
}
.mark::before {
  background: linear-gradient(135deg, var(--acc), oklch(0.72 0.13 220));
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--acc-glow);
}
.mark::after {
  border: 1px solid var(--fg-0);
  transform: rotate(45deg) scale(0.6);
  border-radius: 2px;
}
.mark.lg { width: 28px; height: 28px; }

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  width: 0;
  z-index: 100;
  pointer-events: none;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--acc-glow);
}

/* ── Mobile — 360 px → 480 px ───────────────────────────────────────── */
@media (max-width: 480px) {

  /* ── Spacing tokens ── */
  :root {
    --pad-section: 52px;
    --pad-x: 18px;
  }

  /* ── Nav ── */
  .nav-wrap { top: 10px; left: 10px; right: 10px; justify-content: stretch; }
  .nav {
    width: 100%;
    justify-content: space-between;
    padding: 7px 7px 7px 14px;
  }
  .nav .brand { font-size: 13px; padding-right: 10px; }

  /* ── Hero ── */
  .hero {
    padding-top: 96px;
    padding-bottom: 44px;
  }
  .hero-inner { gap: 28px; min-width: 0; }

  .hero-head {
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .hero-head > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .h-display {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.05;
  }

  .hero-meta {
    font-size: 10px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta .btn { justify-content: center; }
  .hero-hint {
    margin-left: 0 !important;
    text-align: center;
    font-size: 11px;
  }

  /* ── Mockup / dashboard ── */
  .mockup { border-radius: 12px; max-width: 100%; overflow: hidden; }
  .dash-main { padding: 16px; gap: 14px; min-width: 0; }
  .dash-head { gap: 8px; min-width: 0; }
  .dash-head h4 { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dash-head .crumb { display: none; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat .val { font-size: 17px; }
  .chart { padding: 10px 12px; gap: 8px; min-width: 0; overflow: hidden; }
  .chart-svg { max-width: 100%; display: block; }

  /* ── Section headers ── */
  .sec-head { margin-bottom: 24px; gap: 14px; }
  .h-section { font-size: clamp(22px, 6.5vw, 28px); letter-spacing: -0.02em; }

  /* ── Services ── */
  .svc {
    padding: 20px;
    min-height: unset;
    gap: 14px;
  }
  .svc h3 { font-size: 18px; }
  .svc p  { font-size: 13.5px; }
  .svc-icon { width: 32px; height: 32px; }

  /* ── Process timeline ── */
  .proc-step { padding: 20px 18px; gap: 10px; }
  .proc-step h4 { font-size: 15px; }
  .proc-step p  { font-size: 12.5px; }

  /* ── Portfolio strip ── */
  .portfolio-strip { padding: 22px 18px; gap: 18px; }
  .portfolio-strip-title { font-size: clamp(20px, 7vw, 28px); }
  .portfolio-strip-body  { font-size: 13.5px; }

  /* ── Why section ── */
  .why-feature {
    min-height: 240px;
    padding: 24px 20px;
    gap: 16px;
  }
  .why-feature h3 { font-size: clamp(20px, 6vw, 28px); }
  .why-feature p  { font-size: 14px; }

  .why-row {
    padding: 14px 14px;
    gap: 12px;
    grid-template-columns: 36px 1fr auto;
  }
  .why-row .body strong { font-size: 14px; }
  .why-row .body span   { font-size: 12.5px; }

  /* ── Contact ── */
  .contact-info { padding: 22px 20px; gap: 18px; }
  .contact-info .h-section { font-size: clamp(20px, 6.5vw, 28px); }
  .contact-info dl { gap: 14px; }
  .contact-info dd { font-size: 13.5px; }

  .form { padding: 20px 18px; gap: 12px; }
  .form-row.row-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-row input,
  .form-row select { height: 42px; font-size: 13px; }
  .form-row textarea { height: 100px; font-size: 13px; }
  .form .submit-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .form .submit-row .btn { justify-content: center; }
  .form .legal { text-align: center; }

  .svc-chips { gap: 5px; }
  .svc-chip  { font-size: 10.5px; padding: 5px 9px; }

  /* ── Footer ── */
  .footer {
    padding-top: 48px;
    padding-bottom: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand .logo-large { font-size: 22px; }
  .footer-brand p { font-size: 13px; }
  .footer-bottom { margin-top: 36px; gap: 10px; }
}
