/* Appt theme. Built from src/styles/globals.css and src/styles/components.css of the Next.js site (class names unchanged),
   plus self-hosted fonts and the engine-only rules at the end. See ../DESIGN.md before changing anything here. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('/assets/theme/fonts/figtree-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/theme/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }
:root { --font-sans: 'Figtree'; --font-mono: 'JetBrains Mono'; }

/* ==========================================================================
   Appt — design tokens ("Editorial Agency" system)
   ========================================================================== */
:root {
  color-scheme: light;
  /* Ground */
  --bg: #ffffff;
  --surface: #f3f5f4;
  --surface-2: #e5ebe8;
  --line: #d5dcd8;
  --line-strong: #0b1417;
  --border-input: #7f8d9c; /* ≥3:1 non-text contrast for field boundaries */
  /* Ink */
  --ink: #0b1417;
  --ink-2: #3a4448;
  --muted: #5b6569;
  /* Accent — brand green */
  --accent: #5ab08f;        /* fills only (never text) */
  --accent-strong: #1f7a5c; /* primary button fill, white text 5.25:1 */
  --accent-strong-hover: #1a6a50;
  --accent-ink: #1f6b50;    /* green as text 6.41:1 */
  --accent-soft: #e6f3ec;
  --accent-on-dark: #7cc5a8;
  --focus: #2a8c6a;
  /* Dark band */
  --dark: #0b1417;
  --dark-surface: #15201f;
  --dark-line: #2b3a38;
  --on-dark: #ffffff;
  --on-dark-muted: #b4c3be;
  /* Feedback */
  --error: #b8102b;
  --error-fill: #e52e4a;
  /* Logo pixel-cross */
  --px-red: #e52e4a; --px-yellow: #f1ce00; --px-blue: #1ab2e8; --px-pink: #e55d92; --px-green: #5ab08f;

  /* Type */
  --font-sans-stack: var(--font-sans), 'Proxima Nova', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-mono-stack: var(--font-mono), 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --fs-display: clamp(3rem, 1.5rem + 5vw, 6rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-nav: 0.9375rem;
  --fs-eyebrow: 0.875rem;
  --measure: 68ch;
  --measure-narrow: 52ch;

  /* Space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(64px, 4rem + 3vw, 112px);
  --section-lg: clamp(88px, 5rem + 5vw, 152px);
  --gutter: clamp(20px, 2vw + 12px, 48px);
  --gap: clamp(16px, 1rem + 1vw, 32px);

  /* Shape */
  --r-0: 0; --r-1: 4px; --r-2: 8px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11,20,23,.06), 0 1px 3px rgba(11,20,23,.08);
  --shadow-2: 0 4px 12px rgba(11,20,23,.08), 0 12px 32px rgba(11,20,23,.10);
  --shadow-focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--focus);

  /* Layout */
  --container: 1200px;
  --container-wide: 1440px;
  --container-text: 760px;
  --header-h: 88px;

  /* z */
  --z-header: 50; --z-dropdown: 60; --z-menu: 70; --z-skip: 100;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans-stack);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent-ink);
  scrollbar-color: var(--muted) var(--surface);
}
html.nav-open, html.nav-open body { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 150ms ease; }
a:hover { color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--r-1); }
::selection { background: var(--accent); color: var(--ink); }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
main:focus { outline: none; }

.visually-hidden { position: absolute !important; 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: 8px; left: 8px; z-index: var(--z-skip); padding: 10px 16px; background: var(--accent-strong); color: #fff; border-radius: var(--r-pill); font-weight: 500; transform: translateY(-200%); transition: transform 150ms ease; }
.skip-link:focus { transform: none; color: #fff; }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--text { max-width: calc(var(--container-text) + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--tight { padding-block: var(--s-8); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section + .section.theme-light:not(.section--bg) { padding-top: 0; }
.theme-light { background: var(--bg); color: var(--ink); }
.theme-tint { background: var(--surface); color: var(--ink); }
.theme-dark { background: var(--dark); color: var(--on-dark); }
.theme-dark a { color: var(--accent-on-dark); }
.theme-dark a:hover { color: var(--on-dark); }
.section--bg { position: relative; isolation: isolate; color: var(--on-dark); min-height: 520px; display: grid; align-items: end; overflow: hidden; }
.section--bg .section__bg { position: absolute; inset: 0; z-index: -1; }
.section--bg .section__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.section--bg .section__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,23,0) 20%, rgba(11,20,23,.72) 100%); }
.section--bg .container { padding-block: var(--section); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.section--bg .prose h1, .section--bg .prose h2, .section--bg .prose h3, .section--bg .prose p { color: var(--on-dark); }
.section--bg .prose h1, .section--bg .prose h2 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; margin-inline: auto; }
.section--bg .prose { text-align: center; }
.section--bg .button-block { text-align: center; }

/* Grid rows from the CMS layout */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-6); align-items: start; }
.cols > .col { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1024px) { .cols > .col { grid-column: var(--start, 1) / span var(--span, 12); } }
.cols > .col > * + * { margin-top: var(--s-5); }

/* Typography helpers ------------------------------------------------------ */
.eyebrow { font-family: var(--font-mono-stack); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.meta { font-family: var(--font-mono-stack); font-size: var(--fs-eyebrow); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
.path { font-family: var(--font-mono-stack); font-size: var(--fs-nav); font-weight: 500; letter-spacing: 0; }
.path-title { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; }
.path-title .slash, .path .slash { color: var(--accent-ink); }
.theme-dark .path-title .slash { color: var(--accent-on-dark); }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; }
.tick::after { content: ''; display: block; width: 32px; height: 1px; background: var(--line-strong); margin-top: var(--s-4); }
.theme-dark .tick::after { background: var(--on-dark); }
.pixel-rule { display: inline-flex; gap: 0; line-height: 0; }
.pixel-rule i { display: block; width: 5px; height: 5px; }
.pixel-rule i:nth-child(1) { background: var(--px-red); }
.pixel-rule i:nth-child(2) { background: var(--px-green); }
.pixel-rule i:nth-child(3) { background: var(--px-yellow); }
.pixel-rule i:nth-child(4) { background: var(--px-pink); }
.pixel-rule i:nth-child(5) { background: var(--px-blue); }
.pixel-rule--lg i { width: 8px; height: 8px; }

/* Prose (CMS rich text) --------------------------------------------------- */
.prose { color: var(--ink-2); max-width: var(--measure); text-wrap: pretty; }
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.6em; }
.prose > h1:first-child, .prose > h2:first-child, .prose > h3:first-child, .prose > h4:first-child { margin-top: 0; }
.prose h1 { font-size: var(--fs-h1); }
.prose h2 { font-size: var(--fs-h2); }
.prose h3 { font-size: var(--fs-h3); }
.prose h4 { font-size: var(--fs-h4); }
.prose h1 + p, .prose h2 + p { margin-top: 0.75em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 1em 0; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding-left: var(--s-5); border-left: 2px solid var(--accent); font-size: var(--fs-lead); color: var(--ink); font-weight: 500; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { margin-block: 1.5em; }
.prose hr { margin-block: 2em; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); }
.prose td, .prose th { border-top: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose pre { overflow-x: auto; background: var(--surface); padding: var(--s-4); border-radius: var(--r-2); font-family: var(--font-mono-stack); font-size: 0.875rem; }
.prose--lead > p:first-child { font-size: var(--fs-lead); line-height: 1.5; }
.prose--article { line-height: 1.7; }
.prose--article > * + * { margin-top: 1.2em; }
.prose--article h2 { font-size: var(--fs-h3); }
.prose--article h3 { font-size: var(--fs-h4); }
.prose--article h4 { font-size: var(--fs-body); font-weight: 600; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: var(--r-pill); font-family: var(--font-sans-stack); font-size: min(var(--fs-body), 17px); font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; text-decoration: none; text-align: center; border: 1.5px solid transparent; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease; white-space: normal; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.9375rem; }
.btn--lg { min-height: 54px; padding: 0 32px; }
.btn--primary { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.btn--primary:hover { background: var(--accent-strong-hover); border-color: var(--accent-strong-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--on-dark); }
.btn--inverse { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--inverse:hover { background: var(--surface); color: var(--ink); }
.btn--ghost { background: none; border: 0; min-height: 0; padding: 0; color: var(--accent-ink); border-radius: 0; }
.btn--ghost:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.theme-dark .btn--secondary { color: var(--on-dark); border-color: var(--on-dark); }
.theme-dark .btn--secondary:hover { background: var(--on-dark); color: var(--ink); }
.theme-dark .btn--ghost { color: var(--accent-on-dark); }
.theme-dark .btn--ghost:hover { color: var(--on-dark); }
.button-block { margin-top: var(--s-5); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--accent-ink); }
.arrow-link svg { width: 16px; height: 16px; transition: transform 150ms ease-out; }
.arrow-link:hover { color: var(--ink); }
.arrow-link:hover svg { transform: translateX(3px); }
.arrow-link--back svg { transform: scaleX(-1); }
.arrow-link--back:hover svg { transform: scaleX(-1) translateX(3px); }
.meta svg { width: 14px; height: 14px; vertical-align: -2px; }
.flip-x { display: inline-block; transform: scaleX(-1); }

/* Forms ------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 20px; }
.field__label, .field > .field__label { font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.field__req { color: var(--muted); }
.field__pair { display: grid; gap: 12px; }
@media (min-width: 640px) { .field__pair { grid-template-columns: 1fr 1fr; } }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--border-input); border-radius: var(--r-1); font: 400 16px/1.4 var(--font-sans-stack);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5' fill='none' stroke='%230b1417' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--shadow-focus); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--error-fill); }

/* Reduced motion / print --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .map-embed, .newsletter-strip, .prefooter, .cta-band, .related { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; }
  .section { padding-block: 16pt; }
}

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--header-h); }
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; padding: 6px 0; }
.site-logo img { width: 116px; height: auto; }
.site-nav { display: flex; align-items: center; gap: var(--s-4); }
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 4px 6px 12px; background: none; border: 0; cursor: pointer; border-radius: var(--r-1); }
.nav-toggle__label { font-family: var(--font-mono-stack); font-size: var(--fs-nav); font-weight: 500; }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle__bars span { display: block; height: 1.5px; background: var(--ink); transition: transform 200ms var(--ease), opacity 200ms; transform-origin: center; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.site-menu__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-menu__item { position: relative; }
.site-menu__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; font-family: var(--font-mono-stack); font-size: var(--fs-nav); font-weight: 500; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--r-1); position: relative; white-space: nowrap; }
.site-menu__link:hover { color: var(--accent-ink); }
.site-menu__link.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--accent); }
.site-menu__chev { transition: transform 160ms ease-out; }
.has-menu.is-expanded .site-menu__chev { transform: rotate(180deg); }
.site-submenu { list-style: none; margin: 0; padding: 8px; }
.site-submenu__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-1); font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.site-submenu__link:hover { background: var(--surface); color: var(--ink); }
.site-submenu__link.is-active { color: var(--accent-ink); }
.site-submenu__ext { color: var(--muted); font-size: 0.85em; }
.site-menu__cta { margin-left: 16px; gap: 20px; }
.site-menu__cta svg { width: 16px; height: 16px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-menu { display: flex; align-items: center; gap: var(--s-3); }
  .site-submenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: var(--z-dropdown); min-width: 280px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: none; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 0s 160ms; }
  .has-menu.is-expanded > .site-submenu, .has-menu:hover > .site-submenu, html:not([data-js]) .has-menu:focus-within > .site-submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  /* Five logo squares beside the services items — the one place the five colours line up outside the logo. */
  .site-submenu__link::before { content: ''; width: 8px; height: 8px; margin-right: 10px; background: var(--line); order: -1; flex: 0 0 auto; }
  .site-menu__item:first-child .site-submenu li:nth-child(1) .site-submenu__link::before { background: var(--px-blue); }
  .site-menu__item:first-child .site-submenu li:nth-child(2) .site-submenu__link::before { background: var(--px-red); }
  .site-menu__item:first-child .site-submenu li:nth-child(3) .site-submenu__link::before { background: var(--px-pink); }
  .site-menu__item:first-child .site-submenu li:nth-child(4) .site-submenu__link::before { background: var(--px-yellow); }
  .site-menu__item:first-child .site-submenu li:nth-child(5) .site-submenu__link::before { background: var(--px-green); }
  .site-menu__item:first-child .site-submenu li:nth-child(6) .site-submenu__link::before { background: var(--ink); }
  .site-submenu__link { justify-content: flex-start; }
  .site-submenu__ext { margin-left: auto; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-menu__link { padding: 8px 8px; font-size: 0.875rem; }
  .site-logo img { width: 92px; }
}
@media (max-width: 1023px) {
  .site-logo img { width: 92px; }
  .site-menu { position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(100vw, 420px); z-index: var(--z-menu); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow-2); padding: var(--s-5) var(--gutter) var(--s-8); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-5); transform: translateX(100%); visibility: hidden; transition: transform 220ms var(--ease), visibility 0s 220ms; }
  .site-menu.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .site-menu__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-menu__item { border-top: 1px solid var(--line); }
  .site-menu__item:last-child { border-bottom: 1px solid var(--line); }
  .site-menu__link { width: 100%; justify-content: space-between; min-height: 56px; padding: 12px 4px; font-size: 1.0625rem; }
  .site-menu__link.is-active::after { left: 4px; right: auto; width: 24px; bottom: 8px; }
  .site-submenu { display: none; padding: 0 0 12px 16px; }
  .has-menu.is-expanded > .site-submenu, html:not([data-js]) .site-submenu { display: block; }
  html:not([data-js]) .site-menu { position: static; transform: none; visibility: visible; width: auto; box-shadow: none; border: 0; padding: 0 0 var(--s-5); }
  html:not([data-js]) .nav-toggle { display: none; }
  html:not([data-js]) .site-header__inner { flex-wrap: wrap; }
  .site-submenu__link { padding: 10px 4px; font-size: 1rem; }
  .site-menu__cta { margin: 0; align-self: flex-start; }
  .site-header { --header-h: 64px; }
}
@media (max-width: 1023px) { .site-menu__cta { display: inline-flex; } }

/* ==========================================================================
   Page heads, breadcrumb, headings
   ========================================================================== */
.page-head { padding-bottom: var(--s-8); }
.page-head .pixel-rule { margin-bottom: var(--s-5); }
.page-head__title { font-size: var(--fs-h1); max-width: 20ch; }
.page-head .path-title { max-width: none; }
.page-head__lead { margin-top: var(--s-5); max-width: var(--measure-narrow); }
.page-head__lead.prose { max-width: var(--measure-narrow); }
.breadcrumb { padding-top: var(--s-5); font-family: var(--font-mono-stack); font-size: var(--fs-eyebrow); font-weight: 500; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { display: inline-flex; gap: 6px; align-items: center; min-width: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb__sep { color: var(--accent-ink); }
.breadcrumb [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.section-heading--center { justify-content: center; text-align: center; }
.section-heading--center .tick::after { margin-inline: auto; }
.section-heading__title { font-size: var(--fs-h2); }
.section-heading .eyebrow { margin-bottom: var(--s-3); }

/* ==========================================================================
   Hero / CTA photo bands
   ========================================================================== */
.cta-band { position: relative; isolation: isolate; color: var(--on-dark); min-height: 520px; display: grid; align-items: center; overflow: hidden; background: var(--dark); }
.cta-band--hero { min-height: min(80vh, 820px); min-height: min(80svh, 820px); align-items: end; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cta-band--hero .cta-band__bg img { animation: hero-settle 900ms ease-out both; }
@keyframes hero-settle { from { transform: scale(1.04); } to { transform: none; } }
.cta-band__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,23,.08) 0%, rgba(11,20,23,.18) 45%, rgba(11,20,23,.74) 100%); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-6); padding-block: var(--section); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.cta-band--hero .cta-band__inner { padding-bottom: var(--section-lg); }
.cta-band__title { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; max-width: 18ch; }
.cta-band .pixel-rule { margin-bottom: calc(var(--s-2) * -1); }
@media (max-width: 767px) { .cta-band--hero { min-height: 72svh; } .cta-band__inner .btn { width: 100%; max-width: 360px; } }

/* ==========================================================================
   Home
   ========================================================================== */
.home-hero { background: var(--dark); color: var(--on-dark); padding-block: clamp(32px, 4vw, 64px); }
.home-hero__grid { display: grid; gap: var(--s-7); align-items: stretch; }
.home-hero__content { min-width: 0; padding-block: var(--s-5); display: flex; flex-direction: column; align-items: flex-start; }
.home-hero__brand { margin-bottom: var(--s-6); }
.home-hero__heading h1 { font-size: clamp(3.75rem, 7.5vw, 6rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; }
.home-hero__heading h1 span { color: var(--accent-on-dark); }
.home-hero__description { max-width: 39ch; font-size: var(--fs-body); line-height: 1.6; color: var(--on-dark-muted); margin-top: var(--s-6); }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); margin-top: var(--s-6); }
.home-hero__actions .btn { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--dark); gap: var(--s-6); }
.home-hero__actions .btn:hover { background: var(--on-dark); border-color: var(--on-dark); }
.home-hero__actions .btn svg { width: 20px; height: 20px; }
.home-hero__actions .arrow-link { color: var(--on-dark); font-size: var(--fs-small); }
.home-hero__actions .arrow-link:hover { color: var(--accent-on-dark); }
.home-hero__media { position: relative; min-width: 0; background: var(--dark-surface); overflow: hidden; }
.home-hero__media > img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: 57% center; }
@media (min-width: 1024px) {
  .home-hero__grid { grid-template-columns: 1.1fr 1fr; gap: var(--s-7); }
  .home-hero__media { margin-top: var(--s-5); margin-bottom: var(--s-5); }
}
@media (max-width: 1023px) {
  .home-hero__heading h1 { font-size: clamp(3.75rem, 12vw, 6rem); }
  .home-hero__media { max-height: 430px; }
  .home-hero__media > img { aspect-ratio: 16 / 10; }
}
@media (max-width: 479px) {
  .home-hero__actions { gap: var(--s-5); margin-top: var(--s-6); }
  .home-hero__content { padding-top: var(--s-3); padding-bottom: 0; }
}
.section--intro { padding-block: var(--section); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; gap: var(--s-5); }
.intro-grid__title { font-size: clamp(2rem, 3.7vw, 3.5rem); max-width: 22ch; }
.intro-grid__copy { max-width: 40ch; }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: 6fr 1fr 5fr; align-items: center; } .intro-grid__copy { grid-column: 3; } }
/* Services follow a reading order rather than an arbitrary numbered sequence. */
.section--services { background: var(--surface); }
.section--services .section-heading { max-width: 680px; }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; }
.service-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: var(--s-4) var(--s-5); padding-block: var(--s-6); border-top: 1px solid var(--line); min-width: 0; }
.service-card:last-child { border-bottom: 1px solid var(--line); }
.service-card__media { grid-column: 1; grid-row: 1; width: 72px; }
.service-card__media img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.service-card__title { grid-column: 2; grid-row: 1; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.service-card__title a { color: var(--ink); text-decoration: none; }
.service-card__title a:hover { color: var(--accent-ink); }
.service-card__desc.prose { grid-column: 1 / -1; color: var(--ink-2); font-size: 1rem; max-width: 54ch; }
.service-card__cta { grid-column: 1 / -1; font-size: var(--fs-small); justify-content: space-between; width: 100%; }
.service-card__cta svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .service-card { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.1fr); column-gap: var(--s-7); padding-block: var(--s-7); }
  .service-card__media { width: 96px; grid-row: 1 / 3; }
  .service-card__title { grid-row: 1 / 3; max-width: 18ch; }
  .service-card__desc.prose { grid-column: 3; grid-row: 1; }
  .service-card__cta { grid-column: 3; grid-row: 2; }
}
.section--logos { background: var(--bg); }
.section--logos .logo-wall__eyebrow { text-align: left; margin-bottom: var(--s-6); display: flex; align-items: center; gap: var(--s-5); }
.section--logos .logo-wall__eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logo-wall { --logo-cols: 2; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; background: var(--bg); border: 0; }
@media (min-width: 480px) { .logo-wall { --logo-cols: 3; } }
@media (min-width: 768px) { .logo-wall { --logo-cols: 5; } }
@media (min-width: 1280px) { .logo-wall { --logo-cols: 7; } }
.logo-wall__item { flex: 0 0 calc(100% / var(--logo-cols)); background: var(--bg); min-height: 120px; display: grid; place-items: center; padding: var(--s-5) var(--s-3); }
.logo-wall__item img { max-height: 64px; max-width: min(140px, 100%); width: auto; filter: grayscale(1); opacity: .85; transition: filter 200ms, opacity 200ms; }
.logo-wall__item:hover img, .logo-wall__link:focus-visible img { filter: none; opacity: 1; }
.logo-wall__link { display: grid; place-items: center; text-decoration: none; }
.section--blogs { border-top: 1px solid var(--line); }
.blog-feature-grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .blog-feature-grid { grid-template-columns: 7fr 5fr; gap: var(--gap); } }
.blog-feature-grid__side { display: flex; flex-direction: column; }

/* ==========================================================================
   Cards, tiles, grids
   ========================================================================== */
.blog-card { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.blog-card__media { overflow: hidden; background: var(--surface-2); }
.blog-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 240ms var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.02); }
.blog-card__media--contain { background: var(--surface); border: 1px solid var(--line); }
.blog-card__media--contain img { object-fit: contain; padding: 6%; }
.blog-card__body { display: flex; flex-direction: column; gap: var(--s-2); position: relative; }
.blog-card__title { font-size: var(--fs-h3); }
.blog-card__link { color: var(--ink); text-decoration: none; }
.blog-card__link::after { content: ''; position: absolute; inset: 0; }
.blog-card:hover .blog-card__link { color: var(--accent-ink); }
.blog-card__excerpt { color: var(--ink-2); font-size: var(--fs-small); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__cta { font-size: var(--fs-small); margin-top: var(--s-1); }
.blog-card--feature .blog-card__media img { aspect-ratio: 16 / 10; }
.blog-card--feature .blog-card__title { font-size: var(--fs-h2); }
.blog-card--feature .blog-card__excerpt { font-size: var(--fs-body); }
.blog-card--row { flex-direction: row; align-items: flex-start; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.blog-card--row:last-child { border-bottom: 1px solid var(--line); }
.blog-card--row .blog-card__media { flex: 0 0 120px; }
.blog-card--row .blog-card__media img { aspect-ratio: 3 / 2; }
.blog-card--row .blog-card__title { font-size: var(--fs-body); font-weight: 500; }
.blog-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8) var(--gap); }
.blog-grid > li { border-top: 1px solid var(--line); padding-top: var(--s-5); min-width: 0; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-feature { margin-bottom: var(--s-8); }
@media (min-width: 1024px) { .blog-feature .blog-card { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: center; } }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7) var(--gap); }
@media (min-width: 768px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__link { display: flex; flex-direction: column; gap: var(--s-3); color: var(--ink); text-decoration: none; }
.card__media { overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 240ms var(--ease); }
.card:hover .card__media img { transform: scale(1.02); }
.card__title { font-size: var(--fs-h3); }
.card:hover .card__title { color: var(--accent-ink); }
.card__excerpt { color: var(--ink-2); font-size: var(--fs-small); }
.card__cta { color: var(--accent-ink); font-size: var(--fs-small); font-weight: 500; }
.summary__more { margin-top: var(--s-6); }

.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 480px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .case-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .case-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .case-grid--hub { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 768px) and (max-width: 1279px) { .case-grid--hub { grid-template-columns: repeat(3, 1fr); } }
.case-tile { height: 100%; }
.case-tile__link { display: flex; flex-direction: column; gap: var(--s-3); height: 100%; color: var(--ink); text-decoration: none; }
.case-tile__media { display: grid; place-items: center; aspect-ratio: 1; padding: 14%; overflow: hidden; }
.case-tile__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 240ms var(--ease); }
.case-tile__link:hover .case-tile__media img { transform: scale(1.04); }
.case-tile__name { font-size: var(--fs-small); font-weight: 500; text-align: center; }
.case-tile__link:hover .case-tile__name { color: var(--accent-ink); }

.tile-grid { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 768px) { .tile-grid { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.tile-grid .image-block { margin: 0; }
.tile-grid .image-block__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.work-grid { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
.work-card__link { display: block; color: var(--ink); text-decoration: none; }
.work-card__media { display: block; overflow: hidden; }
.work-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 240ms var(--ease); }
.work-card__link:hover img { transform: scale(1.03); }
.work-card__name { display: block; padding-top: var(--s-3); font-weight: 500; }
.work-card__link:hover .work-card__name { color: var(--accent-ink); }

.image-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 768px) { .image-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .image-grid { grid-template-columns: repeat(min(var(--count, 4), 5), 1fr); } }
.image-grid__item { min-width: 0; }
.image-grid__link { display: block; overflow: hidden; }
.image-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12%; transition: transform 240ms var(--ease); }
.image-grid__link:hover img { transform: scale(1.03); }
.image-grid__caption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--muted); }
.image-block { margin: 0; }
.image-block__img { width: 100%; }
.image-block__link { display: block; overflow: hidden; }
.image-block__caption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); }
.image-block__caption h2, .image-block__caption h3 { color: var(--ink); font-size: var(--fs-h3); }
.image-block__button { margin-top: var(--s-4); }

.list-intro { margin-bottom: var(--s-7); max-width: var(--measure); }
.list-intro__title { font-size: var(--fs-h2); }
.list-intro__desc { margin-top: var(--s-4); }
.list-outro { margin-top: var(--s-7); }
.page-head--mark { padding-bottom: 0; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7) var(--gap); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.feature__icon { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.feature__icon img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.feature__title a { color: var(--ink); text-decoration: none; }
.feature__title a:hover { color: var(--accent-ink); }
.feature__desc.prose { font-size: var(--fs-small); }

.quote-block { margin: var(--s-6) 0; padding-left: var(--s-5); border-left: 2px solid var(--accent); max-width: var(--measure); }
.quote-block blockquote { margin: 0; font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; color: var(--ink); }
.quote-block blockquote > p + p { margin-top: 0.6em; }
.quote-block blockquote > p:first-child::before { content: '\201C'; color: var(--accent-ink); }
.quote-block blockquote > p:last-child::after { content: '\201D'; color: var(--accent-ink); }
.blog-card--row .blog-card__excerpt { -webkit-line-clamp: 2; font-size: 0.875rem; }
.quote-block figcaption { margin-top: var(--s-3); font-family: var(--font-mono-stack); font-size: var(--fs-eyebrow); color: var(--muted); }
.quote-block figcaption::before { content: '— '; }
.video-block { position: relative; aspect-ratio: 16 / 9; background: var(--dark); margin: var(--s-5) 0; }
.video-block iframe, .video-block video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-figure { margin: var(--s-5) 0; }
.video-figure figcaption { margin-top: var(--s-3); }
.video-block__caption { color: var(--ink-2); }
.divider { margin: var(--s-6) 0; }
.accordion__item { border-top: 1px solid var(--line); padding: var(--s-4) 0; }
.accordion__item summary { cursor: pointer; font-weight: 500; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-3); }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background-color 150ms, color 150ms, border-color 150ms; }
.social-links svg { width: 18px; height: 18px; }
.social-links a:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.map-embed { position: relative; margin-top: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; background: var(--surface); }
.map-embed iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }
.map-embed__link { display: block; padding: 10px 14px; font-size: var(--fs-small); border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }

/* ==========================================================================
   Service pages
   ========================================================================== */
.service-hero { padding-bottom: var(--s-8); background: var(--surface); margin-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.service-hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .service-hero__grid { grid-template-columns: 7fr 1fr 4fr; } .service-hero__icon { grid-column: 3; } }
.service-hero__text .pixel-rule { margin-bottom: var(--s-5); }
.service-hero__title { font-size: var(--fs-h1); max-width: 22ch; }
.service-hero__lead { margin-top: var(--s-5); max-width: var(--measure-narrow); }
.service-hero__icon { max-width: 360px; align-self: start; }
.service-hero__icon img { width: 100%; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 1023px) { .service-hero__icon { max-width: 160px; } }
.service-body__col { max-width: var(--container-text); }
.service-body__block + .service-body__block { margin-top: var(--s-6); }
.service-body__block .prose ul { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .service-body__block .prose ul { grid-template-columns: 1fr 1fr; column-gap: var(--gap); } }
.service-body__block .prose li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.service-body__block .prose h2, .service-body__block .prose h3 { font-size: var(--fs-h3); }
.service-body__block--button .button-block { margin-top: 0; }

/* ==========================================================================
   Case studies
   ========================================================================== */
.case-study__head { padding: var(--s-6) 0 var(--s-7); }
.case-study__title { font-size: var(--fs-h1); max-width: 20ch; }
.case-study__section { padding-block: var(--s-6); }
.case-study__section--rows + .case-study__section--rows { border-top: 1px solid var(--line); }
.case-study__section--image { padding-block: var(--s-7); }
.case-study__figure { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.case-study__figure .image-block__img { width: 100%; max-height: 720px; object-fit: contain; }
.case-study__section .cols { row-gap: var(--s-4); }
@media (min-width: 1024px) {
  .case-study__section--rows .cols > .col:first-child { grid-column: 1 / span 3; }
  .case-study__section--rows .cols > .col:not(:first-child) { grid-column: 5 / span 8; }
}
.case-study__section--rows .cols > .col:first-child .prose { color: var(--ink); }
.case-study__section--rows .cols > .col:first-child .prose h1, .case-study__section--rows .cols > .col:first-child .prose h2, .case-study__section--rows .cols > .col:first-child .prose h3, .case-study__section--rows .cols > .col:first-child .prose h4, .case-study__section--rows .cols > .col:first-child .prose p { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.case-study__section--rows .cols > .col:first-child .prose strong { font-weight: 500; }
.case-study__section--wide .prose { max-width: var(--measure); }
.case-study__section--wide .prose--lead > p:first-child, .case-study__section .prose > p:first-child { font-size: var(--fs-lead); line-height: 1.5; }
.case-study__section .prose > p:first-child ~ p { font-size: var(--fs-body); }
.case-study .button-block { margin-top: var(--s-5); }
.case-study .image-block + .image-block { margin-top: var(--s-5); }

/* ==========================================================================
   About / team / member
   ========================================================================== */
.photo-strip-wrap { border-bottom: 1px solid var(--line); }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-inline: var(--gutter); scrollbar-width: none; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); border-radius: 0; }
.photo-strip__item { flex: 0 0 auto; margin: 0; scroll-snap-align: start; height: clamp(300px, 46vw, 600px); }
.photo-strip__item img { height: 100%; width: auto; max-width: none; object-fit: cover; }
.about-statement { padding-block: var(--section-lg); }
.about-statement__grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .about-statement__grid { grid-template-columns: 9fr 3fr; } .about-statement__copy { grid-column: 1 / span 8; } }
.about-statement__title .pixel-rule { margin-bottom: var(--s-5); }
.about-statement__title .display { max-width: 14ch; }
.about-statement__copy { max-width: var(--measure); }
.about-statement__copy h3 { margin-top: 1.6em; }

.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8) var(--gap); }
@media (min-width: 480px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.team-card__link { display: flex; flex-direction: column; gap: var(--s-4); color: var(--ink); text-decoration: none; }
.team-card__media { display: block; overflow: hidden; background: var(--surface-2); }
.team-card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; transition: transform 240ms var(--ease); }
.team-card__link:hover .team-card__media img { transform: scale(1.02); }
.team-card__name { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; }
.team-card__link:hover .team-card__name { color: var(--accent-ink); }
.team-card__role { font-family: var(--font-mono-stack); font-size: var(--fs-eyebrow); color: var(--muted); line-height: 1.5; }
.team-card__links { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); color: var(--ink-2); }
.team-foot { margin-top: var(--section); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.team-foot__link { font-size: var(--fs-lead); }
.member__grid { display: grid; gap: var(--s-7); padding: var(--s-6) 0 var(--section); }
@media (min-width: 1024px) { .member__grid { grid-template-columns: 5fr 1fr 6fr; } .member__text { grid-column: 3; } .member__portrait { position: sticky; top: calc(var(--header-h) + 24px); } }
.member__portrait img { width: 100%; height: auto; max-height: 720px; object-fit: cover; object-position: center 20%; }
.member__name { font-size: var(--fs-h1); }
.member__role { margin-top: var(--s-3); font-family: var(--font-mono-stack); font-size: var(--fs-eyebrow); color: var(--muted); }
.member__bio { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); }
.member__links { list-style: none; margin: var(--s-6) 0 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s-3); }
.member__pager { display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-5) 0 var(--section); border-top: 1px solid var(--line); }
.member__pager .arrow-link svg { width: 16px; height: 16px; }
.member__pager-prev:hover svg { transform: translateX(-3px); }

/* ==========================================================================
   Blog
   ========================================================================== */
.post__head { padding: var(--s-6) 0 var(--s-7); max-width: var(--container-text); margin-inline: auto; }
.post__title { font-size: var(--fs-h1); }
.post__meta { margin-top: var(--s-4); }
.post__hero { padding-bottom: var(--s-7); margin: 0; }
.post__hero-caption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); max-width: var(--container-text); }
.post__hero-caption p { margin: 0; }
.post__hero img { width: 100%; max-height: 480px; object-fit: cover; }
.post__body { padding-bottom: var(--section); }
.post__body .prose { max-width: none; line-height: 1.7; }
.post__body .prose > * + * { margin-top: 1.2em; }
.post__body .prose h2 { font-size: var(--fs-h3); }
.post__body .prose h3 { font-size: var(--fs-h4); }
.post__body .prose h4 { font-size: var(--fs-body); font-weight: 600; }
.post__body .prose img { margin-block: 2em; }
.post__body > * + * { margin-top: var(--s-6); }
.post__body .image-block { margin-block: var(--s-6); }
.author-card { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-8); padding: var(--s-5); background: var(--surface); border-radius: var(--r-2); }
.author-card__media { flex: 0 0 64px; }
.author-card__media img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.author-card__name { font-weight: 500; font-size: var(--fs-body); }
.author-card__name a { color: var(--ink); text-decoration: none; }
.author-card__name a:hover { color: var(--accent-ink); }
.author-card__role { font-size: var(--fs-small); color: var(--muted); }
.post__pager { display: grid; gap: var(--s-4); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .post__pager { grid-template-columns: 1fr 1fr; } }
.post__pager-link { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; font-weight: 500; }
.post__pager-link:hover { color: var(--accent-ink); }
.post__pager-link--next { text-align: right; align-items: flex-end; }
.related { border-top: 1px solid var(--line); }
.related__path { font-family: inherit; font-size: inherit; font-weight: inherit; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); margin-top: var(--section); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.pagination__pages { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; font-family: var(--font-mono-stack); font-size: var(--fs-nav); font-weight: 500; }
.pagination__pages a, .pagination__current { display: grid; place-items: center; min-width: 40px; height: 40px; text-decoration: none; color: var(--ink); border-radius: var(--r-1); }
.pagination__pages a:hover { background: var(--surface); }
.pagination__current { box-shadow: inset 0 -2px 0 var(--accent); }

/* ==========================================================================
   Contact / careers / generic
   ========================================================================== */
.contact__grid { display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 7fr 1fr 4fr; } .contact__rail { grid-column: 3; } }
.contact-form { max-width: 640px; }
.contact-form__actions { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.contact-form__status:empty, .newsletter-form__status:empty { display: none; }
.contact-form__status, .newsletter-form__status { font-size: var(--fs-small); color: var(--ink-2); }
.contact__rail { background: var(--surface); padding: var(--s-6); border-top: 3px solid var(--accent); align-self: start; }
.contact__rail .eyebrow { margin-bottom: var(--s-3); }
.contact__address.prose { color: var(--ink); }
.contact__address.prose h2, .contact__address.prose h3, .contact__address.prose h4 { font-size: var(--fs-h4); }
.narrow-page .section .container { max-width: calc(var(--container-text) + var(--gutter) * 2); }
.narrow-page .prose { max-width: none; line-height: 1.7; }
.narrow-page .prose > * + * { margin-top: 1.2em; }
.narrow-page .prose h2, .narrow-page .prose h3 { font-size: var(--fs-h3); }
.narrow-page .prose h2::before, .narrow-page .prose h3::before { content: ''; display: block; width: 32px; height: 1px; background: var(--line-strong); margin-bottom: var(--s-4); }
.narrow-page .image-block img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.narrow-page .prose ul { list-style: none; padding: 0; }
.narrow-page .prose li { padding: 10px 0 10px 24px; border-top: 1px solid var(--line); position: relative; }
.narrow-page .prose li::before { content: '/'; position: absolute; left: 0; color: var(--accent-ink); font-family: var(--font-mono-stack); font-weight: 500; }
.narrow-page .prose li:last-child { border-bottom: 1px solid var(--line); }
.narrow-page .prose ol { padding-left: 1.5em; }
.narrow-page .prose ol li { border: 0; padding: 4px 0; }
.narrow-page .prose ol li::before { content: none; }
.generic-page .section:first-child { padding-top: 0; }
.item-pager { display: grid; gap: var(--s-4); padding: var(--s-6) var(--gutter); border-top: 1px solid var(--line); margin-top: var(--s-6); }
@media (min-width: 640px) { .item-pager { grid-template-columns: 1fr 1fr; } }
.item-pager__link { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; font-weight: 500; }
.item-pager__link:hover { color: var(--accent-ink); }
.item-pager__link--next { text-align: right; align-items: flex-end; }
.item-pager__title { font-size: var(--fs-h3); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: var(--s-8); }
main:has(> .cta-band:last-child) + .site-footer { margin-top: 0; }
.prefooter { border-top: 1px solid var(--line); padding: var(--s-7) 0; }
.prefooter__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); font-size: var(--fs-lead); }
@media (min-width: 768px) { .prefooter__links { grid-template-columns: repeat(3, 1fr); } }
.prefooter__links .arrow-link { width: 100%; justify-content: space-between; padding-right: var(--s-5); color: var(--ink); }
.prefooter__links .arrow-link:hover { color: var(--accent-ink); }
.prefooter__links .arrow-link svg { width: 22px; height: 22px; }
.newsletter-strip { background: var(--dark); color: var(--on-dark); border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.newsletter-strip .prose, .newsletter-strip .newsletter-form__footnote, .newsletter-strip .newsletter-form__status { color: var(--on-dark-muted); }
.newsletter-strip .tick::after { background: var(--accent); }
.newsletter-strip .btn--primary { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--dark); }
.newsletter-strip .btn--primary:hover { background: var(--on-dark); border-color: var(--on-dark); }
.newsletter-strip__inner { display: grid; gap: var(--s-6); padding-block: var(--s-8); align-items: start; }
@media (min-width: 1024px) { .newsletter-strip__inner { grid-template-columns: 5fr 7fr; gap: var(--gap); } }
.newsletter-strip__title { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.newsletter-form__fields { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .newsletter-form__fields { grid-template-columns: 1fr 1fr; align-items: end; } }
.newsletter-form .field { gap: var(--s-2); margin: 0; min-width: 0; }
.newsletter-form input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--border-input); border-radius: var(--r-1); background: var(--bg); font: 400 16px/1.4 var(--font-sans-stack); color: var(--ink); }
.newsletter-form input:focus { outline: none; border-color: var(--ink); box-shadow: var(--shadow-focus); }
.newsletter-form .btn { min-height: 52px; white-space: nowrap; align-self: end; }
.newsletter-form__label { color: inherit; font-size: var(--fs-small); }
.newsletter-form__footnote { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); }
.newsletter-form__footnote p { margin: 0; }
.footer-mid { display: grid; gap: var(--s-8); padding: var(--s-8) 0; }
@media (min-width: 1024px) { .footer-mid:has(.badges) { grid-template-columns: 8fr 4fr; align-items: start; } }
.footer-nav { display: grid; gap: var(--s-6); }
@media (min-width: 640px) { .footer-nav { grid-template-columns: repeat(3, 1fr); } }
.footer-nav__title { font-size: var(--fs-nav); margin-bottom: var(--s-4); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-small); }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-ink); text-decoration: underline; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) { .badges { justify-content: flex-end; } }
.badges img { height: 72px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter 200ms, opacity 200ms; }
.badges li:hover img { filter: none; opacity: 1; }
.footer-band { background: var(--dark); color: var(--on-dark-muted); }
.footer-band__inner { display: grid; gap: var(--s-4); padding-block: var(--s-8); font-family: var(--font-mono-stack); font-size: var(--fs-eyebrow); line-height: 1.6; }
@media (min-width: 768px) { .footer-band__inner { grid-template-columns: auto 1fr auto; align-items: start; gap: var(--s-6); } }
.footer-band__legal p { margin: 0; }
.footer-band__legal p + p { margin-top: 6px; }
.footer-band a { color: var(--on-dark); text-decoration: none; }
.footer-band a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.footer-band__copy { margin: 0; color: var(--on-dark); }

/* Shared finishing details. */
.site-menu__link { letter-spacing: -0.035em; }
.site-menu__link:hover { background: var(--surface); }
.page-head__title, .service-hero__title, .case-study__title, .post__title { letter-spacing: -0.035em; }
.section-heading__title.tick::after { width: 48px; height: 3px; background: var(--accent); margin-top: var(--s-5); }
.cta-band:not(.cta-band--hero) { min-height: 440px; }
.cta-band:not(.cta-band--hero) .cta-band__inner { align-items: flex-start; text-align: left; }
.cta-band:not(.cta-band--hero) .cta-band__title { max-width: 12ch; }
.cta-band__bg::after { background: linear-gradient(90deg, rgba(11,20,23,.88), rgba(11,20,23,.35)); }
.cta-band .btn { gap: var(--s-6); }
.cta-band .btn svg { width: 20px; height: 20px; }
.footer-band__inner { font-size: 0.75rem; }
@media (max-width: 767px) {
  .blog-card--row .blog-card__media { flex-basis: 88px; }
  .prefooter__links > li + li { padding-top: var(--s-4); border-top: 1px solid var(--line); }
  .contact__rail { padding: var(--s-5); }
}
@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .site-logo img { width: 104px; }
  html:not([data-js]) .site-header__inner { align-items: flex-start; flex-wrap: wrap; padding-top: var(--s-4); }
  html:not([data-js]) .site-nav { flex-basis: 100%; }
  html:not([data-js]) .site-menu { width: 100%; }
}

/* Engine-only rules --------------------------------------------------------- */
/* A section split from the one above it (same Squarespace section, different column layout). */
.section--joined { padding-top: 0; margin-top: calc(var(--s-6) - var(--section)); }
.case-study__section.section--joined { margin-top: 0; }
/* Forms: honeypot, thank-you message after the /api/form redirect (?sent=<id>, shown by site.js). */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; margin-top: var(--s-4); font-weight: 500; color: var(--accent-ink); }
form.is-sent .form-success { display: block; }
.cf-turnstile { margin-top: var(--s-4); }
.newsletter-form .cf-turnstile { margin-top: 0; }
/* Footer: social icons sit in a row, not the column list layout. */
.footer-nav .social-links { flex-direction: row; flex-wrap: wrap; gap: var(--s-3); }
