/* CRAZY CONTROL — design tokens + globals
   Mission-control aesthetic: warm paper, signal-red + cobalt, telemetry motifs */
:root {
  --paper: #ffffff;
  --paper-2: oklch(0.972 0 0);
  --paper-3: oklch(0.945 0 0);
  --ink: oklch(0.18 0.01 80);
  --ink-2: oklch(0.32 0.01 80);
  --ink-dim: oklch(0.46 0.005 80);
  --ink-mute: oklch(0.62 0.005 80);
  --line: oklch(0.89 0 0);
  --line-2: oklch(0.80 0 0);
  --line-3: oklch(0.66 0 0);

  --signal: oklch(0.55 0.16 152);         /* pine green — primary accent */
  --signal-soft: color-mix(in oklab, var(--signal) 14%, var(--paper));
  --cobalt: oklch(0.40 0.09 195);         /* deep teal — secondary cool */
  --cobalt-soft: color-mix(in oklab, var(--cobalt) 12%, var(--paper));
  --amber: oklch(0.72 0.13 105);          /* olive / lime — warn / highlight */

  --maxw: 1320px;
  --radius: 4px;
  --radius-lg: 6px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 116px); line-height: 0.94; letter-spacing: -0.04em; text-wrap: balance; font-weight: 600; }
h2 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; font-weight: 600; }
h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.18; letter-spacing: -0.02em; }
h4 { font-size: 16px; line-height: 1.3; }
p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
}
.eyebrow .tag {
  display: inline-block; padding: 2px 7px; border: 1px solid var(--line-2);
  font-size: 10px; letter-spacing: 0.14em; color: var(--ink);
}
.eyebrow .sig { color: var(--signal); }
.eyebrow .cob { color: var(--cobalt); }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 84px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--paper); }
.section.dark p { color: oklch(0.78 0.01 80); }
.section.dark .eyebrow { color: oklch(0.68 0.01 80); }
.section.cobalt { background: var(--cobalt); color: var(--paper); }
.section.cobalt h1, .section.cobalt h2, .section.cobalt h3 { color: var(--paper); }
.section.cobalt p { color: color-mix(in oklab, var(--paper) 80%, var(--cobalt)); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap; cursor: pointer;
  position: relative;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn .arr { display: inline-block; transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--signal); border-color: var(--signal); color: var(--paper); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--signal); border-color: var(--signal); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-text {
  border: 0; padding: 8px 0; background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}
.btn-text:hover { background: transparent; color: var(--signal); border-color: var(--signal); }
.btn-sm { padding: 10px 16px; font-size: 11.5px; }

/* Reticle / crosshair marks for corners */
.reticle { position: relative; }
.reticle::before, .reticle::after,
.reticle > .r-tl::before, .reticle > .r-tl::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--ink); pointer-events: none;
}
.reticle::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.reticle::after  { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.reticle > .r-tl { display: contents; }
.reticle > .r-tl::before { bottom: -1px; left: -1px; top: auto; border-right: 0; border-top: 0; }
.reticle > .r-tl::after  { bottom: -1px; right: -1px; top: auto; border-left: 0; border-top: 0; }

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.hdr-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 28px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--ink-mute); text-transform: uppercase;
}
.hdr-strip .live { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.hdr-strip .dot { width: 7px; height: 7px; background: var(--signal); border-radius: 999px; animation: pulse 1.6s ease-in-out infinite; }
.hdr-strip-mid { display: flex; gap: 18px; }
@media (max-width: 800px) { .hdr-strip-mid { display: none; } }

.hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 28px; }
.hdr-nav { display: flex; align-items: center; gap: 2px; }
.hdr-nav a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); padding: 8px 12px; transition: color .12s, background .12s;
}
.hdr-nav a:hover { color: var(--ink); background: var(--paper-2); }
.hdr-nav a.active { color: var(--ink); }
.hdr-nav a.active::before { content: "▸ "; color: var(--signal); }
.hdr-right { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; width: 40px; height: 40px; border: 1px solid var(--ink); color: var(--ink); }
.drawer {
  display: flex; flex-direction: column;
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 60;
  padding: 80px 28px 28px;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease, visibility 0s linear .25s;
}
.drawer.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease, visibility 0s linear 0s;
}
@media (min-width: 981px) {
  .drawer { display: none; }
}

@media (max-width: 980px) {
  .hdr-nav, .hdr-cta-desk { display: none; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .drawer a {
    font-family: var(--font-display); font-size: 36px; font-weight: 600;
    padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink);
    opacity: 0; transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease;
  }
  .drawer.open a { opacity: 1; transform: translateY(0); transition-delay: .15s; }
  .drawer-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid var(--ink); }
  .drawer-cta { margin-top: auto; }
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark {
  width: 38px; height: 38px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  position: relative; overflow: hidden; flex-shrink: 0;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.logo:hover .logo-mark { transform: translateY(-1px); }
.logo-mark svg { width: 26px; height: 26px; display: block; }
.logo-word {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: 0.01em; color: var(--ink); line-height: 1;
  text-transform: uppercase;
}
.logo-word .slash { color: var(--signal); margin: 0 4px; font-weight: 500; }
.logo-word .sub {
  display: block; font-family: var(--font-mono); font-size: 9px; font-weight: 400;
  letter-spacing: 0.18em; color: var(--ink-mute); margin-top: 4px; text-transform: uppercase;
}

/* Footer */
/* ---------- Footer ---------- */
.ftr {
  padding: 96px 0 36px;
  background: oklch(0.16 0.01 80);
  color: var(--paper);
  border-top: 1px solid var(--ink);
  position: relative;
}
.ftr::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in oklab, var(--signal) 40%, transparent) 30%,
    color-mix(in oklab, var(--signal) 40%, transparent) 70%,
    transparent 100%);
}

.ftr-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

/* --- footer brand block (logo + description + status) --- */
.ftr-brand { padding-right: 16px; }
.ftr-brand .logo { gap: 16px; }
.ftr-brand .logo-mark {
  width: 56px; height: 56px; padding: 8px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
}
.ftr-brand .logo-mark svg { width: 100%; height: 100%; }
.ftr-brand .logo-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--paper);
  line-height: 1;
}
.ftr-brand .logo-word .slash {
  color: var(--signal);
  font-weight: 500;
  margin: 0 1px;
}
.ftr-brand p {
  font-size: 14.5px;
  margin-top: 22px;
  max-width: 38ch;
  color: oklch(0.78 0.01 80);
  line-height: 1.6;
}

.ftr-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid oklch(0.30 0.01 80);
  background: oklch(0.20 0.01 80);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.85 0.01 80);
}
.ftr-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--signal) 28%, transparent);
  animation: pulse 1.6s ease-in-out infinite;
}
.ftr-status .sep {
  color: oklch(0.45 0.01 80);
  margin: 0 2px;
}

/* --- footer columns --- */
.ftr h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.58 0.01 80);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid oklch(0.25 0.01 80);
}
.ftr-col a {
  color: oklch(0.85 0.01 80);
  font-size: 14.5px;
  display: block;
  padding: 5px 0;
  transition: color .15s, transform .15s;
}
.ftr-col a:hover {
  color: var(--signal);
  transform: translateX(2px);
}

/* --- operations card --- */
.ftr-card {
  border: 1px solid oklch(0.28 0.01 80);
  background: oklch(0.20 0.01 80);
  padding: 22px 22px 24px;
  border-radius: 2px;
}
.ftr-card h4 {
  color: oklch(0.62 0.01 80);
  margin-bottom: 16px;
}
.ftr-addr {
  font-size: 13.5px;
  color: oklch(0.85 0.01 80);
  line-height: 1.65;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ftr-addr b {
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  display: block;
}
.ftr-contact {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed oklch(0.30 0.01 80);
}
.ftr-contact a {
  color: var(--paper);
  font-size: 14px;
  display: inline-block;
  padding: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--signal) 60%, transparent);
  transition: border-color .15s, color .15s;
}
.ftr-contact a:hover {
  color: var(--signal);
  border-color: var(--signal);
}
.ftr-hours {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.62 0.01 80);
}

/* --- legal links row --- */
.ftr-legal {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid oklch(0.26 0.01 80);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  align-items: center;
}
.ftr-legal a {
  display: inline-block;
  padding: 6px 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.72 0.01 80);
  border: 1px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.ftr-legal a:hover {
  color: var(--paper);
  border-color: oklch(0.30 0.01 80);
  background: oklch(0.20 0.01 80);
}

/* --- "Do Not Sell or Share" opt-out (CCPA) --- */
.ftr-dns {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid color-mix(in oklab, var(--signal) 50%, oklch(0.30 0.01 80));
  background: color-mix(in oklab, var(--signal) 8%, oklch(0.18 0.01 80));
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.ftr-dns:hover {
  background: color-mix(in oklab, var(--signal) 18%, oklch(0.18 0.01 80));
  border-color: var(--signal);
  color: var(--paper);
}
.ftr-dns .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  flex: 0 0 auto;
}
.ftr-dns .arr {
  color: var(--signal);
  transition: transform .15s;
}
.ftr-dns:hover .arr { transform: translate(2px, -2px); }

/* --- fine print row (copyright + attribution) --- */
.ftr-fine {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px dashed oklch(0.26 0.01 80);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: oklch(0.55 0.01 80);
  letter-spacing: 0.08em;
}
.ftr-fine a {
  display: inline;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: oklch(0.72 0.01 80);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: oklch(0.30 0.01 80);
}
.ftr-fine a:hover {
  color: var(--paper);
  text-decoration-color: var(--signal);
}

/* --- responsive --- */
@media (max-width: 980px) {
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-card { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ftr { padding: 64px 0 32px; }
  .ftr-top { grid-template-columns: 1fr; gap: 36px; }
  .ftr-brand .logo-mark { width: 48px; height: 48px; }
  .ftr-brand .logo-word { font-size: 19px; }
  .ftr-legal { gap: 4px; }
  .ftr-legal a { padding: 6px 10px; font-size: 10.5px; }
  .ftr-dns { width: 100%; justify-content: space-between; }
  .ftr-fine { font-size: 10px; letter-spacing: 0.06em; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 55%, transparent); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

/* Loading dots for inline button transmitting state */
@keyframes dot-fade { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.dot-spin { display: inline-block; animation: dot-fade 1s infinite both; }

/* Mobile polish */
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  .hdr-inner { padding: 12px 18px; }
  .hdr-strip { padding: 6px 18px; gap: 12px; }
  .hdr-strip > span:not(.live) { font-size: 9.5px; }
  .hero-cta { gap: 10px; }
  .hero-cta .runtime { margin-left: 0; width: 100%; padding-top: 6px; border-top: 1px dashed var(--line); }
  .hero-tag { gap: 8px; }
  .hero-tag .pill { font-size: 9.5px; padding: 5px 8px; }
  .s-head { margin-bottom: 36px; }
  .section { padding: 64px 0; }
  .final-coords { display: none; }
  .work-img .big-stat { left: 18px; right: 18px; bottom: 18px; }
  .work-img .stat-lbl, .work-img .stat-tag { top: 18px; left: 18px; }
  .work-img .stat-tag { left: auto; right: 18px; }
  .work-body { padding: 20px 22px 24px; }
  .phead-side, .contact-aside { padding: 20px 20px; }
  .quote-big { padding: 32px 26px; }
  .tier { padding: 28px 24px; }
  .hero-rail { height: clamp(200px, 60vw, 320px); }
  .pex-credit { font-size: 8.5px; padding: 4px 6px; }
}

@media (max-width: 380px) {
  .hdr-strip-mid { display: none; }
  .logo-word { font-size: 16px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-mark svg { width: 22px; height: 22px; }
  h1 { font-size: 40px !important; }
}

/* Hero */
.hero { padding: clamp(48px, 7vw, 110px) 0 clamp(56px, 7vw, 100px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; position: relative; }
.hero-tag { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-tag .pill {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line-2); color: var(--ink); background: var(--paper-2);
}
.hero-tag .pill .sig { color: var(--signal); }
.hero h1 { font-feature-settings: "ss01"; }
.hero h1 .sig { color: var(--signal); font-style: italic; font-weight: 500; }
.hero h1 .cob { color: var(--cobalt); }
.hero h1 .un { background: linear-gradient(transparent 70%, var(--signal) 70%, var(--signal) 78%, transparent 78%); padding: 0 2px; }
.hero-sub { margin-top: 28px; max-width: 58ch; font-size: clamp(17px, 1.45vw, 21px); color: var(--ink-2); line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; align-items: center; }
.hero-cta .runtime {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase;
  margin-left: 8px; display: flex; align-items: center; gap: 8px;
}
.hero-cta .runtime::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--signal); }

/* Hero telemetry strip */
.tele {
  margin-top: 56px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
.tele-cell {
  padding: 14px 20px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.tele-cell:last-child { border-right: 0; }
.tele-cell .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase; }
.tele-cell .v { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.tele-cell .v small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); margin-left: 4px; font-weight: 400; }
.tele-cell .v .sig { color: var(--signal); }
@media (max-width: 900px) { .tele { grid-template-columns: repeat(2, 1fr); } .tele-cell { border-bottom: 1px solid var(--line); } .tele-cell:nth-child(2n) { border-right: 0; } }

/* Section header */
.s-head { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: end; margin-bottom: 56px; }
.s-head .eye { padding-top: 8px; }
.s-head h2 { max-width: 16ch; }
.s-head .lede { max-width: 52ch; }
@media (max-width: 800px) { .s-head { grid-template-columns: 1fr; gap: 20px; } }

/* Capabilities grid (services preview) */
.caps {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0;
  border-top: 1px solid var(--ink); border-left: 1px solid var(--line);
}
.cap {
  grid-column: span 4;
  padding: 36px 28px 30px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; min-height: 320px;
  transition: background .2s;
}
.cap:hover { background: var(--paper-2); }
.cap .n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--signal); text-transform: uppercase; }
.cap h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; letter-spacing: -0.025em; }
.cap p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.cap-tags { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.cap-tags span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink); text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--line-2); background: var(--paper);
}
@media (max-width: 1000px) { .cap { grid-column: span 6; } }
@media (max-width: 640px) { .cap { grid-column: span 12; min-height: 240px; } }

/* Two-up split (software / AI) */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink); background: var(--paper); }
.two-up > section { padding: 44px 36px; position: relative; }
.two-up > section + section { border-left: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.two-up > section + section h3 { color: var(--paper); }
.two-up > section + section p { color: oklch(0.78 0.01 80); }
.two-up > section + section .price-line b { color: var(--paper); }
.two-up > section + section li { color: oklch(0.78 0.01 80); }
.two-up > section + section li::before { color: var(--signal); }
.two-up .eyebrow { color: var(--ink-mute); }
.two-up > section + section .eyebrow { color: oklch(0.65 0.01 80); }
.two-up h3 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 12px; font-weight: 600; }
.two-up .price-line {
  margin-top: 24px; display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-mono); color: var(--ink-2); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.two-up .price-line b { color: var(--ink); font-weight: 600; font-size: 20px; letter-spacing: 0; }
.two-up ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.two-up li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.two-up li::before {
  content: "+"; color: var(--signal); font-family: var(--font-mono); flex-shrink: 0; font-weight: 700;
}
@media (max-width: 820px) {
  .two-up { grid-template-columns: 1fr; }
  .two-up > section + section { border-left: 0; border-top: 1px solid var(--ink); }
}

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.step {
  padding: 36px 24px 32px; border-right: 1px solid var(--line); position: relative;
}
.step:last-child { border-right: 0; }
.step .n { font-family: var(--font-mono); font-size: 11px; color: var(--signal); letter-spacing: 0.18em; margin-bottom: 18px; text-transform: uppercase; }
.step h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.05; margin-bottom: 12px; letter-spacing: -0.025em; }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.step .dur { margin-top: 18px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2n) { border-right: 0; } .step { border-bottom: 1px solid var(--line); } .step:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Stats */
.stats-strip { background: var(--ink); color: var(--paper); padding: 64px 0; }
.stats-strip .stat .lbl { color: oklch(0.72 0.01 80); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { padding-right: 32px; border-right: 1px solid oklch(0.30 0.01 80); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(48px, 7vw, 88px); line-height: 0.9; color: var(--paper); letter-spacing: -0.04em; font-weight: 600; }
.stat .num .sig { color: var(--signal); }
.stat .lbl { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 28ch; }
.stat .sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.62 0.01 80); margin-bottom: 10px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .stat:nth-child(2n) { border-right: 0; } }

/* Work grid */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-card {
  background: var(--paper-2); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .2s;
}
.work-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.work-card.tall { grid-row: span 2; }
.work-img {
  aspect-ratio: 16 / 10; width: 100%;
  position: relative;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.work-img.tall { aspect-ratio: 4 / 5; }
.work-img.dark { background: var(--ink); color: var(--paper); }
.work-img.cobalt { background: var(--cobalt); color: var(--paper); }
.work-img.paper { background: var(--paper-2); color: var(--ink); }
.work-img .big-stat {
  position: absolute; bottom: 24px; left: 28px; right: 28px;
  font-family: var(--font-display); font-size: clamp(44px, 6vw, 80px); line-height: 0.9;
  letter-spacing: -0.04em; font-weight: 600;
}
.work-img .big-stat .pct { color: var(--signal); }
.work-img .stat-lbl {
  position: absolute; top: 24px; left: 28px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7;
}
.work-img .stat-tag {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--signal); text-transform: uppercase;
}
.work-img .scope { position: absolute; inset: 60px 28px 100px; opacity: 0.5; }
.work-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.work-meta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.work-body h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
.work-body p { font-size: 14px; color: var(--ink-2); }
.work-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.work-foot .read { font-family: var(--font-mono); font-size: 11.5px; color: var(--signal); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } .work-card.tall { grid-row: span 1; } }

/* Quotes */
.quote-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.quote-big { border: 1px solid var(--ink); padding: 48px 44px; background: var(--paper); }
.quote-big .qmark { font-family: var(--font-display); font-size: 72px; line-height: 0.6; color: var(--signal); font-weight: 600; }
.quote-big p { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; color: var(--ink); margin-top: 8px; font-weight: 500; letter-spacing: -0.02em; }
.quote-foot { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.q-avatar { width: 44px; height: 44px; background: var(--ink); display: grid; place-items: center; color: var(--paper); font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.q-name { font-size: 14px; color: var(--ink); font-weight: 500; }
.q-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.05em; margin-top: 2px; text-transform: uppercase; }
.quote-small { display: flex; flex-direction: column; gap: 16px; }
.quote-mini { border: 1px solid var(--line); padding: 22px 24px; background: var(--paper); }
.quote-mini p { font-size: 15px; color: var(--ink); line-height: 1.5; }
.quote-mini .q-foot { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.05em; text-transform: uppercase; }
.quote-mini .q-foot b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .quote-row { grid-template-columns: 1fr; } }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); }
.tier {
  padding: 36px 32px; border-right: 1px solid var(--line);
  background: var(--paper); display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: background .15s;
}
.tier:last-child { border-right: 0; }
.tier:hover { background: var(--paper-2); }
.tier.featured { background: var(--ink); color: var(--paper); }
.tier.featured h3, .tier.featured .t-amt { color: var(--paper); }
.tier.featured p, .tier.featured li { color: oklch(0.78 0.01 80); }
.tier.featured ul { border-color: oklch(0.30 0.01 80); }
.tier.featured .btn { background: var(--signal); border-color: var(--signal); color: var(--paper); }
.tier.featured .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tier.featured::before {
  content: "ACTIVE TIER"; position: absolute; top: -1px; right: -1px;
  background: var(--signal); color: var(--paper); font-family: var(--font-mono); font-size: 10px;
  padding: 6px 12px; letter-spacing: 0.12em;
}
.tier .t-name { font-family: var(--font-display); font-size: 28px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.tier .t-best { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.14em; text-transform: uppercase; }
.tier.featured .t-best { color: oklch(0.68 0.01 80); }
.tier .t-amt { font-family: var(--font-display); font-size: 52px; line-height: 1; letter-spacing: -0.04em; margin-top: 8px; font-weight: 600; }
.tier .t-amt small { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); margin-left: 6px; letter-spacing: 0; font-weight: 400; text-transform: uppercase; }
.tier.featured .t-amt small { color: oklch(0.68 0.01 80); }
.tier ul { list-style: none; padding: 16px 0 0; margin: 8px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.tier li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tier li::before { content: "▸"; color: var(--signal); font-family: var(--font-mono); }
.tier li.off { color: var(--ink-mute); }
.tier li.off::before { content: "—"; color: var(--ink-mute); }
.tier .btn { margin-top: auto; justify-content: center; }
@media (max-width: 980px) { .tiers { grid-template-columns: 1fr; } .tier { border-right: 0; border-bottom: 1px solid var(--line); } .tier:last-child { border-bottom: 0; } }

/* FAQ */
.faq { margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--ink); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 22px); color: var(--ink); letter-spacing: -0.02em; font-weight: 500;
}
.faq-q .ic { color: var(--signal); transition: transform .2s; font-family: var(--font-mono); font-size: 18px; flex-shrink: 0; font-weight: 700; }
.faq-q[aria-expanded="true"] .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 0 24px; max-width: 72ch; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* Final CTA */
.final {
  padding: clamp(80px, 12vw, 150px) 0;
  background: var(--ink); color: var(--paper); position: relative; overflow: hidden;
}
.final::before, .final::after {
  content: ""; position: absolute; pointer-events: none;
}
.final::before {
  inset: 0; opacity: 0.06;
  background-image:
    linear-gradient(var(--paper) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper) 1px, transparent 1px);
  background-size: 32px 32px;
}
.final h2 { font-size: clamp(44px, 7.4vw, 96px); color: var(--paper); }
.final h2 .sig { color: var(--signal); font-style: italic; }
.final p { margin: 24px 0 36px; max-width: 60ch; color: oklch(0.78 0.01 80); position: relative; }
.final-cta { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.final-cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.final-cta .btn:hover { background: var(--signal); color: var(--paper); border-color: var(--signal); }
.final-cta .btn-primary { background: var(--signal); color: var(--paper); border-color: var(--signal); }
.final-cta .btn-primary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* Ghost button on the dark final-CTA — must beat .final-cta .btn for background.
   Without this, .final-cta .btn paints the button paper-on-paper and the
   inline color:var(--paper) on the JSX makes the text invisible too. */
.final-cta .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.final-cta .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.final-cta .btn-ghost:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.final-meta { margin-top: 32px; font-family: var(--font-mono); font-size: 11px; color: oklch(0.62 0.01 80); letter-spacing: 0.12em; text-transform: uppercase; position: relative; }
.final-coords {
  position: absolute; right: 28px; top: 28px;
  font-family: var(--font-mono); font-size: 10px; color: oklch(0.55 0.01 80); letter-spacing: 0.1em; text-transform: uppercase; text-align: right;
  line-height: 1.7;
}

/* Page hero (interior) */
.phead { padding: clamp(56px, 7vw, 110px) 0 clamp(48px, 6vw, 90px); border-bottom: 1px solid var(--line); }
.phead-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
.phead h1 { font-size: clamp(48px, 6.4vw, 92px); }
.phead h1 .sig { color: var(--signal); font-style: italic; font-weight: 500; }
.phead .lede { margin-top: 24px; }
.phead-side {
  border: 1px solid var(--line); padding: 22px 24px; background: var(--paper-2);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); line-height: 1.7;
}
.phead-side .row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.phead-side .row:last-child { border-bottom: 0; }
.phead-side .k { color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; }
.phead-side .v { color: var(--ink); }
@media (max-width: 800px) { .phead-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Services page blocks */
.svc-block {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start;
  padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line);
}
.svc-block.flip { grid-template-columns: 1fr 1.05fr; }
.svc-block.flip .svc-copy { order: 2; }
.svc-block.flip .svc-mock { order: 1; }
.svc-copy h2 { font-size: clamp(36px, 4.6vw, 60px); }
.svc-copy .lede { margin-top: 20px; }
.svc-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--ink); }
.svc-list li {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2);
}
.svc-list .n { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.14em; text-transform: uppercase; }
.svc-list .lab { color: var(--ink); }
.svc-list .v { font-family: var(--font-mono); font-size: 11px; color: var(--signal); letter-spacing: 0.08em; text-transform: uppercase; }
.svc-mock { position: sticky; top: 120px; border: 1px solid var(--ink); background: var(--paper); overflow: hidden; }
@media (max-width: 920px) {
  .svc-block, .svc-block.flip { grid-template-columns: 1fr; gap: 32px; }
  .svc-block.flip .svc-copy, .svc-block.flip .svc-mock { order: unset; }
  .svc-mock { position: static; }
}

/* IDE / Code window mock */
.win { background: var(--ink); color: var(--paper); }
.win-chrome {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid oklch(0.30 0.01 80);
  font-family: var(--font-mono); font-size: 11px; color: oklch(0.62 0.01 80);
}
.win-dots { display: flex; gap: 6px; }
.win-dots span { width: 10px; height: 10px; background: oklch(0.30 0.01 80); border-radius: 999px; }
.win-dots span:first-child { background: var(--signal); }
.win-dots span:nth-child(2) { background: var(--amber); }
.win-tabs { display: flex; gap: 4px; margin-left: 10px; flex: 1; }
.win-tab { padding: 4px 10px; background: oklch(0.22 0.01 80); color: oklch(0.78 0.01 80); font-size: 10.5px; }
.win-tab.active { background: oklch(0.30 0.01 80); color: var(--paper); }
.win-body { padding: 24px 28px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; min-height: 360px; }
.win-line { display: flex; gap: 14px; }
.win-ln { color: oklch(0.40 0.01 80); width: 22px; text-align: right; user-select: none; }
.win-c-comment { color: oklch(0.50 0.01 80); }
.win-c-key { color: var(--signal); }
.win-c-str { color: var(--amber); }
.win-c-fn { color: oklch(0.74 0.14 200); }
.win-c-var { color: oklch(0.85 0.04 80); }
.win-c-num { color: oklch(0.74 0.16 145); }

/* Dashboard mock */
.dash { padding: 24px; min-height: 360px; background: var(--paper); }
.dash-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.dash-top h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.dash-top .badge { font-family: var(--font-mono); font-size: 10px; padding: 4px 8px; background: var(--signal-soft); color: var(--signal); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid color-mix(in oklab, var(--signal) 30%, var(--line)); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dash-kpi { border: 1px solid var(--line); padding: 14px; }
.dash-kpi .k { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase; }
.dash-kpi .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; }
.dash-kpi .d { font-family: var(--font-mono); font-size: 11px; color: var(--signal); margin-top: 4px; }
.dash-chart { border: 1px solid var(--line); padding: 16px; height: 160px; position: relative; }
.dash-chart .grid { position: absolute; inset: 16px; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 32px; opacity: 0.6; }
.dash-chart svg { position: relative; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase; }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  transition: border-color .12s, background .12s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--signal); background: var(--paper);
}
.field textarea { resize: vertical; min-height: 140px; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.contact-aside { padding: 30px 28px; border: 1px solid var(--ink); background: var(--paper-2); align-self: start; }
.contact-aside .row { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact-aside .row:first-of-type { border-top: 0; padding-top: 0; }
.contact-aside .row .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.14em; text-transform: uppercase; padding-top: 2px; }
.contact-aside .row .v { font-size: 14px; color: var(--ink); }
.contact-aside .row .v a:hover { color: var(--signal); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink); margin-top: 56px; }
.principle { padding: 30px 26px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.principle:nth-child(2n) { border-right: 0; }
.principle:nth-last-child(-n+2) { border-bottom: 0; }
.principle .n { font-family: var(--font-mono); font-size: 11px; color: var(--signal); letter-spacing: 0.14em; margin-bottom: 14px; text-transform: uppercase; }
.principle h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 10px; line-height: 1.1; letter-spacing: -0.02em; }
.principle p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } .principle { border-right: 0; } .principle:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); } .principle:last-child { border-bottom: 0; } }

/* Skip link */
.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; top: 12px; left: 12px; background: var(--signal); color: var(--paper); padding: 10px 14px; z-index: 100; }

/* Page transitions */
@keyframes pt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
body.pt-entering #main { animation: pt-in .35s cubic-bezier(.2,.7,.2,1) both; }

/* Process / timeline page */
.phase {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 32px;
  padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.phase:first-of-type { border-top: 1px solid var(--ink); }
.phase .ph-n { font-family: var(--font-mono); font-size: 12px; color: var(--signal); letter-spacing: 0.14em; text-transform: uppercase; padding-top: 6px; }
.phase h3 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 14px; }
.phase p { font-size: 15px; color: var(--ink-2); }
.phase ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.phase li {
  display: grid; grid-template-columns: 80px 1fr; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em;
}
.phase li b { color: var(--signal); font-weight: 500; }
.phase li span { color: var(--ink-2); }
@media (max-width: 800px) {
  .phase { grid-template-columns: 1fr; gap: 16px; }
}

/* Code chips */
.chip { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; display: inline-block; }
.chip.sig { background: var(--signal-soft); color: var(--signal); border-color: color-mix(in oklab, var(--signal) 30%, var(--line)); }
.chip.cob { background: var(--cobalt-soft); color: var(--cobalt); border-color: color-mix(in oklab, var(--cobalt) 30%, var(--line)); }

/* Marquee / ticker */
.ticker {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  background: var(--paper-2); padding: 16px 0; overflow: hidden;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.ticker-inner { display: flex; gap: 56px; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker-inner span { display: inline-flex; align-items: center; gap: 14px; }
.ticker-inner span::before { content: "◆"; color: var(--signal); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Ascii wave / scope */
.scope-wave {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: 0.08em; line-height: 1.1; white-space: pre;
}

/* Pexels image helper — always fill the positioned parent it sits in */
.pex { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.pex img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pex:hover img { transform: scale(1.02); }
.pex-credit {
  position: absolute; bottom: 0; right: 0;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  padding: 5px 8px;
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  color: oklch(0.92 0.01 80);
  text-transform: uppercase;
  opacity: 0; transition: opacity .15s;
}
.pex:hover .pex-credit { opacity: 1; }
.pex-frame {
  position: relative;
  border: 1px solid var(--ink);
}
.pex-frame::before, .pex-frame::after,
.pex-frame > .r-tl::before, .pex-frame > .r-tl::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1px solid var(--paper); background: var(--ink); z-index: 2; pointer-events: none;
}
.pex-frame::before { top: -5px; left: -5px; }
.pex-frame::after  { top: -5px; right: -5px; }
.pex-frame > .r-tl { display: contents; }
.pex-frame > .r-tl::before { bottom: -5px; left: -5px; top: auto; }
.pex-frame > .r-tl::after  { bottom: -5px; right: -5px; top: auto; }

/* Hero image rail (home) */
.hero-rail { margin-top: 36px; height: clamp(260px, 38vw, 480px); border: 1px solid var(--ink); position: relative; overflow: hidden; }
.hero-rail .pex { width: 100%; height: 100%; }
.hero-rail-tag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
}
.hero-rail-coord {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; background: color-mix(in oklab, var(--ink) 80%, transparent); color: oklch(0.92 0.01 80);
}

/* Case file image overlay tweaks (work cards w/ photos) */
.work-img.photo { background: var(--ink); padding: 0; }
.work-img.photo .pex { position: absolute; inset: 0; }
.work-img.photo .pex img { opacity: 0.78; }
.work-img.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, color-mix(in oklab, var(--ink) 80%, transparent) 100%);
  pointer-events: none;
}
.work-img.photo .stat-lbl, .work-img.photo .stat-tag, .work-img.photo .big-stat { z-index: 2; color: var(--paper); }

/* Service block can host a photo as the mock */
.svc-photo { aspect-ratio: 4/3; height: auto; min-height: 320px; border: 1px solid var(--ink); position: relative; overflow: hidden; }
.svc-photo .pex { position: absolute; inset: 0; }

/* About / contact landscape strip */
.land-strip { border: 1px solid var(--ink); height: clamp(220px, 30vw, 360px); position: relative; overflow: hidden; }
.land-strip .pex { position: absolute; inset: 0; }
.land-strip-tag {
  position: absolute; left: 18px; bottom: 18px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); z-index: 2;
}

/* Legal pages */
@media (max-width: 800px) { .lg-row { grid-template-columns: 1fr !important; gap: 12px !important; } }
.loc-grid { display: grid; }
@media (max-width: 800px) { .loc-grid { grid-template-columns: 1fr !important; } }

/* =================================================================
   Animations & motion polish (runtime.js adds .reveal / .in classes)
   ================================================================= */

/* Scroll-reveal: gentle fade + lift */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    transform .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance: stagger in immediately on load */
.hero .wrap > * {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise .9s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--hero-delay, 0ms);
}
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Sticky header gets a subtle shadow + tighter strip on scroll */
.hdr { transition: box-shadow .2s ease, backdrop-filter .2s ease; }
.hdr.scrolled {
  box-shadow: 0 1px 0 var(--line), 0 8px 28px -18px rgba(0,0,0,.18);
}
.hdr.scrolled .hdr-strip {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Buttons: gentle lift + signal-color glow on hover */
.btn {
  transition:
    background .15s ease, color .15s ease,
    border-color .15s ease, transform .15s ease,
    box-shadow .2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary:hover {
  box-shadow: 0 6px 22px -10px color-mix(in oklab, var(--signal) 70%, transparent);
}
.btn-ghost:hover {
  box-shadow: 0 4px 18px -12px rgba(0,0,0,.35);
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translate(2px, -2px); }

/* Pill chips animate in slightly */
.pill { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.pill:hover { transform: translateY(-1px); }

/* Cards lift + accent border on hover */
.work-card, .cap, .principle, .tier, .step, .phase {
  transition: border-color .18s ease, transform .25s ease, box-shadow .25s ease, background .2s ease;
}
.work-card:hover, .cap:hover, .principle:hover, .step:hover, .phase:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.22);
}

/* Capability cards: signal-coloured number on hover */
.cap .n { transition: color .2s ease, transform .2s ease; }
.cap:hover .n { color: var(--signal); transform: translateX(2px); }

/* Service block photos: subtle zoom (extends existing .pex:hover) */
.svc-photo .pex img,
.land-strip .pex img,
.hero-rail .pex img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.svc-photo:hover .pex img,
.land-strip:hover .pex img,
.hero-rail:hover .pex img { transform: scale(1.04); }

/* Ticker — keep smooth; pause on hover */
.ticker:hover .ticker-inner { animation-play-state: paused; }

/* Logo summit pulse — already animated; ensure it loops smoothly */
.summit-pulse {
  transform-origin: 19px 10px;
  animation: summit-ping 2.6s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes summit-ping {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Status strip live dot — soft pulse */
.hdr-strip .dot,
.ftr-status .dot,
.ftr-dns .dot {
  animation: live-dot 2.2s ease-in-out infinite;
}
@keyframes live-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.92); }
}

/* Underline link animations on legal/text pages */
main a[href]:not(.btn):not(.read):not(.skip):not(.ftr-dns):not(.logo):not(.faq-q):not([class*="chip"]) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s ease;
}
main a[href]:not(.btn):not(.read):not(.skip):not(.ftr-dns):not(.logo):not(.faq-q):not([class*="chip"]):hover {
  background-size: 100% 1px;
}

/* Contact confirmation reveal */
.contact-confirm {
  border: 1px solid var(--ink);
  padding: 28px 28px;
  background: var(--paper-2);
  margin-top: 32px;
}
.contact-confirm h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* Drawer slide animation polish */
.drawer { transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease; }

/* FAQ chevron rotates when open */
.faq-q .ic { transition: transform .25s ease; }
.faq-q[aria-expanded="true"] .ic { transform: rotate(45deg); }

/* Focus rings — accessibility polish */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =================================================================
   Mobile polish
   ================================================================= */
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: clamp(36px, 9vw, 56px); }
  h2 { font-size: clamp(26px, 6.5vw, 38px); }
  .lede { font-size: 16px; }
  body { font-size: 15px; }

  /* Buttons stack & full-width on small screens */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { justify-content: center; width: 100%; }
  .final-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .final-cta .btn { justify-content: center; width: 100%; }

  /* Hero rail shorter on phones */
  .hero-rail { height: clamp(180px, 50vw, 280px); }

  /* Contact form fills nicely */
  .field input, .field select, .field textarea { font-size: 16px; } /* prevents iOS zoom-on-focus */

  /* Header strip simplified on mobile */
  .hdr-strip { padding: 8px 16px; font-size: 10.5px; }
  .hdr-inner { padding: 14px 16px; }

  /* Logo gets a touch smaller on phones */
  .logo-mark { width: 36px; height: 36px; }
  .logo-word { font-size: 15px; }

  /* Section padding tightens */
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }

  /* Footer brand block stacks properly */
  .ftr-top { gap: 32px; }
  .ftr-card { padding: 18px; }

  /* Reduce reveal travel distance on mobile (less janky) */
  .reveal { transform: translateY(10px); }
}

@media (hover: none) and (pointer: coarse) {
  /* Disable hover lift on touch devices to prevent stuck-hover states */
  .work-card:hover, .cap:hover, .principle:hover, .step:hover, .phase:hover,
  .btn:hover, .pill:hover { transform: none; box-shadow: none; }
}

/* =================================================================
   Reduced motion — strip everything that moves
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero .wrap > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .summit-pulse, .ticker-inner { animation: none !important; }
}
