/* ════════════════════════════════════════════════════════════════════════
   BEDFORD CODING — bedfordcoding.com
   Static site stylesheet. Design tokens + base + components in one file,
   flattened from the Bedford Coding design system (no imports, no build).
   Fonts are <link>ed in each page head: Bricolage Grotesque · Hanken
   Grotesk · Space Mono (Google Fonts, OFL).
   ════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* brand teal (the {/} colour) */
  --teal-50:  #E6F6F6;
  --teal-100: #C7ECEC;
  --teal-200: #97DEDE;
  --teal-300: #5CCBCB;
  --teal-400: #25B5B5;
  --teal-500: #00A0A0;
  --teal-600: #048A8A;
  --teal-700: #0A6E6E;
  --teal-800: #0E5555;
  --teal-900: #0F4242;

  /* ink — deep teal-charcoal */
  --ink-950: #0B1B1A;
  --ink-900: #102525;
  --ink-800: #173433;
  --ink-700: #224746;

  /* warm neutrals */
  --cream:    #FBF8F2;
  --sand-50:  #F6F1E8;
  --sand-100: #F0E9DC;
  --white:    #FFFFFF;
  --warm-900: #1C2928;
  --warm-800: #2B3B39;
  --warm-700: #3E4F4D;
  --warm-600: #546664;
  --warm-500: #6E807E;
  --warm-400: #93A3A1;
  --warm-300: #C2CECC;
  --warm-200: #E1E7E4;
  --warm-100: #EFF2F0;

  /* clay — warm coral accent, used sparingly */
  --clay-50:  #FBEEE9;
  --clay-500: #DB7355;
  --clay-600: #C85E40;
  --clay-700: #A24A33;

  --green-500: #2E9E6B;

  /* semantic aliases */
  --color-bg:             var(--cream);
  --color-surface:        var(--white);
  --color-surface-sunken: var(--sand-50);
  --color-bg-dark:        var(--ink-950);
  --color-text:           var(--warm-900);
  --color-text-body:      var(--warm-700);
  --color-text-muted:     var(--warm-500);
  --color-text-on-dark:        #E8F0EE;
  --color-text-on-dark-muted:  #97AEAB;
  --color-border:         var(--warm-200);
  --color-border-strong:  var(--warm-300);
  --color-border-dark:    rgba(255, 255, 255, 0.12);
  --color-primary:        var(--teal-500);
  --color-primary-hover:  var(--teal-600);
  --color-primary-press:  var(--teal-700);
  --color-primary-ink:    var(--teal-700);
  --color-primary-tint:   var(--teal-50);
  --color-accent:         var(--clay-500);
  --color-focus:          var(--teal-400);

  /* type */
  --font-display: 'Space Grotesk', 'Hanken Grotesk', system-ui, sans-serif;
  --font-sans:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extra:    700; /* Space Grotesk tops out at 700 — avoid faux-bold synthesis */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  3.75rem;
  --text-fluid-hero:    clamp(2.75rem, 1.6rem + 5.2vw, 4.75rem);
  --text-fluid-section: clamp(2rem, 1.3rem + 3vw, 3rem);
  --leading-tight:   1.05;
  --leading-snug:    1.2;
  --leading-relaxed: 1.65;
  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-label:  0.14em;

  /* spacing & layout */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;
  --space-9:  4rem;
  --space-10: 5rem;
  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4rem, 8vw, 8rem);

  /* effects */
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(16, 37, 37, 0.06);
  --shadow-sm: 0 2px 6px rgba(16, 37, 37, 0.07);
  --shadow-md: 0 8px 24px rgba(16, 37, 37, 0.08);
  --shadow-lg: 0 18px 48px rgba(16, 37, 37, 0.10);
  --shadow-xl: 0 32px 80px rgba(16, 37, 37, 0.14);
  --ring-tight: 0 0 0 3px rgba(37, 181, 181, 0.45);

  /* motion */
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --transition-colors: color var(--dur-fast) var(--ease-soft),
                       background-color var(--dur-fast) var(--ease-soft),
                       border-color var(--dur-fast) var(--ease-soft);
  --transition-lift: transform var(--dur-base) var(--ease-out),
                     box-shadow var(--dur-base) var(--ease-out);
  --lift: -2px;
  --lift-lg: -4px;
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h2 { letter-spacing: var(--tracking-snug); }
h3 { letter-spacing: var(--tracking-snug); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

a {
  color: var(--color-primary-ink);
  text-decoration: none;
  transition: var(--transition-colors);
}
a:hover { color: var(--color-primary-hover); }

strong, b { font-weight: var(--weight-semibold); color: var(--color-text); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring-tight);
  border-radius: var(--radius-xs);
}

::selection { background: var(--teal-100); color: var(--ink-900); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: var(--container-narrow); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--color-surface);
  color: var(--color-primary-ink);
  font-weight: var(--weight-semibold);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--space-4); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  transition: var(--transition-colors), var(--transition-lift);
  font-size: var(--text-base);
  padding: 12px 22px;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring-tight); }
.btn--lg { font-size: var(--text-md); padding: 15px 30px; }
.btn--sm { font-size: var(--text-sm); padding: 9px 16px; }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); background: var(--color-primary-press); }
.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-ink);
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-sm);
}
.btn--ghost { background: transparent; color: var(--color-primary-ink); padding-inline: 14px; }
.btn--ghost:hover { background: var(--color-primary-tint); color: var(--color-primary-ink); }
.btn--ondark { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }
.btn--ondark:hover { background: var(--teal-50); color: var(--ink-900); transform: translateY(var(--lift)); }
.btn .arrow { font-family: var(--font-sans); transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Eyebrow / Tag / Badge ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-primary-ink);
}
.eyebrow::before { content: "{/}"; color: var(--color-primary); }
.eyebrow--ondark { color: var(--teal-300); }
.eyebrow--ondark::before { color: var(--teal-400); }

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-xs);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--sand-100);
  color: var(--warm-700);
}
.tag--teal { background: var(--teal-50); color: var(--teal-700); }
.tag--solid { background: rgba(255, 255, 255, 0.10); color: var(--color-text-on-dark); }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 242, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: var(--space-6);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--color-primary); }
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  white-space: nowrap;
}
.brand:hover .brand__name { color: var(--color-text); }

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav a {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--color-text-body);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition-colors);
}
.nav a:hover { color: var(--color-text); background: var(--color-surface-sunken); }
.nav a[aria-current="page"] { color: var(--color-primary-ink); background: var(--color-primary-tint); }
.header-cta { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-soft);
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section--sunken { background: var(--color-surface-sunken); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-text-on-dark); }
.section-head { max-width: 680px; margin-bottom: var(--space-8); }
.section-head h1, .section-head h2 { font-size: var(--text-fluid-section); margin: 14px 0 12px; }
.section-head p { font-size: var(--text-md); color: var(--color-text-body); margin: 0; }
.section--dark .section-head p { color: var(--color-text-on-dark-muted); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(3rem, 5vw, 5.5rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.75rem); margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--color-primary-ink); }
.hero__lead { font-size: var(--text-lg); color: var(--color-text-body); margin: 0 0 28px; max-width: 30ch; }
.hero__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.hero__panel {
  background: var(--color-bg-dark);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.hero__panel-logo { width: 78%; max-width: 340px; margin: 8px auto 22px; }
.hero__codeline { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--teal-300); }
.hero__codeline .mut { color: var(--color-text-on-dark-muted); }
.hero__codeline .str { color: #E7C08A; }
.hero__codeline .ok { color: var(--green-500); }
.hero__chiprow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ── Grids & cards ──────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}

/* service card */
.service {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-lift), var(--transition-colors);
  height: 100%;
}
.service:hover {
  transform: translateY(var(--lift-lg));
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}
.service__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: var(--text-lg); margin: 6px 0 0; }
.service p { margin: 0; color: var(--color-text-body); }
.service ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.service li { display: flex; gap: 9px; font-size: var(--text-sm); color: var(--color-text-body); }
.service li::before {
  content: "{/}";
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: inherit;
}

/* project card (home page) */
.project {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-lift), var(--transition-colors);
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.project:hover {
  transform: translateY(var(--lift-lg));
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
  color: inherit;
}
.project__media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--color-border); }
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.project__domain { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; color: var(--color-primary-ink); }
.project h3 { font-size: var(--text-xl); margin: 0; }
.project__summary { margin: 0; flex: 1; color: var(--color-text-body); }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* stat */
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary-ink);
}
.stat__value .suf { font-size: 0.5em; color: var(--color-accent); }
.stat__label { font-size: var(--text-sm); color: var(--color-text-body); margin-top: 6px; }
.section--dark .stat__value { color: var(--teal-300); }
.section--dark .stat__label { color: var(--color-text-on-dark-muted); }

/* trust strip */
.trust-line {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--warm-500);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0;
}
.trust-line__mark { color: var(--color-primary); }

/* CTA band */
.ctaband {
  background: var(--color-bg-dark);
  border-radius: var(--radius-2xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-lg);
}
.ctaband h2 { color: #fff; font-size: var(--text-fluid-section); margin: 14px 0; }
.ctaband p { color: var(--color-text-on-dark-muted); font-size: var(--text-md); max-width: 46ch; margin: 0 auto 28px; }

/* ── Work page ──────────────────────────────────────────────────────── */
.workrow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.workrow__media { order: 1; }
.workrow__copy { order: 2; }
.workrow--flip .workrow__media { order: 2; }
.workrow--flip .workrow__copy { order: 1; }
.workrow__domain { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; color: var(--color-primary-ink); }
.workrow h2, .workrow h3 { font-size: var(--text-2xl); margin: 8px 0 14px; }
.workrow__lead {
  font-size: var(--text-md);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  margin: 0 0 18px;
}
.workrow ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.workrow li { display: flex; gap: 10px; font-size: var(--text-base); color: var(--color-text-body); }
.workrow li::before {
  content: "{/}";
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--color-primary);
  line-height: inherit;
  flex-shrink: 0;
}
.workrow .project__tags { margin-top: 20px; }

/* faux browser frame for screenshots */
.browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--warm-100);
  border-bottom: 1px solid var(--color-border);
}
.browser__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm-300);
}
.browser__bar i:first-child { background: var(--clay-500); opacity: 0.55; }
.browser__url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warm-500);
  margin-left: 10px;
  letter-spacing: 0.02em;
}
.browser img { width: 100%; }

/* feature spotlight (postcode checker, ConnectAI) */
.spotlight {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.spotlight--flip { grid-template-columns: 1.1fr 0.9fr; }
.spotlight__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--clay-700);
  margin-bottom: 12px;
}
.spotlight__label svg { width: 16px; height: 16px; color: var(--clay-500); }
.spotlight h3, .spotlight h4 { font-size: var(--text-xl); margin: 0 0 10px; }
.spotlight p { margin: 0; color: var(--color-text-body); }

/* ── About page ─────────────────────────────────────────────────────── */
.lead-block { max-width: var(--container-narrow); }
.lead-block p { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--color-text-body); }

.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.founder__photo {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
}
.founder__photo img { width: 100%; }
.founder__role { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-primary-ink); margin: 0 0 18px; }
.founder h2 { font-size: var(--text-2xl); margin: 10px 0 6px; }
.founder__bio { font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--color-text-body); }

/* steps (how we work) */
.step__num {
  font-family: var(--font-display);
  font-weight: var(--weight-extra);
  font-size: 2rem;
  letter-spacing: var(--tracking-tight);
  color: var(--warm-300);
  line-height: 1;
}
.step h3 { margin: 10px 0 8px; font-size: var(--text-lg); }
.step p { margin: 0; }

.stack-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-right: 6px;
}
.stack-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: var(--space-7); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark-muted);
  padding-block: var(--space-9) var(--space-7);
  margin-top: auto;
}
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-7); }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  margin: 0 0 16px;
}
.site-footer a { display: block; color: var(--color-text-on-dark-muted); padding: 4px 0; }
.site-footer a:hover { color: var(--teal-300); }
.site-footer .blurb { max-width: 34ch; line-height: 1.6; margin: 16px 0 0; }
.site-footer .addr { font-style: normal; font-size: var(--text-sm); line-height: 1.6; margin: 10px 0 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border-dark);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  font-size: var(--text-sm);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .mono { font-family: var(--font-mono); }

/* ── 404 ────────────────────────────────────────────────────────────── */
.notfound { text-align: center; padding-block: clamp(5rem, 12vw, 10rem); }
.notfound .mark { font-family: var(--font-mono); font-weight: 700; font-size: clamp(3rem, 8vw, 5rem); color: var(--color-primary); }
.notfound h1 { font-size: var(--text-fluid-section); margin: 18px 0 10px; }
.notfound p { color: var(--color-text-body); margin-bottom: 28px; }

/* ── Reveal-on-scroll (progressive enhancement) ─────────────────────── */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .project { transition: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .workrow { grid-template-columns: 1fr; }
  .workrow--flip .workrow__media { order: 1; }
  .workrow--flip .workrow__copy { order: 2; }
  .spotlight, .spotlight--flip { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 100%; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--cream);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--gutter) var(--space-5);
    display: none;
  }
  .nav a { padding: 12px 16px; font-size: var(--text-md); }
  .site-header.nav-open .nav { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 520px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
