/* Greydock design system.
   Semantic tokens per brief §7.4; editorial serif direction preserved from
   the original site (Newsreader display + Source Serif 4 body, warm paper
   palette, rust accent). Both themes must hold WCAG AA contrast. */

:root {
  --bg: #faf8f4;
  --surface: #f3efe7;
  --surface-elevated: #fffdf9;
  --text: #201d18;
  --text-muted: #595347;
  --border: rgba(32, 29, 24, 0.16);
  /* Boundaries that identify UI components (inputs, outline buttons) need
     ≥3:1 against adjacent colours — WCAG 1.4.11. */
  --border-strong: rgba(32, 29, 24, 0.55);
  --accent: #8a3325;
  --accent-contrast: #faf8f4;
  --success: #2c5e3f;
  --error: #9a2c1c;
  --focus: #8a3325;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #16140f;
  --surface: #1d1a13;
  --surface-elevated: #242019;
  --text: #e9e5dc;
  --text-muted: #aaa496;
  --border: rgba(233, 229, 220, 0.18);
  --border-strong: rgba(233, 229, 220, 0.55);
  --accent: #d08a68;
  --accent-contrast: #16140f;
  --success: #8fc7a2;
  --error: #e28a76;
  --focus: #d08a68;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #16140f;
    --surface: #1d1a13;
    --surface-elevated: #242019;
    --text: #e9e5dc;
    --text-muted: #aaa496;
    --border: rgba(233, 229, 220, 0.18);
    --border-strong: rgba(233, 229, 220, 0.55);
    --accent: #d08a68;
    --accent-contrast: #16140f;
    --success: #8fc7a2;
    --error: #e28a76;
    --focus: #d08a68;
    color-scheme: dark;
  }
}

/* ── Fonts (self-hosted latin variable subsets) ─────────────────────────── */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

html {
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

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

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--surface-elevated);
  color: var(--text);
  padding: 10px 16px;
  border: 1px solid var(--border);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4.5vw, 48px);
}

.prose {
  max-width: 70ch;
}

.lead {
  font-size: clamp(1.125rem, 1.1vw + 0.9rem, 1.3125rem);
  line-height: 1.55;
  max-width: 62ch;
}

.muted {
  color: var(--text-muted);
}

/* Uppercase editorial label with leading rule */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.label::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 26px;
  border: 1px solid var(--text);
  border-radius: 3px;
  background: var(--text);
  color: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.wordmark {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav__link {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 10px 4px;
}

.site-nav__link:hover {
  color: var(--accent);
}

.site-nav .btn {
  min-height: 44px;
  padding: 9px 20px;
  font-size: 0.9375rem;
}

.theme-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 9px 14px;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

@media (max-width: 880px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: 68px 0 auto 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  }

  body.nav-open .mobile-nav {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  .mobile-nav__link {
    display: block;
    padding: 14px clamp(20px, 4.5vw, 48px);
    font-size: 1.125rem;
    font-family: 'Newsreader', Georgia, serif;
    text-decoration: none;
    border-top: 1px solid var(--border);
  }

  .mobile-nav__link:first-child {
    border-top: 0;
  }

  .mobile-nav__cta {
    margin: 18px clamp(20px, 4.5vw, 48px) 0;
  }

  .mobile-nav__cta .btn {
    width: 100%;
  }

  .mobile-nav .theme-toggle {
    margin: 16px clamp(20px, 4.5vw, 48px) 0;
    min-height: 44px;
  }
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  border-top: 1px solid var(--border);
  padding-block: clamp(64px, 9vw, 120px);
  scroll-margin-top: 84px;
}

.section--flush {
  border-top: 0;
}

h2 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 3.125rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: 0 0 24px;
}

.section__intro {
  max-width: 66ch;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(44px, 6vw, 84px) clamp(52px, 6.5vw, 96px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 30px;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.75rem, 4.1vw + 0.9rem, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0 0 26px;
}

/* Longer editorial headlines (agentic page) sit a step down in scale */
.hero--sub h1 {
  font-size: clamp(2.25rem, 2.9vw + 0.8rem, 3.875rem);
  line-height: 1.08;
  max-width: 24ch;
}

.hero__supporting {
  font-size: clamp(1.125rem, 1.2vw + 0.9rem, 1.375rem);
  line-height: 1.55;
  max-width: 58ch;
  margin: 0 0 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 0 0 22px;
}

.hero__microcopy {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* Decision-to-production diagram: editorial systems list, not decoration */
.pathline {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 26px 28px 20px;
  max-width: 380px;
  justify-self: end;
  width: 100%;
}

.pathline__title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.pathline ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pathline li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0 13px 26px;
}

.pathline li + li {
  border-top: 1px solid var(--border);
}

.pathline li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: transparent;
}

.pathline li:last-child::before {
  background: var(--accent);
  border-color: var(--accent);
}

.pathline__idx {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.pathline__stage {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 500;
}

/* ── Proof strip ────────────────────────────────────────────────────────── */

.proof {
  border-top: 1px solid var(--border);
  padding-block: 30px;
}

.proof ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 36px;
}

.proof li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.proof li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

/* ── Card grids ─────────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 30px 28px;
}

.card h3 {
  font-size: 1.4375rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 12px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Fit matrix ─────────────────────────────────────────────────────────── */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}

.fit-panel {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px 28px;
}

.fit-panel--strong {
  background: var(--surface);
}

.fit-panel h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 18px;
}

.fit-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fit-panel li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 1rem;
  line-height: 1.5;
}

.fit-panel li + li {
  border-top: 1px solid var(--border);
}

.fit-panel li::before {
  position: absolute;
  left: 2px;
  top: 9px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.fit-panel--strong li::before {
  content: '✓';
  color: var(--success);
}

.fit-panel--not li::before {
  content: '✕';
  color: var(--text-muted);
}

.fit-bridge {
  margin: 34px 0 0;
  max-width: 66ch;
}

/* ── Services ───────────────────────────────────────────────────────────── */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
  align-items: stretch;
}

.offer {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 30px 28px;
}

.offer--featured {
  border-top: 3px solid var(--accent);
  background: var(--surface-elevated);
}

.offer__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.offer h3 {
  font-size: 1.5625rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 10px;
}

.offer__promise {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
  margin: 0 0 14px;
}

.offer__meta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  border-block: 1px solid var(--border);
  padding-block: 10px;
  margin: 0 0 16px;
}

.offer__desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 18px;
}

.offer ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.offer li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.offer li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.offer .btn {
  margin-top: auto;
  align-self: flex-start;
}

.delivery-callout {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
}

.delivery-callout__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.delivery-callout h3 {
  font-size: 1.5625rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 12px;
}

.delivery-callout p {
  margin: 0;
  color: var(--text-muted);
  max-width: 68ch;
}

/* ── Approach timeline ──────────────────────────────────────────────────── */

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.stage {
  border-top: 2px solid var(--border);
  padding-top: 20px;
  position: relative;
}

.stage::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.stage__idx {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  display: block;
  margin: 0 0 8px;
}

.stage h3 {
  font-size: 1.4375rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.stage p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.pull-quote {
  margin: clamp(48px, 6vw, 80px) auto 0;
  max-width: 800px;
  text-align: center;
  border: 0;
  padding: 0;
}

.pull-quote p {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.4375rem, 1.8vw + 1rem, 2.125rem);
  line-height: 1.3;
  margin: 0;
}

.pull-quote::before {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 26px;
}

/* ── Experience ─────────────────────────────────────────────────────────── */

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}

.exp-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px 28px;
}

.exp-card__label {
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.exp-card h3 {
  font-size: 1.4375rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 12px;
}

.exp-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.exp-card__details {
  margin: 18px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 0.9375rem;
}

.exp-card__details div {
  display: flex;
  gap: 12px;
  padding: 3px 0;
}

.exp-card__details dt {
  flex: none;
  width: 96px;
  font-weight: 600;
}

.exp-card__details dd {
  margin: 0;
  color: var(--text-muted);
}

/* ── Domain wedge ───────────────────────────────────────────────────────── */

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 44px;
}

.domain {
  border-top: 2px solid var(--border);
  padding-top: 20px;
  position: relative;
}

.domain::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.domain h3 {
  font-size: 1.4375rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.domain p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 14px;
}

/* ── About ──────────────────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
  margin-top: 8px;
}

.about-aside {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 30px 28px;
}

.about-aside__name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 6px;
}

.about-aside__role {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 20px;
}

.about-aside__note {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

.about-aside img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 0 0 18px;
  display: block;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq-list {
  margin-top: 40px;
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.3;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex: none;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.375rem;
  color: var(--accent);
  transition: transform 180ms ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item__answer {
  padding: 0 4px 24px;
  max-width: 68ch;
  color: var(--text-muted);
}

.faq-item__answer p {
  margin: 0;
}

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}

.contact-aside .lead {
  margin-bottom: 26px;
}

.contact-aside__email {
  font-size: 1.0625rem;
  margin: 0 0 30px;
}

.contact-reassurance {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 44ch;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field .hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.field input,
.field select,
.field textarea {
  appearance: none;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--surface-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  padding: 12px 14px;
  min-height: 46px;
  transition: border-color 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  font-size: 0.875rem;
  color: var(--error);
  margin: 0;
}

.form-summary {
  grid-column: 1 / -1;
  border: 1px solid var(--error);
  border-radius: 3px;
  padding: 16px 18px;
  font-size: 0.9375rem;
}

.form-summary h3 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--error);
}

.form-summary ul {
  margin: 0;
  padding-left: 18px;
}

.form-summary a {
  color: var(--error);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.form-success {
  border: 1px solid var(--success);
  border-radius: 4px;
  background: var(--surface);
  padding: 34px 32px;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.form-success p {
  margin: 0;
  color: var(--text-muted);
}

/* Honeypot: hidden from everyone, including assistive tech */
.hp-field {
  display: none !important;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 6vw, 72px) 40px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 36px;
  margin-bottom: 44px;
}

.site-footer .wordmark {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text);
}

.site-footer__strapline {
  max-width: 34ch;
  margin: 0;
}

.site-footer__heading {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--text-muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 0.875rem;
}

.site-footer__legal p {
  margin: 0;
}

/* ── Simple pages (privacy, thank-you, 404) ─────────────────────────────── */

.page-simple {
  padding-block: clamp(56px, 8vw, 110px);
}

.page-simple h1 {
  font-size: clamp(2.25rem, 3.2vw + 1rem, 3.75rem);
  line-height: 1.1;
  margin: 0 0 26px;
}

.page-simple h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
}

.page-simple .updated {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 36px;
}

/* ── Agentic page extras ────────────────────────────────────────────────── */

.qa-list {
  margin-top: 44px;
  max-width: 860px;
}

.qa {
  border-top: 1px solid var(--border);
  padding: 30px 0 8px;
}

.qa h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 12px;
  max-width: 30ch;
}

.qa p {
  color: var(--text-muted);
  max-width: 68ch;
}

.perspective {
  margin: 40px 0 0;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  max-width: 62ch;
}

.perspective p {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  margin: 0;
}

.engagement-panel {
  margin-top: 44px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--surface-elevated);
  padding: 36px 34px;
  max-width: 860px;
}

.engagement-panel h3 {
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.engagement-panel__meta {
  font-size: 0.9375rem;
  font-weight: 600;
  border-block: 1px solid var(--border);
  padding-block: 10px;
  margin: 18px 0;
}

.engagement-panel ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
}

.engagement-panel li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.engagement-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 26px;
}

/* ── Availability note ──────────────────────────────────────────────────── */

.availability {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 0;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .card-grid,
  .offer-grid,
  .domain-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .stages {
    grid-template-columns: 1fr 1fr;
  }

  .hero__grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pathline {
    justify-self: start;
    max-width: 460px;
  }

  .delivery-callout {
    grid-template-columns: 1fr;
  }

  .proof ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .fit-grid,
  .exp-grid,
  .stages,
  .form-grid,
  .engagement-panel ul {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html {
    scroll-behavior: auto;
  }
}
