/* ============ DrZan Labs — design tokens ============ */
:root {
  /* brand */
  --blue: #4f8cff;
  --blue-soft: #7aa8ff;
  --blue-deep: #1e4fd1;

  /* dark (default) */
  --bg: #06080d;
  --bg-1: #0a0e17;
  --bg-2: #0f1422;
  --panel: rgba(255,255,255,0.02);
  --panel-2: rgba(255,255,255,0.04);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --ink: #e9edf5;
  --ink-dim: #9aa4b8;
  --ink-mute: #6b7590;
  --accent: var(--blue);
  --accent-glow: rgba(79,140,255,0.35);
  --grid-line: rgba(255,255,255,0.035);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.6), 0 10px 30px -10px rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-1: #eef1f7;
  --bg-2: #ffffff;
  --panel: rgba(10,14,23,0.02);
  --panel-2: rgba(10,14,23,0.04);
  --line: rgba(10,14,23,0.09);
  --line-strong: rgba(10,14,23,0.18);
  --ink: #0b1020;
  --ink-dim: #4a5876;
  --ink-mute: #7a86a0;
  --accent: #1e4fd1;
  --accent-glow: rgba(30,79,209,0.22);
  --grid-line: rgba(10,14,23,0.05);
  --shadow-lg: 0 30px 80px -30px rgba(20,30,60,0.25), 0 10px 30px -15px rgba(20,30,60,0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 420ms ease, color 420ms ease;
}

.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ============ layout ============ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ============ background field ============ */
.bg-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-glow), transparent 60%),
    radial-gradient(800px 500px at 0% 10%, color-mix(in oklab, var(--accent) 35%, transparent), transparent 60%),
    linear-gradient(to bottom, var(--bg), var(--bg-1) 40%, var(--bg));
  opacity: 0.9;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

/* ============ cable weave (full-page 3D cable runs) ============ */
.cables {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  overflow: visible;
}
.cables-back  { z-index: 0; }
.cables-front { z-index: 5; }

/* ============ header ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-name {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand-name .dim { color: var(--ink-dim); font-weight: 400; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 14px;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-ctrl { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; transition: all 200ms ease;
}
.icon-btn:hover { background: var(--panel-2); border-color: var(--line-strong); }

.pill-btn {
  height: 36px; padding: 0 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  cursor: pointer; transition: all 200ms ease;
}
.pill-btn:hover { background: var(--panel-2); border-color: var(--line-strong); }
.pill-btn.active { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, var(--line-strong)); }

.cta-btn {
  height: 40px; padding: 0 18px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: #fff;
  background: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 80%, #fff);
  box-shadow: 0 10px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
  cursor: pointer; text-decoration: none;
  transition: transform 160ms ease, box-shadow 200ms ease;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.22); }
.cta-btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.cta-btn.ghost:hover { background: var(--panel); }

/* ============ hero ============ */
.hero {
  position: relative; z-index: 1;
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  display: block;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

/* Giant rack scenery sits behind the copy — shifted to the right, ~3x visual size */
.hero-bg-rack {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: min(756px, 59%);
  aspect-ratio: 1 / 1;
  z-index: 0;
  pointer-events: none;
  /* soft-fade into the page background on all sides */
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 60% 50%, #000 40%, rgba(0,0,0,0.6) 70%, transparent 95%);
  mask-image: radial-gradient(ellipse 60% 55% at 60% 50%, #000 40%, rgba(0,0,0,0.6) 70%, transparent 95%);
  opacity: 0.9;
  filter: saturate(1.05);
}
[data-theme="light"] .hero-bg-rack {
  opacity: 0.55;
  filter: saturate(0.9) contrast(1);
}
.hero-bg-rack > div { width: 100%; height: 100%; }

@media (max-width: 760px) {
  .hero-bg-rack { display: none; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 100px;
  background: var(--panel); border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

.h1 {
  margin: 24px 0 20px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.h1 .em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--accent), var(--blue-soft) 60%, var(--ink));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px; line-height: 1.55; color: var(--ink-dim);
  max-width: 540px; text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.stat .num {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500; font-size: 28px; letter-spacing: -0.02em; color: var(--ink);
}
.stat .lbl { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }

/* legacy hero-visual — no longer used, kept as no-op */
.hero-visual { display: none; }

/* entry animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ============ section primitives ============ */
section { position: relative; z-index: 1; }
.sec { padding: 80px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.sec-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.sec-kicker::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.sec-title {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500; font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.03em; line-height: 1.05;
  margin: 14px 0 0; max-width: 720px; text-wrap: balance;
}
.sec-sub { color: var(--ink-dim); max-width: 520px; font-size: 15px; line-height: 1.6; }

/* ============ services — editorial list ============ */
.svc-list {
  border-top: 1px solid var(--line-strong);
}
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto 40px;
  gap: 24px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 260ms ease, padding 260ms ease;
}
.svc-row::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: center;
  transition: transform 320ms cubic-bezier(0.2,0.8,0.2,1);
}
.svc-row:hover { background: var(--panel); padding-left: 20px; }
.svc-row:hover::before { transform: scaleY(0.6); }
.svc-row.open::before { transform: scaleY(1); }
.svc-row.open { background: var(--panel); padding-left: 20px; }

.svc-row .r-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--ink-mute); letter-spacing: 0.12em;
}
.svc-row.open .r-num { color: var(--accent); }

.svc-row .r-title {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.15;
  display: flex; align-items: baseline; gap: 18px;
  flex-wrap: wrap;
}
.svc-row .r-short {
  font-size: 14px;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.svc-row.open .r-title { color: var(--accent); }

.svc-row .r-icon {
  color: var(--ink-mute);
  transition: color 220ms ease;
}
.svc-row:hover .r-icon, .svc-row.open .r-icon { color: var(--accent); }

.svc-row .r-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  transition: all 220ms ease;
}
.svc-row:hover .r-toggle { border-color: var(--accent); color: var(--accent); }
.svc-row.open .r-toggle {
  background: var(--accent); color: #fff; border-color: var(--accent);
  transform: rotate(45deg);
}

.svc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 480ms cubic-bezier(0.2,0.8,0.2,1);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--accent) 3%, var(--panel));
}
.svc-panel.open { max-height: 380px; border-bottom-color: var(--line-strong); }
.svc-panel-inner {
  display: grid;
  grid-template-columns: 60px 1fr 260px;
  gap: 24px;
  padding: 8px 8px 32px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 380ms ease 120ms, transform 380ms ease 120ms;
}
.svc-panel.open .svc-panel-inner { opacity: 1; transform: none; }
.svc-panel-inner .desc {
  color: var(--ink-dim); font-size: 16px; line-height: 1.6;
  max-width: 620px; text-wrap: pretty; grid-column: 2;
}
.svc-panel-inner .side {
  grid-column: 3;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.svc-panel-inner .side-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.svc-panel-inner .chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.svc-panel-inner .chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.02em;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  color: var(--ink-dim);
}
.svc-panel-inner .inquire {
  font-size: 13px; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
}
.svc-panel-inner .inquire:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .svc-row { grid-template-columns: 44px 1fr 32px; gap: 14px; padding: 20px 8px; }
  .svc-row .r-icon { display: none; }
  .svc-row .r-short { display: none; }
  .svc-panel.open { max-height: 520px; }
  .svc-panel-inner { grid-template-columns: 44px 1fr; }
  .svc-panel-inner .desc, .svc-panel-inner .side { grid-column: 2; }
}

/* ============ approach ============ */
.approach {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
@media (max-width: 1060px) { .approach { grid-template-columns: 1fr; gap: 48px; } }
.approach p { color: var(--ink-dim); font-size: 16px; line-height: 1.65; }
.principles { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); }
.principle {
  padding: 24px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
}
.principle .idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--accent); letter-spacing: 0.1em; padding-top: 2px;
}
.principle h4 { margin: 0 0 6px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.principle p { margin: 0; font-size: 14px; line-height: 1.55; }

/* ============ tech logos ============ */
.tech-marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hero-marquee {
  margin-top: 72px;
  max-width: none;
  position: relative;
  z-index: 2;
}
.tech-track {
  display: flex; gap: 64px; white-space: nowrap;
  animation: slide 50s linear infinite;
  width: max-content;
}
.tech-track:hover { animation-play-state: paused; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tech-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-dim); font-family: "Inter Tight", sans-serif;
  font-size: 18px; letter-spacing: -0.01em;
  opacity: 0.7; transition: opacity 200ms ease, color 200ms ease;
}
.tech-logo:hover { opacity: 1; color: var(--ink); }
.tech-logo svg { width: 24px; height: 24px; }
.tech-brand-logo {
  width: 24px; height: 24px;
  display: block;
  filter: brightness(0) saturate(0);
}
[data-theme="dark"] .tech-brand-logo {
  filter: brightness(0) saturate(0) invert(1);
}

/* ============ process ============ */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step {
  padding: 36px 28px; position: relative;
  border-right: 1px solid var(--line);
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.step:last-child { border-right: none; }
@media (max-width: 900px) {
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
}
.step .snum {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--accent); letter-spacing: 0.12em;
}
.step h4 { margin: 40px 0 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.step p { margin: 0; font-size: 14px; color: var(--ink-dim); line-height: 1.55; }
.step::before {
  content: ""; position: absolute; left: 28px; top: 60px;
  width: 28px; height: 1px; background: var(--accent);
}

/* ============ cta ============ */
.cta-section {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  padding: 72px 56px;
  background:
    radial-gradient(700px 300px at 80% 20%, var(--accent-glow), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  text-align: center;
}
.cta-section::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 70%);
  opacity: 0.5;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500; font-size: clamp(34px, 4.2vw, 60px);
  letter-spacing: -0.03em; line-height: 1.02; margin: 10px auto 16px;
  max-width: 760px; text-wrap: balance;
}
.cta-section p { color: var(--ink-dim); max-width: 560px; margin: 0 auto 32px; font-size: 16px; line-height: 1.55; }
.cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============ footer ============ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 40px 0 32px; margin-top: 80px;
}
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot .copy { color: var(--ink-mute); font-size: 13px; }

/* utilities */
.divider { height: 1px; background: var(--line); }

/* ============ mobile dock (iOS-style) ============ */
.mobile-dock { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-ctrl a.cta-btn { display: none; }

  .mobile-dock {
    display: block;
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    width: min(92vw, 420px);
  }
  .mobile-dock-inner {
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 32px;
    background: color-mix(in oklab, var(--bg) 35%, transparent);
    backdrop-filter: saturate(180%) blur(32px);
    -webkit-backdrop-filter: saturate(180%) blur(32px);
    border: 1px solid color-mix(in oklab, #fff 14%, transparent);
    box-shadow:
      0 1px 0 color-mix(in oklab, #fff 22%, transparent) inset,
      0 0 0 1px rgba(0,0,0,.04),
      0 24px 48px -20px rgba(0,0,0,.5),
      0 10px 28px -12px rgba(0,0,0,.3);
  }
  .dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 180ms ease;
  }
  .dock-icon {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    color: var(--ink);
    --tint: var(--blue);
    /* liquid glass with subtle color tint */
    background:
      linear-gradient(160deg,
        color-mix(in oklab, var(--tint) 22%, transparent) 0%,
        color-mix(in oklab, #fff 6%, transparent) 55%,
        color-mix(in oklab, var(--tint) 14%, transparent) 100%);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid color-mix(in oklab, #fff 18%, transparent);
    box-shadow:
      0 1px 0 color-mix(in oklab, #fff 35%, transparent) inset,
      0 -1px 0 color-mix(in oklab, #000 18%, transparent) inset,
      0 0 0 1px color-mix(in oklab, #000 8%, transparent),
      0 8px 20px -8px color-mix(in oklab, var(--tint) 25%, rgba(0,0,0,.4));
  }

  /* per-icon tints — stay within site's blue family */
  .dock-item:nth-child(1) .dock-icon { --tint: #4f8cff; }  /* blue (services) */
  .dock-item:nth-child(2) .dock-icon { --tint: #7aa8ff; }  /* blue-soft (approach) */
  .dock-item:nth-child(3) .dock-icon { --tint: #3a6fe0; }  /* blue-mid (process) */
  .dock-item:nth-child(4) .dock-icon { --tint: #1e4fd1; }  /* blue-deep (contact) */
  .dock-icon::before {
    /* specular top highlight */
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 55%;
    border-radius: 17px 17px 40% 40% / 17px 17px 100% 100%;
    background: linear-gradient(180deg,
      color-mix(in oklab, #fff 28%, transparent) 0%,
      color-mix(in oklab, #fff 0%, transparent) 100%);
    pointer-events: none;
    z-index: 1;
  }
  .dock-icon::after {
    /* refraction rim at bottom */
    content: "";
    position: absolute;
    inset: auto 6px 2px 6px;
    height: 1px;
    background: linear-gradient(90deg,
      transparent,
      color-mix(in oklab, #fff 30%, transparent),
      transparent);
    z-index: 1;
  }
  .dock-icon svg {
    position: relative;
    z-index: 2;
    stroke-width: 1.8;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.3));
    color: color-mix(in oklab, var(--tint) 50%, #fff);
  }

  /* light theme: icons should be darker, glass lighter */
  [data-theme="light"] .dock-icon {
    background:
      linear-gradient(160deg,
        color-mix(in oklab, var(--tint) 28%, #fff) 0%,
        rgba(255,255,255,0.7) 55%,
        color-mix(in oklab, var(--tint) 20%, #fff) 100%);
    border-color: rgba(255,255,255,.8);
    box-shadow:
      0 1px 0 rgba(255,255,255,.9) inset,
      0 -1px 0 rgba(0,0,0,.04) inset,
      0 0 0 1px rgba(0,0,0,.04),
      0 8px 20px -8px color-mix(in oklab, var(--tint) 35%, rgba(0,0,0,.2));
  }
  [data-theme="light"] .dock-icon svg {
    filter: none;
    color: color-mix(in oklab, var(--tint) 75%, #000);
  }

  .dock-item:active { transform: scale(.9); }
  .dock-item:active .dock-icon {
    background:
      linear-gradient(160deg,
        color-mix(in oklab, var(--tint) 32%, transparent) 0%,
        color-mix(in oklab, var(--tint) 18%, transparent) 100%);
  }

  /* give page room so dock doesn't cover footer/CTA */
  body { padding-bottom: 92px; }
}

/* ============ cookie banner ============ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  box-shadow: 0 -8px 32px rgba(0,0,0,.12);
}
.cookie-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text strong { display: block; margin-bottom: 4px; font-size: 14px; }
.cookie-text p { font-size: 13px; color: var(--ink-dim); margin: 0; line-height: 1.5; }
.cookie-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent); font-size: inherit; text-decoration: underline;
}
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ============ legal modal ============ */
.lmodal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lmodal {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%; max-width: 680px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
}
.lmodal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.lmodal-header h2 { font-size: 18px; font-weight: 600; margin: 0; }
.lmodal-close {
  background: none; border: none; cursor: pointer;
  color: var(--ink-mute); padding: 4px;
  display: flex; align-items: center;
  border-radius: 6px; transition: background 150ms;
}
.lmodal-close:hover { background: var(--line); color: var(--ink); }
.lmodal-body {
  overflow-y: auto; padding: 20px 24px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.lmodal-section h3 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent); margin: 0 0 6px;
}
.lmodal-section p { font-size: 14px; color: var(--ink-dim); margin: 0; line-height: 1.65; }

/* ============ footer legal links ============ */
.footer-legal-link {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 12px; color: var(--ink-mute); font-family: inherit;
  transition: color 150ms;
}
.footer-legal-link:hover { color: var(--ink); }
