/* Vanta Studio — tech-forward minimal, dark-first */

:root {
  --bg: #0a0908;
  --bg-2: #0f0d0c;
  --bg-3: #15120f;
  --fg: #f4efe7;
  --fg-2: #c8c1b4;
  --fg-3: #8b8479;
  --fg-4: #5a544b;
  --line: rgba(244, 239, 231, 0.08);
  --line-2: rgba(244, 239, 231, 0.14);
  --accent: #d8ff3b;
  /* On dark, the lime accent IS the readable accent for both fills and text. */
  --accent-ink: var(--accent);
  --on-accent: #0a0908;
  --radius: 14px;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --font-sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
}

[data-theme="light"] {
  --bg: #f7f5f0;
  --bg-2: #efece5;
  --bg-3: #e6e2d8;
  --fg: #14110e;
  --fg-2: #36322c;
  --fg-3: #6b665c;
  --fg-4: #9a948a;
  --line: rgba(20, 17, 14, 0.08);
  --line-2: rgba(20, 17, 14, 0.16);
  /* Light mode: keep --accent (lime) for FILLS where it sits on near-black
     (buttons get black bg below, eyebrow dot, etc). For TEXT-on-cream we use
     a deep ink variant with the brand-green character preserved. */
  --accent-ink: #14110e;
  --on-accent: #0a0908;
}

/* On lime fills, text + icons should be deep ink for max contrast. */
.btn--accent { color: var(--on-accent); }

/* Light mode: any inline `color: var(--accent)` (or inline hex from React) on
   TEXT ends up illegible on cream. Override the specific text-accent uses
   here with the ink variant, keeping the lime exclusive to FILLS (buttons,
   dots, flags, offer-cta, etc.) where it still pops.
   We use a CSS variable so JS-set inline `color: ...` from React props is
   beaten by these rules without `!important` everywhere. */
[data-theme="light"] .stat-k,
[data-theme="light"] .work-stat,
[data-theme="light"] .display-accent-dot,
[data-theme="light"] .cta-accent-em,
[data-theme="light"] .display-em-accent {
  color: var(--accent-ink) !important;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Subtle global grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, color-mix(in oklab, var(--accent) 6%, transparent), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.55;
}
[data-theme="light"] body::before { mix-blend-mode: multiply; opacity: 0.35; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dim { color: var(--fg-3); }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--lg { padding: 14px 22px; font-size: 14.5px; gap: 10px; }
.btn--accent {
  background: var(--accent);
  color: #0a0908;
  border-color: var(--accent);
}
.btn--accent:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--bg-2); border-color: var(--fg-3); }

/* ─────────── Eyebrow ─────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.eyebrow-num {
  display: inline-block;
  padding: 2px 7px; border-radius: 4px;
  background: var(--bg-3); color: var(--fg-2);
  border: 1px solid var(--line);
}

/* ─────────── Nav ─────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: backdrop-filter .25s, background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #000;
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 65%, transparent), transparent 60%);
  opacity: 0.9;
}
.brand-mark-inner {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--accent);
}
.brand-name { font-size: 14px; letter-spacing: -0.01em; }

.nav-links {
  display: flex; gap: 26px;
  justify-content: center;
  font-size: 13.5px;
  color: var(--fg-2);
}
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
}

/* ─────────── Display type ─────────── */
.display {
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.display-em {
  font-style: italic;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--fg-2);
}

.h2 {
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 14px 0 0;
  text-wrap: balance;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 52ch;
  margin: 0 0 28px;
}

.section-sub {
  font-size: 16px;
  color: var(--fg-2);
  max-width: 42ch;
  margin: 0;
  line-height: 1.55;
}

/* ─────────── Section base ─────────── */
.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  z-index: 1;
}
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  padding: clamp(120px, 14vw, 180px) 0 60px;
  z-index: 1;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-text { min-width: 0; }

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.meta-num {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.meta-unit {
  color: var(--fg-3);
  font-weight: 400;
  font-size: 0.7em;
  margin-left: 4px;
}

/* Hero visual frame */
.hero-visual-wrap {
  position: relative;
  min-height: 0;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
}
[data-theme="light"] .hero-visual { background: #0a0908; color: #f4efe7; }

/* — Variant A: orbit grid — */
.hero-visual--orbit {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in oklab, var(--accent) 22%, transparent) 0%,
      transparent 36%),
    #050403;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), black 0%, black 30%, rgba(0,0,0,0.3) 70%);
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), black 0%, black 30%, rgba(0,0,0,0.3) 70%);
}
.hero-rings {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.12);
  animation: spin 28s linear infinite;
}
.hero-ring--1 { width: 38%; height: 38%; }
.hero-ring--2 { width: 62%; height: 62%; animation-duration: 46s; animation-direction: reverse; }
.hero-ring--3 { width: 86%; height: 86%; animation-duration: 80s; }
.hero-core {
  width: 14%; height: 14%; border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 40px color-mix(in oklab, var(--accent) 65%, transparent),
    0 0 120px color-mix(in oklab, var(--accent) 25%, transparent);
}
.hero-orbit-dot {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  top: 50%; left: 50%;
  transform-origin: 0 0;
  animation: orbit 14s linear infinite;
}
.hero-orbit-dot--a { animation-duration: 14s; --r: 19%; }
.hero-orbit-dot--b { animation-duration: 24s; --r: 31%; background: var(--accent); }
.hero-orbit-dot--c { animation-duration: 40s; --r: 43%; }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--r, 22%)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--r, 22%)) rotate(-360deg); }
}
@keyframes spin {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
.hero-coords {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

/* — Variant B: terminal — */
.hero-visual--term {
  background: #050403;
  padding: 18px;
  display: grid;
  place-items: stretch;
}
.term {
  width: 100%; height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a0908;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.term-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.term-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.term-body {
  padding: 18px 18px 18px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #d8d2c4;
  flex: 1;
  position: relative;
}
.term-line { display: flex; gap: 14px; }
.term-t { color: rgba(255,255,255,0.35); width: 36px; flex-shrink: 0; }
.term-line--cmd .term-s { color: #fff; }
.term-line--ok .term-s { color: #b9c8a4; }
.term-line--accent .term-s { color: var(--accent); font-weight: 600; }
.term-line--dim .term-s { color: rgba(255,255,255,0.5); }
.term-cursor {
  display: inline-block;
  width: 8px; height: 14px; vertical-align: -2px;
  background: var(--accent);
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* — Variant C: vanta cube — */
.hero-visual--vanta {
  background:
    radial-gradient(circle at 50% 50%, #0a0908 0%, #000 70%);
  display: grid;
  place-items: center;
}
.vanta-cube {
  position: relative;
  width: 56%; aspect-ratio: 1 / 1;
  background: #000;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.9),
    0 30px 80px rgba(0,0,0,0.6);
  overflow: hidden;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.vanta-cube.is-lit { transform: rotate(-2deg) scale(1.02); }
.vanta-face { display: none; }
.vanta-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 35%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .6s;
}
.vanta-cube.is-lit .vanta-glow { opacity: 1; }
.vanta-scan {
  position: absolute; left: -10%; right: -10%; height: 1px;
  top: 0;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent);
  animation: scan 4s linear infinite;
  opacity: 0.7;
}
@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}
.vanta-caption {
  position: absolute; bottom: 8%; left: 0; right: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.vanta-caption .dim { color: rgba(255,255,255,0.4); }

/* Marquee */
.hero-marquee {
  margin-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-row { display: flex; gap: 48px; padding-right: 48px; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────── Insights ─────────── */
.section--insights { padding-top: clamp(60px, 8vw, 100px); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stats-grid { grid-template-columns: 1fr; } }
.stat {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
  transition: background .3s;
}
.stat:hover { background: var(--bg-2); }
.stat-k {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-l {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.4;
  margin-top: auto;
}
.stat-src { font-size: 10.5px; }

/* ─────────── Services ─────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--bg);
  padding: 34px 32px;
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: background .3s;
  cursor: default;
}
.svc:hover { background: var(--bg-2); }
.svc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.svc-arrow {
  opacity: 0.4;
  transition: opacity .3s, transform .3s;
}
.svc:hover .svc-arrow { opacity: 1; transform: translate(2px, -2px); }
.svc-t {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.svc-d {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 44ch;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* ─────────── Work ─────────── */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.link-arrow:hover { color: var(--fg); border-color: var(--accent); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.work-cell--a { grid-column: span 4; }
.work-cell--b { grid-column: span 2; }
.work-cell--c { grid-column: span 2; }
.work-cell--d { grid-column: span 2; }
.work-cell--e { grid-column: span 2; }

@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-cell--a, .work-cell--b, .work-cell--c, .work-cell--d, .work-cell--e {
    grid-column: span 1;
  }
  .work-cell--a, .work-cell--e { grid-column: span 2; }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-cell--a, .work-cell--b, .work-cell--c, .work-cell--d, .work-cell--e {
    grid-column: span 1;
  }
}

.work-card { transform-style: preserve-3d; }
.work-card-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color .3s;
}
.work-card:hover .work-card-inner { border-color: var(--line-2); }

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.work-card--wide .work-thumb { aspect-ratio: 16 / 8; }
.work-thumb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}
.work-thumb-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 8px; border-radius: 4px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em;
}
.work-thumb-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
}
.work-meta {
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px;
}
.work-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.work-cat { font-size: 10.5px; margin-top: 4px; }
.work-meta-r { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.work-stat {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Work art bits */
.art-stack { position: relative; width: 60%; height: 70%; }
.art-card {
  position: absolute;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.art-card--1 { inset: 20% 30% 20% 0; transform: rotate(-6deg); }
.art-card--2 { inset: 14% 14% 14% 14%; background: rgba(255,255,255,0.08); }
.art-card--3 { inset: 20% 0 20% 30%; transform: rotate(6deg); border-color: var(--accent); background: color-mix(in oklab, var(--accent) 18%, transparent); }

.art-globe {
  position: relative; width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 60%);
}
.art-globe-ring {
  position: absolute; inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.18);
  animation: spin 26s linear infinite;
}
.art-globe-ring--2 { inset: 25%; animation-duration: 18s; animation-direction: reverse; border-color: var(--accent); opacity: 0.6; }
.art-globe-dot {
  position: absolute; inset: 45%;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.art-doc {
  width: 60%; display: flex; flex-direction: column; gap: 8px;
}
.art-doc-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}
.art-doc-line--accent { background: var(--accent); }

.art-tag {
  width: 60%; aspect-ratio: 4/3;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  position: relative;
  padding: 16% 12%;
}
.art-tag-row { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2); margin-bottom: 8px; }
.art-tag-row--2 { width: 60%; background: var(--accent); }
.art-tag-px {
  position: absolute; right: 14%; bottom: 16%;
  width: 22%; aspect-ratio: 1; border-radius: 4px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
}

.art-pulse {
  width: 80%; color: var(--accent);
  filter: drop-shadow(0 0 12px color-mix(in oklab, var(--accent) 50%, transparent));
}

/* ─────────── Process ─────────── */
.process { list-style: none; margin: 0; padding: 0; }
.proc {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 24px 0;
}
.proc-rail {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  position: relative;
}
.proc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  font-size: 11px;
}
.proc-line {
  flex: 1;
  width: 1px;
  min-height: 40px;
}
.proc-body {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.proc:last-child .proc-body { border-bottom: 0; }
.proc-day { margin-bottom: 6px; }
.proc-t {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 12px;
}
.proc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px currentColor;
}
.proc-b {
  color: var(--fg-2);
  margin: 0;
  max-width: 60ch;
}

/* ─────────── Offers ─────────── */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) { .offers-grid { grid-template-columns: 1fr; } }
.offer {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, background .3s;
}
.offer:hover { transform: translateY(-2px); border-color: var(--line-2); }
.offer--featured {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 6%, var(--bg-2)) 0%, var(--bg-2) 50%);
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line-2));
}
.offer-flag {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent); color: #0a0908;
  font-size: 10px; font-weight: 600;
}
.offer-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.offer-t {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.offer-time { font-size: 10.5px; }
.offer-d {
  color: var(--fg-2);
  font-size: 14.5px;
  margin: 0 0 22px;
  line-height: 1.5;
}
.offer-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
}
.offer-list li { display: flex; gap: 10px; align-items: flex-start; }
.offer-tick { display: inline-flex; padding-top: 2px; flex-shrink: 0; }
.offer-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  font-size: 13.5px;
  align-self: flex-start;
  transition: background .2s, border-color .2s, color .2s;
}
.offer-cta:not(.offer-cta--accent):hover { background: var(--bg-3); border-color: var(--fg-3); }
.offer-cta--accent {
  background: var(--accent); color: #0a0908; border-color: var(--accent);
}
.offer-cta--accent:hover { filter: brightness(1.06); }

/* ─────────── Thinking ─────────── */
.think-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .think-grid { grid-template-columns: 1fr; } }
.think {
  background: var(--bg);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  min-height: 220px;
  transition: background .3s;
}
.think:hover { background: var(--bg-2); }
.think-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.think-t {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}
.think-arrow {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color .2s, gap .3s;
}
.think:hover .think-arrow { color: var(--accent); gap: 10px; }

/* ─────────── CTA ─────────── */
.section--cta { padding: clamp(80px, 10vw, 120px) 0; }
.cta {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  padding: clamp(60px, 8vw, 110px) clamp(28px, 5vw, 80px);
  overflow: hidden;
}
.cta-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 80% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, black, transparent 70%);
  opacity: 0.7;
}
.cta-inner { position: relative; }
.cta-h {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 14px 0 22px;
  text-wrap: balance;
}
.cta-sub {
  color: var(--fg-2);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 56ch;
  margin: 0 0 36px;
  line-height: 1.55;
}
/* Two contact paths: book a call · request a callback */
.cta-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 760px) { .cta-paths { grid-template-columns: 1fr; } }
.cta-path {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
}
.cta-path-tag { display: block; margin-bottom: 12px; }
.cta-path-h {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.cta-path-p {
  color: var(--fg-2); font-size: 14.5px; line-height: 1.55;
  margin: 0 0 20px; max-width: 38ch;
}
.cta-path-btn { align-self: flex-start; margin-top: auto; }

/* Callback form */
.cb-form { display: flex; flex-direction: column; gap: 12px; }
.cb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .cb-row { grid-template-columns: 1fr; } }
.cb-field { display: flex; flex-direction: column; gap: 6px; }
.cb-label {
  font-size: 12px; color: var(--fg-3); font-weight: 500;
  display: flex; align-items: baseline; gap: 6px;
}
.cb-opt {
  font-family: var(--font-mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--fg-4);
}
.cb-form input,
.cb-form textarea {
  width: 100%;
  font: inherit; font-size: 14.5px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.cb-form input::placeholder,
.cb-form textarea::placeholder { color: var(--fg-4); }
.cb-form input:focus,
.cb-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
/* Honeypot — kept out of sight and out of the tab order. */
.cb-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cb-submit { align-self: flex-start; margin-top: 4px; }
.cb-submit:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }
.cb-error {
  margin: 0; font-size: 13px; color: #ff6b5e;
}
.cb-consent {
  margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--fg-4);
  max-width: 44ch;
}

/* Callback success state */
.cb-done {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  padding: 22px;
}
.cb-done-check {
  flex: none;
  width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center;
}
.cb-done-h { font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.cb-done-p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.55; }

.cta-mail-line {
  margin: 22px 0 0;
  font-size: 14px; color: var(--fg-3);
}
.cta-mail-line a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cta-mail-line a:hover { color: var(--accent-ink); }

/* ─────────── Footer ─────────── */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 60px 0 0;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg-2); }
.foot-h { margin-bottom: 8px; font-size: 10.5px; }
.footer-cols a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0;
  flex-wrap: wrap; gap: 12px;
}
.status-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.footer-mark {
  font-size: clamp(80px, 22vw, 280px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-align: center;
  background: linear-gradient(180deg, var(--fg) 0%, transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.08;
  margin-top: -20px;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-sans);
}

/* In light mode, the dark work-card thumbnails sit on a cream page — give
   them a soft cream frame so they read as deliberate "product shot" panels
   instead of floating black boxes. */
[data-theme="light"] .work-card-inner { background: #ece8df; }
[data-theme="light"] .hero-visual { border-color: rgba(20,17,14,0.12); }

/* ─────────────────────────────────────────────────────────────────────────
   CASE STUDIES — replaces .work-grid for new module in work.jsx
   Hero cards (3 stacked, full-width) + Lab cards (3 across)
   ───────────────────────────────────────────────────────────────────────── */
.cases-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 32px);
}
.cases-divider {
  display: flex; align-items: center; gap: 18px;
  margin: clamp(48px, 6vw, 80px) 0 clamp(28px, 3vw, 40px);
}
.cases-divider-line {
  flex: 1; height: 1px; background: var(--line);
}
.cases-lab {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .cases-lab { grid-template-columns: 1fr; }
}

.case-card {
  position: relative;
  transform-style: preserve-3d;
}
.case-card-link {
  display: block; color: inherit; text-decoration: none;
}
.case-card-inner {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color .3s, transform .3s;
}
.case-card:hover .case-card-inner { border-color: var(--line-2); }

/* HERO card — bigger art panel, info row below */
.case-card--hero .case-art {
  aspect-ratio: 16 / 7;
}
.case-card--lab .case-art {
  aspect-ratio: 16 / 10;
}

.case-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.case-art-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.case-art-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  z-index: 1;
}
.case-art-dotmap {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 8px 8px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 60%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 60%, black 0%, transparent 70%);
  opacity: 0.7;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────────────────────
   DEVICE COMPOSITE — a real screenshot inside a browser frame, with a phone
   mockup overlapping the bottom-right corner. Used on homepage work cards,
   case-study heroes, and case-study showcases. Self-contained: just markup +
   two <img>s. Set the backdrop gradient with inline `background` on `.shot`.
   ───────────────────────────────────────────────────────────────────────── */
.shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0a0c, #15151a);
  z-index: 0;
}
.shot-browser {
  position: absolute;
  left: clamp(16px, 4%, 40px);
  right: clamp(16px, 4%, 40px);
  top: clamp(16px, 5%, 36px);
  bottom: clamp(16px, 5%, 36px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0908;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.shot-bar {
  flex-shrink: 0;
  height: clamp(26px, 9%, 38px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shot-dot { width: 9px; height: 9px; border-radius: 50%; opacity: 0.85; flex-shrink: 0; }
.shot-url {
  flex: 1;
  margin: 0 8px 0 10px;
  height: 60%;
  max-height: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
}
.shot-screen { flex: 1; position: relative; overflow: hidden; }
.shot-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.shot-phone {
  position: absolute;
  z-index: 2;
  right: clamp(10px, 4%, 34px);
  bottom: clamp(8px, 4%, 26px);
  width: clamp(58px, 19%, 124px);
  aspect-ratio: 9 / 19;
  border-radius: 16px;
  padding: 4px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.shot-phone::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  z-index: 3;
}
.shot-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 11px;
  display: block;
}

/* tag chip top-left */
.ca-tag {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  z-index: 3;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ca-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 currentColor;
  animation: ca-pulse 1.6s ease-out infinite;
}
@keyframes ca-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* AUCTION art — countdown tiles + price line */
.ca-stack {
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  display: flex; gap: 8px;
  z-index: 2;
}
.ca-tile {
  width: 56px;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ca-tile-num {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ca-tile-l {
  margin-top: 4px;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}
.ca-line {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  height: 1px;
  opacity: 0.5;
  z-index: 2;
}

/* GLOBE art */
.ca-globe {
  position: absolute;
  right: 8%; top: 50%;
  transform: translateY(-50%);
  width: 220px; height: 220px;
  z-index: 2;
}
.ca-globe-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(circle at center, #0f1a30 0%, #050a18 90%);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}
.ca-globe-ring--2 {
  inset: -10px;
  border: 1px dashed rgba(255,255,255,0.08);
  background: transparent;
  animation: ca-rotate 60s linear infinite;
}
@keyframes ca-rotate { to { transform: rotate(360deg); } }
.ca-globe-pin {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.6), 0 0 12px currentColor;
}

/* VANTA art — toolchain */
.ca-chain {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  padding: 0 32px;
}
.ca-node {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  letter-spacing: 0.1em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ca-node--accent {
  background: rgba(0,0,0,0.7);
  border-width: 1px;
}
.ca-link {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
  max-width: 28px;
}

/* DOC art (lab) */
.ca-doc {
  position: absolute; inset: 18% 22%;
  z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
}
.ca-doc-h {
  height: 8px; width: 50%;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}
.ca-doc-l {
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
}
.ca-doc-l--accent { height: 6px; }

/* GAUGE art (lab) */
.ca-gauge {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 28%;
}
.ca-gauge-num {
  margin-top: -18px;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.ca-gauge-l {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
}

/* COMPASS art (lab) */
.ca-compass {
  position: absolute; inset: 0;
  z-index: 2;
  display: grid; place-items: center;
}
.ca-compass-ring {
  width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  position: relative;
}
.ca-compass-ring::after {
  content: '';
  position: absolute; inset: 18px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 50%;
}
.ca-compass-arrow {
  position: absolute;
  top: 50%; left: 50%;
  width: 2px; height: 50px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(40deg);
  border-radius: 2px;
  box-shadow: 0 0 8px currentColor;
}
.ca-compass-tick {
  position: absolute;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
}
.ca-compass-tick    { top: -10px; left: 50%; transform: translateX(-50%); }
.ca-compass-tick--2 { right: -34px; top: 50%; transform: translateY(-50%); }
.ca-compass-tick--3 { bottom: -10px; left: 50%; transform: translateX(-50%); }
.ca-compass-tick--4 { left: -38px; top: 50%; transform: translateY(-50%); }

/* status pill bottom-right of art */
.case-card-status {
  position: absolute;
  top: 18px; right: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  z-index: 3;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.case-card-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}

/* hover arrow */
.case-card-arrow {
  position: absolute;
  bottom: calc(var(--foot-h, 92px) + 14px);
  right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  display: grid; place-items: center;
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.case-card:hover .case-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* meta foot */
.case-card-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.case-card-foot--lab { padding: 18px 20px; }
.case-card-kind {
  font-size: 10px;
  margin-bottom: 6px;
}
.case-card-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.case-card--lab .case-card-name {
  font-size: 17px;
}
.case-card-cat {
  margin-top: 6px;
  font-size: 12.5px;
}
.case-card--lab .case-card-cat {
  font-size: 11.5px;
}
.case-card-r {
  text-align: right;
  flex-shrink: 0;
}
.case-card-stat {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.case-card-statL {
  font-size: 10.5px;
  margin-top: 6px;
  display: block;
  max-width: 18ch;
}

/* Light-mode treatment */
[data-theme="light"] .case-card-foot { background: #ece8df; }
[data-theme="light"] .case-card-status,
[data-theme="light"] .ca-tag {
  background: rgba(0,0,0,0.6);
}

/* ─────────────────────────────────────────────────────────────────────────
   LOGO STRIP — "Worked with teams from"
   ───────────────────────────────────────────────────────────────────────── */
.section--logos {
  padding: clamp(48px, 6vw, 72px) 0;
}
.logos-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
}
.logos-rule {
  flex: 1; height: 1px; background: var(--line);
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .logos-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .logos-row { grid-template-columns: repeat(2, 1fr); }
}
.logo {
  background: var(--bg);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
  transition: background .3s;
}
.logo:hover { background: var(--bg-2); }
.logo-mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.logo-mark-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.logo-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.logo-note {
  font-size: 10px;
}
.logos-foot {
  margin-top: 18px;
  font-size: 11px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
