/* ==========================================================================
   Landmark Digital Co. — hand-coded static build (v9)
   Consolidated from the Astro component styles. One palette (high-desert),
   Bricolage Grotesque headings over Archivo body. No build step.
   ========================================================================== */

/* ---------- palette + tokens ---------- */
:root {
  --bg: #f2e9db;
  --surface: #faf5ea;
  --surface-2: #fffbf2;
  --text: #26190d;
  --muted: #6b573f;
  --line: rgba(38, 25, 13, 0.18);
  --accent: #a63d16;
  --on-accent: #fff6ee;
  --accent-soft: rgba(166, 61, 22, 0.1);
  --ink: #241708;
  --on-ink: #f7f1e6;
  color-scheme: light;

  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --head-weight: 750;
  --head-tracking: -0.02em;

  --radius: 2px;
  --radius-lg: 4px;
  --radius-pill: 4px;
}

/* ---------- reset-ish base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.08;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout primitives ---------- */
.container { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--roomy { padding-block: clamp(6rem, 13vw, 10rem); }
.section--surface { background: var(--surface); }

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
  --text: var(--on-ink);
  /* Brighter muted so subtext reads clearly against the dark band. */
  --muted: color-mix(in srgb, var(--on-ink) 76%, var(--ink));
  --line: color-mix(in srgb, var(--on-ink) 22%, transparent);
  /* The brand brick red is too dark to read on ink — use a lighter warm
     accent here, with dark text on accent chips/buttons so those stay sharp. */
  --accent: #ec8a54;
  --on-accent: #2a1608;
  --accent-soft: rgba(236, 138, 84, 0.18);
  --bg: color-mix(in srgb, var(--ink) 82%, var(--on-ink));
  --surface: color-mix(in srgb, var(--ink) 74%, var(--on-ink));
  --surface-2: color-mix(in srgb, var(--ink) 66%, var(--on-ink));
}

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(15rem, 21rem) 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .split__aside { position: sticky; top: 5.5rem; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: '';
  width: 0.85rem; height: 0.85rem; flex: none;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 2.5px var(--bg);
  background: var(--accent);
}

.section-head h2 { font-size: clamp(2rem, 5.5vw, 3.25rem); max-width: 20ch; }
.section-note { color: var(--muted); max-width: 55ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  font-weight: 640; font-size: 1rem; text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { box-shadow: 0 6px 24px -6px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------- badges & tags ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
}
.badge-sample {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent);
  border-radius: var(--radius);
  padding: 0.25rem 0.55rem;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- image placeholder (editor swap slots) ---------- */
.img-ph {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, var(--accent-soft) 14px 15px),
    var(--surface);
  color: var(--accent);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-head); font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking); font-size: 1.05rem; white-space: nowrap;
}
.wordmark .mark { flex: none; }
.nav-list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: 0.6rem 0.8rem; text-decoration: none;
  color: var(--muted); font-size: 0.95rem; border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--text); background: var(--accent-soft); }
.header-cta { min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: 0.92rem; }

.nav-link[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.nav-cta { display: none; }

/* Mobile menu button — hidden on desktop, where the full nav is inline. */
.nav-toggle {
  display: none; flex: none; width: 2.75rem; height: 2.75rem;
  margin-left: auto; padding: 0; background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle__bar {
  width: 17px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.site-header.open .nav-toggle__bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.open .nav-toggle__bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .site-header { position: sticky; }
  .site-header .bar { position: relative; flex-wrap: wrap; gap: 0.6rem; }
  .nav-toggle { display: inline-flex; order: 2; }
  .header-cta { display: none; }
  .wordmark { min-width: 0; }
  .wordmark .name { font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; }

  /* The panel is in normal flow (order 4) so it pushes nothing off-screen and
     the sticky header grows with it. */
  .site-header nav { order: 4; flex-basis: 100%; display: none; }
  .site-header.open nav { display: block; }
  .site-header nav .nav-list {
    flex-direction: column; gap: 0; padding: 0.25rem 0 0.9rem;
    border-top: 1px solid var(--line);
  }
  .site-header nav .nav-link {
    display: block; padding: 0.85rem 0.25rem; font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
  }
  .site-header nav .nav-link:last-child { border-bottom: 0; }
  .nav-cta { display: inline-flex; margin: 0.9rem 0.25rem 0; }
}
@media (min-width: 761px) { .site-header nav { display: block !important; } }


/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  --mx: 0; --my: 0;
  position: relative;
  padding-block: clamp(2.25rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem);
  overflow: clip;
}
.hero .contours {
  position: absolute; right: -8%; top: 0; height: 110%; width: auto;
  color: var(--accent); opacity: 0.16; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .contours {
    transform: translate(calc(var(--mx) * 26px), calc(var(--my) * 20px));
    transition: transform 0.25s ease;
  }
}
.hero .container { position: relative; }
.hero .mono-line {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem;
}
.hero .mono-line span { color: var(--accent); margin-right: 0.35rem; }
.hero h1 {
  font-size: clamp(2.6rem, 8.5vw, 5.4rem); max-width: 15ch; margin-bottom: 0.45em;
}
.hero .subhead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted);
  max-width: 46ch; margin-bottom: 2rem;
}
.hero .ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.75rem; }
.hero .kicker-line {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker { border-block: 1px solid var(--line); background: var(--surface); overflow: clip; padding-block: 0.85rem; }
.ticker .track { display: flex; width: max-content; animation: slide 48s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .run { display: flex; flex: none; }
.ticker .item {
  display: inline-flex; align-items: center; gap: 0.55rem; padding-inline: 1.4rem;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticker .glyph { color: var(--accent); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 0.5rem; }
  .ticker .run:last-child { display: none; }
}

/* ==========================================================================
   CASE / STATS
   ========================================================================== */
#case .section-note { margin-top: 1rem; font-size: 1.1rem; }
.stats { margin: clamp(2.5rem, 6vw, 4rem) 0 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 1.75rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.stat__value {
  font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking);
  font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; color: var(--accent); margin-bottom: 0.7rem;
}
.stat__label { margin: 0; color: var(--text); font-size: 1.05rem; max-width: 24ch; }
.stat__source {
  display: block; margin-top: 1rem; font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.closing {
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0; max-width: 34ch;
  font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking);
  line-height: 1.2; font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--text); text-wrap: balance;
}

/* ==========================================================================
   WORK — simplified vertical list of case studies
   ========================================================================== */
.work-list {
  list-style: none; margin: 2.5rem auto 0; padding: 0;
  max-width: 68rem; display: grid; gap: 1.25rem;
}
.case-link {
  display: grid; gap: 1.5rem; padding: 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.case-link:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.45);
}
.case-media { align-self: center; }
.case-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.case-meta .index { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent); }
.case-link h3 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.15em; }
.case-link .sector {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.case-link .summary { color: var(--muted); max-width: 52ch; }
.case-link .tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 1.3rem; }
.read-more { font-weight: 620; color: var(--accent); }
.case-link:hover .read-more { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .case-link { grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2rem, 4vw, 3rem); }
}

/* simplified static "browser" preview mock */
.preview {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  border: 1px solid var(--line); overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.5);
  --pv: var(--accent);
}
.preview__bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); background: var(--surface);
}
.preview__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line); flex: none; }
.preview__body { padding: 1.2rem; display: grid; gap: 0.7rem; }
.preview__hero { height: 2.2rem; width: 70%; border-radius: 3px; background: var(--pv); opacity: 0.9; }
.preview__line { height: 0.7rem; border-radius: 3px; background: var(--line); }
.preview__line.short { width: 45%; }
.preview__line.mid { width: 75%; }
.preview__chip { height: 1.6rem; width: 40%; border-radius: var(--radius-pill); background: var(--pv); opacity: 0.85; margin-top: 0.4rem; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
#services .grid { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { #services .grid { margin-top: 0; } }
.svc-card {
  padding: 1.75rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); transition: border-color 0.25s ease, transform 0.25s ease;
}
.svc-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.svc-card .num { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1.2rem; }
.svc-card h3 { font-size: 1.4rem; }
.svc-card .lead { color: var(--muted); margin-bottom: 1.4rem; }
.svc-card ul { list-style: none; margin: 0; padding: 0; }
.svc-card li { position: relative; padding: 0.42rem 0 0.42rem 1.5rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.svc-card li::before {
  content: ''; position: absolute; left: 0.15rem; top: 0.95rem;
  width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 2px solid var(--accent);
}

/* ==========================================================================
   PROCESS — static route line (no scroll-driven fill)
   ========================================================================== */
.steps {
  /* Left-aligned, not centred: the section heading sits flush left and the
     steps looked adrift beside it. */
  position: relative; list-style: none; margin: 3rem 0 0; padding: 0;
  max-width: 44rem; display: grid; gap: 0;
}
.steps .route { position: absolute; left: 19px; top: 2.6rem; bottom: 2.6rem; width: 2px; background: var(--line); overflow: hidden; }
.steps .route__fill { position: absolute; inset: 0 0 auto 0; height: 100%; background: var(--accent); opacity: 0.4; }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 1.25rem; padding-block: 1.6rem; }
.step .marker { position: relative; display: inline-flex; flex: none; z-index: 1; }
.step .marker::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  background: var(--accent-soft); opacity: 0; transform: scale(0.6);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.step.in .marker::before { opacity: 1; transform: scale(1); }
.step .step-num {
  position: absolute; top: -0.35rem; left: 2.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--accent);
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.35em; }
.step p { color: var(--muted); max-width: 56ch; margin: 0; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
#about .grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.about-bio p { color: var(--muted); max-width: 58ch; }
.about-bio p:first-of-type { color: var(--text); font-size: 1.15rem; }
.portrait {
  width: 100%; aspect-ratio: 6 / 7; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.portrait.placeholder { flex-direction: column; gap: 1rem; min-height: 18rem; }
.ph-note { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts { margin: 1.5rem 0 0; }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.65rem; border-top: 1px solid var(--line); }
.fact dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); align-self: center; margin: 0; }
.fact dd { margin: 0; font-weight: 560; text-align: right; }
@media (min-width: 860px) { #about .grid { grid-template-columns: 7fr 5fr; align-items: start; } }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
#testimonials .grid { display: grid; gap: 1.25rem; margin-top: 3rem; grid-template-columns: 1fr; }
.quote-card {
  margin: 0; padding: 1.6rem 1.5rem; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg);
  display: flex; flex-direction: column; gap: 1rem;
}
.quote-card .badge-sample { align-self: flex-start; }
.quote-card blockquote { margin: 0; flex: 1; }
.quote-card blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote-card figcaption { display: flex; flex-direction: column; gap: 0.1rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.quote-card .name { font-weight: 640; }
.quote-card .role { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 820px) { #testimonials .grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { position: relative; isolation: isolate; }
.contact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50rem 26rem at 50% 120%, var(--accent-soft), transparent 60%);
  pointer-events: none; z-index: -1;
}
.contact .intro { max-width: 40ch; margin-inline: auto; text-align: center; }
.contact .intro .section-note { margin-inline: auto; }
.dispatch {
  max-width: 42rem; margin: 2.75rem auto 0; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg); overflow: clip;
}
.slip-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.slip-title, .slip-meta { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }
.slip-title { color: var(--text); }
.slip-title span { color: var(--accent); margin-right: 0.3rem; }
.slip-meta { color: var(--muted); white-space: nowrap; }
.slip-body { padding: 1.75rem 1.5rem; }
.hidden-field { display: none; }
.contact .row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.contact .field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.contact label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact .req { color: var(--accent); }
.contact input, .contact textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 0.7rem 0.85rem; min-height: 2.9rem; transition: border-color 0.2s ease;
}
.contact textarea { resize: vertical; min-height: 7rem; }
.contact input:hover, .contact textarea:hover { border-color: var(--muted); }
.contact input:focus-visible, .contact textarea:focus-visible { outline: none; border-color: var(--accent); }
.contact ::placeholder { color: var(--muted); opacity: 0.7; }
.contact .submit { width: 100%; }
.contact .fine { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--muted); }
.contact .direct { margin-top: 1.5rem; text-align: center; color: var(--muted); }
.contact .direct a {
  display: inline-block; margin-left: 0.3rem; font-weight: 640; color: var(--text);
  text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; word-break: break-all;
}
.contact .direct a:hover { color: var(--accent); }
@media (min-width: 560px) { .contact .row { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 3.5rem; background: var(--surface); }
.site-footer .grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer .brand { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.15rem; margin-bottom: 0.5rem; }
.site-footer .mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; margin: 0 0 0.35rem; color: var(--muted); }
.site-footer .dim { opacity: 0.75; }
.site-footer .mail {
  display: inline-block; font-weight: 600; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 4px; margin-bottom: 0.75rem; word-break: break-all;
}
.site-footer .mail:hover { color: var(--accent); }
@media (min-width: 700px) {
  .site-footer .grid { grid-template-columns: 1fr auto; }
  .site-footer .right { text-align: right; }
}

/* ==========================================================================
   CASE STUDY (project.html)
   ========================================================================== */
.case-header { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.case-header .crumbs { margin-bottom: 2.25rem; }
.case-header .crumbs a { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.case-header .crumbs a:hover { color: var(--accent); }
.case-header .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
.case-header .sector { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.case-header h1 { font-size: clamp(2.2rem, 6.5vw, 4rem); }
.case-header .summary { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.case-header .tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.case-study .media { max-width: 46rem; }
.prose { max-width: 42rem; padding-block: clamp(2.5rem, 6vw, 4rem); margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.case-cta { text-align: center; background: var(--surface); }
.case-cta h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: 1.4rem; }

/* ---------- thanks page ---------- */
.thanks { min-height: 55vh; display: flex; align-items: center; }
.thanks h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.thanks .section-note a { color: var(--text); font-weight: 640; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.thanks .back { margin-top: 2rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Header compass: needle tracks global scroll progress (--sp) ----
   Restored from the v8 build. Rotation is motion, so it only runs for
   visitors who haven't asked to reduce it. */
.wordmark .mark .needle {
  transform-origin: 16px 16px;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .wordmark .mark .needle {
    transform: rotate(calc(var(--sp, 0) * 360deg));
  }
}

/* ==========================================================================
   MULTI-PAGE CHROME — sub-page mastheads, closing CTA, footer nav
   ========================================================================== */
.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); line-height: 1.02; margin-bottom: 0.4em; }
.page-head .section-note { max-width: 56ch; }

.page-cta { padding-block: clamp(3.5rem, 8vw, 5.5rem); text-align: center; }
.page-cta h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.7rem); max-width: 22ch;
  margin-inline: auto; margin-bottom: 1.6rem; text-wrap: balance;
}

.foot-nav { display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; margin-bottom: 1.1rem; }
.foot-nav a {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.09em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.foot-nav a:hover { color: var(--accent); }

/* "See all the work →" style links under each homepage teaser */
.more-link { margin: 2.4rem 0 0; }
.more-link a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 620; letter-spacing: var(--head-tracking);
  font-size: 1.05rem; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.more-link a::after { content: '→'; transition: transform 0.22s ease; }
.more-link a:hover { border-bottom-color: var(--accent); }
.more-link a:hover::after { transform: translateX(4px); }

/* ==========================================================================
   HOMEPAGE TEASERS — condensed rows that link out to the full pages
   ========================================================================== */
.work-teaser, .svc-teaser {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  max-width: 60rem; border-top: 1px solid var(--line);
}
.work-teaser__item a,
.svc-teaser__item {
  display: flex; align-items: baseline; gap: 1.1rem;
  padding: 1.15rem 0.25rem; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.work-teaser__item a { transition: background-color 0.2s ease, padding-left 0.2s ease; }
.work-teaser__item a:hover { background: var(--accent-soft); padding-left: 0.75rem; }

.work-teaser .index, .svc-teaser .num {
  flex: none; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; color: var(--accent);
}
.tz-body { flex: 1 1 auto; min-width: 0; }
.tz-title {
  display: block; font-family: var(--font-head); font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking); font-size: 1.22rem; line-height: 1.25;
}
.tz-sector, .tz-lead {
  display: block; margin-top: 0.3rem; color: var(--muted);
  font-size: 0.95rem; max-width: 62ch;
}
.tz-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tz-arrow { flex: none; color: var(--accent); transition: transform 0.22s ease; }
.work-teaser__item a:hover .tz-arrow { transform: translateX(4px); }


/* Dark band (#work sits on section--ink) needs its own borders */
.section--ink .work-teaser,
.section--ink .work-teaser__item a { border-color: rgba(247, 241, 230, 0.16); }

/* About teaser — text beside the portrait, bio itself lives on about.html */
.about-teaser { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 860px) { .about-teaser { grid-template-columns: 7fr 5fr; } }
.about-teaser .section-note { max-width: 48ch; margin-top: 1.1rem; }

/* ==========================================================================
   BLOG — index list + post page
   ========================================================================== */
.post-list { list-style: none; margin: 0 auto; padding: 0; max-width: 52rem; display: grid; gap: 1.25rem; }
.post-card a {
  display: block; padding: clamp(1.5rem, 3.5vw, 2.1rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.post-card a:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.45);
}
.post-card__meta {
  display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.9rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.post-card h2 { font-size: clamp(1.45rem, 3.2vw, 1.95rem); line-height: 1.15; margin-bottom: 0.5rem; }
.post-card__excerpt { color: var(--muted); margin: 0 0 1.1rem; max-width: 62ch; }
.post-card .tags { margin-bottom: 1.1rem; }
.post-card a:hover .read-more { text-decoration: underline; text-underline-offset: 4px; }

.post-empty {
  padding: 2.5rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius-lg);
  color: var(--muted); text-align: center;
}

#post-date time { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   CASE STUDY — fact strip, before/after, results, client quote
   ========================================================================== */
.proj-facts {
  display: grid; gap: 1px; margin: 2.5rem 0 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
/* .fact is also the About row (flex, space-between) — reset it here so the
   label sits above its value inside each strip cell. */
.proj-facts .fact {
  display: block; background: var(--surface); padding: 1rem 1.1rem;
  border-top: 0; text-align: left;
}
.proj-facts .fact dt { align-self: auto; }
.proj-facts .fact dd { text-align: left; }
.proj-facts dt {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem;
}
.proj-facts dd { margin: 0; font-weight: 560; font-size: 0.98rem; }
.proj-facts dd a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.proj-facts dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.proj-block { margin-block: clamp(3rem, 7vw, 4.5rem); }
.proj-block__head {
  font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 1.6rem;
}

/* Before / after */
.ba-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba { margin: 0; position: relative; }
.ba-tag {
  display: inline-block; margin-bottom: 0.6rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.2rem 0.55rem;
}
.ba-tag--after { color: var(--accent); border-color: var(--accent); }
.ba-shot {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden; aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.ba-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ba figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; }

/* Results band */
.proj-results-band { padding-block: clamp(3rem, 7vw, 4.5rem); }
.proj-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
@media (min-width: 760px) { .proj-results { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.proj-results li {
  position: relative; padding: 1.1rem 1.2rem 1.1rem 2.6rem;
  border: 1px solid rgba(247, 241, 230, 0.18); border-radius: var(--radius-lg);
  font-family: var(--font-head); font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking); font-size: 1.12rem; line-height: 1.25;
}
.proj-results li::before {
  content: ''; position: absolute; left: 1.1rem; top: 1.45rem;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  border: 2px solid var(--accent);
}

/* What I did */
.proj-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 46rem; }
.proj-services li {
  position: relative; padding: 0.75rem 0 0.75rem 1.75rem;
  border-top: 1px solid var(--line); font-size: 1rem;
}
.proj-services li:last-child { border-bottom: 1px solid var(--line); }
.proj-services li::before {
  content: ''; position: absolute; left: 0.2rem; top: 1.3rem;
  width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 2px solid var(--accent);
}

/* Client quote */
.proj-quote { margin: 0; max-width: 46rem; border-left: 3px solid var(--accent); padding-left: clamp(1.2rem, 3vw, 2rem); }
.proj-quote blockquote { margin: 0; }
.proj-quote p {
  font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking);
  font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.25; margin: 0; text-wrap: balance;
}
.proj-quote p::before { content: '\201C'; }
.proj-quote p::after { content: '\201D'; }
.proj-quote figcaption {
  margin-top: 1rem; font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* Main photo on the case study + real photos on the work cards */
.proj-hero {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
  max-height: 34rem; display: flex; align-items: center; justify-content: center;
}
.proj-hero img { width: 100%; max-height: 34rem; object-fit: cover; display: block; }
.case-photo { width: 100%; border-radius: var(--radius-lg); display: block; }

/* Empty photo slots are edit-mode only; give them a usable target */
.ba-shot.img-ph, .proj-hero.img-ph { min-height: 11rem; }
.ba-shot .ph-note, .proj-hero .ph-note {
  color: var(--muted); font-size: 0.85rem; padding: 1rem; text-align: center;
}

/* Edit-mode button that opens a record's full field panel */
.oe-editcard {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 1.5rem 0 0;
  padding: 0.6rem 1rem; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: var(--radius);
}
.oe-editcard:hover { filter: brightness(1.08); }

/* When a page masthead is followed by a section on the SAME dark band, their
   paddings stack into a large empty gap (most visible on /work). Collapse it.
   Pages where the next section changes band keep the breathing room. */
.page-head + .section--ink { padding-top: 0; }
/* With the padding gone, the list's own top margin would collapse out through
   the section and drag the dark band down, exposing the page background. */
.page-head + .section--ink > .container > .work-list { margin-top: 0; }

/* Standalone Services page: the homepage keeps one column because its cards sit
   beside an aside, but here they have the full width to use. */
@media (min-width: 820px) {
  #services.services-page .grid { grid-template-columns: repeat(2, 1fr); }
}
