:root {
  --bg: #F5F2EC;
  --bg-card: #FFFFFF;
  --ink: #262625;
  --ink-soft: #4A4A4A;
  --ink-mute: #8A8A85;
  --line: #E1DBCD;
  --line-strong: #C9C2B0;
  --accent: #C5F222;
  --accent-ink: #262625;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --gutter: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { font-size: 17px; line-height: 1.5; letter-spacing: -0.005em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* Brand-flavored text selection — lime instead of browser-default blue. */
::selection { background: var(--accent); color: var(--accent-ink); }
::-moz-selection { background: var(--accent); color: var(--accent-ink); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: stretch; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
}
.brand img {
  height: 26px;
  width: auto;
  display: block;
}
.brand-mark {
  width: 26px; height: 26px;
  background: var(--accent);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  color: var(--accent-ink);
}
.brand-mark img {
  width: 100%; height: 100%;
  display: block;
}
.nav-links {
  display: flex; align-items: stretch;
  font-size: 14px; color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.nav-links a {
  padding: 0 22px;
  display: flex; align-items: center;
  border-left: 1px solid var(--line);
}
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.02); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.nav-cta {
  background: var(--ink); color: #fff;
  font-weight: 500;
  border-left: 1px solid var(--ink);
}
.nav-links a.nav-cta:hover { background: #000; }
.nav-links a.nav-cta.accent { background: var(--accent); color: var(--accent-ink); border-left-color: var(--accent); }
.nav-links a.nav-cta.accent:hover { background: #b3dd4a; }

@media (max-width: 900px) {
  /* Hide every nav link (including the lime CTA) — the hamburger menu
     contains all of them. The .nav-burger display rule lives near its
     declaration further down in this file. */
  .nav-links a { display: none; }
}

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
  font-weight: 500;
}
.eyebrow-num {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-ink);
  font-weight: 600;
}
.eyebrow-num .num { color: #C2410C; margin-right: 8px; }
.eyebrow-num.green .num { color: #4D7C0F; }
.eyebrow-num.amber .num { color: #C2410C; }
.eyebrow-num.violet .num { color: #4F46E5; }

h1, h2, h3, h4 {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 500;
  margin: 0;
}

.display {
  font-size: clamp(36px, 5.4vw, 80px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-weight: 500;
}

.h2 {
  font-size: clamp(30px, 4.2vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-weight: 500;
}

.h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 500;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  max-width: 60ch;
}

/* ---------- BUTTONS (squared) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: #b3dd4a; border-color: #b3dd4a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn .arr {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arr { transform: translate(2px, -2px); }

/* ---------- PANEL (the core container) ---------- */
.panel {
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: flex; flex-direction: column;
}
.panel-header {
  padding: clamp(28px, 3.4vw, 44px);
}
.panel-header .eyebrow,
.panel-header .eyebrow-num { display: inline-block; margin-bottom: 22px; }
.panel-header h2,
.panel-header .panel-title {
  font-size: clamp(28px, 3.6vw, 50px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 500;
  max-width: 22ch;
}
.panel-header p { color: var(--ink-soft); margin-top: 16px; max-width: 56ch; font-size: 15px; line-height: 1.5; }

.panel-body { padding: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.panel-body.no-top { border-top: none; padding-top: 0; }

.panel-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.panel-split.flip > :first-child { order: 2; border-left: 0; border-right: 1px solid var(--line); }
.panel-split > * {
  padding: clamp(28px, 3.4vw, 44px);
}
.panel-split > * + * { border-left: 1px solid var(--line); }

.panel-action {
  border-top: 1px solid var(--line);
  padding: 18px clamp(28px, 3.4vw, 44px);
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.08em;
  color: #4F46E5;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.15s ease;
}
.panel-action:hover { background: rgba(79, 70, 229, 0.04); }
.panel-action.split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.panel-action.split > a {
  padding: 18px clamp(28px, 3.4vw, 44px);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.08em;
  color: #4F46E5;
  text-transform: uppercase;
  font-weight: 600;
}
.panel-action.split > a + a { border-left: 1px solid var(--line); }
.panel-action.split > a:hover { background: rgba(79, 70, 229, 0.04); }

@media (max-width: 820px) {
  .panel-split { grid-template-columns: 1fr; }
  .panel-split > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .panel-split.flip > :first-child { order: 0; border-right: 0; }
  .panel-action.split { grid-template-columns: 1fr; }
  .panel-action.split > a + a { border-left: 0; border-top: 1px solid var(--line); }
}

/* Adjacent panels share borders */
.panel-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.panel-row > .panel + .panel { border-left: 0; }
.panel-row.thirds { grid-template-columns: 1fr 1fr 1fr; }
.panel-row.thirds > .panel + .panel { border-left: 0; }

@media (max-width: 820px) {
  .panel-row, .panel-row.thirds { grid-template-columns: 1fr; }
  .panel-row > .panel + .panel { border-left: 1px solid var(--line); border-top: 0; }
}

.panel-stack > .panel + .panel { border-top: 0; }

/* ---------- HERO ---------- */
.hero {
  padding: clamp(48px, 7vw, 104px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* When the marquee is inside the hero, the marquee provides its own
   top/bottom hairlines, so the hero's bottom border is redundant. */
.hero:has(.hero-marquee) { border-bottom: 0; padding-bottom: 0; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-card);
  margin-bottom: 32px;
}
.hero-tag .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 242, 92, 0.25);
}
.hero-actions {
  display: flex; gap: 0; margin-top: 36px;
  flex-wrap: wrap;
}
.hero-actions .btn + .btn { margin-left: -1px; }

/* ---------- SECTION ---------- */
section { padding: 0; }
.section { padding: clamp(56px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.section.no-pad-top { padding-top: 0; }
.section.no-pad-bottom { padding-bottom: 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 40px; margin-bottom: 48px; flex-wrap: wrap;
}
.section-head-left { max-width: 640px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }

/* ---------- WHAT WE DO TABS ---------- */
.whatwedo-card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
}
.whatwedo-head {
  padding: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 48px) 32px;
  border-bottom: 1px solid var(--line);
}
.whatwedo-head .eyebrow { display: block; margin-bottom: 16px; color: var(--ink-mute); }
.whatwedo-head h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 500;
  max-width: 18ch;
}
.whatwedo-sub {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.whatwedo-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  min-height: 520px;
}
.whatwedo-tabs {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.ww-tab {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px clamp(24px, 2.6vw, 32px);
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  align-items: start;
  position: relative;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease;
  flex: 1;
}
.ww-tab:first-child { border-top: 0; }
.ww-tab:hover { background: rgba(0,0,0,0.02); }
.ww-tab.active { background: rgba(200, 242, 92, 0.08); }
.ww-tab-icon { padding-top: 1px; color: var(--ink); display: grid; place-items: start; }
.ww-tab-icon svg { width: 22px; height: 22px; stroke-width: 1.4; }
.ww-tab h3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.ww-tab p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  max-width: 38ch;
}
/* Progress bar at the bottom edge of the active tab — track + animated
   fill, matching the team detail tabs on the Approach page. */
.ww-tab-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--line);
  margin: 0;
  overflow: hidden;
  width: 100%;
  display: none;
  pointer-events: none;
}
.ww-tab.active .ww-tab-progress { display: block; }
.ww-tab-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  width: 0%;
  transform-origin: left;
}
.ww-tab.active .ww-tab-progress span {
  animation: ww-progress 5.4s linear forwards;
}
.whatwedo-card.paused .ww-tab.active .ww-tab-progress span {
  animation-play-state: paused;
}
@keyframes ww-progress {
  from { width: 0%; }
  to { width: 100%; }
}

.whatwedo-preview {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
}
.ww-preview-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ww-preview-img.active {
  opacity: 1;
  transform: scale(1);
}
.ww-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.whatwedo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4F46E5;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.whatwedo-cta:hover { background: rgba(79, 70, 229, 0.04); }

@media (max-width: 900px) {
  .whatwedo-grid { grid-template-columns: 1fr; }
  .whatwedo-tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .whatwedo-preview { order: -1; min-height: 320px; aspect-ratio: 16/10; }

  /* Mobile accordion mode (set by JS): preview lives inside its tab,
     wrapper hides, auto-cycle is off. */
  .whatwedo-card.is-mobile .whatwedo-preview { display: none; }
  .whatwedo-card.is-mobile .ww-tab-progress { display: none !important; }
  .whatwedo-card.is-mobile .ww-tab .ww-preview-img {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    grid-column: 1 / -1;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    transform: none;
    overflow: hidden;
    transition: max-height 360ms cubic-bezier(.2,.7,.2,1),
                opacity 220ms ease,
                margin-top 320ms cubic-bezier(.2,.7,.2,1);
  }
  .whatwedo-card.is-mobile .ww-tab.active .ww-preview-img.active {
    max-height: 70vw;
    opacity: 1;
    margin-top: 18px;
    transform: none;
  }
  .whatwedo-card.is-mobile .ww-preview-video {
    position: absolute;
    inset: 0;
  }
}

/* ---------- WORK GRID v2 (wide split cards) ---------- */
.work-grid-v2 {
  display: flex; flex-direction: column;
  gap: 24px;
}
.work-card-v2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border: 1px solid var(--line);
  background: var(--bg-card);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  min-height: 380px;
  overflow: hidden;
  transition: background 0.18s ease, transform 0.2s ease;
}
.work-card-v2:hover { background: #fff; }
.work-card-v2:hover .work-card-thumb { transform: scale(1.015); }
.work-card-content {
  padding: clamp(32px, 3.6vw, 48px);
  display: flex; flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  gap: 24px;
}
.work-card-type {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4F46E5;
  font-weight: 600;
  display: inline-block;
}
.work-card-bottom { margin-top: auto; }
.work-card-name {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 14px;
}
.work-card-desc {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  margin: 0;
  max-width: 38ch;
}
.work-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  align-self: flex-start;
  transition: background 0.18s ease, color 0.18s ease;
}
.work-card-cta .arr { transition: transform 0.2s ease; }
.work-card-v2:hover .work-card-cta {
  background: var(--ink);
  color: #fff;
}
.work-card-v2:hover .work-card-cta .arr {
  transform: translate(2px, -2px);
}

.work-card-thumb {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 820px) {
  .work-card-v2 { grid-template-columns: 1fr; min-height: 0; }
  .work-card-content { border-right: 0; border-bottom: 1px solid var(--line); }
  .work-card-thumb { aspect-ratio: 16 / 10; }
}

/* ---------- WORK GRID (legacy 2x4) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.work-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
}
.work-card:hover { background: #fff; }
.work-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.t1 { background: linear-gradient(135deg, #c8f25c 0%, #90c43e 100%); }
.t2 { background: linear-gradient(160deg, #1a1a1a 0%, #3a3a3a 100%); }
.t3 { background: linear-gradient(135deg, #f0ede4 0%, #d4cdba 100%); }
.t4 { background: linear-gradient(135deg, #2a3a1f 0%, #4d6b30 60%, #c8f25c 100%); }
.t5 { background: linear-gradient(135deg, #efeae0 0%, #c8f25c 100%); }
.t6 { background: linear-gradient(150deg, #0e0e0e 0%, #1a1a1a 50%, #c8f25c 130%); }
.t7 { background: linear-gradient(135deg, #e8e3d6 0%, #1a1a1a 130%); }
.t8 { background: linear-gradient(180deg, #c8f25c 0%, #f0ede4 100%); }
.work-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.work-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}
.work-meta .name { font-weight: 500; font-size: 16px; letter-spacing: -0.012em; }
.work-meta .tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--ink-mute); letter-spacing: 0.05em; text-transform: uppercase;
}

@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- CAPABILITY CHIPS (squared) ---------- */
.cap-list { display: flex; flex-wrap: wrap; gap: 0; }
.cap-pill {
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 13px; color: var(--ink-soft);
  margin-left: -1px; margin-top: -1px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- MARQUEE ---------- */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-card);
}
.marquee-track {
  display: flex; gap: 64px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-size: 22px; letter-spacing: -0.015em; color: var(--ink-soft);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 64px;
}
.marquee-item::after {
  content: "✦"; color: var(--accent); font-size: 16px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SERVICES (svc-block) ---------- */
.svc-block {
  display: grid; grid-template-columns: 1fr 1.4fr;
  border-top: 1px solid var(--line);
}
.svc-block:last-of-type { border-bottom: 1px solid var(--line); }
.svc-label {
  padding: clamp(28px, 3.4vw, 44px);
  border-right: 1px solid var(--line);
}
.svc-label .eyebrow,
.svc-label .eyebrow-num { display: block; margin-bottom: 18px; }
.svc-label h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em; font-weight: 500;
}
.svc-label p { color: var(--ink-soft); margin-top: 14px; font-size: 15px; line-height: 1.5; }
.svc-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.svc-item {
  position: relative;
  padding: 28px clamp(22px, 2.4vw, 30px) 26px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-left: -1px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.svc-item:hover { background: rgba(0,0,0,0.025); }
.svc-item:last-child { border-bottom: 0; }
.svc-item:nth-last-child(2):not(:nth-child(odd)) { border-bottom: 0; }

.svc-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--ink);
}
.svc-icon svg {
  width: 28px; height: 28px;
  stroke-width: 1.4;
}

.svc-text { margin-top: 64px; }
.svc-text h3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
}
.svc-text p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  max-width: 36ch;
}

@media (max-width: 900px) {
  .svc-block { grid-template-columns: 1fr; }
  .svc-label { border-right: 0; border-bottom: 1px solid var(--line); }
  .svc-list { grid-template-columns: 1fr; }
  .svc-item { border-left: 0; margin-left: 0; }
  .svc-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .svc-item:last-child { border-bottom: 0; }
}

/* ---------- Work cards inside services ---------- */
.svc-content { display: flex; flex-direction: column; }

.svc-work-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.svc-work-row > .svc-work-card:only-child { grid-column: 1 / -1; }
.svc-work-row > .svc-work-card:only-child .svc-work-thumb { aspect-ratio: 16 / 7; }

/* Work card slotted into the services grid to fill the gap of an odd 5th tile */
.svc-list > .svc-work-card {
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-left: -1px;
}
.svc-list > .svc-work-card:last-child { border-bottom: 0; }
.svc-work-card {
  background: var(--bg-card);
  border-left: 1px solid var(--line);
  margin-left: -1px;
  cursor: pointer;
  transition: background 0.18s ease;
  display: flex; flex-direction: column;
}
.svc-work-card:first-child { border-left: 0; margin-left: 0; }
.svc-work-card:hover .svc-work-thumb::after { opacity: 1; }
.svc-work-thumb {
  aspect-ratio: 5 / 3;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
/* Inner element holds the image. On hover, the .thumb-bg-hover layer
   crossfades in to reveal the next image. No z-index so the existing
   ::after "View work" overlay still paints on top. */
.svc-work-thumb .thumb-bg,
.svc-work-thumb .thumb-bg-hover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.4s ease;
}
.svc-work-thumb .thumb-bg-hover { opacity: 0; background-position: center top; }
.svc-work-card:hover .svc-work-thumb .thumb-bg-hover { opacity: 1; }
.svc-work-thumb.has-img .label { display: none; }
.svc-work-thumb.has-img::before { display: none; }
.svc-work-thumb.has-video .label { display: none; }
.svc-work-thumb.has-video::before { display: none; }
.svc-work-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-work-thumb::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.svc-work-thumb::after {
  content: "View work →";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(14, 14, 14, 0.7);
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.svc-work-thumb .label {
  position: relative; z-index: 1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}
.svc-work-thumb.light .label { color: rgba(14,14,14,0.85); text-shadow: none; }
.svc-work-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(20px, 2.4vw, 24px);
  border-top: 1px solid var(--line);
}
.svc-work-meta .name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.svc-work-meta .tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .svc-work-row { grid-template-columns: 1fr; }
  .svc-work-card { border-left: 0; margin-left: 0; }
  .svc-work-card + .svc-work-card { border-top: 1px solid var(--line); }
}

/* extra gradient variants for galleries */
.t9  { background: linear-gradient(135deg, #1a2e1a 0%, #345d34 60%, #c8f25c 130%); }
.t10 { background: linear-gradient(180deg, #efeae0 0%, #b8b09e 100%); }
.t11 { background: linear-gradient(135deg, #2a2a2a 0%, #c8f25c 200%); }
.t12 { background: linear-gradient(135deg, #f5f0e0 0%, #d4c8a8 100%); }
.t13 { background: linear-gradient(135deg, #0e0e0e 0%, #4a4a4a 100%); }
.t14 { background: linear-gradient(120deg, #c8f25c 0%, #efeae0 80%); }

/* ---------- GALLERY MODAL ---------- */
/* gallery uses the same modal-card max-width as services for visual consistency */
.gallery-grid {
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.4vw, 20px);
  gap: clamp(10px, 1vw, 16px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.gallery-img {
  width: 100%;
  display: block;
  margin: 0;
}
img.gallery-img {
  height: auto;
  object-fit: cover;
}
div.gallery-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
}
div.gallery-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.gallery-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  display: block;
  background: #000;
}
.gallery-video iframe,
.gallery-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.gallery-meta {
  padding: clamp(20px, 2.4vw, 32px);
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.gallery-meta > div + div {
  border-left: 1px solid var(--line);
  padding-left: clamp(18px, 2vw, 28px);
}
.gallery-meta .modal-section-label { margin-bottom: 6px; }
.gallery-meta .val { font-size: 14px; color: var(--ink); font-weight: 500; }
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-img { border-left: 0; margin-left: 0; }
  .gallery-meta { grid-template-columns: 1fr; }
  .gallery-meta > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
}

/* ---------- PRICING ---------- */
.price-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.price-grid > .price-card + .price-card { border-left: 1px solid var(--line); }
.price-card {
  background: var(--bg-card);
  padding: clamp(32px, 3.4vw, 48px);
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.feature { background: var(--ink); color: #fff; }
.price-card.feature .price-meta,
.price-card.feature .price-name { color: #fff; }
.price-card.feature .price-feat { color: rgba(255,255,255,0.78); }
.price-card.feature .price-feat::before { background: var(--accent); }
.price-card.feature .price-eyebrow { color: var(--accent); }
.price-card.feature .price-amount .per { color: rgba(255,255,255,0.6); }

.price-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 18px;
}
.price-name {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.05;
}
.price-cadence {
  display: block;
  margin: 20px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.price-card.feature .price-cadence { color: rgba(255,255,255,0.6); }
.price-amount {
  font-size: clamp(40px, 4.6vw, 60px);
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 6px 0 4px;
  line-height: 1;
  font-feature-settings: "tnum";
}
.price-amount .per {
  font-size: 15px; color: var(--ink-mute); font-weight: 400; letter-spacing: -0.005em;
}
.price-meta { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 8px 0 24px; }
.price-feats {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
}
.price-card.feature .price-feats { border-top-color: rgba(255,255,255,0.12); }
.price-feat {
  position: relative; padding: 14px 0 14px 28px;
  font-size: 14px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.price-card.feature .price-feat { border-bottom-color: rgba(255,255,255,0.12); }
.price-feat::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 16px; height: 16px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}
.price-card .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 820px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-grid > .price-card + .price-card { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px clamp(20px, 2.4vw, 32px);
  background: var(--bg-card);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 24px;
  font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -0.015em;
  font-weight: 500;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .plus {
  width: 18px; height: 18px;
  position: relative; flex-shrink: 0;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: var(--ink); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-q .plus::before { width: 14px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 14px; }
.faq-item[open] .plus::after { opacity: 0; }
.faq-a {
  margin-top: 14px; color: var(--ink-soft);
  max-width: 70ch; font-size: 15px; line-height: 1.55;
}

/* ---------- METRICS ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.metric {
  background: var(--bg-card);
  padding: clamp(24px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.metric-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.02em; font-weight: 500;
  line-height: 1;
}
.metric-label { font-size: 13px; color: var(--ink-soft); font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.02em; text-transform: uppercase; }
@media (max-width: 820px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- PRINCIPLES ---------- */
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.principle-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; color: var(--ink-mute);
  padding-top: 8px;
}
.principle h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.025em; font-weight: 500;
}
.principle p {
  color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; margin: 0;
}
@media (max-width: 820px) {
  .principle { grid-template-columns: 40px 1fr; gap: 16px; padding: 26px 0; }
  .principle p { grid-column: 2; }
}

/* ---------- STEPS ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 100px 1fr 1.4fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding-top: 6px;
}
.step h3 { font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.018em; font-weight: 500; }
.step p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 6px 0 0; }
@media (max-width: 820px) {
  .step { grid-template-columns: 36px 1fr; gap: 14px; }
  .step p { grid-column: 2; }
}

/* ---------- INCLUDED CARDS (pricing always-included) ---------- */
.included-card .panel-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3.4vw, 40px);
}
.included-icon {
  width: 28px; height: 28px;
  color: var(--ink);
  display: grid; place-items: start;
  margin-bottom: 8px;
}
.included-icon svg { width: 26px; height: 26px; stroke-width: 1.4; }
.included-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
.included-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ---------- CTA CARD (new editorial design) ---------- */
.cta-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
  min-height: 360px;
}
.cta-card-content {
  padding: clamp(40px, 5vw, 72px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.cta-card-content .eyebrow {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 6px;
}
.cta-card-content h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 500;
  max-width: 14ch;
  margin: 0;
}
.cta-card-content p {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.cta-card-actions {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cta-card-actions .btn + .btn { margin-left: -1px; }
.cta-card-visual {
  background: var(--accent);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.cta-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.cta-card-mark {
  font-size: clamp(160px, 22vw, 280px);
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--ink);
  line-height: 0.8;
  user-select: none;
  position: relative;
}
.cta-card-logo {
  width: 65%;
  max-width: 280px;
  height: auto;
  display: block;
  position: relative;
}
.cta-card-meta {
  position: absolute;
  bottom: clamp(20px, 2.4vw, 32px);
  left: clamp(20px, 2.4vw, 32px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.7);
  z-index: 1;
}

@media (max-width: 820px) {
  .cta-card { grid-template-columns: 1fr; min-height: 0; }
  .cta-card-content { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-card-visual { aspect-ratio: 16/9; min-height: 180px; }
  .cta-card-mark { font-size: 140px; }
}

/* Inverse variant — charcoal visual block with the green logo mark */
.cta-card.inverse .cta-card-visual { background: var(--ink); }
.cta-card.inverse .cta-card-visual::after {
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.06), transparent 60%);
}
.cta-card.inverse .cta-card-meta { color: rgba(255,255,255,0.55); }

/* ---------- CTA BANNER (legacy / used for editorial quotes) ---------- */
.cta-banner {
  background: var(--ink); color: #fff;
  padding: clamp(48px, 7vw, 96px);
  position: relative; overflow: hidden;
  border: 1px solid var(--ink);
}
/* Editorial corner mark — single lime rule, no glow */
.cta-banner::before {
  content: ""; position: absolute;
  top: 0; left: 0;
  width: 56px; height: 4px;
  background: var(--accent);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(32px, 4.8vw, 64px);
  letter-spacing: -0.035em; line-height: 1.04;
  margin-bottom: 18px;
  position: relative; z-index: 1;
  max-width: 22ch;
}
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 50ch; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 56px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer h4 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-mute); font-weight: 500; margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a { color: var(--ink-soft); }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--ink-mute); letter-spacing: 0.05em; text-transform: uppercase;
}
.footer-word {
  padding: 40px 0 24px;
  border-top: 1px solid var(--line);
  user-select: none;
  overflow: hidden;
  display: block;
}
.footer-word img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- PAGE INTRO ---------- */
.page-intro {
  /* Top padding matches .hero so every page sits the eyebrow at the same
     distance from the nav. */
  padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-intro .display { max-width: 14ch; }
.page-intro .lede { margin-top: 28px; }
.page-intro .eyebrow { display: inline-block; margin-bottom: 24px; padding: 6px 12px; border: 1px solid var(--line); background: var(--bg-card); }

/* ---------- BOOK A CALL ---------- */
.book-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.book-grid > * + * { border-left: 1px solid var(--line); }
.book-side {
  padding: clamp(32px, 3.4vw, 48px);
}
.book-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.book-list li {
  display: flex; gap: 14px; align-items: start;
  font-size: 15px; color: var(--ink-soft);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.book-list .check {
  width: 18px; height: 18px;
  background: var(--accent); flex-shrink: 0; margin-top: 3px;
  display: grid; place-items: center; color: #111; font-size: 11px; font-weight: 600;
}
@media (max-width: 820px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-grid > * + * { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- PRINCIPLE GRID ---------- */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.principle-card {
  padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  display: flex; flex-direction: column;
  min-height: 240px;
}
.principle-card:nth-child(3n) { border-right: 0; }
.principle-card:nth-last-child(-n+3) { border-bottom: 0; }
.principle-icon {
  width: 28px; height: 28px;
  margin-bottom: 24px;
  color: var(--ink);
  display: grid; place-items: start;
}
.principle-icon svg { width: 26px; height: 26px; stroke-width: 1.4; }
.principle-card h3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.3;
}
.principle-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.principle-cta {
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.principle-cta:hover { background: #000; }
.principle-cta .principle-icon { color: var(--accent); }
.principle-cta h3 { color: var(--accent); }
.principle-cta p { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 900px) {
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-card { min-height: 200px; }
  .principle-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .principle-card:nth-child(2n) { border-right: 0; }
  .principle-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .principle-card:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .principle-grid { grid-template-columns: 1fr; }
  .principle-card { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .principle-card:last-child { border-bottom: 0 !important; }
}

/* ---------- SCROLL FLOW (sticky reveal) ---------- */
.flow-section {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
}
.flow-section.dark { background: var(--ink); color: #fff; }

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.flow-meta {
  position: sticky;
  top: clamp(80px, 12vh, 120px);
  align-self: start;
}
.flow-meta .eyebrow { display: block; margin-bottom: 18px; color: var(--ink-mute); }
.flow-meta h2 {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-weight: 500;
  max-width: 14ch;
  color: var(--ink);
}
.flow-meta p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 16px;
  max-width: 32ch;
}
.flow-progress {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: 32px;
  display: flex; gap: 6px; align-items: center;
}
.flow-progress .current { color: var(--accent-ink); background: var(--accent); padding: 2px 8px; font-weight: 600; }
.flow-progress .slash { color: var(--ink-mute); }
.flow-progress .total { color: var(--ink-mute); }

/* Right column: always-expanded steps along a connecting line.
   Each step has a label-pill node that sits centered on the line.
   Line dimensions are set in JS to start/end at first/last node center. */
.flow-steps {
  --node-width: clamp(88px, 10vw, 110px);
  --node-height: 32px;
  --line-x: calc(var(--node-width) / 2);
  --content-offset: calc(var(--node-width) + 32px);
  position: relative;
  padding-left: var(--content-offset);
}
.flow-line {
  position: absolute;
  left: var(--line-x);
  top: 16px;     /* first-node center; overridden by JS */
  height: 0;     /* set by JS */
  width: 1px;
  background: var(--line);
  overflow: hidden;
  margin-left: -0.5px;
}
.flow-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--ink);
  transition: height 0.15s linear;
}
.flow-step {
  position: relative;
  padding-bottom: clamp(40px, 5vw, 72px);
  min-height: var(--node-height);
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step-node {
  position: absolute;
  left: calc(-1 * var(--content-offset));
  top: 0;
  width: var(--node-width);
  height: var(--node-height);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.flow-step.past .flow-step-node,
.flow-step.active .flow-step-node {
  background: var(--accent);
  border-color: var(--accent);
}
.flow-step.active .flow-step-node {
  box-shadow: 0 0 0 4px rgba(197, 242, 34, 0.18);
}
.flow-step-content { display: block; }
.flow-step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  padding: 0 10px;
  transition: color 0.2s ease, font-weight 0.2s ease;
}
.flow-step.past .flow-step-num,
.flow-step.active .flow-step-num {
  color: var(--accent-ink);
  font-weight: 600;
}
.flow-step-title {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink);
}
.flow-step p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}

/* Dark variant overrides */
.flow-section.dark .flow-meta .eyebrow { color: rgba(255,255,255,0.6); }
.flow-section.dark .flow-meta h2 { color: #fff; }
.flow-section.dark .flow-meta p { color: rgba(255,255,255,0.65); }
.flow-section.dark .flow-progress .slash,
.flow-section.dark .flow-progress .total { color: rgba(255,255,255,0.4); }
.flow-section.dark .flow-line { background: rgba(255,255,255,0.15); }
.flow-section.dark .flow-line-fill { background: var(--accent); }
.flow-section.dark .flow-step-node {
  background: var(--ink);
  border-color: rgba(255,255,255,0.25);
}
.flow-section.dark .flow-step-num { color: rgba(255,255,255,0.55); }
.flow-section.dark .flow-step.past .flow-step-node,
.flow-section.dark .flow-step.active .flow-step-node {
  background: var(--accent);
  border-color: var(--accent);
}
.flow-section.dark .flow-step.past .flow-step-num,
.flow-section.dark .flow-step.active .flow-step-num {
  color: var(--accent-ink);
}
.flow-section.dark .flow-step.active .flow-step-node {
  box-shadow: 0 0 0 4px rgba(197, 242, 34, 0.2);
}
.flow-section.dark .flow-step-title { color: rgba(255,255,255,0.92); }
.flow-section.dark .flow-step p { color: rgba(255,255,255,0.65); }

@media (max-width: 900px) {
  .flow-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow-meta { position: static; }
}

/* ---------- CUSTOMER STORIES (video testimonials, tabbed) ---------- */
.vstories-card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
}
.vstories-head {
  padding: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 48px) 32px;
  border-bottom: 1px solid var(--line);
}
.vstories-head .eyebrow { display: block; margin-bottom: 16px; color: var(--ink-mute); }
.vstories-head h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 500;
  max-width: 22ch;
}

.vstories-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 540px;
}
.vstories-tabs {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.vs-tab {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 22px clamp(24px, 2.6vw, 32px);
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  gap: 18px;
  align-items: center;
  position: relative;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease;
  flex: 1;
}
.vs-tab:first-child { border-top: 0; }
.vs-tab:hover { background: rgba(0,0,0,0.025); }
.vs-tab.active { background: rgba(200, 242, 92, 0.08); }
.vs-avatar {
  width: 44px; height: 44px;
  background-size: cover;
  background-position: center;
  background-color: var(--accent);
  display: grid; place-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.vs-avatar.has-img { background-color: var(--line); color: transparent; }
.vs-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vs-name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.vs-company {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.vs-quote {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 6px;
  max-width: 32ch;
}
.vs-company-row {
  display: flex; align-items: center; gap: 8px;
}
.vs-company-row .vs-company { white-space: nowrap; }
.vs-tab-logo {
  height: 14px;
  max-width: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}
.vs-poster-logo {
  position: absolute;
  bottom: clamp(20px, 2.4vw, 28px);
  right: clamp(20px, 2.4vw, 32px);
  z-index: 1;
  height: 22px;
  max-width: 90px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
/* Progress bar at the bottom edge of the active tab — matches the team
   detail tabs on the Approach page. */
.vs-tab-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--line);
  margin: 0;
  overflow: hidden;
  width: 100%;
  display: none;
  pointer-events: none;
}
.vs-tab.active .vs-tab-progress { display: block; }
.vs-tab-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  width: 0%;
}
.vs-tab.active .vs-tab-progress span {
  animation: vs-progress 6.5s linear forwards;
}
.vstories-card.paused .vs-tab.active .vs-tab-progress span {
  animation-play-state: paused;
}
@keyframes vs-progress {
  from { width: 0%; }
  to { width: 100%; }
}
.vs-tab .vs-arrow {
  color: var(--ink-mute);
  font-size: 16px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.vs-tab.active .vs-arrow { color: var(--ink); }
.vs-tab:hover .vs-arrow { transform: translate(2px, -2px); }

.vstories-preview {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
}
.vs-poster {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: grid; place-items: center;
  cursor: pointer;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  pointer-events: none;
}
.vs-poster.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.vs-poster-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}
.vs-poster.active.video-loaded .vs-poster-video {
  opacity: 1;
}
.vs-poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,14,14,0.55) 100%);
  pointer-events: none;
}
.vs-play {
  position: relative; z-index: 1;
  width: 84px; height: 84px;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.18s ease, transform 0.2s ease;
}
.vs-poster.active:hover .vs-play {
  opacity: 1;
  transform: scale(1);
}
.vs-poster.active:hover .vs-play:hover {
  transform: scale(1.05);
}
.vs-play svg { width: 32px; height: 32px; }
.vs-poster-meta {
  position: absolute;
  left: clamp(20px, 2.4vw, 32px);
  bottom: clamp(20px, 2.4vw, 28px);
  z-index: 1;
  display: flex; flex-direction: column; gap: 4px;
  color: #fff;
}
.vs-poster-name { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.vs-poster-company {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.vs-poster-time {
  position: absolute;
  right: clamp(20px, 2.4vw, 32px);
  top: clamp(20px, 2.4vw, 28px);
  z-index: 1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(14,14,14,0.7);
  color: #fff;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  .vstories-grid { grid-template-columns: 1fr; }
  .vstories-tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .vstories-preview { order: -1; min-height: 360px; aspect-ratio: 16/10; }

  /* Mobile accordion mode (set by JS): poster lives inside its tab,
     wrapper hides, auto-cycle is off. */
  .vstories-card.is-mobile .vstories-preview { display: none; }
  .vstories-card.is-mobile .vs-tab-progress { display: none !important; }
  .vstories-card.is-mobile .vs-tab .vs-poster {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    grid-column: 1 / -1;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    transform: none;
    overflow: hidden;
    transition: max-height 360ms cubic-bezier(.2,.7,.2,1),
                opacity 220ms ease,
                margin-top 320ms cubic-bezier(.2,.7,.2,1);
  }
  .vstories-card.is-mobile .vs-tab.active .vs-poster.active {
    max-height: 70vw;
    opacity: 1;
    margin-top: 18px;
    transform: none;
    pointer-events: auto;
  }
  /* Show the play badge at all times on mobile so it's clear the poster
     is the tap target for the lightbox. */
  .vstories-card.is-mobile .vs-tab.active .vs-poster.active .vs-play {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- LOGO STRIP ---------- */
.logo-strip {
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}
.logo-strip .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}
.logo-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
}
.logo-list span {
  background: transparent;
  padding: clamp(32px, 3.4vw, 44px) 16px;
  display: grid; place-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  min-height: 96px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-list span:nth-child(5n) { border-right: 0; }
.logo-list span:nth-last-child(-n+5) { border-bottom: 0; }
.logo-list span img {
  max-height: 28px;
  max-width: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* TapOnIt SVG embeds its icon mark as a white-on-transparent PNG pattern; force it to charcoal */
.logo-list span img[alt="TapOnIt"] { filter: brightness(0); }
.logo-list .logo-more {
  color: var(--ink-mute);
  font-size: 12px;
}

@media (max-width: 900px) {
  .logo-list { grid-template-columns: repeat(2, 1fr); }
  .logo-list span:nth-child(5n) { border-right: 1px solid var(--line); }
  .logo-list span:nth-child(2n) { border-right: 0; }
  .logo-list span:nth-last-child(-n+5) { border-bottom: 1px solid var(--line); }
  .logo-list span:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- TESTIMONIAL GRID ---------- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.testimonial-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.testimonial-grid > .testimonial + .testimonial { border-left: 1px solid var(--line); }
.testimonial {
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  background: var(--bg-card);
}
.testimonial .stars {
  display: flex; gap: 3px;
  margin-bottom: 18px;
  color: var(--accent-ink);
}
.testimonial .stars svg { width: 14px; height: 14px; fill: var(--accent); stroke: none; }
.testimonial-quote {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  flex: 1;
  font-weight: 500;
  color: var(--ink);
}
.testimonial-meta {
  display: flex; flex-direction: row; gap: 14px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testimonial-meta-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.testimonial-avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--accent);
  display: grid; place-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}
.testimonial-avatar.has-img { background-color: var(--line); color: transparent; }
.testimonial-name { font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.testimonial-role {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.testimonial-meta-text { flex: 1; min-width: 0; }
.testimonial-logo {
  height: 20px;
  max-width: 80px;
  width: auto;
  object-fit: contain;
  object-position: right center;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-grid > .testimonial + .testimonial { border-left: 0; border-top: 1px solid var(--line); }
}

/* Single feature testimonial */
.testimonial-feature {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: clamp(40px, 5vw, 72px);
}
.testimonial-feature .quote {
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 38ch;
  color: var(--ink);
}
.testimonial-feature .testimonial-meta {
  flex-direction: row;
  gap: 24px;
  align-items: center;
  border-top: 0;
  padding-top: 0;
}
.testimonial-feature .testimonial-meta .testimonial-name { font-size: 15px; }

/* ---------- HELPERS ---------- */
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 36px 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---------- HOMEPAGE FEATURE PANELS (split-image-style) ---------- */
.feature-panels {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature-panels > .panel {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) {
  .feature-panels { grid-template-columns: 1fr; }
}

/* big visual block on right of panel */
.visual-block {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: grid; place-items: center;
}
.visual-block.has-img > * { display: none; }
.visual-block.green { background: linear-gradient(135deg, #c8f25c 0%, #90c43e 100%); }
.visual-block.cream { background: linear-gradient(135deg, #f0ede4 0%, #d4cdba 100%); }
.visual-block.dark { background: linear-gradient(160deg, #0e0e0e 0%, #2a2a2a 100%); }
.visual-block.mix { background: linear-gradient(135deg, #efeae0 0%, #c8f25c 100%); }
.visual-card {
  background: #fff;
  padding: 22px 26px;
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; color: var(--ink);
  max-width: 80%;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,0.25);
}
.visual-card .vc-title { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.visual-card .vc-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.visual-card .vc-row:last-child { border-bottom: 0; }
.visual-card .vc-key { color: var(--ink-mute); }

/* ---------- CENTERED INTRO BLOCKS ---------- */
.center-block {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.center-block .display { max-width: 18ch; margin: 0 auto; }
.center-block .lede { margin: 28px auto 0; max-width: 60ch; }
.center-block .hero-tag { margin: 0 auto 32px; }
.center-block .eyebrow { display: inline-block; }
.center-block .hero-actions { justify-content: center; margin-top: 36px; }

.page-intro.center-intro { text-align: center; }
.page-intro.center-intro .display { max-width: 18ch; margin: 0 auto; }
.page-intro.center-intro .lede { margin: 28px auto 0; }
.page-intro.center-intro .eyebrow { margin: 0 auto 24px; }

/* ---------- SERVICE ITEM (clickable) ---------- */
.svc-item {
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}
.svc-item:hover { background: rgba(0,0,0,0.025); }
.svc-item .svc-arr {
  position: absolute;
  right: clamp(22px, 2.4vw, 30px);
  top: 26px;
  font-size: 18px;
  color: var(--ink-mute);
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}
.svc-item:hover .svc-arr { transform: translate(2px, -2px); color: var(--ink); }

/* ---------- MODAL (center peek) ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(14, 14, 14, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.modal-overlay.open { display: flex; }
.modal-overlay.show { opacity: 1; }

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  max-width: 880px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  transform: translateY(12px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-overlay.show .modal-card { transform: translateY(0) scale(1); }

.modal-header {
  padding: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  background: var(--bg-card); border: 1px solid var(--line);
  cursor: pointer; display: grid; place-items: center;
  font-size: 18px; color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: "Inter", sans-serif;
  line-height: 1;
  padding: 0;
}
.modal-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 18px;
}
.modal-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid; place-items: center;
  margin-bottom: 24px;
  color: var(--ink);
}
.modal-icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.modal-eyebrow .num { margin-right: 8px; }
.modal-eyebrow.green .num { color: #4D7C0F; }
.modal-eyebrow.amber .num { color: #C2410C; }
.modal-eyebrow.violet .num { color: #4F46E5; }
.modal-title {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1.05;
  max-width: 18ch;
}
.modal-tagline {
  color: var(--ink-soft);
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.45;
  max-width: 42ch;
}

.modal-body {
  padding: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.modal-body p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 56ch;
}
.modal-section-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-mute);
  margin-bottom: 12px;
  display: block;
  font-weight: 500;
}
.modal-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.modal-list li {
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
}
.modal-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}


.modal-footer {
  padding: 18px clamp(28px, 3vw, 40px);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-footer .meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute);
}
.modal-footer .btn { padding: 12px 18px; font-size: 13px; }

@media (max-width: 600px) {
  .modal-meta-grid { grid-template-columns: 1fr; }
  .modal-meta-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

body.modal-open { overflow: hidden; }

/* ---------- VIDEO MODAL (Vimeo lightbox) ---------- */
.video-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(14, 14, 14, 0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 110;
  padding: clamp(20px, 4vw, 40px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.video-modal-overlay.open { display: flex; }
.video-modal-overlay.show { opacity: 1; }

.video-modal-card {
  width: 100%;
  max-width: 1100px;
  position: relative;
  transform: translateY(8px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.video-modal-overlay.show .video-modal-card { transform: translateY(0) scale(1); }

.video-modal-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid; place-items: center;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.video-modal-close:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.video-modal-meta {
  margin-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}


/* ============ LEGAL / PROSE PAGES ============ */
.prose {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 600;
  margin: 56px 0 16px;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
  margin: 32px 0 8px;
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { opacity: 0.7; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}
.prose .updated {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ============ SHOWREEL ============ */
.showreel {
  padding: clamp(48px, 6vw, 80px) 0 0;
}
.showreel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.showreel-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.showreel-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  /* Placeholder bg matches the page bg so any subpixel gap between the
     absolutely-positioned iframe and the parent border doesn't read as a
     dark stripe against light video content. */
  background: var(--bg);
  overflow: hidden;
}
.showreel-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============ SHOWREEL: tap anywhere to activate native controls ============ */
.showreel-frame {
  cursor: pointer;
  outline: none;
}
.showreel-frame:focus-visible {
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--ink);
}
/* Default state: iframe is a passive preview. Pointer-events off so the
   click bubbles to the wrapper and our handler can swap into active mode. */
.showreel-frame iframe { pointer-events: none; }

/* Active state (after the user clicks): native Vimeo controls take over.
   Restore pointer-events on the iframe and hide our affordances. */
.showreel-frame.is-active { cursor: default; }
.showreel-frame.is-active iframe { pointer-events: auto; }
.showreel-frame.is-active .showreel-watch,
.showreel-frame.is-active .showreel-play { display: none; }

/* Persistent "Watch reel" pill (bottom-right) — primary affordance on
   touch devices where there is no hover state. */
.showreel-watch {
  position: absolute;
  right: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none; /* purely visual — parent handles the click */
  opacity: 1;
  transition: opacity 0.18s ease;
  z-index: 2;
}
.showreel-watch svg { width: 12px; height: 12px; }

/* Big centered play button — fades in on hover (desktop only).
   Same flat lime square treatment as the .vs-play on customer stories. */
.showreel-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 96px; height: 96px;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease,
              transform 0.22s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.showreel-play svg {
  width: 36px;
  height: 36px;
  transform: translateX(2px); /* optical centering */
}

/* Hover swap (only on devices with a real hover state): pill out, big play in. */
@media (hover: hover) {
  .showreel-frame:hover .showreel-watch { opacity: 0; }
  .showreel-frame:hover .showreel-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Service tile hover: title + icon adopt the practice category color.
   Uses :has() to read the practice color (green / amber / violet) from
   the parent .svc-block's eyebrow-num. Lucide icons stroke with
   currentColor, so a single color change tints both. */
.svc-icon, .svc-text h3 {
  transition: color 0.18s ease;
}
.svc-block:has(.eyebrow-num.green)  .svc-item:hover .svc-icon,
.svc-block:has(.eyebrow-num.green)  .svc-item:hover .svc-text h3 { color: #4D7C0F; }
.svc-block:has(.eyebrow-num.amber)  .svc-item:hover .svc-icon,
.svc-block:has(.eyebrow-num.amber)  .svc-item:hover .svc-text h3 { color: #C2410C; }
.svc-block:has(.eyebrow-num.violet) .svc-item:hover .svc-icon,
.svc-block:has(.eyebrow-num.violet) .svc-item:hover .svc-text h3 { color: #4F46E5; }

/* Close the outer right edge of the service / work grids on services page.
   Items only have border-left; without this, the rightmost column was naked. */
.svc-list > .svc-item:nth-child(2n),
.svc-list > .svc-work-card:nth-child(2n),
.svc-work-row > .svc-work-card:nth-child(2n),
.svc-work-row > .svc-work-card:only-child {
  border-right: 1px solid var(--line);
}
@media (max-width: 920px) {
  .svc-list > .svc-item:nth-child(2n),
  .svc-list > .svc-work-card:nth-child(2n),
  .svc-work-row > .svc-work-card:nth-child(2n) {
    border-right: 0;
  }
}

/* ============ WORK GRID v3 — 6 cards, no fill, hairline only ============ */
.work-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.work-card-6 {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.18s ease;
}
.work-card-6:hover { background: rgba(0,0,0,0.025); }
.work-card-6-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Inner element holds the image. On hover, the .thumb-bg-hover layer
   crossfades in to reveal the next image from the work's gallery. */
.work-card-6-thumb .thumb-bg,
.work-card-6-thumb .thumb-bg-hover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.4s ease;
}
.work-card-6-thumb .thumb-bg-hover { opacity: 0; background-position: center top; }
.work-card-6:hover .work-card-6-thumb .thumb-bg-hover { opacity: 1; }
/* Per-work overrides for hover-image positioning */
[data-work="njiapay"] .thumb-bg-hover { background-position: left top; }
.work-card-6-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card-6-meta {
  position: relative;
  padding: clamp(18px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-card-6-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.work-card-6-name {
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
}
.work-card-6-arr {
  position: absolute;
  top: clamp(18px, 2vw, 24px);
  right: clamp(18px, 2vw, 24px);
  font-size: 18px;
  color: var(--ink-mute);
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.work-card-6:hover .work-card-6-arr {
  transform: translate(2px, -2px);
  color: var(--ink);
}

@media (max-width: 920px) {
  .work-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .work-grid-6 { grid-template-columns: 1fr; }
}

/* ============ WORK GRID — 2-column "massive" version (used on /work) ============ */
.work-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.work-grid-2 .work-card-6-thumb { aspect-ratio: 16 / 10; }
.work-grid-2 .work-card-6-name { font-size: clamp(28px, 2.4vw, 36px); }
.work-grid-2 .work-card-6-meta { padding: clamp(24px, 2.4vw, 32px); }
/* Orphan handling: lone last card spans full width and gets a wider thumb */
.work-grid-2 > .work-card-6:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.work-grid-2 > .work-card-6:last-child:nth-child(odd) .work-card-6-thumb {
  aspect-ratio: 21 / 9;
}

@media (max-width: 720px) {
  .work-grid-2 { grid-template-columns: 1fr; }
}

/* ============ FOUNDER NOTE (book-a-call) ============ */
.founder-attribution {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.founder-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.founder-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.founder-name {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.founder-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============ LOGO STORY HOVER (preview popover + cursor follower) ============ */
.logo-story-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  pointer-events: none;
  opacity: 0;
  /* transform is overridden by JS each mousemove for cursor-following */
  transform: translate(0, 0);
  transition: opacity 0.18s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  will-change: transform, opacity;
}
.logo-story-popover.visible { opacity: 1; }
.logo-story-popover-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.logo-story-popover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-story-popover-cta {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.logo-story-popover-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Logo cells with a customer story: corner play badge (visible always) +
   a subtle lime hover tint to confirm interactivity. */
.logo-list span[data-story] {
  position: relative;
  transition: background 0.18s ease;
}
.logo-list span[data-story]:hover {
  background: rgba(197, 242, 34, 0.08);
}
.logo-list span[data-story]::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5l11 7-11 7V5z' fill='%23262625'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ============ HOME DRAFT HERO — headline above, full-width marquee below ============ */
.hero-draft {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0 0;
  overflow: hidden;
}
.hero-draft-content {
  position: relative;
  text-align: center;
}
.hero-draft-content .display {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-draft-content .lede {
  margin: 24px auto 0;
  max-width: 56ch;
}
.hero-draft-content .hero-actions {
  margin-top: 32px;
  justify-content: center;
}
.hero-draft-content .hero-tag {
  margin-bottom: 18px;
}

/* Full-width marquee row below the headline. Auto-scrolls leftward
   via JS (so it can be paused / dragged). Click items to open the
   work modal. */
.hero-marquee {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  height: clamp(220px, 26vw, 320px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.hero-marquee.dragging { cursor: grabbing; }
.hero-marquee-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  will-change: transform;
}
.hero-marquee-item {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-right: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-card);
}
.hero-marquee-item img,
.hero-marquee-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* drag should target the item itself, not the img */
  -webkit-user-drag: none;
}
/* Image items use .thumb-bg + auto-injected .thumb-bg-hover for crossfade */
.hero-marquee-item .thumb-bg,
.hero-marquee-item .thumb-bg-hover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.hero-marquee-item .thumb-bg-hover { opacity: 0; background-position: center top; }
.hero-marquee-item:hover .thumb-bg-hover { opacity: 1; }
/* "See work" overlay on hover (matches the services-page work card pattern) */
.hero-marquee-item::after {
  content: "See work ↗";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(14, 14, 14, 0.7);
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.hero-marquee-item:hover::after { opacity: 1; }
/* Hide the hover overlay while the user is dragging the strip */
.hero-marquee.dragging .hero-marquee-item:hover::after { opacity: 0; }

@media (max-width: 720px) {
  .hero-marquee {
    height: clamp(160px, 40vw, 220px);
    margin-top: 48px;
  }
}

/* ---------- TEAM SECTION (approach page) ---------- */
.team-section {
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.team-intro {
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.team-intro .eyebrow { display: block; margin-bottom: 18px; }
.team-intro h2 { margin: 0 0 16px; }
.team-intro p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.team-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.team-photo {
  position: relative;
  width: 100%;
  padding-bottom: 150%; /* 2:3 portrait, matches source photos */
  background-color: var(--bg);
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}
.team-photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.team-card:hover .team-photo::after { transform: scaleX(1); }
.team-meta {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
}
.team-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.team-role {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.team-footnote {
  margin-top: clamp(32px, 4vw, 48px);
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- MOBILE NAV: hamburger button + fullscreen overlay ---------- */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  /* Pull flush to the viewport right edge instead of sitting inside the
     .container's padding gutter (which read as scrollbar room). */
  margin-right: calc(-1 * var(--pad));
}
@media (max-width: 900px) {
  .nav-burger { display: flex; }
}
.nav-burger:hover { background: rgba(0,0,0,0.03); }
.nav-burger-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 14px;
}
.nav-burger-icon::before,
.nav-burger-icon::after,
.nav-burger-icon > span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 240ms ease, opacity 180ms ease, top 240ms ease, bottom 240ms ease;
}
.nav-burger-icon::before { top: 0; }
.nav-burger-icon > span { top: 50%; transform: translateY(-50%); }
.nav-burger-icon::after { bottom: 0; }
/* Open state: morph to X */
.nav-burger[aria-expanded="true"] .nav-burger-icon::before {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger-icon::after {
  bottom: 50%; transform: translateY(50%) rotate(-45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger-icon > span {
  opacity: 0;
}

/* Panel drops below the nav (which stays sticky on top). Fixed
   positioning keeps it pinned to the viewport regardless of scroll;
   no body overflow lock means no scrollbar-shift / no layout reflow. */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 65px;       /* 64px nav-inner height + 1px nav border-bottom */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 25;     /* below the nav (z:30) so the burger stays interactive */
  flex-direction: column;
  opacity: 0;
  transition: opacity 220ms ease, transform 240ms cubic-bezier(.2,.7,.2,1);
  transform: translateY(-8px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 6vw, 48px) 24px clamp(28px, 6vw, 48px);
}
.mobile-nav-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.mobile-nav-links a::after {
  content: "↗";
  font-size: 22px;
  color: var(--ink-mute);
  transition: transform 200ms ease, color 200ms ease;
}
.mobile-nav-links a:hover::after,
.mobile-nav-links a:active::after {
  transform: translate(2px, -2px);
  color: var(--ink);
}
.mobile-nav-links a.active { font-weight: 600; }
.mobile-nav-links a.active::after { color: var(--ink); }

.mobile-nav-cta {
  margin-top: clamp(28px, 5vw, 40px);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.mobile-nav-cta:hover { background: #b3dd4a; border-color: #b3dd4a; }

/* ========== TEAM DETAIL TABS (Approach page) ========== */
.td-card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin-top: clamp(40px, 5vw, 64px);
  overflow: hidden;
}

/* Horizontal tab strip — just names. */
.td-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.td-tab {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 18px clamp(16px, 2vw, 28px);
  text-align: center;
  cursor: pointer;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.td-tab:first-child { border-left: 0; }
.td-tab:hover { color: var(--ink); background: rgba(0,0,0,0.02); }
.td-tab.active {
  color: var(--ink);
  font-weight: 600;
  background: rgba(200, 242, 92, 0.08);
}
/* Bottom progress bar — track (::before, light line) + animated fill (::after,
   lime). Fill animates 0→100% over the auto-cycle interval; pauses when the
   card has .paused class (set on hover). */
.td-tab::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.td-tab.active::before { opacity: 1; }
.td-tab::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 3px;
  width: 0;
  background: var(--ink);
  pointer-events: none;
}
.td-tab.active::after {
  animation: td-progress 7s linear forwards;
}
.td-card.paused .td-tab.active::after {
  animation-play-state: paused;
}
@keyframes td-progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Panel: two columns. Photo + role on left, quote + map on right.
   Inherits .td-card's white background — keeps the whole card uniform,
   matches the What We Do card on the homepage. */
.td-panels {
  position: relative;
}
.td-panel {
  display: none;
  grid-template-columns: 0.36fr 0.64fr;
  gap: clamp(28px, 3.4vw, 56px);
  padding: clamp(32px, 3.6vw, 56px);
}
.td-panel.active {
  display: grid;
  animation: td-fade-in 320ms ease;
}
@keyframes td-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.td-panel-left {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.8vw, 24px);
}
.td-panel-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center top;
  background-color: var(--line);
}
.td-panel-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.td-panel-role {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.td-panel-loc {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.td-panel-right {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.6vw, 36px);
  min-width: 0;
}
.td-panel-quote {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: clamp(20px, 2vw, 28px);
  border-left: 3px solid var(--accent);
  background: rgba(200, 242, 92, 0.06);
}
.td-quote-mark {
  color: var(--ink-mute);
  font-weight: 600;
  margin: 0 1px;
}

.td-panel-map {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dot-map {
  width: 100%;
  height: auto;
  display: block;
}
.dot-map .dm-land { fill: var(--ink); opacity: 0.65; }
.dot-map .dm-water { fill: var(--ink); opacity: 0.13; }
.dot-map .dm-cross { stroke: var(--accent); stroke-width: 1.4; }
.dot-map .dm-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  opacity: 0.95;
}
.dot-map .dm-dot {
  /* Charcoal core — high-contrast bullseye against the lime ring + ripples. */
  fill: var(--ink);
}
.dot-map .dm-ripple,
.dot-map .dm-ripple-2 {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  animation: dm-ripple 2.4s cubic-bezier(.2, 0, .3, 1) infinite;
}
.dot-map .dm-ripple-2 { animation-delay: 1.2s; }
@keyframes dm-ripple {
  0%   { r: 6; opacity: 0.85; stroke-width: 1.6; }
  100% { r: 26; opacity: 0; stroke-width: 0.6; }
}
.dot-map-coords {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}

@media (max-width: 900px) {
  /* Tabs collapse to a 2×2 grid so each name has room to breathe. */
  .td-tabs { grid-template-columns: repeat(2, 1fr); }
  .td-tab {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 16px clamp(14px, 3vw, 20px);
    font-size: 11.5px;
  }
  .td-tab:first-child,
  .td-tab:nth-child(2) { border-top: 0; }
  .td-tab:nth-child(odd) { border-left: 0; }

  /* Panel stacks: photo + role above quote + map. */
  .td-panel {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 32px);
    padding: clamp(24px, 5vw, 36px);
  }
  .td-panel-left {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
  }
  .td-panel-photo { width: 96px; aspect-ratio: 2 / 3; }
}
