/* ==========================================================================
   The Brandsmith — Site Stylesheet
   Brand tokens, typography, components, layout. No build step.
   ========================================================================== */

:root {
  --bg-primary: #f7f5f2;
  --bg-secondary: #efece8;
  --bg-card: #ffffff;
  --bg-dark: #0f1f38;
  --text-primary: #0f1f38;
  --text-secondary: #5a6a7a;
  --text-light: #8a949e;
  --accent: #c0392b;
  --accent-bright: #d94434;
  --accent-dark: #962d23;
  --border-light: rgba(15, 31, 56, 0.06);

  --border-mid: rgba(15, 31, 56, 0.12);
  --dark-border: rgba(255, 255, 255, 0.1);
  --dark-text: rgba(255, 255, 255, 0.72);
  --dark-dim: rgba(255, 255, 255, 0.4);

  --font-display: 'acumin-pro-wide', 'Outfit', sans-serif;   /* Adobe Fonts kit tni6mim */
  --font-ui: 'acumin-pro', 'Outfit', sans-serif;             /* regular-width Acumin (same kit, 400/700): button labels */
  --font-body: 'Outfit', sans-serif;

  --max-width: 1400px;
  --gutter: 3rem;
  --section-pad: 7rem;
  --nav-height: 78px;
  --radius-card: 6px;
  --radius-btn: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* entrances: quick start, long settle */
  --shadow-card: 0 18px 40px -18px rgba(15, 31, 56, 0.18);
  --shadow-stack: 0 -16px 40px -26px rgba(15, 31, 56, 0.32);   /* stacking cards: cast upward onto the card below */
  --bg-dark-card: #16263e;   /* opaque match for dark-section cards (--bg-dark lifted 3% toward white) */

  /* Foundation jack (logo symbol colors) */
  --jack-steel: #6f6f70;
  --jack-gear: #be3426;
  --jack-bay: var(--bg-primary);   /* background behind the jack, for its knockout outlines */
  --gear-one: var(--text-primary);   /* homepage meshing gears: 01 navy, 02 the logo's gear red */
  --gear-two: var(--jack-gear);

  /* Showcase: matches the studio-grey backdrop of the case study photography */
  --showcase-top: #f4f4f4;
  --showcase-bottom: #dcdcdd;
  --caption-bg: rgba(15, 31, 56, 0.4);   /* case study photo captions: navy box over the image */
  --photo-lift-shadow: rgba(15, 31, 56, 0.28);   /* shadow under a case study photo while it's lifted */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; border-radius: var(--radius-btn);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 980px; }

.section { padding: var(--section-pad) 0; position: relative; }
.section--secondary { background: var(--bg-secondary); }
.section--flush-bottom { padding-bottom: 0; }   /* ends on a full-width image that meets the next section */
.section--dark { background: var(--bg-dark); color: #fff; }
.section--tight { padding: 4.5rem 0; }
.section + .section--border { border-top: 1px solid var(--border-mid); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-primary);
  text-wrap: balance;   /* lines split evenly, so a last word never sits alone (Acumin Pro Wide wraps more) */
}
h1 { font-size: clamp(2.5rem, 4.76vw, 4.4625rem); }   /* 15% under the original 5.6vw / 5.25rem (84px → 71.4px max); the floor stays for small screens */
h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.3rem); letter-spacing: 0.04em; line-height: 1.25; }
h4 { font-size: 0.9rem; letter-spacing: 0.08em; }

/* Headline rule: light first line, heavy second line, line break between. */
.light, .heavy, .accent-word { display: block; text-wrap: balance; }   /* balance also covers light/heavy pairs outside headings (footer line) */
.light { font-weight: 200; color: var(--text-secondary); }
.heavy { font-weight: 800; color: var(--text-primary); }
.accent-word { font-weight: 800; color: var(--accent); }
.heavy .accent-word, .heavy .accent-inline { display: inline; color: var(--accent); }

/* Dark sections: dim-white light line, white heavy line. No red in headlines. */
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.hero--dark h1, .hero--dark h2,
.site-footer h3, .site-footer h4 { color: #fff; }
.section--dark .light, .hero--dark .light { color: var(--dark-dim); }
.section--dark .heavy, .hero--dark .heavy,
.section--dark .accent-word, .hero--dark .accent-word,
.section--dark .heavy .accent-word, .hero--dark .heavy .accent-word { color: #fff; }

.lead {
  font-size: clamp(1.125rem, 1.4vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 44rem;
}
.section--dark .lead, .hero--dark .lead { color: var(--dark-text); }
.prose p { color: var(--text-secondary); max-width: 42rem; }
.prose p + p { margin-top: 1.25rem; }
.prose p strong { color: var(--text-primary); }
.section--dark .prose p { color: var(--dark-text); }
.section--dark .prose p strong { color: #fff; }

/* Eyebrow */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-wrap: balance;   /* a long eyebrow that wraps splits evenly instead of leaving one word behind */
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}
.section-tag--plain::before { display: none; }
.section--dark .section-tag, .hero--dark .section-tag, .site-footer .section-tag { color: var(--accent-bright); }

.section-head { margin-bottom: 4rem; max-width: 56rem; }
.section-head h2 + .lead, .section-head h2 + p { margin-top: 1.5rem; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.section-head--split .lead { margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1.1rem 1.75rem;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(150, 45, 35, 0.6);
}

.btn-outline, .btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn-outline:hover, .btn-secondary:hover {
  background: var(--text-primary);
  color: #fff;
  transform: translateY(-2px);
}
.section--dark .btn-outline, .hero--dark .btn-outline,
.section--dark .btn-secondary, .hero--dark .btn-secondary {
  color: #fff; border-color: rgba(255, 255, 255, 0.45);
}
.section--dark .btn-outline:hover, .hero--dark .btn-outline:hover,
.section--dark .btn-secondary:hover, .hero--dark .btn-secondary:hover {
  background: #fff; color: var(--text-primary); border-color: #fff;
}
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.text-link:hover { gap: 0.8rem; color: var(--accent-dark); }
.section--dark .text-link { color: var(--accent-bright); }
.section--dark .text-link:hover { color: #fff; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on .site-nav itself would make it
   the containing block for the fixed mobile menu, collapsing the menu to the header's height. */
.site-nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 245, 242, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background-color 0.3s var(--ease);
}
.site-nav.is-scrolled { box-shadow: 0 8px 30px -20px rgba(15, 31, 56, 0.35); }
.site-nav.is-scrolled::before { background: rgba(247, 245, 242, 0.92); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.06em; line-height: 1; color: var(--text-primary);
  flex-shrink: 0;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 4px; background: var(--bg-dark);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ''; position: absolute; left: 7px; right: 7px; bottom: 8px; height: 3px; background: var(--accent);
}
.logo-mark span {
  font-weight: 800; font-size: 0.95rem; color: #fff; letter-spacing: 0; transform: translateY(-2px);
}
.logo-text { display: flex; flex-direction: column; gap: 3px; font-size: 0.95rem; }
.logo-text .the { font-weight: 200; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--text-secondary); }
.logo-text .name { font-weight: 800; }

.nav-links {
  display: flex; align-items: center; gap: 2.25rem; margin-left: auto;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"]::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 0.95rem 1.4rem; }
.nav-cta-wrap { display: flex; align-items: center; gap: 1rem; }
.nav-links .nav-mobile-cta { display: none; font-family: var(--font-ui); letter-spacing: 0.08em; }   /* a button: beats the nav-link type above */

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--border-mid); border-radius: var(--radius-btn);
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

main { padding-top: var(--nav-height); }

/* ---------- Hero ---------- */
.hero { padding: 8rem 0 7rem; position: relative; overflow: hidden; }
.hero--home { padding: 9rem 0 8rem; min-height: calc(92vh - var(--nav-height)); display: flex; align-items: center; }
.hero--home .container { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; }
.hero--home h1 { max-width: none; font-size: clamp(2.6rem, 5.44vw, 5.3125rem); }   /* 15% under the original 6.4vw / 6.25rem (100px → 85px max); phones keep 2.6rem */
.hero .lead { margin-top: 2.25rem; }
.hero .btn-group { margin-top: 2.75rem; }
.hero--dark { background: var(--bg-dark); color: #fff; }
.hero--dark::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}
.hero--dark .container { position: relative; }

.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.hero-meta {
  margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--border-mid);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.hero-meta dt {
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.4rem;
}
.hero-meta dd { font-weight: 400; color: var(--text-primary); font-size: 0.98rem; line-height: 1.5; }
/* Client website links (case studies): a red underline and a ↗ that nudges out on hover. */
.hero-meta dd a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  text-decoration-color: var(--accent); transition: text-decoration-color 0.25s var(--ease);
}
/* The ↗ is drawn (Outfit has no arrow glyph; the fallback came out tiny and faint). */
.hero-meta dd a .ext {
  display: inline-block; width: 0.6em; height: 0.6em; margin-left: 0.35em; vertical-align: 0.02em;
  background-color: var(--accent); transition: transform 0.25s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Cpath d='M2 10 10 2M3.6 2H10v6.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Cpath d='M2 10 10 2M3.6 2H10v6.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-meta dd a:hover .ext, .hero-meta dd a:focus-visible .ext { transform: translate(2px, -2px); }
.hero-meta dd a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero--dark .hero-meta dd a { text-decoration-color: var(--accent-bright); }
.hero--dark .hero-meta dd a .ext { background-color: var(--accent-bright); }
.hero--dark .hero-meta dd a:focus-visible { outline-color: var(--accent-bright); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 2rem;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.hero--dark .breadcrumb { color: rgba(255,255,255,0.45); }
.hero--dark .breadcrumb a:hover { color: #fff; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.split--wide-left { grid-template-columns: 1.2fr 1fr; }
.split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
.sticky { position: sticky; top: calc(var(--nav-height) + 2.5rem); }

/* Related links (e.g. services used in a case study) */
.related-links { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-mid); }
.related-label { display: block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1rem; }
.answer a, .prose a:not(.btn):not(.text-link), .section-foot p a:not(.btn):not(.text-link) { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.answer a:hover, .prose a:not(.btn):not(.text-link):hover, .section-foot p a:not(.btn):not(.text-link):hover { color: var(--accent-dark); }
.section--dark .answer a, .section--dark .prose a:not(.btn):not(.text-link) { color: var(--accent-bright); }
.related-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.5rem 2.25rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(15,31,56,0.1); }
.card h3 { margin-bottom: 1rem; }
.card p { color: var(--text-secondary); font-size: 1rem; }
.card p + p { margin-top: 0.9rem; }
.card .card-num {
  font-family: var(--font-display); font-weight: 200; font-size: 0.8rem; letter-spacing: 0.18em;
  color: var(--accent); margin-bottom: 1.75rem; display: block;
}
.card .card-foot { margin-top: auto; padding-top: 2rem; }
.card-list { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.card-list li {
  font-size: 0.95rem; color: var(--text-secondary); padding-left: 1.25rem; position: relative; line-height: 1.5;
}
.card-list li::before {
  content: ''; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1.5px; background: var(--accent);
}
a.card { color: inherit; }
.card--link h3 { transition: color 0.25s var(--ease); }
.card--link:hover h3 { color: var(--accent); }

.section--dark .card {
  background: rgba(255,255,255,0.03); border-color: var(--dark-border);
}
.section--dark .card:hover { background: rgba(255,255,255,0.06); box-shadow: none; border-color: rgba(255,255,255,0.18); }
.section--dark .card p, .section--dark .card-list li { color: var(--dark-text); }
.section--dark .card .card-num { color: var(--accent-bright); }
.section--dark .card-list li::before { background: var(--accent-bright); }

/* Icon square */
.icon-box {
  width: 48px; height: 48px; border-radius: 4px; display: grid; place-items: center;
  background: var(--bg-primary); color: var(--accent); margin-bottom: 1.75rem;
  border: 1px solid var(--border-light);
}
.icon-box svg { width: 22px; height: 22px; }
.section--dark .icon-box { background: rgba(255,255,255,0.05); color: var(--accent-bright); border-color: var(--dark-border); }

/* ---------- Problem / symptom list ---------- */
.symptoms { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border-mid); }
.symptom {
  padding: 2.25rem 2rem 2.25rem 0; border-bottom: 1px solid var(--border-mid);
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem;
}
.symptom:nth-child(odd) { border-right: 1px solid var(--border-mid); }
.symptom:nth-child(even) { padding-left: 2rem; }
.symptom .n {
  font-family: var(--font-display); font-weight: 200; font-size: 0.85rem; color: var(--accent); letter-spacing: 0.12em; padding-top: 0.2rem;
}
.symptom h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.symptom p { color: var(--text-secondary); font-size: 0.98rem; }

/* ---------- Statement band ---------- */
.statement {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}
.statement .light { color: var(--text-secondary); }

/* ---------- Model comparison ---------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.compare .card.is-featured { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }
.compare .card.is-featured h3 { color: #fff; }
.compare .card.is-featured p, .compare .card.is-featured .card-list li { color: var(--dark-text); }
.compare .card.is-featured .card-list li::before { background: var(--accent-bright); }
.compare .card.is-featured .card-num { color: var(--accent-bright); }
.compare .label {
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 0.75rem; display: block;
}
.compare .card.is-featured .label { color: var(--accent-bright); }

/* ---------- Methodology ---------- */
.method { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dark-border); }
.method-step {
  padding: 3rem 2.5rem 0 0; position: relative;
}
.method-step + .method-step { padding-left: 2.5rem; border-left: 1px solid var(--dark-border); }
.method-step::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--accent-bright);
}
.method-step + .method-step::before { left: 2.5rem; }
.method-step .step-num {
  font-family: var(--font-display); font-weight: 200; font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--dark-dim); display: block; margin-bottom: 1rem;
}
.method-step h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); color: #fff; margin-bottom: 1.25rem; letter-spacing: 0.04em; }
.method-step p { color: var(--dark-text); font-size: 1rem; }
.method-step .card-list { margin-top: 1.75rem; }
.method-step .card-list li { color: var(--dark-text); }
.method-step .card-list li::before { background: var(--accent-bright); }
.method-arrow { color: var(--accent-bright); font-weight: 200; margin: 0 0.4em; }

.method--light { border-top-color: var(--border-mid); }
.method--light .method-step + .method-step { border-left-color: var(--border-mid); }
.method--light .method-step::before { background: var(--accent); }
.method--light .method-step h3 { color: var(--text-primary); }
.method--light .method-step p, .method--light .method-step .card-list li { color: var(--text-secondary); }
.method--light .method-step .step-num { color: var(--text-light); }

/* ---------- Work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.work-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.work-visual {
  aspect-ratio: 16 / 9; background: var(--bg-dark); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 2rem;
}
.work-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  transition: transform 0.8s var(--ease);
}
.work-card:hover .work-visual::before { transform: scale(1.06); }
.work-visual .wv-mark {
  position: absolute; right: 2rem; top: 2rem; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem); line-height: 0.9; color: rgba(255,255,255,0.07); text-transform: uppercase;
  letter-spacing: 0.02em; text-align: right;
}
.work-visual .wv-bar { position: absolute; left: 2rem; top: 2rem; width: 40px; height: 3px; background: var(--accent-bright); }
.work-visual .wv-stat { position: relative; color: #fff; }
.work-visual .wv-stat strong {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: 0.02em;
}
.work-visual .wv-stat span {
  font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,0.55); display: block; margin-top: 0.6rem;
}
.work-visual--b { background: #13284a; }
.work-visual--c { background: #182c45; }
.work-visual--d { background: #0b1729; }
/* Photo variant: a case study image fills the card visual. */
.work-visual--photo { padding: 0; background: var(--showcase-bottom); }
.work-visual--photo::before { content: none; }
.work-visual--photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.work-card:hover .work-visual--photo img { transform: scale(1.04); }
.work-body { padding: 2.25rem; display: flex; flex-direction: column; flex: 1; }
.work-body .meta {
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 0.9rem;
}
.work-body h3 { font-size: clamp(1.2rem, 1.7vw, 1.55rem); margin-bottom: 0.9rem; transition: color 0.25s var(--ease); }
.work-card:hover .work-body h3 { color: var(--accent); }
.work-body p { color: var(--text-secondary); font-size: 1rem; }
.work-body .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45rem 0.7rem; border: 1px solid var(--border-mid); border-radius: 3px; color: var(--text-secondary);
}
.work-body .text-link { margin-top: auto; padding-top: 1.75rem; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--bg-secondary); border-bottom: 1px solid var(--border-light); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 3.5rem 2rem 3.5rem 0; }
.stat + .stat { padding-left: 2rem; border-left: 1px solid var(--border-mid); }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 3.4vw, 3rem);   /* sized for Acumin Pro Wide; matches .hero-stats dt */
  line-height: 1; color: var(--text-primary); letter-spacing: 0.01em; text-wrap: balance;
}
.stat strong em { font-style: normal; color: var(--accent); }
.stat span { display: block; margin-top: 0.9rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; max-width: 16rem; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Narrative (case studies) ---------- */
.narrative { display: grid; gap: 0; }
.chapter {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; padding: 5rem 0;
  border-top: 1px solid var(--border-mid);
}
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter:last-child { padding-bottom: 0; }
.chapter-label { position: relative; }
.chapter-label .num {
  font-family: var(--font-display); font-weight: 200; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--accent);
  display: block; margin-bottom: 1rem;
}
.chapter-label .num.section-tag {
  display: flex; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; margin-bottom: 1.5rem;
}
.chapter-label h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }

/* ---------- Quote ---------- */
.quote-block { text-align: left; }
.quote-block blockquote {
  font-family: var(--font-body); font-weight: 200; font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.4; color: #fff; max-width: 60rem; position: relative; padding-left: 3rem;
}
.quote-block blockquote::before {
  content: ''; position: absolute; left: 0; top: 0.4em; bottom: 0.4em; width: 3px; background: var(--accent-bright);
}
.quote-block figcaption {
  margin-top: 2.5rem; padding-left: 3rem; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; color: var(--dark-text);
}
.quote-block figcaption span { display: block; font-weight: 200; color: var(--dark-dim); margin-top: 0.4rem; }

/* ---------- Pull quote (light, centered) ---------- */
.pull-quote { max-width: 58rem; margin: 0 auto; text-align: center; }
.pull-quote-mark {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 5rem; line-height: 0.8;
  color: var(--accent); opacity: 0.25; margin-bottom: 0.5rem;
}
.pull-quote blockquote p {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  line-height: 1.42; color: var(--text-primary);
}
.pull-quote figcaption { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.pull-quote-name {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; font-weight: 800; color: var(--text-primary);
}
.pull-quote-title { font-size: 0.9rem; font-weight: 300; color: var(--text-secondary); }

/* ---------- Client logo bar ---------- */
.logo-bar {
  background: var(--bg-card); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  padding: 3.75rem 0 4rem; --logo-scale: 1;
}
.logo-bar .section-tag { display: flex; justify-content: center; margin: 0 0 2.5rem; }
.logo-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  --row-gap: 2.5rem; gap: var(--row-gap) 3rem;
}
.logo-list li { display: flex; align-items: center; justify-content: center; flex: 0 1 auto; min-width: 0; }
.logo-list img {
  display: block; width: calc(var(--w, 6rem) * var(--logo-scale)); max-width: 100%; height: auto;
  filter: grayscale(1) brightness(0.82) contrast(1.25); opacity: 0.62; transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.logo-list li:hover img { filter: none; opacity: 1; }
/* Desktop: one row edge to edge inside 125px side padding. If the row runs out
   of room, every logo shrinks by the same proportion instead of wrapping. */
@media (min-width: 1200px) {
  .logo-bar .container { max-width: none; padding: 0 125px; }
  .logo-list { flex-wrap: nowrap; justify-content: space-between; column-gap: 2rem; }
}
/* Too narrow for one row: two even rows of four. */
@media (min-width: 641px) and (max-width: 1199px) {
  .logo-list { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-evenly; justify-items: center; }
}
@media (max-width: 900px) {
  .logo-bar { --logo-scale: 0.82; padding: 3rem 0 3.25rem; }
  .logo-list { --row-gap: 2rem; column-gap: 2.5rem; }
}
@media (max-width: 640px) {
  .logo-bar { --logo-scale: 0.68; }
  .logo-list { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; justify-items: center; gap: 2rem 2.5rem; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border-mid); }
.faq details { border-bottom: 1px solid var(--border-mid); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.75rem 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.05em; font-size: clamp(0.95rem, 1.2vw, 1.08rem); line-height: 1.35; color: var(--text-primary);
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .plus {
  width: 28px; height: 28px; flex-shrink: 0; position: relative; border: 1px solid var(--border-mid); border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity 0.2s; }
.faq details[open] summary .plus { background: var(--accent); border-color: var(--accent); color: #fff; }
.faq details[open] summary .plus::after { opacity: 0; }
.faq .answer { padding: 0 4rem 2rem 0; color: var(--text-secondary); max-width: 52rem; }
.faq .answer p + p { margin-top: 0.9rem; }
/* Open: the plus turns over into a minus (and back while closing, see main.js). */
.faq details[open] summary .plus { transform: rotate(180deg); }
.faq details.is-closing summary .plus { transform: none; background: transparent; border-color: var(--border-mid); color: inherit; }
.faq details.is-closing summary .plus::after { opacity: 1; }
/* Animated FAQs (main.js adds .is-animated): each row rises in through the reveal system,
   its rule draws across just behind it, and the button pops in last. */
.js .faq.is-animated details { border-bottom: 0; position: relative; }
.js .faq.is-animated details::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--border-mid); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.js .faq.is-animated details.is-visible::after {
  transform: scaleX(1);
  transition: transform 1.1s var(--ease-out) calc(var(--reveal-delay, 0ms) + 120ms);
}
.js .faq.is-animated summary .plus { scale: 0.4; opacity: 0; transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), scale 0.4s var(--ease), opacity 0.3s var(--ease); }
.js .faq.is-animated details.is-visible summary .plus {
  scale: 1; opacity: 1;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    scale 0.7s var(--ease-out) calc(var(--reveal-delay, 0ms) + 300ms), opacity 0.5s var(--ease) calc(var(--reveal-delay, 0ms) + 300ms);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-dark); color: #fff; padding: 7rem 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ''; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(217, 68, 52, 0.12), transparent 70%); pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: end; }
.cta-band h2 { color: #fff; }
.cta-band .light { color: var(--dark-dim); }
.cta-band .heavy { color: #fff; }
.cta-band p { color: var(--dark-text); max-width: 32rem; }
.cta-band .btn-group { margin-top: 2rem; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.45); }
.cta-band .btn-outline:hover { background: #fff; color: var(--text-primary); border-color: #fff; }
.closing-line {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700;
  color: var(--accent-bright); margin-bottom: 1.5rem; display: block;
}

/* ---------- Founder ---------- */
.founder-card {
  background: var(--bg-dark); color: #fff; border-radius: var(--radius-card); padding: 3rem; position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end;
}
.founder-card::before {
  content: 'MS'; position: absolute; top: 1.5rem; right: 2rem; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 14vw, 12rem); line-height: 1; color: rgba(255,255,255,0.05); letter-spacing: 0;
}
.founder-card::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.founder-card > * { position: relative; z-index: 1; }
.founder-card .role {
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-bright);
}
.founder-card h3 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0.75rem 0 1rem; }
.founder-card p { color: var(--dark-text); font-size: 0.98rem; }

.principles { display: grid; gap: 0; border-top: 1px solid var(--border-mid); }
.principle { display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--border-mid); }
.principle .n { font-family: var(--font-display); font-weight: 200; color: var(--accent); letter-spacing: 0.12em; font-size: 0.85rem; padding-top: 0.15rem; }
.principle h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.principle p { color: var(--text-secondary); font-size: 1rem; }

/* ---------- Timeline / facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.fact { border-top: 2px solid var(--accent); padding-top: 1.5rem; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; }
.fact span { display: block; margin-top: 0.5rem; color: var(--text-secondary); font-size: 0.95rem; }
.section--dark .fact { border-top-color: var(--accent-bright); }
.section--dark .fact strong { color: #fff; }
.section--dark .fact span { color: var(--dark-text); }

/* ---------- Services overview rows ---------- */
.service-rows { border-top: 1px solid var(--border-mid); }
.service-row {
  display: grid; grid-template-columns: 5rem 1fr 1.2fr auto; gap: 3rem; align-items: start; padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-mid); transition: background-color 0.3s var(--ease);
}
.service-row .n { font-family: var(--font-display); font-weight: 200; font-size: 0.85rem; letter-spacing: 0.18em; color: var(--accent); padding-top: 0.6rem; }
.service-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: 0.03em; }
.service-row h3 .light { font-size: 0.5em; letter-spacing: 0.14em; margin-bottom: 0.6rem; }
.service-row p { color: var(--text-secondary); }
.service-row .card-list { margin-top: 1.25rem; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.service-row .btn { margin-top: 0.4rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 3rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-primary);
}
.field label .opt { font-weight: 200; color: var(--text-light); letter-spacing: 0.1em; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border-mid); border-radius: var(--radius-btn);
  padding: 0.95rem 1.1rem; font-size: 1rem; font-weight: 400; color: var(--text-primary);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230f1f38' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.75rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-light); font-weight: 300; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--text-primary); background: #fff; box-shadow: 0 0 0 3px rgba(15,31,56,0.06);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent); }
.field .error-msg { font-size: 0.82rem; color: var(--accent); display: none; }
.field.has-error .error-msg { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.form-foot p { font-size: 0.88rem; color: var(--text-light); max-width: 26rem; }
.form-status { margin-top: 1.25rem; font-size: 0.95rem; color: var(--accent); display: none; }
.form-status.is-visible { display: block; }
.hidden-field { position: absolute; left: -9999px; }
button[disabled] { opacity: 0.6; cursor: progress; transform: none !important; }

/* Option groups (audit) */
fieldset.field { border: 0; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; margin-top: 0.25rem; }
.options--3 { grid-template-columns: repeat(3, 1fr); }
.options--5 { grid-template-columns: repeat(5, 1fr); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span {
  display: flex; align-items: center; gap: 0.7rem; min-height: 100%;
  padding: 0.9rem 1rem; border: 1px solid var(--border-mid); border-radius: var(--radius-btn); background: var(--bg-primary);
  font-size: 0.95rem; line-height: 1.35; color: var(--text-secondary); cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.option span::before {
  content: ''; width: 14px; height: 14px; flex-shrink: 0; border: 1.5px solid var(--border-mid); border-radius: 50%;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.option input[type="checkbox"] + span::before { border-radius: 3px; }
.option input:checked + span { border-color: var(--text-primary); background: #fff; color: var(--text-primary); }
.option input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2.5px #fff; }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.options--5 .option span { justify-content: center; flex-direction: column; text-align: center; gap: 0.35rem; font-size: 0.85rem; }
.options--5 .option span::before { display: none; }
.options--5 .option span b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text-primary); }
.scale-legend { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-light); margin-top: 0.4rem; }

.form-step { border-top: 1px solid var(--border-mid); padding-top: 2.5rem; margin-top: 2.5rem; }
.form-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-step-head { display: flex; gap: 1.25rem; align-items: baseline; margin-bottom: 1.75rem; }
.form-step-head .n { font-family: var(--font-display); font-weight: 200; color: var(--accent); letter-spacing: 0.16em; font-size: 0.85rem; }
.form-step-head h3 { font-size: 1.05rem; }
.form-step > .form-grid + .form-grid, .form-step > .field + .field { margin-top: 1.5rem; }

/* Stepped audit: one question per screen (enabled by main.js) */
.step-progress { display: none; }
.is-stepped .step-progress { display: block; margin-bottom: 2.5rem; }
.step-count {
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.75rem;
}
.step-bar { height: 3px; background: var(--border-mid); border-radius: 3px; overflow: hidden; }
.step-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.35s var(--ease); }
.step-nav { display: none; }
.is-stepped .step-nav { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.step-nav [hidden] { display: none; }
.step-nav .step-next { margin-left: auto; }
.is-stepped .form-step { display: none; border-top: 0; padding-top: 0; margin-top: 0; }
.is-stepped .form-step.is-current { display: block; animation: step-in 0.35s var(--ease); }
.is-stepped .form-step-head h3:focus { outline: none; }
.is-stepped:not(.is-last-step) .form-foot { display: none; }
.is-stepped.is-last-step .step-nav + .form-foot { margin-top: 1.5rem; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .is-stepped .form-step.is-current { animation: none; }
  .step-bar span { transition: none; }
}

/* Thank-you state */
.thanks { display: none; text-align: left; padding: 1rem 0; }
.thanks.is-visible { display: block; }
.thanks h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
.thanks p { color: var(--text-secondary); max-width: 34rem; }
.thanks p + p { margin-top: 1rem; }
.thanks .btn-group { margin-top: 2rem; }
.thanks-mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 2rem;
}
.form-wrap.is-sent form { display: none; }

/* Contact aside */
.contact-aside { display: grid; gap: 2.5rem; }
.contact-item h3 { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--text-light); margin-bottom: 0.6rem; font-weight: 700; }
.contact-item a.big {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 1.7vw, 1.45rem); letter-spacing: 0.01em;
  color: var(--text-primary); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; transition: color 0.2s; word-break: break-all;
}
.contact-item a.big:hover { color: var(--accent); }
.contact-item p { color: var(--text-secondary); }
.notice {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border: 1px dashed var(--border-mid); border-radius: var(--radius-card); background: var(--bg-secondary);
}
.notice .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 0.55rem; flex-shrink: 0; animation: pulse 2s infinite; }
.notice strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.14em; margin-bottom: 0.3rem; }
.notice p { font-size: 0.95rem; color: var(--text-secondary); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Audit diagnostic areas ---------- */
.diag-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.diag-grid .card { grid-column: span 2; }
.diag-grid .card:nth-child(4) { grid-column: 2 / span 2; }
.diag-grid .card:nth-child(5) { grid-column: 4 / span 2; }
.diag-grid .card .q { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-light); font-size: 0.92rem; color: var(--text-primary); font-weight: 400; font-style: italic; }

.bridge { text-align: center; }
.bridge .statement { max-width: 22ch; margin: 0 auto; }
.bridge p { margin: 2rem auto 0; max-width: 40rem; color: var(--text-secondary); }
/* Bridge with copy on the left and an illustration flush on the section's bottom edge */
.bridge--figure { text-align: left; padding-bottom: 0; overflow: hidden; }
.bridge--figure .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: end; }
.bridge--figure .bridge-copy { align-self: center; padding-bottom: var(--section-pad); }
.bridge--figure .statement { margin: 0; }
.bridge--figure p { margin: 2rem 0 0; }
.bridge-figure { margin: 0; }
.bridge-figure img { display: block; width: 100%; height: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #fff; padding: 6rem 0 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--dark-border); }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { background: #fff; }
.footer-brand .logo-mark span { color: var(--bg-dark); }
.footer-brand .logo-text .the { color: var(--dark-dim); }
.footer-brand p { margin-top: 1.75rem; color: var(--dark-text); max-width: 26rem; font-size: 0.98rem; }
.footer-brand .footer-line {
  margin-top: 1.75rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15; font-size: 1.1rem;
}
.footer-brand .footer-line .light { color: var(--dark-dim); }
.footer-brand .footer-line .heavy { color: #fff; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; color: var(--accent-bright); margin-bottom: 1.5rem;
}
.footer-col ul { display: grid; gap: 0.85rem; }
.footer-col a { color: var(--dark-text); font-size: 0.98rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 2rem;
  font-size: 0.85rem; color: var(--dark-dim);
}
.footer-bottom a { color: var(--dark-text); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Case study showcase (full-viewport, scroll-advanced slider) ----------
   Markup: section.showcase[data-showcase] > .showcase-stage > figure.showcase-slide (img).
   Without JS it renders as stacked full-width images. main.js adds .is-enhanced,
   which pins the stage for one viewport of scroll per slide. */
.showcase { position: relative; background: linear-gradient(180deg, var(--showcase-top), var(--showcase-bottom)); }
.showcase-slide { position: relative; margin: 0; }
.showcase-slide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.showcase--wide .showcase-slide img { aspect-ratio: 16 / 9; } /* 16:9 mockups and event photography */
.showcase-slide--wide img { aspect-ratio: 16 / 9; } /* a single 16:9 slide inside a 4:3 showcase */
.showcase-slide--natural img { aspect-ratio: auto; } /* keeps panoramic slides uncropped in the stacked fallback */
.showcase-ui { display: none; }

/* Enhanced: pinned stage */
.showcase.is-enhanced { height: calc(var(--slides, 4) * 100vh); height: calc(var(--slides, 4) * 100svh); }
.showcase.is-enhanced .showcase-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}
.showcase.is-enhanced .showcase-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.showcase.is-enhanced .showcase-slide.is-active {
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity 0.9s var(--ease), visibility 0s;
}
.showcase.is-enhanced .showcase-slide img {
  /* Fills the stage, anchored to the bottom so cropping only ever trims the top of the photo
     and the client mark near its bottom edge stays in view. */
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  object-fit: cover; object-position: center bottom;
  transform: scale(1.04); transform-origin: center bottom; transition: transform 1.6s var(--ease);
}
.showcase.is-enhanced .showcase-slide.is-active img { transform: scale(1); }

.showcase.is-enhanced .showcase-ui {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%);
}
.showcase-count { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--text-primary); }
.showcase-count .total { color: var(--text-light); }
.showcase-dots { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; }
.showcase-dots button {
  display: block; width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--text-primary); background: transparent; transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.showcase-dots button:hover { transform: scale(1.25); }
.showcase-dots button[aria-current="true"] { background: var(--accent); border-color: var(--accent); }
.showcase-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.showcase-progress {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: var(--border-mid);
}
.showcase-progress span {
  display: block; height: 100%; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--progress, 0));
}

/* Portrait screens: covering would crop most of the photo's width, so show it whole below the nav */
@media (max-aspect-ratio: 5/4) {
  .showcase.is-enhanced .showcase-slide img {
    top: var(--nav-height); height: calc(100% - var(--nav-height));
    object-fit: contain; object-position: center 55%; transform-origin: center;
  }
}
@media (max-width: 640px) {
  .showcase.is-enhanced .showcase-ui { display: none; }
}

/* ---------- Case study figures (images placed through the story) ----------
   figure.case-figure > .case-figure-frame > img, then a figcaption (label + one line) that
   sits on the photo in a small navy box, just in from the bottom-left corner.
   --bleed runs the full width of the window. --stagger sits between two .chapter blocks of a
   .narrative and breaks out of the text grid: --left past its left edge (reaching across to
   where the prose column starts), --right the mirror image. Shown whole, never cropped. With
   .reveal (the full-width ones), each image unrolls from its top edge and settles from a
   slight zoom as it crosses the reveal line, then the caption slides in. */
.case-figure { position: relative; margin: 0; --cap-inset: clamp(0.75rem, 1.6vw, 1.5rem); }
.case-figure-frame { position: relative; overflow: hidden; background: var(--bg-secondary); }
.case-figure-frame img { display: block; width: 100%; height: auto; }
.case-figure figcaption {
  position: absolute; z-index: 1; left: var(--cap-inset); bottom: var(--cap-inset);
  display: flex; flex-direction: column; gap: 0.3rem;
  max-width: min(24rem, calc(100% - 2 * var(--cap-inset)));
  padding: 0.85rem 1.1rem 0.9rem; background: var(--caption-bg);
  /* Frosted: blurs, dims and greys what shows through, so the 40% navy still reads as dark
     blue (and the red label holds up) over the light mockup backdrops, not as a muddy grey. */
  -webkit-backdrop-filter: blur(16px) brightness(0.5) saturate(0.6);
  backdrop-filter: blur(16px) brightness(0.5) saturate(0.6);
  font-size: 0.9rem; line-height: 1.45; color: #fff;
}
.case-figure-label {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-bright);
}
/* Full width: the caption lines up with the text column's left edge. */
.case-figure--bleed { --cap-inset: clamp(1rem, 2.5vw, 2.5rem); }
.case-figure--bleed figcaption { left: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter))); }
.case-figure--after { margin-top: 5rem; }            /* closes a section's story */
.case-figure--trim-top img { margin-top: -0.3%; }    /* hides a sliver of stray edge in the photo's top rows */

/* Staggered. --out is how far past the text grid it reaches: 60% of the margin beside the
   container. From there it runs 65% of the way across the grid, a good way into the prose
   column (which starts at 40% + 3rem: the chapters' grid is 0.8fr | 5rem | 1.2fr). The image
   itself divides the two chapters, so the next chapter drops its rule. Staggered photos don't
   use .reveal: main.js sets them down "on the table" as they scroll through. */
.case-figure--stagger {
  --out: calc((100cqw - 100%) / 2 * 0.6);   /* cqw: the section's width, which excludes the scrollbar */
  width: calc(65% + var(--out));
  --cap-inset: clamp(0.75rem, 1.4vw, 1.25rem);
}
.case-figure--left { justify-self: start; margin-left: calc(-1 * var(--out)); }
.case-figure--right { justify-self: end; margin-right: calc(-1 * var(--out)); }
.case-figure--stagger + .chapter { border-top: 0; }
.case-figure--stagger figcaption { max-width: min(19rem, calc(100% - 2 * var(--cap-inset))); padding: 0.7rem 0.95rem 0.75rem; font-size: 0.85rem; }
.section:has(.case-figure--stagger) { container-type: inline-size; overflow-x: clip; }

.js .case-figure.reveal { opacity: 1; transform: none; }   /* the figure stays put; its parts move */
/* The mask opens downward from the image's top edge: that edge is what's on screen when the
   figure crosses the reveal line (opening from the bottom would play mostly off screen). */
.js .case-figure.reveal .case-figure-frame { clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--ease); }
.js .case-figure.reveal img { scale: 1.12; transform-origin: center top; transition: scale 0.5s var(--ease); }
.js .case-figure.reveal figcaption { opacity: 0; translate: -16px 0; transition: opacity 0.4s var(--ease), translate 0.4s var(--ease); }
/* Staggered photos aren't revealed; main.js moves the whole block ("laid on the table", see
   there) and sets --lift (0 flat on the table, 1 fully lifted) for the shadow under it. */
.case-figure.is-tabled { isolation: isolate; will-change: transform; }
.case-figure.is-tabled::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: 0 34px 70px -18px var(--photo-lift-shadow), 0 14px 28px -12px var(--photo-lift-shadow);
  opacity: var(--lift, 0);
}
.js .case-figure.reveal.is-visible .case-figure-frame {
  clip-path: inset(0); transition: clip-path 1.2s var(--ease-out) var(--reveal-delay, 0ms);
}
.js .case-figure.reveal.is-visible img { scale: 1; transition: scale 1.8s var(--ease-out) var(--reveal-delay, 0ms); }
.js .case-figure.reveal.is-visible figcaption {
  opacity: 1; translate: none;
  transition: opacity 0.8s var(--ease) calc(var(--reveal-delay, 0ms) + 450ms), translate 0.8s var(--ease) calc(var(--reveal-delay, 0ms) + 450ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .case-figure.reveal .case-figure-frame { clip-path: none; }
  .js .case-figure.reveal img { scale: none; }
  .js .case-figure.reveal figcaption { opacity: 1; translate: none; }
}
@media (max-width: 1024px) {
  .case-figure--after { margin-top: 3.5rem; }   /* matches the chapters' padding */
  /* One text column: staggered images run from their window edge across most of the width. */
  .case-figure--stagger { --out: calc((100cqw - 100%) / 2); width: 80cqw; }
}
@media (max-width: 640px) {
  /* Phones: a box on the photo would cover too much of it, so the caption becomes a navy strip
     attached under the photo. Solid navy: the 40% tint over the light page would read as grey. */
  .case-figure--stagger { width: 88cqw; }
  .case-figure figcaption, .case-figure--stagger figcaption {
    position: static; max-width: none; padding: 0.75rem var(--gutter) 0.8rem;
    background: var(--bg-dark); -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 0.85rem;
  }
  .case-figure--right figcaption { padding-left: 0.9rem; }
  .case-figure-label { font-size: 0.64rem; }
}

/* ---------- Reveal on scroll ---------- */
/* main.js sets --reveal-delay so elements arriving together stagger in reading order.
   Entrances use the .is-visible transition; the quicker base transition plays the
   reverse when an element leaves through the bottom while scrolling up. */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.no-js .reveal { opacity: 1; transform: none; }

/* Headlines: main.js splits them into words and triggers each visual line on its own,
   so every line rises out of its mask in turn and, scrolling back up, drops back into it. */
.js .line-reveal .hl-word {
  display: inline-block;
  clip-path: inset(100% 0 0 0);
  transform: translateY(0.45em);
  transition: clip-path 0.5s var(--ease), transform 0.5s var(--ease);
}
.js .line-reveal .hl-word.is-visible {
  clip-path: inset(0); transform: none;
  transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .line-reveal .hl-word.is-visible.is-done { clip-path: none; }

/* Stacking cards ([data-stack]): main.js turns the card grid into full-width panels that
   stick one over another as you scroll, each leaving its header row (number + title) showing
   as a tab. --stack-top, --stack-tab and --stack-h come from main.js; --i and --n per card.
   Earlier cards are taller by the tabs above them and every card (the last too) has the same
   bottom margin, so all their margin boxes end together. A spacer after the last card (margins
   and padding don't count toward sticky limits) holds the finished stack before it releases as one. */
.grid.is-stack, .diag-grid.is-stack { display: block; }
/* The section's header pins above its stack (main.js sets top and the release margin). */
.is-stack-head { position: sticky; z-index: 0; }
.is-stack > .stack-hold { height: 10vh; }
.is-stack > .card {
  position: sticky;
  top: calc(var(--stack-top, 100px) + var(--i) * var(--stack-tab, 88px));
  z-index: calc(var(--i) + 1);
  min-height: calc(var(--stack-h, 360px) + (var(--n) - 1 - var(--i)) * var(--stack-tab, 88px));
  margin-bottom: 1.5rem;
  display: grid; grid-template-columns: auto 1fr; column-gap: 2rem; align-content: start;
  padding: 1.6rem 2.5rem 2.5rem;
  transform-origin: 50% 0;
  /* The card itself is a transparent shell (taller than its content, for the aligned
     release); the visible panel is drawn by ::before at the card's own content height. */
  background: transparent; border-color: transparent; box-shadow: none;
}
.is-stack > .card:hover { transform: none; box-shadow: none; border-color: transparent; background: transparent; }
.section--dark .is-stack > .card::before { background: var(--bg-dark-card); border-color: var(--dark-border); }
.is-stack > .card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--panel-h, 100%);
  z-index: -1; pointer-events: none;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-card);
  box-shadow: var(--shadow-stack);
}
.is-stack > .card > * { grid-column: 2; }
.is-stack > .card .card-num {
  grid-column: 1; grid-row: 1; align-self: center; margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: 0.06em; line-height: 1.1;
}
.is-stack > .card h3 {
  grid-row: 1; align-self: center; margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.8rem); line-height: 1.15;
}
.is-stack > .card h3 + * { margin-top: 1.6rem; }
.is-stack > .card p { max-width: 46rem; font-size: 1.05rem; }
.is-stack > .card .card-foot { padding-top: 1.5rem; }
/* Cards dim slightly as others stack over them (--stack-depth from main.js). */
.is-stack > .card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--panel-h, 100%);
  border-radius: var(--radius-card); pointer-events: none;
  background: var(--bg-dark); opacity: calc(var(--stack-depth, 0) * 0.06);
}
/* Fade mode ([data-stack="fade"]): cards stack in one place and each fades out as the
   next slides over it; main.js sets their opacity, so no dimming overlay. */
.is-stack[data-stack="fade"] > .card::after { content: none; }
@media (max-width: 640px) {
  .is-stack > .card { column-gap: 1rem; padding: 1.2rem 1.4rem 1.6rem; }
  .is-stack > .card p { font-size: 0.98rem; }
}

/* Service link rows (.link-rows): three full-width rows (number, name, teaser, call to
   action); the whole row is the link. Rows rise in through the reveal system with their
   rule drawing across; on hover the row lifts onto a card, the name slides and turns red,
   and the arrow pushes forward. */
.grid.link-rows { display: block; border-top: 1px solid var(--border-mid); }
.link-rows > .card {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.15fr) auto;
  align-items: center; column-gap: 2.5rem;
  padding: 2.5rem 1.75rem; border: 0; border-radius: 0; background: transparent;
}
.link-rows > .card,
.link-rows > .card.reveal.is-visible {
  transition: opacity 0.8s var(--ease) var(--reveal-delay, 0ms), transform 0.8s var(--ease) var(--reveal-delay, 0ms),
    background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-radius 0.35s var(--ease);
}
.link-rows > .card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border-mid);
  transform-origin: 0 50%; transition: transform 1.1s var(--ease-out) calc(var(--reveal-delay, 0ms) + 120ms);
}
.js .link-rows > .card.reveal:not(.is-visible)::after { transform: scaleX(0); transition: transform 0.45s var(--ease); }
.link-rows > .card:hover, .link-rows > .card:focus-visible {
  transform: none; background: var(--bg-card); box-shadow: var(--shadow-card); border-radius: var(--radius-card);
}
.link-rows .card-num { grid-column: 1; margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: 0.06em; line-height: 1; }
/* Role label above each service name: the sequence from the section intro
   (strategy defines it, creative brings it to life, technology makes it scale). */
.link-rows .row-role {
  display: block; margin-bottom: 0.6rem;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.link-rows h3 {
  /* min(): between ~900px and ~1170px the name column is too narrow for TECHNOLOGY at 2.8vw,
     so the name shrinks with the column there (each row is its own grid, so one size for all) */
  margin: 0; font-size: min(clamp(1.5rem, 2.8vw, 2.5rem), calc(5.4vw - 2rem)); line-height: 1.05;
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}
.link-rows > .card:hover h3, .link-rows > .card:focus-visible h3 { transform: translateX(0.5rem); }
.link-rows p { margin: 0; max-width: 34rem; }
.link-rows .card-foot { margin: 0; padding: 0; white-space: nowrap; }
.link-rows .card-foot .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.link-rows > .card:hover .card-foot .arrow, .link-rows > .card:focus-visible .card-foot .arrow { transform: translateX(0.4rem); }
@media (max-width: 900px) {
  .link-rows > .card { grid-template-columns: auto 1fr; row-gap: 0.7rem; column-gap: 1.1rem; padding: 1.35rem 0.75rem; }
  .link-rows h3 { font-size: 1.35rem; }
  .link-rows p { font-size: 0.95rem; line-height: 1.55; }
  .link-rows p, .link-rows .card-foot { grid-column: 1 / -1; }
}

/* Case study rail ([data-rail]): main.js pins the section and slides the cards sideways.
   --rail-card and --rail-visual are set from the window size so a card always fits. */
.rail-stage { position: relative; }
.section.rail-pin {
  position: sticky; top: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-height) + 1.5rem) 0 1.5rem;
  overflow: hidden;
}
.rail-pin .section-head { margin-bottom: 2.25rem; }
.work-grid.is-rail { display: flex; gap: 1.5rem; will-change: transform; }
.work-grid.is-rail .work-card { flex: 0 0 var(--rail-card, 40vw); }
.work-grid.is-rail .work-visual { aspect-ratio: auto; height: var(--rail-visual, 30vh); }
.work-grid.is-rail .work-body { padding: 1.75rem 2rem 1.9rem; }
.work-grid.is-rail .work-body h3 { margin-bottom: 0.6rem; }
/* Description shows as a two-line teaser; the full text is on the case study. */
.work-grid.is-rail .work-body > p:not(.meta) {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.work-grid.is-rail .work-body .text-link { padding-top: 1.1rem; }
@media (max-width: 640px) {
  .section.rail-pin { padding: calc(var(--nav-height) + 1rem) 0 1rem; }
  .rail-pin .section-head { margin-bottom: 1.5rem; gap: 1.25rem; }
  .work-grid.is-rail { gap: 1rem; }
  .work-grid.is-rail .work-body { padding: 1.25rem 1.4rem 1.4rem; }
  .work-grid.is-rail .work-body .text-link { padding-top: 0.8rem; }
}

/* Meshing gears ([data-mesh], homepage "What's Actually Broken"): the two problems as two
   copies of the logo's gear. main.js draws the gears between the statements, rolls them in
   from either side, meshes them and turns them with the scroll. Without JS the two
   statements sit side by side. --gear is the size of one gear. */
.mesh { --gear: clamp(150px, 17vw, 250px); display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem clamp(2rem, 4vw, 4rem); }
.mesh-num {
  display: block; margin-bottom: 1.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.18em;
}
.mesh-item:first-child .mesh-num { color: var(--gear-one); }
.mesh-item:last-child .mesh-num { color: var(--gear-two); }
.mesh-item h3 { margin-bottom: 1rem; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.1; }
.mesh-item p { max-width: 24rem; color: var(--text-secondary); font-size: 1.05rem; }
.mesh.is-geared { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
/* The gears: two boxes the size of one gear, overlapping where the teeth mesh (centres 0.9587
   of a gear apart, so the pair is 1.9587 gears wide). */
.mesh-gears { position: relative; grid-column: 2; grid-row: 1; width: calc(var(--gear) * 1.9587); height: var(--gear); }
.mesh.is-geared > .mesh-item:first-child { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.mesh.is-geared > .mesh-item:first-child p { margin-left: auto; }
.mesh.is-geared > .mesh-item:last-child { grid-column: 3; grid-row: 1; }
.mesh.is-geared .mesh-num { display: none; }   /* the gears carry the numbers */
.mesh-gear { position: absolute; top: 0; width: var(--gear); height: var(--gear); overflow: visible; will-change: transform; }
.mesh-gear--one { left: 0; }
.mesh-gear--two { right: 0; }
.mesh-gear .gear-body { fill: var(--gear-one); }
.mesh-gear--two .gear-body { fill: var(--gear-two); }
.mesh-gear .gear-ring { fill: none; stroke: var(--bg-primary); stroke-width: 1.2; }
.mesh-gear text {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.06em;
  fill: var(--bg-primary);
}
/* The section holds in the window while the gears mesh (main.js adds .mesh-pin when it fits). */
.mesh-stage { position: relative; }
.section.is-mesh { overflow: hidden; }
.section.mesh-pin {
  position: sticky; top: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 0 2rem;
}
.mesh-pin > .container { width: 100%; }
@media (max-width: 900px) {
  /* Gears centred above, statements side by side below them, numbered to match. */
  .mesh.is-geared { grid-template-columns: 1fr 1fr; }
  .mesh-gears { grid-column: 1 / -1; justify-self: center; }
  .mesh.is-geared > .mesh-item:first-child { grid-column: 1; grid-row: 2; justify-self: stretch; text-align: left; }
  .mesh.is-geared > .mesh-item:first-child p { margin-left: 0; }
  .mesh.is-geared > .mesh-item:last-child { grid-column: 2; grid-row: 2; }
  .mesh.is-geared .mesh-num { display: block; }
}
@media (max-width: 640px) {
  .mesh { --gear: min(140px, 36vw); row-gap: 2rem; }
  .mesh, .mesh.is-geared { grid-template-columns: 1fr; }
  .mesh.is-geared > .mesh-item:last-child { grid-column: 1; grid-row: 3; }
  .mesh-item p { font-size: 0.98rem; }
}

/* Word peel for [data-peel] quotes; main.js drives each word from the scroll position.
   The quote's section fills the window and pins inside a taller stage while it plays. */
.peel-stage { position: relative; }
.section.peel-pin {
  position: sticky; top: 0;
  display: flex; align-items: center;
  padding: var(--nav-height) 0 0;     /* centre the quote below the fixed nav */
  overflow: hidden;
}
.peel-pin > .container { width: 100%; }
.is-peel .peel-words { display: block; perspective: 700px; }
/* Quote blocks: the accent bar beside the quote grows down as the words arrive. */
.quote-block.is-peel blockquote::before { transform-origin: 50% 0; transform: scaleY(var(--peel-lead, 1)); }
.is-peel .peel-word {
  display: inline-block; transform-origin: 50% 100%;
  opacity: 0; will-change: transform, opacity;
}

/* Page entrance: hero content rises in once the page (and loading screen) is ready. */
.js .hero .container > :not(h1) {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js.is-ready .hero .container > :not(h1) { opacity: 1; transform: none; }
.js.is-ready .hero .container > :nth-child(2) { transition-delay: 0.12s; }
.js.is-ready .hero .container > :nth-child(3) { transition-delay: 0.3s; }
.js.is-ready .hero .container > :nth-child(4) { transition-delay: 0.42s; }
.js.is-ready .hero .container > :nth-child(n + 5) { transition-delay: 0.54s; }

/* Client logos arrive one after another. */
.js .logo-list.reveal { opacity: 1; transform: none; }
.js .logo-list.reveal li { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .logo-list.reveal.is-visible li { opacity: 1; transform: none; }
.logo-list.is-visible li:nth-child(2) { transition-delay: 60ms; }
.logo-list.is-visible li:nth-child(3) { transition-delay: 120ms; }
.logo-list.is-visible li:nth-child(4) { transition-delay: 180ms; }
.logo-list.is-visible li:nth-child(5) { transition-delay: 240ms; }
.logo-list.is-visible li:nth-child(6) { transition-delay: 300ms; }
.logo-list.is-visible li:nth-child(7) { transition-delay: 360ms; }
.logo-list.is-visible li:nth-child(n + 8) { transition-delay: 420ms; }

/* Page transitions (browsers without cross-document view transitions just navigate). */
@view-transition { navigation: auto; }
.site-nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: page-out 0.3s var(--ease) both; }
::view-transition-new(root) { animation: page-in 0.55s var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Foundation jack + loading screen ---------- */
.jack-svg { display: block; overflow: visible; }
.jack-svg .steel { fill: var(--jack-steel); }
.jack-svg .gear { fill: var(--jack-gear); }
/* Knockout outlines recreate the logo's separating gaps where parts overlap. */
.jack-svg .ko { stroke: var(--jack-bay); stroke-width: 6; stroke-linejoin: round; paint-order: stroke; }
.jack-svg .ko-line { fill: none; stroke: var(--jack-bay); stroke-width: 6; stroke-linejoin: round; }
.jack-thread-line { fill: none; stroke: var(--jack-bay); stroke-width: 0.9; opacity: 0.6; }

/* Homepage jack: main.js wraps the hero in a stage. The hero is the slab; the jack stands in
   the bay below it, pumps, and lifts the hero while the stage holds. --jack-h is set by JS. */
.jack-stage { position: relative; --jack-bay: var(--bg-secondary); }
.jack-sticky {
  position: sticky; top: 0;
  background-color: var(--jack-bay);
  background-image: linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.jack-stage .hero--home {
  z-index: 2;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-mid);
  box-shadow: var(--shadow-card);
  min-height: calc(100vh - var(--jack-h, 240px));
  padding-bottom: 3.5rem;
  will-change: transform;
}
.jack-bay {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: flex-end;
  height: var(--jack-h, 240px);
}
.jack-bay .jack-svg { height: var(--jack-h, 240px); width: auto; }

/* Five Limbs ([data-limbs], /marketing-frankenstein): main.js builds the Frankenstein from
   layers (/assets/img/illustrations/limbs/) at the foot of the section and pins it with the
   section heading; the scroll slides one forearm out of its cuff per limb and fades its
   definition in (inline opacity and transform). Each forearm sits in a .limbs-reach, clipped
   (inline clip-path) to the side of its cuff away from the body. .is-side: the definitions sit
   beside the hands (the left column set flush right, toward him). .is-stacked: one definition
   at a time above the figure. Pinned, the "Limb 0#" labels are hidden. .is-still: the card
   grid with the figure, arms out, beneath it. .is-rest (phones): the card grid with the figure
   at rest standing on the first card, no motion. Out, the middle hands pass the figure's box
   by 7% a side, which the section clips rather than scroll. The section drops its bottom
   padding so the figure stands on the next section. */
.section.has-limbs { padding-bottom: 0; overflow-x: clip; }
.limbs-stage { position: relative; }
.limbs-figure { position: relative; aspect-ratio: 1400 / 1010; pointer-events: none; }
.limbs-figure img { position: absolute; display: block; max-width: none; }
.limbs-reach { position: absolute; inset: 0; }
.limbs-arm { will-change: transform; }
.limbs-scene.is-still .limbs-figure { grid-column: 1 / -1; justify-self: center; width: min(100%, 560px); margin-top: 2.5rem; }
.limbs-scene.is-rest .limbs-figure { order: -1; width: min(100%, 420px); margin: 0.5rem 0 -1.5rem; }   /* -gap: on the card */
.section.has-limbs:has(.limbs-scene.is-rest) { padding-bottom: var(--section-pad); }
.limbs-scene.is-live { display: block; position: sticky; top: var(--limbs-top, var(--nav-height)); height: var(--limbs-h, 80vh); }
.limbs-scene.is-live > .section-head { margin: 0; padding-top: var(--limbs-pad, 2rem); }
.limbs-scene.is-live .limbs-figure { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.limbs-scene.is-live .card {
  position: absolute; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; transform: none;
  opacity: 0; transition: none; will-change: opacity, transform;
}
.limbs-scene.is-live .card:hover { transform: none; box-shadow: none; }
.limbs-scene.is-live .card .card-num { display: none; }
.limbs-scene.is-live .card h3 { font-size: clamp(1.05rem, 1.35vw, 1.25rem); margin-bottom: 0.2rem; }
.limbs-scene.is-side .card.is-left { text-align: right; }
.limbs-scene.is-live .card p { font-size: 0.95rem; line-height: 1.6; }
.limbs-scene.is-stacked .card { left: 0; right: 0; max-width: 40rem; margin: 0 auto; text-align: center; }

/* The head script adds .is-loading on the first page of a visit; this covers the page
   until main.js builds the loader. The head script also clears it after 8s regardless. */
.js.is-loading { overflow: hidden; }
.js.is-loading::before { content: ''; position: fixed; inset: 0; z-index: 1000; background: var(--bg-primary); }
.site-loader {
  --jack-bay: var(--bg-primary);
  --loader-jack: clamp(84px, 14vh, 130px);
  position: fixed; inset: 0; z-index: 1001;
  display: grid; place-items: center;
  background: var(--bg-primary);
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.site-loader.is-done { opacity: 0; visibility: hidden; }
/* Tall enough for the jack plus its full extension (0.8 of its height). */
.site-loader-stage {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  height: calc(var(--loader-jack) * 1.8); width: calc(var(--loader-jack) * 1.4);
}
.site-loader-stage .jack-svg { height: var(--loader-jack); width: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .js .line-reveal .hl-word { clip-path: none; transform: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
    animation-duration: 0.01ms !important; animation-delay: 0s !important;
  }
  @view-transition { navigation: none; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border-mid); margin: 0; border: 0; }

/* ---------- 404 ---------- */
.not-found { min-height: calc(80vh - var(--nav-height)); display: flex; align-items: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 4rem 1fr 1.2fr; }
  .service-row .btn-wrap { grid-column: 2 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}

@media (max-width: 1024px) {
  :root { --section-pad: 5.5rem; --gutter: 2rem; }
  .grid-3, .compare { grid-template-columns: 1fr 1fr; }
  .split, .split--wide-left, .split--wide-right { gap: 3rem; }
  .chapter { grid-template-columns: 1fr; gap: 1.5rem; padding: 3.5rem 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border-mid); }
  .stats--3 { grid-template-columns: repeat(3, 1fr); }
  .stats--3 .stat:nth-child(3) { padding-left: 2rem; border-left: 1px solid var(--border-mid); border-top: 0; }
  .diag-grid { grid-template-columns: 1fr 1fr; }
  .diag-grid .card, .diag-grid .card:nth-child(4), .diag-grid .card:nth-child(5) { grid-column: auto; }
  .cta-band .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-height: 68px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--bg-primary); flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
    /* Curtain: wipes down to open; on close the links lift away first, then it wipes up. */
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.5s var(--ease-out) 0.15s, visibility 0s linear 0.65s;
  }
  .nav-open .nav-links {
    clip-path: inset(0); visibility: visible;
    transition: clip-path 0.7s var(--ease-out), visibility 0s;
  }
  .nav-links > * {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
  }
  .nav-open .nav-links > * {
    opacity: 1; transform: none;
    transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .nav-open .nav-links > :nth-child(1) { transition-delay: 0.2s; }
  .nav-open .nav-links > :nth-child(2) { transition-delay: 0.26s; }
  .nav-open .nav-links > :nth-child(3) { transition-delay: 0.32s; }
  .nav-open .nav-links > :nth-child(4) { transition-delay: 0.38s; }
  .nav-open .nav-links > :nth-child(n + 5) { transition-delay: 0.46s; }
  .nav-closing .nav-links > * { transform: translateY(-12px); }
  .nav-links a { font-size: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border-mid); }
  .nav-links a::after { display: none; }
  .nav-links .nav-mobile-cta { display: inline-flex; margin-top: 2rem; border: 0; padding: 1.15rem; font-size: 0.8rem; color: #fff; }
  .nav-links .nav-mobile-cta:hover { color: #fff; }
  .nav-cta-wrap .nav-cta { display: none; }
  body.nav-open { overflow: hidden; }

  .split, .split--wide-left, .split--wide-right, .section-head--split { grid-template-columns: 1fr; }
  .bridge--figure .container { grid-template-columns: 1fr; gap: 3rem; }
  .bridge--figure .bridge-copy { padding-bottom: 0; }
  .bridge-figure { max-width: 34rem; margin: 0 auto; width: 100%; }
  .section-head--split { gap: 1.5rem; }
  .sticky { position: static; }
  .method { grid-template-columns: 1fr; }
  .method-step, .method-step + .method-step { padding: 2.5rem 0; border-left: 0; border-bottom: 1px solid var(--dark-border); }
  .method--light .method-step { border-bottom-color: var(--border-mid); }
  .method-step + .method-step::before { left: 0; }
  .method-step:last-child { border-bottom: 0; padding-bottom: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .symptoms { grid-template-columns: 1fr; }
  .symptom, .symptom:nth-child(even) { padding: 2rem 0; border-right: 0 !important; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: 1 / -1; }
  .service-row { grid-template-columns: 1fr; gap: 1.25rem; padding: 2.75rem 0; }
  .service-row .btn-wrap { grid-column: auto; }
}

@media (max-width: 640px) {
  :root { --gutter: 1.5rem; --section-pad: 4.5rem; }
  body { font-size: 1rem; }
  /* Headlines scale with the phone so the longest word fits the column. In Acumin Pro Wide a
     word like MEASURABLE runs ~8.6em and FRANKENSTEIN ~10.4em; a fixed 40px pushed them off-screen.
     .fit-long-word marks the h1s that carry a FRANKENSTEIN-length word. */
  h1 { font-size: min(2.5rem, calc((100vw - 2 * var(--gutter)) / 8.8)); }
  h1.fit-long-word { font-size: min(2.5rem, calc((100vw - 2 * var(--gutter)) / 10.6)); }
  h2 { font-size: min(2rem, calc((100vw - 2 * var(--gutter)) / 10.2)); }
  .hero, .hero--home { padding: 5rem 0 4.5rem; min-height: 0; }
  .grid-2, .grid-3, .grid-4, .compare, .diag-grid, .form-grid, .options, .options--3 { grid-template-columns: 1fr; }
  .options--5 { grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
  .options--5 .option span { padding: 0.8rem 0.25rem; font-size: 0.7rem; }
  .stats, .stats--3 { grid-template-columns: 1fr; }
  .stat, .stat + .stat, .stats--3 .stat:nth-child(3) { padding: 2rem 0; border-left: 0; border-top: 1px solid var(--border-mid); }
  .stat:first-child { border-top: 0; }
  .facts, .hero-meta { grid-template-columns: 1fr; }
  .card, .form-card { padding: 2rem 1.5rem; }
  .founder-card { padding: 2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .quote-block blockquote, .quote-block figcaption { padding-left: 1.5rem; }
  .faq .answer { padding-right: 0; }
  .principle { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .service-row .card-list { grid-template-columns: 1fr; }
  .btn-group .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.35; }   /* full-width buttons may wrap: long labels are wider than a phone in Acumin Pro Wide */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Content refresh additions (logo lockups, home stats, limbs, audit)
   ========================================================================== */
.logo img { height: 40px; width: auto; }
.footer-brand .logo img { height: 45px; }
.footer-note { color: var(--dark-dim); font-size: 0.95rem; }

.hero--dark .hero-meta { border-top-color: var(--dark-border); }
.hero--dark .hero-meta dt { color: rgba(255, 255, 255, 0.45); }
.hero--dark .hero-meta dd { color: #fff; }
.hero-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-light); max-width: 40rem; }
.hero--dark .hero-note { color: var(--dark-dim); }
.hero--home .section-tag { max-width: 46rem; }

.hero-stats {
  margin-top: 4.5rem; padding-top: 2rem; border-top: 1px solid var(--border-mid);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.hero-stats dt {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; color: var(--text-primary);
}
.hero-stats dd { margin-top: 0.75rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; max-width: 18rem; }

.limbs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border-mid); }
.limb { padding: 2rem 1.5rem 0 0; }
.limb + .limb { padding-left: 1.5rem; border-left: 1px solid var(--border-mid); }
.limb .n { display: block; font-family: var(--font-display); font-weight: 200; font-size: 0.85rem; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 0.9rem; }
.limb h3 { font-size: 1rem; }

.work-visual .wv-stats { position: relative; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.work-card--feature { flex-direction: row; }
.work-card--feature .work-visual { flex: 1 1 50%; aspect-ratio: auto; min-height: 320px; }
.work-card--feature .work-body { flex: 1 1 50%; padding: 3rem; justify-content: center; }

.method--4 { grid-template-columns: repeat(4, 1fr); }
.method--4 .method-step h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }

.prose .pull {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.3;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text-primary); max-width: 40rem;
  padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--accent); margin: 2rem 0;
}
.section--dark .prose .pull { color: #fff; border-left-color: var(--accent-bright); }
.prose .pull + p { margin-top: 0; }

.quote-block blockquote p + p { margin-top: 1.25rem; }

.section-foot { margin-top: 3rem; color: var(--text-secondary); max-width: 44rem; }
.section--dark .section-foot { color: var(--dark-text); }
.section-foot--row { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-foot--row p { color: var(--text-secondary); }
.section--dark .section-foot--row p { color: var(--dark-text); }
.card-list--muted li::before { background: var(--text-light); }
.section--dark .card-list--muted li::before { background: var(--dark-dim); }

.field .req { color: var(--accent); }
.options--stack { grid-template-columns: 1fr; }
.field legend { line-height: 1.5; margin-bottom: 0.4rem; }

@media (max-width: 1024px) {
  .limbs { grid-template-columns: repeat(3, 1fr); }
  .limb:nth-child(4) { padding-left: 0; border-left: 0; }
  .method--4 { grid-template-columns: 1fr 1fr; }
  .method--4 .method-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .method--4 .method-step:nth-child(3)::before { left: 0; }
  .work-card--feature { flex-direction: column; }
}
@media (max-width: 900px) {
  .method--4 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo img { height: 32px; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .limbs { grid-template-columns: 1fr; }
  .limb, .limb + .limb { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--border-mid); }
  .work-card--feature .work-body { padding: 2rem 1.5rem; }
}
