/* =========================================================================
   The Blueprint — Drafting-Table Navy & Red Pencil
   A technical-drawing system for an AI build partner: every page reads as
   a sheet from an engineer's drawing set. Fine cyan linework, mono
   annotations, red-pencil markups for action.
   Big Shoulders (display) · IBM Plex Sans (body) · IBM Plex Mono (label/data)
   ========================================================================= */

:root {
  /* drafting sheet */
  --sheet: #0A1B30;
  --sheet-raised: #0E2340;
  --sheet-sunken: #071324;
  --paper-print: #EFF5F8;      /* the one printed sheet (featured card) */

  /* linework */
  --cyan: #7DD3E8;
  --cyan-bright: #B4ECF9;
  --line: rgba(125,211,232,0.26);
  --line-strong: rgba(125,211,232,0.55);
  --hairline: rgba(125,211,232,0.13);
  --grid-minor: rgba(125,211,232,0.045);
  --grid-major: rgba(125,211,232,0.09);

  /* ink on the sheet */
  --text: #E8F3F9;
  --text-soft: #BCD3E1;
  --text-muted: #7E99AE;
  --text-faint: #547089;

  /* red pencil (markups, CTAs) */
  --pencil: #F0604A;
  --pencil-bright: #FF7A64;
  --pencil-tint: rgba(240,96,74,0.12);
  --pencil-tint-strong: rgba(240,96,74,0.22);

  /* live / status */
  --live: #5CE8A4;
  --live-tint: rgba(92,232,164,0.12);

  /* type */
  --font-display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --font-label: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* radius — drafting instruments don't round corners */
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;

  /* depth: glow instead of shadow */
  --shadow-card: 0 0 0 1px var(--hairline);
  --shadow-raised: 0 0 0 1px var(--line), 0 0 32px -8px rgba(125,211,232,0.18);
  --shadow-btn: 0 10px 28px -12px rgba(240,96,74,0.7);

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- legacy aliases (consumed by demo.css across the demo pages) ---- */
  --bg: var(--sheet);
  --bg-card: var(--sheet-raised);
  --bg-card-featured: var(--sheet-sunken);
  --border: var(--line);
  --border-hover: var(--line-strong);
  --text-muted: #7E99AE;
  --text-dim: var(--text-faint);
  --accent: var(--pencil);
  --accent-dim: var(--pencil-tint);
  --green: var(--live);
  --green-dim: var(--live-tint);
  --font: var(--font-body);
  --mono: var(--font-label);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--sheet);
  /* drafting-paper grid: minor 24px, major every 120px */
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--cyan); color: var(--sheet-sunken); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }

/* anchor targets clear the fixed nav */
section[id] { scroll-margin-top: 5rem; }

/* balanced rag on display type */
h1, h2, h3 { text-wrap: balance; }

/* keyboard-only skip link */
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 200;
  background: var(--pencil);
  color: var(--sheet-sunken);
  padding: 0.6rem 1.1rem;
  font-family: var(--font-label);
  font-size: 13px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* =========================================================================
   Motion utilities
   ========================================================================= */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes lineUp {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.82); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -24; }
}

/* on-load cascade (above the fold, works without JS) */
.rise { opacity: 0; animation: rise 0.7s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms); }

/* scroll reveal (below the fold, only hidden when JS is present) */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, html.js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .hero h1 .line > span { transform: none !important; animation: none !important; }
  .hero-schematic * { animation: none !important; }
}

/* =========================================================================
   Nav — the sheet's top edge
   ========================================================================= */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 2.5rem;
  background: rgba(10,27,48,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-name {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 1.9rem; }

.nav-links a {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  position: relative;
  transition: color 0.2s var(--ease);
}

.nav-links a:not(.btn-nav)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.nav-links a:not(.btn-nav):hover { color: var(--cyan-bright); }
.nav-links a:not(.btn-nav):hover::after { transform: scaleX(1); }

.btn-nav {
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 500;
  padding: 0.5rem 1.05rem;
  background: var(--pencil);
  color: var(--sheet-sunken) !important;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-btn);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-nav:hover { background: var(--pencil-bright); transform: translateY(-1px); }

/* mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cyan-bright); transition: transform 0.25s var(--ease), opacity 0.2s; }

/* =========================================================================
   Hero — title sheet
   ========================================================================= */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10.5rem 2.5rem 4.5rem;
  position: relative;
}

.hero-tag {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-tag::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 -3px 0 var(--cyan), 0 3px 0 var(--cyan);
  display: inline-block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8.4vw, 6.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.9rem;
  max-width: 15ch;
}

.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 0.95s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}

.hero-sub {
  font-size: 1.14rem;
  color: var(--text-soft);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }

/* schematic drawing pinned to the hero's right edge (desktop only) */
.hero-schematic {
  position: absolute;
  right: 2.5rem; top: 11.5rem;
  width: 300px;
  opacity: 0.9;
  pointer-events: none;
}
.hero-schematic .flow {
  stroke-dasharray: 6 6;
  animation: dashFlow 1.6s linear infinite;
}
@media (max-width: 1180px) { .hero-schematic { display: none; } }

/* demo pages: hero headings share the display voice */
.demo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn-primary {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  background: var(--pencil);
  color: var(--sheet-sunken);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-btn);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary:hover { background: var(--pencil-bright); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 13.5px;
  color: var(--cyan-bright);
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(125,211,232,0.08); color: var(--cyan-bright); }

/* =========================================================================
   Sections + dimension-line labels
   ========================================================================= */

section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem;
}

.section-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  position: relative;
}
/* dimension-line end ticks */
.section-label::before,
.section-label::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 1px; height: 9px;
  background: var(--line-strong);
}
.section-label::before { left: 0; }
.section-label::after { right: 0; }

.section-label .sec-no {
  color: var(--pencil);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.section-label .sec-no::after { content: " /"; color: var(--text-faint); }

/* =========================================================================
   Proof ledger — bill of materials
   ========================================================================= */

.proof-ledger {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem 4.5rem;
}

.ledger-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 16rem) 1fr;
  align-items: center;
  gap: 1.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.ledger-row:last-child { border-bottom: 1px solid var(--line); }

.ledger-idx {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--pencil);
  letter-spacing: 0.06em;
  align-self: center;
}

.ledger-fig {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--cyan-bright);
  white-space: nowrap;
}
.ledger-row.lead .ledger-fig { font-size: clamp(3rem, 6.4vw, 5rem); }

.ledger-desc {
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.45;
  align-self: center;
}

/* legacy proof-bar fallback (kept so any older markup still renders) */
.proof-bar { max-width: 1000px; margin: 0 auto; padding: 0 2.5rem 4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.proof-stat { border-top: 2px solid var(--pencil); padding-top: 1rem; }
.proof-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--cyan-bright); }
.proof-label { font-size: 13px; color: var(--text-soft); margin-top: 0.4rem; line-height: 1.4; }

/* =========================================================================
   Gap strip — red-pencil markups
   ========================================================================= */

.gap-strip { max-width: 980px; margin: 0 auto; padding: 0 2.5rem 5rem; }
.gap-label {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.75rem;
  text-align: center;
}
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.gap-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--sheet-raised);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--pencil);
  border-radius: var(--r-md);
  padding: 1.35rem 1.4rem;
}
.gap-ico { font-family: var(--font-label); font-size: 14px; color: var(--pencil); flex-shrink: 0; margin-top: 2px; }
.gap-item p { font-size: 0.98rem; color: var(--text-soft); line-height: 1.5; }
.gap-bridge { display: flex; align-items: center; gap: 1.5rem; }
.gap-bridge-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.gap-bridge-text {
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  max-width: 560px;
  flex-shrink: 0;
  line-height: 1.35;
}

/* =========================================================================
   Services — detail panels with registration ticks
   ========================================================================= */

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service-card {
  background: var(--sheet-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.9rem;
  position: relative;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* corner registration marks */
.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--line-strong);
  border-style: solid;
  transition: border-color 0.3s var(--ease);
}
.service-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.service-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.service-card:hover { border-color: var(--line); box-shadow: var(--shadow-raised); }
.service-card:hover::before, .service-card:hover::after { border-color: var(--cyan); }
.service-ico {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 1.15rem;
}
.service-card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.99rem; color: var(--text-soft); line-height: 1.55; }

/* =========================================================================
   Inbox Zero banner — a revision note clipped to the sheet
   ========================================================================= */

.iz-banner { max-width: 1120px; margin: 0 auto; padding: 0 2.5rem; }
.iz-inner {
  background: var(--sheet-sunken);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pencil);
  border-radius: var(--r-lg);
  padding: 2.4rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.iz-copy { max-width: 660px; }
.iz-kicker {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pencil-bright);
  margin-bottom: 0.8rem;
}
.iz-copy h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.65rem; color: var(--text); }
.iz-copy p { font-size: 1.02rem; color: var(--text-soft); line-height: 1.55; }
.iz-price { font-family: var(--font-label); color: var(--cyan-bright); font-size: 13px; margin-top: 0.85rem; letter-spacing: 0.02em; }

/* =========================================================================
   Project grid — drawing sheets; the flagship is the printed page
   ========================================================================= */

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.project-card {
  background: var(--sheet-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  position: relative;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--line-strong);
  border-style: solid;
  transition: border-color 0.3s var(--ease);
}
.project-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.project-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.project-card:hover { border-color: var(--line); box-shadow: var(--shadow-raised); }
.project-card:hover::before, .project-card:hover::after { border-color: var(--cyan); }

/* the flagship: printed to paper, navy ink */
.project-card.featured {
  grid-column: span 2;
  background: var(--paper-print);
  border-color: var(--paper-print);
  color: #14283F;
}
.project-card.featured::before, .project-card.featured::after { border-color: rgba(20,40,63,0.4); }
.project-card.featured:hover { border-color: var(--pencil); box-shadow: 0 0 0 1px var(--pencil-tint-strong), 0 18px 48px -20px rgba(0,0,0,0.5); }
.project-card.featured h2 { color: #0E2340; }
.project-card.featured p { color: rgba(20,40,63,0.75); }
.project-card.featured .card-category { color: #A44434; }

.card-top { display: flex; flex-direction: column; gap: 0.85rem; }
.card-meta { display: flex; align-items: center; gap: 0.85rem; }

.badge {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.badge-live { background: var(--live-tint); color: var(--live); }
.badge-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: livePulse 2.4s ease-in-out infinite;
}
.project-card.featured .badge-live { background: rgba(23,122,74,0.14); color: #177A4A; }
.project-card.featured .badge-live::before { background: #1E9C60; }

.card-category { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.project-card h2 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.project-card p { font-size: 0.97rem; color: var(--text-soft); line-height: 1.55; }

.card-bottom { display: flex; flex-direction: column; gap: 0.9rem; }
.card-detail { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.card-detail span {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-sm);
}
.project-card.featured .card-detail span { color: rgba(20,40,63,0.75); border-color: rgba(20,40,63,0.25); }

.card-link {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan-bright);
  transition: opacity 0.2s;
}
.card-link:hover { opacity: 0.7; }
.card-link.coming-soon { color: var(--text-muted); cursor: default; }
.project-card.featured .card-link { color: #C1442E; }

/* featured demo chips (on the printed sheet) */
.card-detail.demos { gap: 0.55rem; }
.demo-chip {
  font-family: var(--font-label);
  font-size: 12px;
  color: #B03A24;
  background: rgba(240,96,74,0.08);
  border: 1px solid rgba(240,96,74,0.45);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.demo-chip:hover { background: var(--pencil); color: #fff; }
.try-hint { color: var(--text-faint) !important; cursor: default; font-family: var(--font-label); font-size: 12px; }
.project-card.featured .try-hint { color: rgba(20,40,63,0.5) !important; }

/* =========================================================================
   Stack
   ========================================================================= */

.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.75rem 4rem; }
.stack-group-label {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.stack-tags span {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--text-soft);
  background: var(--sheet-raised);
  border: 1px solid var(--hairline);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-sm);
}

/* =========================================================================
   Engagement tiers
   ========================================================================= */

.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.engage-card {
  position: relative;
  background: var(--sheet-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.8rem;
}
.engage-card:first-child { background: var(--sheet-sunken); border-color: var(--line); border-top: 2px solid var(--pencil); }
.engage-tag {
  position: absolute;
  top: -11px; left: 1.8rem;
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--sheet-sunken);
  background: var(--pencil);
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
}
.engage-card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); margin-bottom: 0.4rem; }
.engage-price { font-family: var(--font-label); font-size: 13px; color: var(--cyan-bright); margin-bottom: 1rem; }
.engage-card p:not(.engage-price) { font-size: 0.98rem; color: var(--text-soft); line-height: 1.55; }

/* =========================================================================
   Inbox Zero page — feature list, pricing, security note
   ========================================================================= */

.feature-list { display: flex; flex-direction: column; gap: 1.1rem; max-width: 680px; }
.feature-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-ico { color: var(--live); flex-shrink: 0; margin-top: 4px; font-family: var(--font-label); font-size: 14px; }
.feature-item p { font-size: 1.05rem; color: var(--text-soft); line-height: 1.55; }
.feature-item strong { color: var(--text); font-weight: 600; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.price-card {
  background: var(--sheet-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.8rem;
  position: relative;
}
.price-card.highlight { background: var(--sheet-sunken); border-color: var(--line); border-top: 2px solid var(--pencil); }
.price-name { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.75rem; }
.price-amount { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--cyan-bright); letter-spacing: 0.01em; line-height: 1; }
.price-sub { font-size: 0.96rem; color: var(--text-soft); margin-top: 0.5rem; }
.price-tag {
  position: absolute;
  top: -11px; right: 1.5rem;
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--sheet-sunken);
  background: var(--pencil);
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
}

.sec-note {
  font-size: 1.02rem;
  color: var(--text-soft);
  background: var(--sheet-raised);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-md);
  padding: 1.4rem 1.6rem;
  max-width: 720px;
  line-height: 1.65;
}
.sec-note strong { color: var(--text); font-weight: 600; }

/* =========================================================================
   CTA
   ========================================================================= */

.cta-section { text-align: center; border-top: 1px solid var(--line); padding-top: 5.5rem; }
.cta-section h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 1.1rem; color: var(--text); }
.cta-section p { font-size: 1.08rem; color: var(--text-soft); max-width: 560px; margin: 0 auto 2.2rem; line-height: 1.6; }

/* =========================================================================
   Newsletter (parked)
   ========================================================================= */

.newsletter { max-width: 920px; margin: 0 auto; padding: 3.5rem 2.5rem; text-align: center; border-top: 1px solid var(--line); }
.newsletter h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.6rem; }
.newsletter p { font-size: 1rem; color: var(--text-soft); margin-bottom: 1.4rem; }
.nl-form { display: flex; gap: 0.6rem; max-width: 440px; margin: 0 auto; }
.nl-form input {
  flex: 1;
  background: var(--sheet-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}
.nl-form input:focus { outline: none; border-color: var(--cyan); }

/* =========================================================================
   Footer — the title block
   ========================================================================= */

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
footer span { font-family: var(--font-label); font-size: 12.5px; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { font-family: var(--font-label); font-size: 12.5px; color: var(--text-soft); transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan-bright); }

/* title-block variant (home page): a drawing set's title block */
footer.title-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  margin: 0 auto 3.5rem;
  border: 1px solid var(--line);
  max-width: calc(1120px - 5rem);
}
footer.title-block .tb-cell {
  padding: 0.9rem 1.2rem;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
footer.title-block .tb-cell:last-child { border-right: none; }
footer.title-block .tb-key {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
footer.title-block .tb-val,
footer.title-block .tb-val a {
  font-family: var(--font-label);
  font-size: 12.5px;
  color: var(--text-soft);
}
footer.title-block .tb-val a:hover { color: var(--cyan-bright); }
footer.title-block .tb-val .sep { color: var(--text-faint); padding: 0 0.4rem; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 860px) {
  nav { padding: 0.9rem 1.25rem; }
  nav:not(.nav-full) .nav-links { gap: 1rem; }
  nav.nav-full .nav-toggle { display: flex; }
  nav.nav-full .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 5.5rem 2rem 2rem;
    background: var(--sheet-sunken);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(0,0,0,0.45);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  nav.nav-full .nav-links.open { transform: translateX(0); }
  nav.nav-full .nav-links a { font-size: 15px; }
  .btn-nav { font-size: 13.5px; padding: 0.55rem 1.05rem; }
  nav.nav-full.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  nav.nav-full.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  nav.nav-full.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero { padding: 8.5rem 1.25rem 3.5rem; }
  section { padding: 3.5rem 1.25rem; }
  .proof-ledger, .gap-strip, .iz-banner { padding-left: 1.25rem; padding-right: 1.25rem; }

  .ledger-row { grid-template-columns: 1.6rem 1fr; grid-template-areas: "idx fig" "idx desc"; gap: 0.4rem 1rem; }
  .ledger-idx { grid-area: idx; }
  .ledger-fig { grid-area: fig; }
  .ledger-desc { grid-area: desc; align-self: start; }

  .service-grid, .engage-grid, .gap-grid, .price-grid, .stack-grid, .proof-bar { grid-template-columns: 1fr; gap: 1rem; }
  .stack-grid { gap: 2rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .gap-bridge { flex-direction: column; gap: 1rem; }
  .iz-inner { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  footer.title-block { grid-template-columns: 1fr 1fr; margin: 0 1.25rem 3rem; }
  footer.title-block .tb-cell:nth-child(2n) { border-right: none; }
  footer.title-block .tb-cell { border-bottom: 1px solid var(--hairline); }
  footer.title-block .tb-cell:nth-last-child(-n+2) { border-bottom: none; }
}
