/* =========================================================
   Carrillo Blueprint — Homepage styles
   Built on top of tokens.css (design system source of truth)
   ========================================================= */
@import url("./tokens.css");

/* ===== Spacing & local tokens (override of design-system scale) ===== */
:root {
  --space-xs:  4px;
  --space-sm:  8px;
  /* outer breathing room from the viewport edge to the blue sheet frame */
  --frame-inset: clamp(18px, 4vw, 56px);
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typography ramp used across the page */
  --fs-eyebrow:    11px;
  --fs-meta:       11px;
  --fs-body:       13px;
  --fs-body-lg:    14px;
  --fs-lede:       15px;
  --fs-h3:         22px;
  --fs-h2:         clamp(28px, 3.4vw, 40px);
  --fs-h1:         clamp(40px, 5vw, 64px);
  --fs-display-xl: clamp(48px, 6.8vw, 88px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* Layered background. Order in CSS = paint order (FIRST listed = ON TOP):
       1. Bottom-fade veil — washes lighter the further you scroll
       2. The 24px blueprint grid (sits on top of glows, stays crisp)
       3. ONE dominant white glow upper-right (the "destello")
       4. Two secondary softer glows lower on the page
       5. Base bg color
  */
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.18) 58%,
      rgba(255, 255, 255, 0.45) 80%,
      rgba(255, 255, 255, 0.78) 100%),
    linear-gradient(to right,  var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px),
    radial-gradient(1400px 1100px at 68% 10%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.55) 18%,
      rgba(255, 255, 255, 0.25) 38%,
      rgba(255, 255, 255, 0.10) 55%,
      transparent 70%),
    radial-gradient(1100px 820px at 82% 48%,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.18) 30%,
      transparent 60%),
    radial-gradient(1000px 760px at 22% 72%,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.15) 30%,
      transparent 60%),
    radial-gradient(1100px 820px at 14% 12%,
      rgba(26, 60, 206, 0.18) 0%,
      rgba(26, 60, 206, 0.10) 28%,
      rgba(26, 60, 206, 0.04) 50%,
      transparent 70%),
    radial-gradient(900px 720px at 76% 32%,
      rgba(46, 91, 255, 0.12) 0%,
      rgba(46, 91, 255, 0.05) 35%,
      transparent 65%),
    radial-gradient(1000px 780px at 14% 92%,
      rgba(26, 60, 206, 0.14) 0%,
      rgba(26, 60, 206, 0.06) 35%,
      transparent 65%);
  background-size:
    100% 100%,
    var(--grid-unit) var(--grid-unit),
    var(--grid-unit) var(--grid-unit),
    auto, auto, auto, auto, auto, auto;
  background-repeat:
    no-repeat,
    repeat,
    repeat,
    no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 0 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--body-base-size);
  line-height: var(--body-base-lh);
  -webkit-font-smoothing: antialiased;
}
body.no-grid {
  /* keep veil + glows + darks, drop just the grid lines */
  background-image:
    linear-gradient(to bottom,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.18) 58%,
      rgba(255, 255, 255, 0.45) 80%,
      rgba(255, 255, 255, 0.78) 100%),
    radial-gradient(1400px 1100px at 68% 10%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.55) 18%,
      rgba(255, 255, 255, 0.25) 38%,
      rgba(255, 255, 255, 0.10) 55%,
      transparent 70%),
    radial-gradient(1100px 820px at 82% 48%,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.18) 30%,
      transparent 60%),
    radial-gradient(1000px 760px at 22% 72%,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.15) 30%,
      transparent 60%),
    radial-gradient(1100px 820px at 14% 12%,
      rgba(26, 60, 206, 0.18) 0%,
      rgba(26, 60, 206, 0.10) 28%,
      rgba(26, 60, 206, 0.04) 50%,
      transparent 70%),
    radial-gradient(900px 720px at 76% 32%,
      rgba(46, 91, 255, 0.12) 0%,
      rgba(46, 91, 255, 0.05) 35%,
      transparent 65%),
    radial-gradient(1000px 780px at 14% 92%,
      rgba(26, 60, 206, 0.14) 0%,
      rgba(26, 60, 206, 0.06) 35%,
      transparent 65%);
}

/* ---------- Layout primitives ----------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  /* sit comfortably inside the blue sheet frame: frame inset + a gap */
  padding: 0 calc(var(--frame-inset) + clamp(22px, 3vw, 44px));
}
.drafted { position: relative; }
.drafted::before, .drafted::after,
.drafted > .tick-bl, .drafted > .tick-br {
  content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none;
}
.drafted::before { top: -1px; left: -1px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.drafted::after  { top: -1px; right: -1px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.drafted .tick-bl{ bottom: -1px; left: -1px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.drafted .tick-br{ bottom: -1px; right: -1px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }

.quote-l { border-left: 2px solid var(--line); padding-left: 16px; }

/* ---------- Topbar ---------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(232, 238, 251, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
}
.brand .ampersand {
  color: var(--ink-mute);
  font-style: italic;
}
.nav { display: flex; gap: 36px; align-items: center; }
.nav-link {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink);
  text-decoration: none; cursor: pointer;
  position: relative; padding-bottom: 4px;
  background-image: linear-gradient(to right, var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 300ms var(--ease), color 200ms var(--ease);
}
.nav-link:hover { background-size: 100% 1px; color: var(--accent); }
.nav-link.active { color: var(--accent); background-size: 100% 1px; }
.topbar-cta { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Buttons --------------------------------------- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              transform 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); padding: 12px 0; }
.btn-ghost:hover { color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #1a2547; transform: translateY(-1px); }
.btn .arrow { transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Section heads =================================================== */
.section-num {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.section-num .num { color: var(--ink-mute); }
.section-head {
  display: grid; grid-template-columns: 220px 1fr; gap: var(--space-xl);
  align-items: flex-start;
}
.section-head h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.02em;
  color: var(--ink); margin: 0;
  max-width: 18ch;
}
.section-head .lede {
  font-family: var(--font-mono);
  font-size: var(--fs-body); line-height: 1.65;
  color: var(--ink-soft);
  margin-top: var(--space-md);
  max-width: 56ch;
}
/* Selected work + Approach: lede sits beside the title instead of under it */
#work .section-head > div:last-child,
#process .section-head > div:last-child {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-2xl);
  align-items: start;
}
#work .section-head h2,
#process .section-head h2 { max-width: 16ch; }
#work .section-head .lede,
#process .section-head .lede { margin-top: 0; max-width: 48ch; }

/* ===== Hero ============================================================ */
.hero {
  display: block;
  padding-block: var(--space-lg) var(--space-xl);
}
.hero-topline {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line-soft);
}
.hero-topline .status-pill { margin-right: var(--space-2xl); }
.hero-main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-2xl);
  align-items: stretch;
  margin-top: var(--space-lg);
}
.hero-text { display: flex; flex-direction: column; }
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero .hero-name {
  font-family: var(--font-mono);
  font-size: var(--fs-body-lg);
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: var(--space-2xs) 0 0;
}
.hero .status-pill {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0;
  white-space: nowrap;
}
.hero .status-pill .status-dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex: 0 0 auto;
}
.hero .status-pill .status-dot::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: statusPulse 2s ease-out infinite;
}
@keyframes statusPulse {
  0%   { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(2.4);  opacity: 0; }
}
.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  max-width: 19ch;
}
.hero .blurb {
  margin-top: var(--space-md);
  max-width: 52ch;
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero .ctas {
  margin-top: 0;
  display: flex; gap: var(--space-md);
  flex-wrap: wrap;
}
.hero-bottom {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-md); flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-2xl);
}
.hero-side {
  display: flex; align-items: flex-start; justify-content: center;
  position: relative;
}
.hero-side svg { width: 100%; max-width: 440px; max-height: 460px; height: auto; }

/* Hero meta strip (small mono caps row below hero) */
.hero-meta {
  display: flex; flex-direction: column;
  gap: var(--space-xs);
  padding-left: var(--space-lg);
  border-left: 1px solid var(--line-soft);
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}
.hero-meta .item {
  display: flex; align-items: baseline; gap: var(--space-sm);
}
.hero-meta .k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  min-width: 5ch;
}
.hero-meta .v {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  color: var(--ink);
}

/* ---------- Section wrapper ------------------------------- */
.section { padding-block: 96px; position: relative; }
.section + .section { padding-top: 24px; }

/* ===== Technical sheet frame + section rules (shared language
   with the PACER case study) ============================== */
:root { --frame-line: rgba(46, 91, 255, 0.45); }

main { position: relative; }
.page-frame {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - var(--frame-inset) * 2), var(--max-w));
  border: 1px solid var(--frame-line);
  pointer-events: none; z-index: 0;
}
.page-frame .corner { position: absolute; width: 16px; height: 16px; }
.page-frame .corner::before, .page-frame .corner::after { content: ''; position: absolute; background: var(--accent); }
.page-frame .corner::before { width: 16px; height: 1.5px; }
.page-frame .corner::after  { width: 1.5px; height: 16px; }
.page-frame .tl { top: -1px; left: -1px; }
.page-frame .tr { top: -1px; right: -1px; } .page-frame .tr::after { right: 0; }
.page-frame .bl { bottom: -1px; left: -1px; } .page-frame .bl::before { bottom: 0; }
.page-frame .br { bottom: -1px; right: -1px; } .page-frame .br::before { bottom: 0; } .page-frame .br::after { right: 0; }
/* keep section content above the frame */
main > .container, main > .section { position: relative; z-index: 1; }

/* horizontal section rule with end crosses — replaces .section-divider */
.section-divider {
  position: relative; z-index: 1;
  height: 1px; border: 0; background: var(--frame-line);
  width: min(calc(100% - var(--frame-inset) * 2), var(--max-w));
  margin: 0 auto;
}
.section-divider::before, .section-divider::after {
  content: ''; position: absolute; top: -5px; width: 11px; height: 11px; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat;
}
.section-divider::before { left: -5px; }
.section-divider::after  { right: -5px; }

/* ---------- Work cards ------------------------------------ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 0;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
  cursor: pointer;
  position: relative;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--elev-floating); }
.work-thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.work-thumb .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .35;
  pointer-events: none;
}
.work-thumb .frame-label {
  position: absolute; top: var(--space-md); left: var(--space-md);
  z-index: 3;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.work-thumb .frame-num {
  position: absolute; top: var(--space-md); right: var(--space-md);
  z-index: 3;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.work-thumb svg { position: relative; z-index: 1; }

/* Real product screenshot inside a thumb */
.work-thumb.has-shot { background: rgb(233,239,250); }
.work-thumb .work-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  box-sizing: border-box;
  padding: 38px 14px 16px;
  z-index: 1;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .work-shot { transform: scale(1.035); }
/* keep the corner labels legible over the screenshot */
.work-thumb.has-shot .frame-label,
.work-thumb.has-shot .frame-num {
  background: rgba(233,239,250,0.85);
  padding: 3px 6px; border-radius: 4px;
}

/* thumbs with a real screenshot carry their own grid — no extra texture */
.work-thumb.has-shot::after { display: none !important }
/* Per-card distinguishing texture overlay (subtle) */
.work-card[data-pattern="dots"] .work-thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--ink-mute) 0.6px, transparent 0.7px);
  background-size: 14px 14px;
  opacity: 0.18; z-index: 0;
}
.work-card[data-pattern="vert"] .work-thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to right,
    var(--ink-mute) 0 1px, transparent 1px 18px);
  opacity: 0.12; z-index: 0;
}
.work-card[data-pattern="diag"] .work-thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(45deg,
    var(--ink-mute) 0 1px, transparent 1px 14px);
  opacity: 0.12; z-index: 0;
}

.work-body {
  padding: var(--space-lg) var(--space-lg) var(--space-lg);
  display: flex; flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}
.work-tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.work-title {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -0.015em;
  margin: 0; color: var(--ink);
}
.work-desc {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-soft); margin: 0;
}
.work-outcome {
  display: flex; flex-direction: column; gap: var(--space-xs);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--space-md);
  margin-top: var(--space-xs);
}
.work-outcome .outcome-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.work-outcome .outcome-value {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: 1.45;
  color: var(--ink);
}
.work-outcome .outcome-value.metric {
  color: var(--accent);
  font-weight: 700;
}
.work-focus {
  display: flex; flex-wrap: wrap; gap: var(--space-xs);
}
.focus-chip {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em;
  padding: var(--space-xs) var(--space-sm);
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ink-mute);
}
.work-foot {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.work-cta {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: var(--space-sm);
}
.work-card:hover .work-cta { color: var(--accent); }
.work-foot .meta {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Approach blocks ------------------------------- */
.squiggle-wrap {
  margin-top: 56px;
  margin-bottom: 56px;
  padding: 8px 0 0;
}
.squiggle-illo { display: block; max-width: 100%; }

/* Squiggle: hold animations paused until the block scrolls into view.
   The .animate class is toggled by JS via IntersectionObserver.
   Gated behind html.js-on so the drawing is never stuck hidden. */
html.js-on .squiggle-wrap .drawable,
html.js-on .squiggle-wrap .nodefade,
html.js-on .squiggle-wrap .lbl {
  animation-play-state: paused;
}
html.js-on .squiggle-wrap.animate .drawable,
html.js-on .squiggle-wrap.animate .nodefade,
html.js-on .squiggle-wrap.animate .lbl {
  animation-play-state: running;
}
/* Print / no-motion: show the drawing fully resolved, never undrawn. */
@media print {
  .squiggle-wrap .drawable { stroke-dashoffset: 0 !important; animation: none !important; }
  .squiggle-wrap .nodefade,
  .squiggle-wrap .lbl { opacity: 1 !important; animation: none !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.js-on .squiggle-wrap .drawable { stroke-dashoffset: 0; animation: none; }
  html.js-on .squiggle-wrap .nodefade,
  html.js-on .squiggle-wrap .lbl { opacity: 1; animation: none; transform: none; }
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--frame-line);
  background: rgba(46, 91, 255, 0.03);
}
/* blue accent corner ticks (match the page frame + PACER poster) */
.approach-grid.drafted::before { border-top-color: var(--accent); border-left-color: var(--accent); border-width: 1.5px; }
.approach-grid.drafted::after  { border-top-color: var(--accent); border-right-color: var(--accent); border-width: 1.5px; }
.approach-grid > .tick-bl { border-bottom-color: var(--accent); border-left-color: var(--accent); border-width: 1.5px; }
.approach-grid > .tick-br { border-bottom-color: var(--accent); border-right-color: var(--accent); border-width: 1.5px; }
.approach-block {
  padding: 28px 24px 32px;
  border-right: 1px solid rgba(46, 91, 255, 0.18);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  background: transparent;
}
.approach-block:last-child { border-right: 0; }
.approach-num {
  font-family: var(--font-mono); font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.approach-title {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 22px; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink); margin: 0;
}
.approach-body {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6;
  color: var(--ink-soft); margin: 0;
}
.approach-rule {
  width: 32px; height: 1px; background: var(--accent); margin-top: 4px;
}
/* tweak: 2-up layout (class-based so breakpoints can still override) */
.approach-grid.layout-stack { grid-template-columns: repeat(2, 1fr); }
.approach-grid.layout-stack .approach-block { border-right: 0; border-bottom: 1px solid rgba(46, 91, 255, 0.18); }
.approach-grid.layout-stack .approach-block:nth-child(odd) { border-right: 1px solid rgba(46, 91, 255, 0.18); }
.approach-grid.layout-stack .approach-block:nth-last-child(-n+2) { border-bottom: 0; }

/* ===== Architecture → UX ============================================= */
.arch-overline {
  font-family: var(--font-mono); font-style: italic;
  font-size: var(--fs-body-lg);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: var(--space-lg) 0 var(--space-2xl);
  display: block;
}
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
  align-items: flex-start;
}
.arch-lede h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(28px, 3.2vw, 32px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 var(--space-lg);
  color: var(--ink);
  max-width: 18ch;
}
.arch-lede p {
  font-family: var(--font-mono);
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 48ch;
}
.arch-lede p + p { margin-top: var(--space-md); }
.arch-lede .pull {
  margin-top: var(--space-xl);
  border-left: 3px solid var(--accent);
  padding-left: var(--space-md);
  font-family: var(--font-mono); font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-transform: none;
}
.arch-pairs {
  display: flex; flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line-soft);
  padding-top: var(--space-md);
}
.arch-pair {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: var(--space-sm);
  padding: 10px 12px;
  border-radius: 8px;
  align-items: center;
  position: relative;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .35s ease;
}
/* animated accent rail that grows in on hover */
.arch-pair::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 2px; height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  border-radius: 2px;
  transition: height .35s cubic-bezier(.2,.7,.2,1);
  z-index: -1;
}
.arch-pair:hover {
  background: var(--bg-elev);
  transform: translateX(6px);
}
.arch-pair:hover::before { height: 64%; }
.arch-pair .lhs {
  font-family: var(--font-mono);
  font-size: clamp(12.5px, 1.2vw, 14px);
  color: var(--ink-soft);
  display: flex; align-items: baseline; gap: var(--space-sm);
}
.arch-pair .lhs .arch-num {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  min-width: 20px; display: inline-block;
  transition: color .35s ease;
}
.arch-pair:hover .lhs .arch-num { color: var(--accent); }
.arch-pair .rhs {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(15px, 1.5vw, 17px);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .35s ease;
}
.arch-pair:hover .rhs { color: var(--accent); }
.arch-pair .ar {
  display: flex; align-items: center; justify-content: center;
  color: var(--line-strong, var(--ink-mute));
  font-family: var(--font-mono);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), color .35s ease;
}
.arch-pair:hover .ar {
  transform: translateX(4px);
  color: var(--accent);
}

/* ---------- About preview --------------------------------- */
/* About: section head shares the about-grid geometry — number over the
   portrait column, title flush with the copy column below it */
#about .section-head { grid-template-columns: 0.85fr 1.15fr; gap: 56px }
#about .section-head h2 { max-width: none; white-space: nowrap }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  margin-top: 40px;
  align-items: flex-start;
}
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.portrait .ph-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .45;
}
.portrait .ph-figure {
  position: absolute; inset: 22% 18% 0 18%;
  border: 1px dashed var(--accent);
  background:
    radial-gradient(ellipse at 50% 28%, var(--accent-soft) 0 22%, transparent 24%),
    linear-gradient(to bottom, transparent 38%, var(--accent-soft) 38% 42%, transparent 42%);
  opacity: 0.55;
}
.portrait .ph-photo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  display: block;
}
.portrait .ph-cap {
  position: relative; z-index: 2;
  margin: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 6px 9px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.portrait .ph-num {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 6px 9px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--accent);
}
.about-copy h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 40px; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 18px; color: var(--ink);
  max-width: 16ch;
}
.about-copy p {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.75;
  color: var(--ink-soft);
  max-width: 56ch; margin: 0 0 20px;
  text-wrap: pretty;
}
.about-copy p:last-of-type { margin-bottom: 0 }
.about-copy .lede {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 30px; line-height: 1.18; letter-spacing: -0.02em;
  color: var(--ink); max-width: 26ch; margin-bottom: 26px;
}
.about-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 72px; border-top: 1px solid var(--line-soft);
}
.fact {
  border: 0; border-right: 1px solid var(--line-soft);
  background: transparent;
  padding: 18px 24px 0 0;
}
.fact:last-child { border-right: 0 }
.fact + .fact { padding-left: 24px }
.fact .k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.fact .v {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-soft); line-height: 1.6;
}
.about-cta { margin-top: 32px; }

/* ---------- Footer / CTA ---------------------------------- */
.cta-band {
  margin-top: 72px;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(232, 238, 251, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 238, 251, 0.06) 1px, transparent 1px);
  background-size: var(--grid-unit) var(--grid-unit);
  color: var(--on-ink);
}
.cta-banner {
  padding-block: 120px 24px;
}
.cta-banner h2 {
  color: var(--on-ink);
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(48px, 6.8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 22ch;
}
.cta-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,0.7fr) auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(232, 238, 251, 0.18);
}
.cta-item { min-width: 0; }
.cta-item .k {
  display: block; line-height: 15.5px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(232, 238, 251, 0.5);
}
.cta-item .v {
  display: block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--on-ink); text-decoration: none;
  position: relative;
  background-image: linear-gradient(to right, var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 300ms var(--ease), color 200ms var(--ease);
  padding-bottom: 4px;
}
.cta-item .v:hover { color: var(--accent-soft); background-size: 100% 1px; }
.cta-item.action {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}

/* Light variant of the CTA band (toggled from the Tweaks panel) */
body.cta-light .cta-band {
  background-color: transparent;
  background-image: none;
  color: var(--ink);
  margin-top: 0;
}
body.cta-light .cta-banner { border-top: 1px solid var(--line-soft); }
body.cta-light .cta-banner h2 { color: var(--ink); }
body.cta-light .cta-row { border-bottom: 1px solid var(--line-soft); }
body.cta-light .cta-item .k { color: var(--ink-mute); }
body.cta-light .cta-item .v {
  color: var(--ink);
  background-image: linear-gradient(to right, var(--accent), var(--accent));
}
body.cta-light .cta-item .v:hover { color: var(--accent); }
body.cta-light footer.foot {
  background: transparent;
  color: var(--ink-mute);
}
body.cta-light footer.foot a { color: var(--ink-mute); }
body.cta-light footer.foot a:hover { color: var(--accent); }
body.cta-light footer.foot .foot-contact { color: var(--accent); }

footer.foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  background: var(--ink);
  color: rgba(232, 238, 251, 0.55);
  letter-spacing: 0.04em;
}
footer.foot .l { display: flex; gap: var(--space-lg); }
footer.foot a {
  color: rgba(232, 238, 251, 0.55); text-decoration: none; cursor: pointer;
  transition: color 200ms var(--ease);
}
footer.foot a:hover { color: var(--accent-soft); }
footer.foot .sig { font-style: italic; }
footer.foot .foot-contact { color: var(--accent-soft); }

/* ---------- Reveal-on-scroll ------------------------------ */
/* Hidden state is gated behind html.js-on so content is never
   invisible when JS fails, when printing, or for crawlers. */
html.js-on .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}
html.js-on .reveal.in { opacity: 1; transform: none; }
@media print {
  html.js-on .reveal { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.js-on .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero illustration draw-on --------------------- */
.hero-illo .drawable {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawIn 1.4s var(--ease) forwards;
  animation-delay: calc(var(--delay, 0) * 1ms);
}
.hero-illo .nodefade {
  opacity: 0;
  animation: nodeIn 600ms var(--ease) forwards;
  animation-delay: calc(var(--delay, 0) * 1ms);
}
.hero-illo .lbl {
  opacity: 0;
  animation: lblIn 500ms var(--ease) forwards;
  animation-delay: calc(var(--delay, 0) * 1ms);
}
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes nodeIn { to { opacity: 1; } }
@keyframes lblIn  { to { opacity: 1; transform: none; } }
@media print {
  .hero-illo .drawable { stroke-dashoffset: 0; animation: none; }
  .hero-illo .nodefade,
  .hero-illo .lbl { opacity: 1; animation: none; transform: none; }
}

/* ---------- Hero illustration · ambient life --------------- */
/* gentle "breathing" on the flow nodes — echoes the status dot */
.hero-illo .pulse-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroNodePulse 3s var(--ease) infinite;
}
@keyframes heroNodePulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.45); opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-illo .pulse-node { animation: none; }
  .hero-illo .flow-travel,
  .hero-illo .flow-travel-halo { display: none; }
}

/* ---------- Tweak: structured vs sketchy ------------------ */
body.sketch-min .hero-illo .sketch-extra { display: none; }

/* =========================================================
   HERO · blueprint → build composition
   Wireframes draw in, then an accent scan-line "renders"
   them into the real product screens.
   ========================================================= */
.hero-side { align-items: flex-start; }
/* ===== Hero composition: my lo-fi wireframes building into the shipped screens ===== */
.plate { position: relative; width: 100%; max-width: 520px; aspect-ratio: 52 / 62; margin-top: var(--space-sm); margin-bottom: var(--space-sm); font-family: var(--font-mono); }
@keyframes plIn { to { opacity: 1; transform: none; } }
.plate .pd, .plate .pl-lbl, .plate .pl-dim, .plate .pl-chip { opacity: 0; transform: translateY(10px); animation: plIn 700ms var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.pl-lbl { position: absolute; top: 0; font-size: 10px; letter-spacing: 0.08em; color: var(--ink-mute); z-index: 6; }
.pl-fig { left: 0; }
.pl-op { right: 0; color: var(--accent); }
.pd { position: absolute; border: 1.5px solid var(--accent); background: rgba(255,255,255,0.5); transition: border-color 700ms var(--ease), background 700ms var(--ease), box-shadow 700ms var(--ease); }
.plate.built .pd { border-color: var(--ink); background: var(--surface); box-shadow: var(--elev-floating); }
/* three web screens: same width, cascading. phone sits in front. */
.pd.d1 { top: 6%; right: 0; width: 62%; z-index: 1; }
.pd.d2 { top: 26%; left: 0; width: 62%; z-index: 2; }
.pd.d3 { top: 50%; right: 4%; width: 62%; z-index: 3; }
.pd.d4 { bottom: 5%; left: 17%; width: 26%; z-index: 4; border-radius: 22px; padding: 6px; }
.pd-chrome { height: 20px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--accent-soft); transition: border-color 700ms var(--ease); }
.plate.built .pd-chrome { border-color: var(--line-soft); }
.pd-chrome span { width: 6px; height: 6px; border-radius: var(--radius-full); border: 1px solid var(--accent); flex: 0 0 auto; transition: border-color 700ms var(--ease); }
.plate.built .pd-chrome span { border-color: var(--ink-mute); }
.pd-chrome i { flex: 1; height: 8px; margin-left: 6px; border: 1px solid var(--accent-soft); border-radius: var(--radius-full); opacity: 0.7; }
.pd-screen { position: relative; overflow: hidden; background: var(--bg-elev); }
.pd-browser .pd-screen { aspect-ratio: 8 / 5; }
.pd-phone .pd-screen { aspect-ratio: 440 / 900; border-radius: 16px; }
.pd-draft { position: absolute; inset: 0; display: block; }
.pd-draft img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(0.95) brightness(1.08); }
.pd-draft::after { content: ''; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; opacity: 0.92; }
.pd-final { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 2; clip-path: inset(0 0 100% 0); transition: clip-path 1200ms cubic-bezier(0.65,0,0.35,1); }
.plate.built .pd-final { clip-path: inset(0 0 0 0); }
.pd-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: var(--accent); box-shadow: 0 0 12px rgba(46,91,255,0.6); opacity: 0; transition: top 1200ms cubic-bezier(0.65,0,0.35,1); }
.plate.sweeping .pd-scan { opacity: 1; }
.plate.built .pd-scan { top: 100%; }
.pd.d2 .pd-final, .pd.d2 .pd-scan { transition-delay: 200ms; }
.pd.d3 .pd-final, .pd.d3 .pd-scan { transition-delay: 400ms; }
.pd.d4 .pd-final, .pd.d4 .pd-scan { transition-delay: 600ms; }
.pl-dim { position: absolute; left: 17%; bottom: 10px; width: 26%; display: flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: 0.1em; color: var(--ink-mute); z-index: 6; }
.pl-dim .ln { flex: 1; height: 1px; background: var(--ink-mute); opacity: 0.55; }
.pl-dim .tick { width: 1px; height: 8px; background: var(--ink-mute); opacity: 0.55; }
.pl-chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 10px; letter-spacing: 0.06em; white-space: nowrap; color: var(--ink); background: var(--surface); border: 1px solid var(--line-soft); }
.pl-chip i { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--accent); flex: 0 0 auto; }
.pl-chip-a { top: 22%; left: 0; right: auto; }
.pl-chip-b { bottom: 8%; left: 46%; }
@media (max-width: 960px) { .plate { margin-inline: auto; } }
@media (max-width: 600px) {
  .plate { aspect-ratio: auto; max-width: none; display: flex; flex-direction: column; gap: 12px; padding-top: 22px; }
  .plate .pd { position: static; width: 100% !important; }
  .pd.d4 { width: 58% !important; align-self: center; }
  .pl-dim { display: none; }
  .pl-chip { position: static; align-self: flex-start; }
}

/* --- (lab) side-project strip --- */
.lab-strip { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tag title cta" "tag desc cta"; column-gap: var(--space-xl); row-gap: 6px; align-items: center; margin-top: var(--space-xl); padding: 22px 26px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.lab-strip:hover { transform: translateY(-3px); box-shadow: var(--elev-floating); }
.lab-strip .lab-tag { grid-area: tag; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border-right: 1px solid var(--line-soft); padding-right: 26px; align-self: stretch; display: flex; align-items: center; white-space: nowrap; }
.lab-strip .lab-title { grid-area: title; font-family: var(--font-display-alt); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.lab-strip .lab-desc { grid-area: desc; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-soft); max-width: 78ch; }
.lab-strip .lab-cta { grid-area: cta; font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.lab-strip:hover .lab-cta { color: var(--accent); }
.lab-strip { grid-template-columns: auto 1fr auto; padding: 0 26px 0 0; overflow: hidden; column-gap: var(--space-lg); }
.lab-strip .lab-title { padding-top: 22px; }
.lab-strip .lab-desc { padding-bottom: 22px; }
.lab-strip .lab-cta { display: flex; flex-direction: column; gap: 4px; align-self: center; text-align: right; }
.lab-strip .lab-cta b { font-family: var(--font-display-alt); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.lab-strip .lab-cta i { font-style: normal; color: var(--accent); font-size: var(--fs-eyebrow); letter-spacing: 0.06em; }
.lab-strip .lab-tag { align-self: stretch; display: flex; align-items: center; width: 190px; background: rgb(233,239,250); border: 0; border-right: 1px solid var(--line-soft); padding: 22px 24px; white-space: normal; line-height: 1.7; }
@media (max-width: 960px) { .lab-strip { grid-template-columns: 1fr; grid-template-areas: "tag" "title" "desc" "cta"; row-gap: 10px; padding: 0 20px 20px; } .lab-strip .lab-tag { width: auto; margin: 0 -20px; padding: 12px 20px; border-right: 0; border-bottom: 1px solid var(--line-soft); } .lab-strip .lab-title { padding-top: 16px; } .lab-strip .lab-desc { padding-bottom: 0; } .lab-strip .lab-cta { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; } }

/* --- coming-soon work card --- */
.work-card.is-soon .work-cta { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .plate .pd, .plate .pl-lbl, .plate .pl-dim, .plate .pl-chip { animation: none; opacity: 1; transform: none; }
  .pd, .pd-final, .pd-scan { transition: none; }
  .pl-chip-a { transform: translateY(-100%); }
}

/* ---------- Responsive guards ----------------------------- */
@media (max-width: 960px) {
  .hero { padding-block: 40px 56px; }
  .hero-main { grid-template-columns: 1fr; gap: 32px; }
  .hero-topline { flex-wrap: wrap; gap: var(--space-md); }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  #work .section-head > div:last-child,
  #process .section-head > div:last-child { grid-template-columns: 1fr; gap: var(--space-md); align-items: start; }
  .work-grid { grid-template-columns: 1fr; }
  .approach-grid, .approach-grid.layout-stack { grid-template-columns: 1fr 1fr; }
  .approach-block { border-right: 0 !important; border-bottom: 1px solid rgba(46, 91, 255, 0.18); }
  .arch-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  #about .section-head { grid-template-columns: 1fr; gap: 16px }
  .about-facts { grid-template-columns: 1fr 1fr; margin-top: 40px }
  .fact { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 16px 0 16px }
  .fact + .fact { padding-left: 0 }
  .about-copy .lede { font-size: 26px; max-width: none }
  .cta-row { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}
@media (max-width: 600px) {
  .approach-grid, .approach-grid.layout-stack { grid-template-columns: 1fr; }
  /* email + LinkedIn URLs are longer than a half-column: single file, and let them break */
  .cta-row { grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 30px; }
  .cta-item .v { overflow-wrap: anywhere; }
  /* keep navigation on mobile: wrap to a second row instead of hiding it */
  .topbar { flex-wrap: wrap; row-gap: 4px; padding-block: 12px; }
  .topbar-cta { display: none; }
  .nav { gap: 18px; width: 100%; }
  .nav-link { font-size: 12px; }
}

/* ---------- Accessibility ---------------------------------- */
.skip-link {
  position: fixed; left: 24px; top: -56px; z-index: 200;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  background: var(--ink); color: var(--on-ink);
  padding: 10px 16px; text-decoration: none;
  transition: top 200ms var(--ease);
}
.skip-link:focus-visible { top: 12px; }
/* keep anchored sections clear of the sticky topbar */
section[id] { scroll-margin-top: 88px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ============================================================
   TABLET & PHONE — readability pass (cases live in pacer.css)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --fs-eyebrow: 11.5px; --fs-meta: 11.5px; --fs-body: 14.5px; --fs-body-lg: 15px; }
  .approach-body { font-size: 14px; line-height: 1.62; }
  .work-desc { font-size: 14.5px; }
  .outcome-value { font-size: 14px; }
  .fact .v { font-size: 13.5px; }
  .lab-strip .lab-title { font-size: 18px; }
  .lab-strip .lab-desc { font-size: 13px; line-height: 1.65; }
}
@media (max-width: 600px) {
  /* touch targets */
  .nav-link { font-size: 13px; padding-block: 11px; }
  .brand { display: inline-block; padding-block: 10px; }
  .btn { width: 100%; justify-content: center; }
  .ctas, .about-cta, .cta-item.action { width: 100%; }
  .cta-row { grid-template-columns: 1fr; row-gap: 26px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .foot a { padding-block: 8px; }
}

@media (max-width: 1024px) {
  /* hard-coded micro labels: 10px caps is too small on a hand-held screen */
  .work-tag, .focus-chip, .work-foot .meta,
  .work-outcome .outcome-label, .work-thumb .frame-label, .work-thumb .frame-num,
  .lab-strip .lab-tag, .portrait .ph-num, .portrait .ph-cap { font-size: 11px; }
  /* touch targets: tablets are touch devices too */
  .nav-link { padding-block: 11px; }
  .brand { display: inline-block; padding-block: 11px; }
  .foot a, .foot-contact { padding-block: 10px; }
  .cta-item .v { display: inline-block; padding-block: 10px; }
  .skip-link { padding: 13px 18px; }

}
