:root {
  --bg: oklch(0.97 0.008 75);
  --bg-2: oklch(0.955 0.01 70);
  --ink: oklch(0.2 0.015 60);
  --ink-2: oklch(0.44 0.015 60);
  --ink-3: oklch(0.62 0.012 60);
  --line: oklch(0.88 0.012 65);
  --line-2: oklch(0.93 0.008 65);
  --accent: oklch(0.66 0.15 40);
  --accent-2: oklch(0.72 0.11 55);
  --accent-soft: oklch(0.66 0.15 40 / 0.09);
  --sector-a: oklch(0.72 0.14 30);   /* healthcare — coral */
  --sector-b: oklch(0.75 0.11 90);   /* hospitality — golden */
  --sector-c: oklch(0.6 0.08 220);   /* enterprise — slate blue */
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Fine grid backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 60% at 65% 40%, black 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 65% 40%, black 15%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* NAV */
nav.top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 24px;
  height: 24px;
  position: relative;
}
.logo-mark svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sign-in {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  transition: color 0.18s ease;
}
.sign-in:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: oklch(0.3 0.02 60);
  transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform 0.2s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

/* HERO */
.hero {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 48px 96px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 450;
  margin-bottom: 32px;
}

.eyebrow .pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(46px, 5.6vw, 78px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 30px;
  text-wrap: balance;
}

h1 .serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 44px;
  font-weight: 400;
  text-wrap: pretty;
}

.sub strong { color: var(--ink); font-weight: 500; }

.actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn-hero { padding: 14px 24px; font-size: 15px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.text-link:hover { border-color: var(--ink); }
.text-link .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.sectors {
  margin-top: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sectors .swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sectors .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sectors .divider {
  width: 1px;
  height: 10px;
  background: var(--line);
}

/* VISUAL — three converging orbs */
.visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 520px;
  margin-left: auto;
  width: 100%;
}

.visual-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  backdrop-filter: blur(2px);
  overflow: hidden;
}

.corner-tick {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
}
.corner-tick.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.corner-tick.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 4px; }
.corner-tick.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 4px; }
.corner-tick.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 4px; }

.orb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(0.5px);
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.orb.a {
  background:
    radial-gradient(circle at 32% 30%, oklch(0.9 0.05 30) 0%, transparent 45%),
    radial-gradient(circle at 60% 65%, var(--sector-a) 0%, oklch(0.55 0.16 25) 70%);
  top: 22%;
  left: 22%;
  animation: orbA 12s ease-in-out infinite;
}
.orb.b {
  background:
    radial-gradient(circle at 30% 25%, oklch(0.95 0.04 90) 0%, transparent 45%),
    radial-gradient(circle at 65% 70%, var(--sector-b) 0%, oklch(0.6 0.13 85) 70%);
  top: 22%;
  right: 22%;
  animation: orbB 12s ease-in-out infinite;
}
.orb.c {
  background:
    radial-gradient(circle at 30% 25%, oklch(0.85 0.05 220) 0%, transparent 45%),
    radial-gradient(circle at 65% 70%, var(--sector-c) 0%, oklch(0.42 0.09 225) 70%);
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbC 12s ease-in-out infinite;
}

@keyframes orbA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -4px); }
}
@keyframes orbB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -4px); }
}
@keyframes orbC {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.ring:nth-child(1) { width: 58%; height: 58%; opacity: 0.6; }
.ring:nth-child(2) { width: 78%; height: 78%; opacity: 0.4; }
.ring:nth-child(3) { width: 96%; height: 96%; opacity: 0.25; border-style: dashed; }

.center-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.center-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--ink);
}
.center-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-top: 12px;
}

.sector-label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sector-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.sector-label.a { top: 20%; left: 18%; }
.sector-label.a::before { background: var(--sector-a); }
.sector-label.b { top: 20%; right: 18%; }
.sector-label.b::before { background: var(--sector-b); }
.sector-label.c { bottom: 20%; left: 50%; transform: translateX(-50%); }
.sector-label.c::before { background: var(--sector-c); }

.coord {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.coord.tl { top: 16px; left: 16px; }
.coord.tr { top: 16px; right: 16px; }

.caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.caption .signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: oklch(0.7 0.18 150);
  box-shadow: 0 0 0 3px oklch(0.7 0.18 150 / 0.2);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.7 0.18 150 / 0.2); }
  50% { box-shadow: 0 0 0 5px oklch(0.7 0.18 150 / 0.05); }
}

/* ============ SELECTED WORK ============ */
.work-section {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 48px 96px;
}

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.work-head-left h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.work-head-left h2 .serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.work-head-left p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 420px;
}
.work-head-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.work-head-right .count {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.work-head-right a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.work-head-right a:hover { color: var(--accent); border-color: var(--accent); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
  border-color: oklch(0.82 0.02 65);
}

.work-preview {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* ---- QIVR (healthcare) preview — pastel product screens ---- */
.preview-qivr {
  background: #EEE9DE;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.qivr-left { display: flex; flex-direction: column; gap: 10px; }
.qivr-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #C8E8D8;
  color: #3f7a5f;
}
.qivr-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #111;
}
.qivr-actions { display: flex; gap: 6px; margin-top: 6px; }
.qivr-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 500;
}
.qivr-btn.dark { background: #111; color: #fff; }
.qivr-btn.light { background: #C9D6F5; color: #3a58a3; }
.qivr-panel {
  background: #E8EEFB;
  border: 1px solid rgba(58,88,163,0.15);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qivr-panel-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3a58a3;
  font-weight: 600;
  margin-bottom: 4px;
}
.qivr-row {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 9.5px;
  color: #111;
  font-weight: 500;
}
.qivr-row.active { border-color: #3a58a3; }

/* ---- Aaron Buckland preview — clinical / calm ---- */
.preview-abuckland {
  background: #F4F1EC;
  background-image:
    radial-gradient(circle at 78% 22%, rgba(30,80,120,0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: space-between;
}
.ab-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #3a3f4a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ab-brand .ab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a5a7a;
}
.ab-title {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  line-height: 1.02;
  color: #1a2230;
  letter-spacing: -0.005em;
  font-weight: 400;
  max-width: 90%;
}
.ab-title em {
  font-style: italic;
  color: #3a5a7a;
}
.ab-eval {
  margin-top: auto;
  background: #fff;
  border: 1px solid rgba(58,90,122,0.15);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ab-eval-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #E9EFF5;
  color: #3a5a7a;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.ab-eval-label {
  font-size: 11px;
  color: #1a2230;
  font-weight: 500;
}
.ab-eval-cta {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a5a7a;
}

/* ---- Broadacre preview (parchment/soil/harvest editorial) ---- */
.preview-broadacre {
  background: #f5f0e8;
  background-image:
    repeating-linear-gradient(90deg, rgba(30,26,20,0.06) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(30,26,20,0.06) 0 1px, transparent 1px 44px);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pb-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a7a62;
}
.pb-title {
  font-family: 'Instrument Serif', serif;
  font-size: 44px;
  line-height: 0.88;
  text-transform: uppercase;
  color: #1e1a14;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.pb-title .harvest { color: #c85a2a; }
.pb-stats {
  display: flex;
  background: #1e1a14;
  margin-top: auto;
}
.pb-stat { padding: 8px 14px; border-left: 1px solid #3a3226; }
.pb-stat:first-child { border-left: none; }
.pb-stat .n {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: #fbf8f1;
  line-height: 0.9;
}
.pb-stat .n.h { color: #c85a2a; }
.pb-stat .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: #c7b299;
  text-transform: uppercase;
  margin-top: 3px;
}

.work-meta {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.work-tags .sector-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.work-tags .divider { color: var(--line); }
.work-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.work-title .serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.work-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.work-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.work-cta .arrow { transition: transform 0.2s ease; }
.work-card:hover .work-cta { color: var(--accent); }
.work-card:hover .work-cta .arrow { transform: translateX(3px); }

/* ============ LEGAL LINKS (typographic click-throughs) ============ */
.legal-cards {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.legal-card {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.legal-card:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.legal-card .arrow {
  color: var(--ink-3);
  font-size: 12px;
  transition: transform 0.18s ease, color 0.18s ease;
}
.legal-card:hover .arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* ============ CASE STUDY MODAL ============ */
.cs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}
.cs-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
body.cs-open { overflow: hidden; }

.cs-modal {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.35);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}
.cs-modal.active { display: block; }
.cs-backdrop.open .cs-modal.active {
  transform: translateY(0) scale(1);
}

.cs-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.18s ease, transform 0.18s ease;
  font-family: inherit;
  padding: 0;
}
.cs-close:hover {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(90deg);
}

.cs-hero {
  padding: 44px 48px 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cs-hero.qivr { background: #EEE9DE; }
.cs-hero.broadacre {
  background: #f5f0e8;
  background-image:
    repeating-linear-gradient(90deg, rgba(30,26,20,0.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(30,26,20,0.05) 0 1px, transparent 1px 44px);
}
.cs-hero.legal {
  background: var(--bg-2);
}
.cs-hero.abuckland {
  background: #F4F1EC;
  background-image: radial-gradient(circle at 78% 22%, rgba(30,80,120,0.06) 0%, transparent 55%);
}
.cs-hero.abuckland h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.02;
  color: #1a2230;
}
.cs-hero.abuckland h2 .serif { color: #3a5a7a; }

.cs-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.cs-tags .sector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cs-tags .divider { color: var(--line); }
.cs-tags .status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.cs-tags .status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.7 0.18 150);
  box-shadow: 0 0 0 3px oklch(0.7 0.18 150 / 0.2);
}

.cs-hero h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 620px;
  margin-bottom: 6px;
  text-wrap: balance;
}
.cs-hero.broadacre h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 54px);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  color: #1e1a14;
}
.cs-hero.broadacre h2 .accent { color: #c85a2a; }
.cs-hero h2 .serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.cs-body {
  padding: 40px 48px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.cs-body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.cs-body p strong { color: var(--ink); font-weight: 500; }

.cs-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 8px;
}
.cs-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-fact .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-fact .value {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .cs-hero { padding: 32px 24px 28px; }
  .cs-body { padding: 28px 24px 32px; }
  .cs-facts { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .cs-close { top: 14px; right: 14px; }
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 48px 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .logo { font-size: 20px; gap: 12px; }
.footer-brand .logo .logo-mark { width: 26px; height: 26px; }
.footer-tagline {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 320px;
  text-wrap: pretty;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a,
.footer-col li {
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.5;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-address {
  font-style: normal;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
}
.footer-address .muted { color: var(--ink-2); display: block; }
.footer-legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-legal .legal-links { display: flex; gap: 24px; }
.footer-legal a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-legal a:hover { color: var(--ink); }

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

/* Responsive */
@media (max-width: 960px) {
  nav.top { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero { padding: 20px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .visual { max-width: 420px; margin: 0 auto; }
  .work-section { padding: 20px 24px 60px; }
  .work-grid { grid-template-columns: 1fr; }
  .preview-abuckland .ab-title { font-size: 28px; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 12px; }
  .legal-cards { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 520px) {
  h1 { font-size: 46px; }
  .sub { font-size: 16px; }
  .actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sectors { flex-wrap: wrap; gap: 12px; margin-top: 48px; }
  .pb-title { font-size: 32px; }
  .qivr-title { font-size: 22px; }
}
