/* ==========================================================================
   Expedient AI - global stylesheet
   Anti-slop guardrails: zero em-dashes, single accent, no AI-purple,
   no div-fake-screenshots, single font family (sans) + mono accent.
   ========================================================================== */

/* FONTS */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800&f[]=jetbrains-mono@400,500&display=swap');

/* DESIGN TOKENS */
:root {
  --ink: #0A0A0A;
  --ink-2: #2A2A2A;
  --ink-3: #5A5A57;
  --mid: #6B6B68;
  --paper: #F4F4F1;
  --paper-2: #ECECE8;
  --paper-3: #E0E0DC;
  --rule: #D8D8D4;
  --accent: #FF5A1F;
  --accent-2: #D14610;
  --accent-soft: rgba(255, 90, 31, 0.08);
  --live: #2D8F4E;
  --live-soft: rgba(45, 143, 78, 0.10);
  --planned: #8B5CF6;
  --planned-soft: rgba(139, 92, 246, 0.10);

  --font-display: 'Cabinet Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Cabinet Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Monaco', monospace;

  --max-w: 1280px;
  --max-w-narrow: 760px;
  --max-w-prose: 65ch;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-pill: 999px;
}

[data-theme="dark"] {
  --ink: #F4F4F1;
  --ink-2: #D4D4D0;
  --ink-3: #A8A8A4;
  --mid: #8A8A86;
  --paper: #0F0F0F;
  --paper-2: #181818;
  --paper-3: #232323;
  --rule: #2A2A2A;
  --accent: #FF6B2C;
  --accent-2: #FF5A1F;
  --accent-soft: rgba(255, 107, 44, 0.10);
  --live: #3FA862;
  --live-soft: rgba(63, 168, 98, 0.12);
  --planned: #A78BFA;
  --planned-soft: rgba(167, 139, 250, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F4F4F1;
    --ink-2: #D4D4D0;
    --ink-3: #A8A8A4;
    --mid: #8A8A86;
    --paper: #0F0F0F;
    --paper-2: #181818;
    --paper-3: #232323;
    --rule: #2A2A2A;
    --accent: #FF6B2C;
    --accent-2: #FF5A1F;
    --accent-soft: rgba(255, 107, 44, 0.10);
    --live: #3FA862;
    --live-soft: rgba(63, 168, 98, 0.12);
    --planned: #A78BFA;
    --planned-soft: rgba(167, 139, 250, 0.12);
  }
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on, 'ss02' on, 'cv11' on;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* SELECTION */
::selection { background: var(--accent); color: white; }

/* TYPE */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
  font-weight: 800;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 800;
}
h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 700;
}
h4 {
  font-size: clamp(1.125rem, 1.4vw, 1.375rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-weight: 700;
}
p {
  max-width: var(--max-w-prose);
  color: var(--ink-2);
}
p + p { margin-top: 1rem; }
em, i { font-style: italic; }
strong, b { font-weight: 700; color: var(--ink); }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
  font-weight: 400;
}
.lead-secondary {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  font-weight: 400;
  margin-top: 1.25rem;
  opacity: 0.85;
}
.small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid);
  display: inline-block;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
}

.italic-display {
  font-style: italic;
  font-weight: 800;
  line-height: 1.1;
  padding-bottom: 0.1em;
}

/* LAYOUT */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section-sm { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { margin-bottom: 3.5rem; max-width: 60rem; }
.section-head h2 { max-width: 20ch; margin-top: 1rem; }

/* GRIDS */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* SPLIT SECTIONS (no split-header ban: this is full content, not just explainer) */
.split-section { display: grid; gap: 2.5rem; align-items: start; }
.split-section-flipped { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .split-section { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .split-section-flipped { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
}

/* CASE STUDY CARD (single horizontal card with media + body) */
.case-study-card {
  display: grid;
  gap: 2rem;
  align-items: start;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
@media (min-width: 900px) {
  .case-study-card { grid-template-columns: 1.2fr 1fr; gap: 0; }
}
.case-study-media {
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.case-study-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.case-study-body {
  padding: 2rem 2rem 2.25rem;
}
@media (min-width: 900px) {
  .case-study-body { padding: 2.5rem 2.5rem 2.75rem; }
}
.case-study-body h3 { margin: 0.6rem 0 1rem; font-size: 1.5rem; }
.case-study-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.case-study-list li {
  font-size: 0.92rem;
  color: var(--ink-2);
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  line-height: 1.5;
}
.case-study-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.case-study-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.case-study-tier {
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-logo .dot { color: var(--accent); }
.nav-links { display: none; gap: 1.6rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; gap: 0.75rem; align-items: center; }
.nav-cta { display: none; }
@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}
.nav-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background 0.18s;
}
.nav-mobile-btn:hover { background: var(--paper-2); }
@media (min-width: 980px) { .nav-mobile-btn { display: none; } }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  z-index: 49;
  padding: 2.5rem var(--pad-x) 2rem;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  padding: 0.25rem 0;
}
.nav-mobile-menu a.active { color: var(--accent); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  transition: color 0.18s, background 0.18s;
}
.theme-toggle:hover { color: var(--ink); background: var(--paper-2); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: var(--ink); color: var(--paper); }
.btn-secondary:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-arrow::after { content: '\2192'; transition: transform 0.18s ease; display: inline-block; margin-left: 0.1rem; }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 1.85rem; font-size: 1.05rem; }

/* HERO */
.hero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* CONSTELLATION BACKGROUND -- removed 2026-07-12.
   Code kept as reference in case Ted wants to revisit. See:
   https://github.com/expedient-ai/hermes-shared/tree/main/websites/expedient-ai/HERO-BG-NOTES.md */

.hero h1 { margin-top: 1.25rem; max-width: 22ch; }
.hero .lead { margin-top: 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 1.75rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* PAGES HERO (smaller than home) */
.page-hero {
 padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
 border-bottom: 1px solid var(--rule);
}
.page-hero h1 { max-width: 16ch; margin-top: 1.25rem; }
.page-hero .lead { margin-top: 1.5rem; max-width: 56ch; }
.page-hero-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 0.75rem;
 margin-top: 2rem;
}
.page-hero-actions .btn { flex: 0 0 auto; }

/* ASYMMETRIC TILES (for "What we do") */
.asym-tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .asym-tiles {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .asym-tile-tall { grid-row: span 2; }
}
@media (min-width: 800px) {
  .standalone-featured { grid-template-columns: repeat(2, 1fr); }
}
.standalone-featured .asym-tile-tall { grid-row: auto; }
.standalone-also-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin: 2.5rem 0 0.75rem;
}
.standalone-also {
  display: grid;
  gap: 0.75rem;
  max-width: 60rem;
  margin: 0 auto;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--rule);
}
@media (min-width: 700px) {
  .standalone-also { grid-template-columns: repeat(2, 1fr); }
}
.standalone-also-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.standalone-also-item:hover {
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.standalone-also-name {
  font-size: 1.1rem;
  font-weight: 600;
}
.standalone-also-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
}
.standalone-also-tag {
  font-size: 0.85rem;
  color: var(--ink-2);
}
.asym-tile {
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.asym-tile:hover { border-color: var(--ink-3); }
.asym-tile h3 { font-size: 1.5rem; }
.asym-tile p { color: var(--ink-2); font-size: 0.95rem; }
.asym-tile-example {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  padding: 0.55rem 0.8rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  margin-top: auto;
  line-height: 1.4;
}

/* PROJECT SCREENSHOTS (used inside work cards) */
.project-screenshot {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.project-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-screenshot-alt { background: var(--ink); }
.project-mark {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.project-mark::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.project-mark-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  z-index: 1;
}
.project-mark-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.project-mark-alt {
  background: var(--ink);
  color: var(--paper);
}
.project-mark-alt .project-mark-name,
.project-mark-alt .project-mark-tag { color: var(--paper); }
.project-mark-alt .project-mark-tag { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.project-mark-alt::before {
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 70%);
}

/* BADGES (status pills, semantic state allowed) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mid);
  display: inline-block;
  flex-shrink: 0;
}
.badge-live { color: var(--live); border-color: color-mix(in srgb, var(--live) 30%, transparent); background: var(--live-soft); }
.badge-live .badge-dot { background: var(--live); }
.badge-active { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-soft); }
.badge-active .badge-dot { background: var(--accent); }
.badge-parked { color: var(--ink-3); }
.badge-parked .badge-dot { background: var(--ink-3); }
.badge-planned { color: var(--planned); border-color: color-mix(in srgb, var(--planned) 30%, transparent); background: var(--planned-soft); }
.badge-planned .badge-dot { background: var(--planned); }

/* WORK CARDS */
.work-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: var(--ink);
}
a.work-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.work-card-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.work-card h3 { font-size: 1.25rem; }
.work-card-desc { color: var(--ink-2); font-size: 0.92rem; line-height: 1.55; }
.work-card-proof {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.work-card-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.25rem; }
.work-card-stack span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  padding: 0.18rem 0.55rem;
  background: var(--paper-2);
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
}
.work-card-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}
.work-card-link::after { content: '\2192'; transition: transform 0.18s ease; display: inline-block; }
.work-card:hover .work-card-link::after { transform: translateX(3px); }

/* STACK DIAGRAM */
.stack-diagram { display: grid; gap: 1rem; }
@media (min-width: 800px) { .stack-diagram { grid-template-columns: repeat(3, 1fr); } }
.stack-tile {
  padding: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.stack-tile-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
  margin-bottom: 0.25rem;
}
.stack-tile h3 { font-size: 1.25rem; }
.stack-tile p { color: var(--ink-2); font-size: 0.95rem; }
.stack-tile-models { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; }
.stack-tile-models span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  padding: 0.22rem 0.55rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

/* PROCESS STEPS (4-step grid) */
.process { display: grid; gap: 2rem; }
@media (min-width: 800px) { .process { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.process-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
  margin-bottom: 0.75rem;
}
.process-step h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.process-step p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

/* SERVICE BLOCKS */
.service-block { padding: 3rem 0; border-top: 1px solid var(--rule); }
.service-block:first-of-type { border-top: none; padding-top: 0; }
.service-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .service-grid { grid-template-columns: 1fr 1.5fr; gap: 4rem; } }
.service-meta { display: flex; flex-direction: column; gap: 1rem; }
.service-meta h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.service-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.5rem;
}
.service-body h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}
.service-body h4:first-child { margin-top: 0; }
.service-body p { color: var(--ink-2); }
.service-body ul { margin-top: 0.75rem; }
.service-body li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.service-body li::before {
  content: '\00B7';
  position: absolute;
  left: 0.4rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  top: -0.05rem;
}

/* WONT-DO */
.wont-do {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--paper-2);
  border-radius: var(--radius);
  margin-top: 4rem;
  border: 1px solid var(--rule);
}
.wont-do h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); margin-bottom: 1.5rem; }
.wont-do ul {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .wont-do ul { grid-template-columns: 1fr 1fr; } }
.wont-do li {
  padding-left: 1.75rem;
  position: relative;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.wont-do li::before {
  content: '\00D7';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* FORMS */
.form { display: grid; gap: 1.25rem; max-width: 36rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
}
.form-field input, .form-field textarea {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field .helper { font-size: 0.82rem; color: var(--mid); }

/* LEGEND */
.legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
}
.legend-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mid); display: inline-block; }
.legend-dot.live { background: var(--live); }
.legend-dot.active { background: var(--accent); }
.legend-dot.parked { background: var(--ink-3); }
.legend-dot.planned { background: var(--planned); }

/* CTA STRIP */
.cta-strip {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.cta-strip h2 { color: var(--paper); max-width: 22ch; }
.cta-strip p { color: color-mix(in srgb, var(--paper) 75%, transparent); margin-top: 1rem; }
.cta-strip .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 25%, transparent); }
.cta-strip .btn-ghost:hover { border-color: var(--paper); background: transparent; }
.cta-strip-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .cta-strip-inner { grid-template-columns: 1.5fr auto; gap: 3rem; } }

.cta-bullets {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.cta-bullets li {
  position: relative;
  padding-left: 1.5rem;
  color: color-mix(in srgb, var(--paper) 85%, transparent);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cta-bullets li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* FOOTER */
.footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 1.25rem 0 0.75rem; margin-top: 0; }
.footer-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 1.75rem; }
  .footer { padding: 2.5rem 0 1.25rem; }
  .footer-col h4 { margin-bottom: 0.75rem; }
  .footer-bottom { padding-top: 1.25rem; }
}
.footer-brand .nav-logo { margin-bottom: 0.35rem; display: inline-block; font-size: 1rem; }
.footer-brand p { color: var(--mid); max-width: 70ch; font-size: 0.78rem; line-height: 1.35; margin: 0; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
  margin-bottom: 0.3rem;
}
.footer-col ul { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem 0.9rem; padding: 0; margin: 0; list-style: none; }
.footer-col li { font-size: 0.82rem; color: var(--ink-2); }
.footer-col a { color: var(--ink-2); transition: color 0.18s; }
.footer-col a:hover { color: var(--accent); }
@media (min-width: 800px) {
  .footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ANCHOR HEADING (for /work#vereby) */
.anchor-target { scroll-margin-top: 100px; }

/* DUAL CONTACT GRID */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }
.contact-aside p { color: var(--ink-2); }
.contact-info {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info-row { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
}
.contact-info-value { font-size: 1rem; color: var(--ink); }
.contact-info-value a:hover { color: var(--accent); }

/* UTILITIES */
.text-mute { color: var(--mid); }
.text-accent { color: var(--accent); }
.text-strong { color: var(--ink); font-weight: 600; }
.divider { height: 1px; background: var(--rule); margin: 0; }
.bg-paper-2 { background: var(--paper-2); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Feed section (news / tips / tool notes)
   ========================================================================== */

.feed-hero {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.feed-hero h1 { max-width: 20ch; margin-top: 1.25rem; }
.feed-hero .lead { margin-top: 1.5rem; max-width: 56ch; }

.feed-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.feed-filter a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.feed-filter a:hover { border-color: var(--ink-3); color: var(--ink); }
.feed-filter a.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.feed-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 760px) {
  .feed-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
}

.feed-card {
  display: grid;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: var(--ink);
}
a.feed-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }

.feed-card-media {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  overflow: hidden;
}
.feed-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.85rem;
}
.feed-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.feed-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.feed-card-teaser {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.feed-card-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-top: auto;
}

/* FEED ARTICLE LAYOUT */
.feed-article {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.feed-article-hero {
  margin-bottom: 2.5rem;
  max-width: 760px;
}
.feed-article-hero h1 {
  max-width: 22ch;
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}
.feed-article-hero .lead {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
}
.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
}
.feed-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.feed-meta .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.feed-article-media {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  overflow: hidden;
  margin: 2.5rem 0;
}
.feed-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-prose {
  max-width: 760px;
}
.feed-prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}
.feed-prose h3 {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}
.feed-prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-top: 1rem;
  max-width: 64ch;
}
.feed-prose p:first-child { margin-top: 0; }
.feed-prose ul, .feed-prose ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
}
.feed-prose li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}
.feed-prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ink);
}
.feed-prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  background: var(--paper-2);
  border-radius: 4px;
}
.feed-prose pre {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow-x: auto;
}
.feed-prose pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}
.feed-prose hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--rule);
}
.feed-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.feed-prose a:hover { color: var(--accent-2); }

/* FAQ block (for long-tail / featured-snippet SEO) */
.feed-faq {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.feed-faq h2 { margin-top: 0; }
.feed-faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.feed-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.feed-faq-item:first-child { padding-top: 0.5rem; }
.feed-faq-q {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.feed-faq-a {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feed-related {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.feed-related h2 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--ink-2); }

/* ==========================================================================
   Case study pages
   ========================================================================== */

.cs-hero {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.cs-hero h1 { max-width: 18ch; margin-top: 1.25rem; }
.cs-hero .lead { margin-top: 1.5rem; max-width: 56ch; }
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
}
.cs-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.cs-meta .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.cs-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.cs-section + .cs-section { padding-top: 0; }
.cs-section .eyebrow + h2 { margin-top: 0.75rem; }
.cs-section h2 { max-width: 22ch; }
.cs-section h3 { margin-top: 1.25rem; }

.cs-prose p { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.cs-prose p + p { margin-top: 1rem; }
.cs-prose strong { color: var(--ink); }

.cs-image-full {
  margin: 0;
  padding: 0;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.cs-image-full:last-of-type { margin-bottom: 0; }
.cs-image-full img {
  display: block;
  width: 100%;
  height: auto;
}
.cs-figure {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.cs-figure:first-of-type { margin-top: 0; }
.cs-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.cs-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-top: 0.5rem;
  max-width: 60ch;
}

.cs-stack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}
.cs-stack-table th,
.cs-stack-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cs-stack-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
  font-weight: 500;
  width: 30%;
  background: var(--paper-2);
}
.cs-stack-table td { color: var(--ink-2); }
.cs-stack-table tr:last-child th,
.cs-stack-table tr:last-child td { border-bottom: none; }

.cs-features {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.cs-feature {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .cs-feature { grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
}
.cs-feature-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
  padding-top: 0.2rem;
}
.cs-feature h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.cs-feature p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }

.cs-pullquote {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 30ch;
  padding: 2rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-style: italic;
}

.cs-next {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}
.cs-next-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .cs-next-inner { grid-template-columns: 1fr auto; gap: 3rem; }
}
.cs-next h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); max-width: 28ch; }
.cs-next p { color: var(--ink-2); margin-top: 0.5rem; max-width: 50ch; }

@media (max-width: 700px) {
  .cs-stack-table th, .cs-stack-table td { padding: 0.7rem 0.5rem; }
  .cs-stack-table th { width: 35%; }
}

/* CAPACITY BANNER (contact page) */
.capacity-banner {
  display: block;
  background: var(--accent);
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.15;
  text-align: center;
  letter-spacing: -0.01em;
  padding: 1.5rem 1.6rem;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  text-transform: none;
  transform: rotate(-1deg);
}
.capacity-banner small {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  margin-top: 0.5rem;
  opacity: 0.95;
  letter-spacing: 0;
}
.contact-form-wrap {
  position: relative;
}
.contact-form-wrap .form {
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.contact-form-wrap .form input,
.contact-form-wrap .form textarea,
.contact-form-wrap .form button {
  cursor: text;
}
@media (max-width: 700px) {
  .capacity-banner {
    transform: rotate(-0.5deg);
    padding: 1.2rem 1.2rem;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* MOBILE TWEAKS */
@media (max-width: 700px) {
  .hero-meta { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .work-card { padding: 1.25rem; }
  .work-card-head { flex-direction: column; align-items: flex-start; }
  .cta-strip-inner { gap: 1.5rem; }
  .cta-strip-inner .btn { width: 100%; }
  .process { gap: 1.5rem; }
  .stack-diagram { gap: 1rem; }
  .service-meta { gap: 0.75rem; }
}

/* PRICING TIER CARDS (three-up, equal height, dedicated component) */
.tier-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) {
  .tier-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.tier-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  transition: border-color 0.18s ease;
}
.tier-card:hover { border-color: var(--ink-3); }
.tier-card.tier-card-featured {
  border-color: var(--accent);
  border-width: 2px;
  padding: calc(2rem - 1px) calc(1.75rem - 1px) calc(1.75rem - 1px);
}
.tier-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid);
  margin-bottom: 1.25rem;
}
.tier-card-featured .tier-card-eyebrow { color: var(--accent); }
.tier-card-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.tier-card-price-setup {
  font-weight: 700;
  color: var(--ink);
}
.tier-card-price-mo {
  color: var(--ink);
}
.tier-card-price-unit {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-3);
}
.tier-card-tagline {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}
.tier-card-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 0 1.25rem;
}
.tier-card-summary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin: 0 0 1rem;
}
.tier-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1 1 auto;
}
.tier-card-list li {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-2);
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--paper-2);
}
.tier-card-list li:last-child { border-bottom: none; }
.tier-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.tier-card-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* BILLING TOGGLE (monthly / annual switch above tier cards) */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  margin: 2rem auto 0;
}
.billing-toggle-btn {
  appearance: none;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.billing-toggle-btn:hover { color: var(--ink); }
.billing-toggle-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}
.billing-toggle-save {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: white;
  text-transform: uppercase;
}
.billing-toggle-btn.is-active .billing-toggle-save {
  background: var(--paper);
  color: var(--accent);
}

/* Bristol band — a small horizontal strip between hero and three pillars.
   Visually quieter than a section, with a single inline CTA. */
.bristol-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.5rem 0;
}
.bristol-band-tag {
  flex: 0 0 auto;
  padding: 0.3rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bristol-band-body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-align: left;
}
.bristol-band-link {
  color: var(--accent);
  text-decoration: underline;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .bristol-band { gap: 0.75rem; }
}

/* ===== Scroll motion (added 2026-07-20) ===== */

/* Honour user preference — never animate for these readers. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-mask, .work-card, .asym-tile, .process-step, .scrolly-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-scrollytell-step] { opacity: 1 !important; }
  [data-scrollytell-step] .scrollytell-cover { transform: none !important; }
}

/* Section reveal (plain fade-up) — applied to all non-card sections by default. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mask reveal — applied to the live-projects cards on the home page. */
.reveal-mask {
  position: relative;
  overflow: hidden;
}
.reveal-mask .mask-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-mask .mask-target.is-revealed {
  opacity: 1;
  transform: none;
}
.reveal-mask .mask-cover {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 800ms cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
  pointer-events: none;
}
.reveal-mask .mask-cover.is-revealed {
  transform: scaleX(0);
}
.reveal-mask .mask-cover.is-revealed-far {
  transform: scaleX(0);
}
.reveal-mask > .mask-target {
  position: relative;
  z-index: 0;
}

/* Approach page — scrollytelling sticky-step layout. Replaces the
   default grid on .process when .scrollytell is set on the parent. */
.process.scrollytell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.process.scrollytell > .process-step {
  border-top: 2px solid var(--rule);
  padding-top: 1rem;
  opacity: 0.25;
  transition: opacity 400ms ease;
}
.process.scrollytell > .process-step.is-active {
  opacity: 1;
  border-top-color: var(--ink);
}
@media (min-width: 900px) {
  .process.scrollytell {
    grid-template-columns: 0.4fr 1fr;
    gap: 2.5rem 4rem;
  }
  .process.scrollytell > .process-step {
    grid-column: 2;
    border-top: none;
    padding-top: 0;
  }
  .scrollytell-pin {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 6rem;
  }
  .scrollytell-pin {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    color: var(--mid);
  }
}

/* ===== v6 motion system ===== */

/* === Easing tokens === */
:root {
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Lottie hero container === */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-lottie {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-lottie-canvas {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  max-width: 720px;
  aspect-ratio: 2 / 1;
  opacity: 0.55;
}
@media (max-width: 800px) {
  .hero-lottie-canvas {
    position: relative;
    width: 100%;
    max-width: 100%;
    right: 0;
    top: 0;
    transform: none;
    margin: 1.5rem auto 0;
    aspect-ratio: 16 / 9;
  }
  .hero {
    padding-bottom: 1.5rem;
  }
}
.hero > .container {
  position: relative;
  z-index: 1;
}

/* === Three pillars stagger === */
.section-pillars .asym-tile {
  will-change: transform, opacity;
}

/* === Live projects — SVG mask reveal === */
.work-card {
  position: relative;
  overflow: hidden;
}
.card-mask-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.card-mask-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.card-mask-fill {
  fill: var(--ink);
}

/* === Standalone services rail === */
.standalone-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .standalone-featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
.standalone-featured > article {
  will-change: transform, opacity;
}

/* === Section header letter micro-reveal === */
.section-head h2 .letter {
  display: inline-block;
  will-change: transform, opacity;
}

/* === Approach scrollytelling === */
.process.scrollytell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.process-step {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--rule);
  opacity: 0.35;
  transition: opacity 400ms ease, border-top-color 400ms ease;
  position: relative;
  padding-left: 1.25rem;
}
.process-step:first-of-type {
  border-top: none;
  padding-top: 0.5rem;
}
.process-step.is-active {
  opacity: 1;
  border-top-color: var(--ink);
}
.process-step.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2rem;
  width: 4px;
  height: calc(100% - 3rem);
  background: var(--accent);
  transition: opacity 400ms ease;
}
.process-step:first-of-type.is-active::before {
  top: 0.5rem;
  height: calc(100% - 1.5rem);
}
.process-step h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.process-step p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0.3rem 0;
}
.process-step p em {
  color: var(--mid);
  font-size: 0.85rem;
  font-style: normal;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.scrollytell-pin {
  position: sticky;
  top: 6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  align-self: start;
  grid-row: 1;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  z-index: 2;
}
@media (min-width: 900px) {
  .process.scrollytell {
    grid-template-columns: 200px 1fr;
    gap: 3rem;
  }
  .scrollytell-pin {
    grid-column: 1;
    margin-bottom: 0;
  }
  .process-step {
    grid-column: 2;
    border-top: none;
    padding: 0 0 0.5rem 0;
    margin-bottom: 1.5rem;
  }
  .process-step:first-of-type {
    border-top: none;
    padding-top: 0;
  }
  .process-step.is-active::before {
    top: 0.5rem;
    height: calc(100% - 0.5rem);
  }
}

/* === Reduced motion override (v6) === */
@media (prefers-reduced-motion: reduce) {
  .hero-lottie,
  .hero-lottie-canvas,
  .card-mask-wrap,
  .card-mask-fill {
    display: none !important;
  }
  .work-card {
    overflow: visible !important;
  }
  .section-head h2 .letter {
    display: inline !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .asym-tile,
  .standalone-featured > article {
    transform: none !important;
    opacity: 1 !important;
  }
  .process-step {
    opacity: 1 !important;
  }
  .scrollytell-pin {
    position: relative !important;
  }
}

/* v6 hero CSS animation - replaces the failing Lottie with a hand-built SVG animation.
   The animation matches the spec: 5 horizontal "workflow" lines flowing from left
   to right and 5 small "node" circles that pulse into view at the right edge.
   All SVG primitives, no external dep, no JS animation runtime. */

.hero-lottie {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-lottie-canvas {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  max-width: 720px;
  aspect-ratio: 2 / 1;
  opacity: 0.45;
}
@media (max-width: 800px) {
  .hero-lottie-canvas {
    position: relative;
    width: 100%;
    max-width: 100%;
    right: 0;
    top: 0;
    transform: none;
    margin: 1.5rem auto 0;
    aspect-ratio: 16 / 9;
  }
}

/* The 5 horizontal lines use a single SVG path with stroke-dasharray + dashoffset
   animation for the "drawing" effect. */
.hero-line {
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 2.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  opacity: 0;
}
.hero-line-1 { animation-delay: 0.0s; }
.hero-line-2 { animation-delay: 0.1s; }
.hero-line-3 { animation-delay: 0.2s; }
.hero-line-4 { animation-delay: 0.3s; }
.hero-line.accent {
  stroke: var(--accent);
  stroke-width: 2;
}

@keyframes draw-line {
  0% {
    stroke-dashoffset: 600;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Node circles pulse in at the right edge of each line. */
.hero-node {
  fill: var(--ink);
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
  animation: pop-node 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-node.accent {
  fill: var(--accent);
}
.hero-node-1 { animation-delay: 1.0s; }
.hero-node-2 { animation-delay: 1.1s; }
.hero-node-3 { animation-delay: 1.2s; }
.hero-node-4 { animation-delay: 1.3s; }
.hero-node-5 { animation-delay: 1.4s; }

@keyframes pop-node {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
