/* Self-hosted variable fonts, Latin subset (SIL Open Font License) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
}

:root {
  /* Brand palette (see brand/colors/palette.css) */
  --ember: #e85d04;
  --ember-deep: #b04400;
  --ink: #0f1b24;
  --deep-water: #16303f;
  --limestone: #f5f2eb;

  /* Semantic tokens: light by default, redefined inside .theme-dark */
  --orange: var(--ember);
  --orange-light: #f48c06;
  --paper: #fbfaf7;
  --band: #f2efe8;
  --bg: var(--paper);
  --bg-alt: var(--paper);
  --surface: #ffffff;
  --sunk: var(--band);
  --line: #d6d0c5;
  --line-subtle: #e6e2da;
  --heading: var(--ink);
  --text: var(--ink);
  --text-2: #2f3b45;
  --muted: #56616b;
  --accent-text: var(--ember-deep);
  --btn-bg: var(--ink);
  --btn-fg: #ffffff;
  --btn-hover: var(--deep-water);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 6rem;

  /* Semantic z-index scale */
  --z-header: 50;
  --z-dropdown: 100;
  --z-modal-backdrop: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-tooltip: 500;
}

/* Dark bands (CTA) reuse every component by redefining the tokens */
.theme-dark, .section-dark {
  --bg: var(--ink);
  --bg-alt: var(--ink);
  --surface: var(--deep-water);
  --sunk: var(--deep-water);
  --line: #24404f;
  --line-subtle: #1d3746;
  --heading: #ffffff;
  --text: #f5f2eb;
  --text-2: #d5dce0;
  --muted: #9aa6ae;
  --accent-text: #f07a2a;
  --btn-bg: var(--ember);
  --btn-fg: var(--ink);
  --btn-hover: #ffffff;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* === Skip Link (Accessibility) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  z-index: var(--z-tooltip);
  text-decoration: none;
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--orange-light);
  outline-offset: 2px;
}

/* === Focus Visible (Accessibility) === */
*:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a {
  color: var(--text);
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-text);
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent-text); }
img { max-width: 100%; }

h1, h2, h3, h4,
.metric-value, .stat-number, .cta-heading, .statement {
  font-family: var(--serif);
}

/* Uppercase labels stay in the sans, even when they're marked up as headings */
.eyebrow, .service-section-label, .logo-band-label, .work-card-meta, footer h2,
.contact-info h3, .case-study-label, .card-index {
  font-family: var(--sans);
}

/* === Layout containers === */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

header nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

header .logo {
  display: inline-block;
  line-height: 0;
}

header .logo img {
  height: 40px;
  width: auto;
}

header .nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

header .nav-links a,
header .mobile-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

header .nav-links a:hover,
header .mobile-menu a:hover { color: var(--accent-text); }

header .nav-links a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

header .nav-links .btn,
header .mobile-menu .btn,
header .nav-links .btn:hover,
header .mobile-menu .btn:hover { color: var(--btn-fg); }

header .mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--heading);
  padding: 0.5rem;
  cursor: pointer;
}

header .mobile-menu {
  display: none;
  padding: 0.5rem 2rem 1.25rem;
  border-top: 1px solid var(--line);
}

header .mobile-menu a {
  display: block;
  padding: 0.875rem 0;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--btn-bg);
  text-decoration: none;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-fg); text-decoration: none; }

/* Every filled variant is the same primary button; kept as aliases for existing markup */
.btn-primary, .btn-teal, .btn-white { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.theme-dark .btn:hover, .section-dark .btn:hover, footer .btn:hover { color: var(--ink); }

.btn-secondary {
  background: transparent;
  color: var(--heading);
  border-color: var(--heading);
}

.btn-secondary:hover {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--bg);
}

.btn-sm { padding: 0.625rem 1.125rem; font-size: 0.875rem; }

/* === Sections === */
.section { padding: clamp(3rem, 8vw, 6rem) 0; background: var(--bg); }
.section-dark {
  background: var(--bg-alt);
  color: var(--heading);
}

.section-slate { background: var(--surface); }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
  position: relative;
  text-wrap: balance;
}

.section-title::after {
  content: none;
}

.container-sm .section-title::after {
  margin: 1rem auto 0;
}

.cta-title {
  text-align: center;
}

.cta-title::after {
  margin: 1rem auto 0;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
  max-width: 48rem;
  margin: 1.5rem 0 0;
  line-height: 1.6;
  text-wrap: pretty;
}

.section-title-white { color: var(--heading); }
.section-subtitle-white { color: var(--muted); }

.section-orange { background: var(--orange); }
.section-title-centered { text-align: center; }
.section-title-centered::after { display: none; }
.client-logos-centered { justify-content: center; }

/* === Hero === */
.hero {
  background: var(--bg-alt);
  color: var(--heading);
  padding: clamp(4rem, 12vw, 8rem) 0;
  border-bottom: 2px solid var(--line);
}

.hero-inner {
  display: flex;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero-text {
  flex: 1;
  max-width: 58rem;
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .hero-inner { flex-direction: column; }
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--heading);
  text-wrap: balance;
}


.hero p {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 48rem;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* === Stats === */
.stats {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-number.animated {
  opacity: 1;
  transform: translateY(0);
}

.stat-label {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Stats dividers on desktop */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .stat-number {
    border-right: 1px solid var(--line-subtle);
  }
  .stats-grid > div:last-child .stat-number {
    border-right: none;
  }
}

/* === Cards === */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 1.5rem);
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.card:hover {
  border-color: var(--accent-text);
}

.card h3 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.card p {
  margin-top: 0.5rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  margin-top: 1rem;
  display: inline-block;
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-link:hover { color: var(--accent-text); text-decoration: none; }

/* === Service detail === */
.service-detail {
  padding: 3rem 0;
  border-bottom: 2px solid var(--line);
  position: relative;
  min-width: 0;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail .service-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.service-detail .service-content > div:first-child {
  order: 1;
}

.service-detail .service-content > div:last-child {
  order: 2;
}

.service-detail h2 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.service-detail p {
  margin-top: 1rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--text-2);
  line-height: 1.65;
}

.service-features {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-2);
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  line-height: 1.6;
}

.service-features li svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent-text);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.service-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: var(--sunk);
  color: var(--text-2);
  font-size: clamp(0.625rem, 1.5vw, 0.75rem);
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--orange);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.badge-tag {
  background: var(--sunk);
  color: var(--muted);
  font-size: clamp(0.625rem, 1.5vw, 0.75rem);
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--orange);
}

.badge-built {
  background: var(--orange);
  color: var(--heading);
  font-size: clamp(0.625rem, 1.5vw, 0.75rem);
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Use items === */
.use-item {
  background: var(--sunk);
  border: 1px solid var(--line);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.use-name {
  font-weight: 700;
  color: var(--heading);
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
}

.use-link {
  font-size: clamp(0.6875rem, 1.5vw, 0.75rem);
  font-weight: 700;
  color: var(--accent-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.use-link:hover { opacity: 0.7; }

.use-desc {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--muted);
  line-height: 1.6;
}

/* === Industry tag === */
.industry-tag {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.25rem);
  text-align: center;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--text);
}

.industry-tag span {
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  color: var(--muted);
}

/* === Client logos === */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.client-logo img {
  width: 140px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: saturate(0) brightness(2.5);
}

.client-logo span {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}

/* === Testimonial === */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.testimonial .quote-mark {
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-text);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial blockquote {
  margin-top: 0.5rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

.testimonial .author { font-weight: 700; color: var(--heading); }
.testimonial .role { font-size: 0.8125rem; color: var(--muted); }

/* === Process timeline === */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}

/* Horizontal connecting line on desktop */
.process-grid::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--orange);
  z-index: 0;
  display: none;
}

.process-step {
  text-align: left;
  padding: 0.75rem;
  position: relative;
  z-index: 1;
}

.process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--orange);
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--orange);
}

.process-step h3 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.process-step p {
  margin-top: 0.5rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--muted);
  line-height: 1.6;
}

/* === Article card === */
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover {
  border-color: var(--accent-text);
}

.article-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--orange);
  transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}


.article-card .card-body { padding: 2rem; }

.article-card h2,
.article-card h3 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: balance;
}

.article-card :is(h2, h3) a { color: var(--heading); text-decoration: none; }
.article-card :is(h2, h3) a:hover { color: var(--accent-text); text-decoration: none; }

.article-date { font-size: clamp(0.6875rem, 1.5vw, 0.8125rem); color: var(--muted); margin-top: 0.75rem; }

.article-excerpt {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
}

/* === Contact form === */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-family: inherit;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--surface);
  color: var(--heading);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-text);
}

.form-group textarea { resize: vertical; min-height: 8rem; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  accent-color: var(--accent-text);
}

.form-checkbox label { font-size: clamp(0.8125rem, 1.5vw, 0.9375rem); color: var(--muted); margin-bottom: 0; }

/* === Contact info === */
.contact-info h3 {
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.contact-info a {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
}
.contact-info a:hover { color: var(--accent-text); }
.contact-info p { font-size: clamp(0.8125rem, 1.5vw, 0.9375rem); color: var(--muted); margin-top: 0.25rem; }

.contact-info .social-links { display: flex; gap: 1rem; }
.contact-info .social-links a { color: var(--text-2); font-size: clamp(1.125rem, 2vw, 1.25rem); transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.contact-info .social-links a:hover { color: var(--accent-text); }

/* === Footer === */
footer {
  background: var(--bg-alt);
  color: var(--muted);
  padding: 4rem 0 3rem;
  margin-top: auto;
  border-top: 2px solid var(--line);
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

footer .footer-grid > :first-child {
  max-width: 28rem;
}

.footer-logo {
  width: 176px;
  height: auto;
  display: block;
  margin-bottom: 1.5rem;
}

footer h3 {
  color: var(--heading);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

footer h2 {
  color: var(--heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

footer p {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  line-height: 1.6;
  max-width: 28rem;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 0.375rem; }

footer ul li a {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

footer ul li a:hover { color: var(--accent-text); }

footer .footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 2rem;
  text-align: left;
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  color: var(--muted);
}

/* === Page hero === */
.page-hero {
  background: var(--bg-alt);
  color: var(--heading);
  padding: 4rem 0;
  border-bottom: 2px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  position: relative;
  color: var(--heading);
  text-wrap: balance;
}

.page-hero h1::after {
  content: none;
}

.page-hero p {
  margin-top: 1rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--muted);
  max-width: 48rem;
  line-height: 1.6;
}

/* === Article content wrapper === */
.article-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.article-content h1 {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
  text-wrap: balance;
}

.article-content h2 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--heading);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.article-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--heading);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-wrap: balance;
}

.article-content p {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li { margin-bottom: 0.375rem; }

.article-content strong { font-weight: 700; color: var(--heading); }

.article-content blockquote {
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.65;
}

.article-content hr {
  border: none;
  border-top: 2px solid var(--line);
  margin: 2.5rem 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}

.article-content th {
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 1rem);
  text-align: left;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.article-content td {
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 1rem);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.article-content tr:nth-child(even) td {
  background: var(--surface);
}

.article-content tr:nth-child(odd) td {
  background: var(--sunk);
}

.article-content .table-caption {
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2rem 0 0.75rem;
}

.article-content table {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
}

.article-content .exec-summary {
  border: 2px solid var(--orange);
  border-left: 4px solid var(--orange);
  background: rgba(232, 93, 4, 0.05);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  line-height: 1.65;
  color: var(--text-2);
}

.article-content .exec-summary strong {
  color: var(--heading);
}

.article-content .exec-summary p {
  margin: 0;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-date {
  display: block;
  width: 100%;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.back-link:hover { color: var(--accent-text); text-decoration: none; }

/* === Utility === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: 1fr; }
.grid-cols-4 { grid-template-columns: 1fr; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* === Section spacing utility === */
.section-spacer { margin-top: clamp(2rem, 5vw, 3rem); }

/* === Two-column gap utility === */
.gap-2rem { gap: 2rem; }

/* === Case studies container === */
.case-studies-list {
  display: flex;
  flex-direction: column;
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* === Section content utilities === */
.section-heading {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-body {
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  color: var(--muted);
  line-height: 1.625;
}

/* === CTA section utilities === */
.cta-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta-spacer-sm { margin-top: 1rem; }
.cta-spacer-md { margin-top: 1.5rem; }
.cta-spacer-lg { margin-top: 2.5rem; }

/* === Article card utilities === */
.article-tags { margin-bottom: 1rem; }
.article-link { margin-top: 1rem; }

/* === Services section - differentiated layout === */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-subtle);
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--line-subtle);
  }
}

@media (min-width: 1024px) {
  .services-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.services-list .card {
  margin: 0;
  border-radius: 0;
  border: none;
  background: var(--surface);
  transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-list .card:hover {
  background: var(--sunk);
}

/* === Who We Help section - differentiated layout === */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 1.5rem);
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.audience-card:hover {
  background: var(--sunk);
  border-color: var(--accent-text);
}

.audience-card h3 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.audience-card p {
  margin-top: 0.5rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--muted);
  line-height: 1.6;
}

.audience-card .card-link {
  margin-top: 1rem;
  display: inline-block;
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.audience-card .card-link:hover { color: var(--accent-text); text-decoration: none; }

/* === Who We Help page — audience block layout === */
.audience-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2vw, 1.5rem);
  align-items: start;
  position: relative;
  padding-top: clamp(1.5rem, 2vw, 2rem);
}

@media (min-width: 768px) {
  .audience-block {
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.audience-block-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--orange);
}

.audience-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.audience-body {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 48rem;
}

/* === Why Us section - alternating layout === */
.values-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  .values-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.values-item {
  background: var(--surface);
  border-left: 3px solid var(--orange);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.values-item h3 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.values-item p {
  margin-top: 0.5rem;
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  color: var(--muted);
  line-height: 1.6;
}

/* === Articles grid utility === */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === View all articles wrapper === */
.view-all-wrapper {
  text-align: center;
  margin-top: clamp(2rem, 5vw, 2.5rem);
}

/* === Responsive === */
@media (max-width: 767px) {
  .hero-orb-container { display: none; }
}

@media (min-width: 640px) {
  .hero { padding: 7rem 0 7.5rem; }
  .hero-buttons { flex-direction: row; }
  .page-hero h1 { font-size: 3.5rem; }
  .hero p { font-size: 1.1875rem; }
}

@media (min-width: 768px) {
  header .nav-links { display: flex; }
  header .mobile-menu-btn { display: none; }
  header .mobile-menu { display: none !important; }
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .service-detail .service-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .process-step { text-align: left; }
  .process-number { margin: 0 0 1rem; }
  footer .footer-grid { grid-template-columns: auto 1fr 1fr; }
  .article-content { padding: 5rem 2rem 6rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid::before { display: block; }
  .process-step { text-align: center; }
  .process-number { margin: 0 auto 1rem; }
}

#mobile-menu.active { display: block; }

/* === Fade-up animations (CSS only, no JS) === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

/* Hero headings and intros are the largest paint on most pages: keep them
   visible from the first frame and animate position only, so LCP isn't held
   back by the fade. */
@keyframes riseIn {
  from { transform: translateY(16px); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1.fade-up, .hero p.fade-up,
  .page-hero h1.fade-up, .page-hero p.fade-up {
    opacity: 1;
    animation-name: riseIn;
  }
}

/* Staggered children */
.fade-up-stagger > .fade-up:nth-child(1) { animation-delay: 0ms; }
.fade-up-stagger > .fade-up:nth-child(2) { animation-delay: 80ms; }
.fade-up-stagger > .fade-up:nth-child(3) { animation-delay: 160ms; }
.fade-up-stagger > .fade-up:nth-child(4) { animation-delay: 240ms; }
.fade-up-stagger > .fade-up:nth-child(5) { animation-delay: 320ms; }
.fade-up-stagger > .fade-up:nth-child(6) { animation-delay: 400ms; }
.fade-up-stagger > .fade-up:nth-child(7) { animation-delay: 480ms; }
.fade-up-stagger > .fade-up:nth-child(8) { animation-delay: 560ms; }

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    animation: none;
  }
}

/* === Case study rows (Swiss grid: image left, text right) === */
.case-study-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line-subtle);
}

.case-study-row:first-child {
  border-top: 1px solid var(--line-subtle);
}

.case-study-metrics {
  display: flex;
  flex-direction: column;
}

.case-study-metrics > div {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}

.case-study-metrics > div:first-child {
  border-bottom: 1px solid var(--line-subtle);
}

.metric-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.metric-label {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
  color: var(--muted);
  line-height: 1.4;
}

.case-study-text {
  padding: 2.5rem 0;
}

.case-study-client {
  display: block;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 2.5rem;
}

.case-study-block {
  margin-bottom: 1.5rem;
}

.case-study-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

.case-study-problem {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  text-wrap: balance;
}

.case-study-solution {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  text-wrap: balance;
}

.case-study-desc {
  margin-top: 1.5rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9375rem;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .case-study-row {
    flex-direction: row;
  }

  .case-study-metrics {
    flex: 0 0 50%;
    min-width: 0;
  }

  .case-study-text {
    flex: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* === Eyebrow label === */
.eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

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

.mobile-menu-cta { display: block; text-align: center; margin-top: 0.5rem; }

/* === Client logo band === */
.logo-band {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.logo-band-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

ul.client-logos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  ul.client-logos { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  ul.client-logos { grid-template-columns: repeat(6, 1fr); }
}

ul.client-logos .client-logo img {
  width: auto;
  max-width: 100%;
  max-height: 2.75rem;
  filter: grayscale(1) brightness(0);
  opacity: 0.62;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

ul.client-logos .client-logo img:hover { opacity: 1; }

/* === Problem statements === */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-subtle);
  border: 1px solid var(--line-subtle);
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
}

.problem-item {
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.problem-item h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  font-family: var(--serif);
  font-style: italic;
  color: var(--heading);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.problem-item p {
  margin-top: 1rem;
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  color: var(--muted);
  line-height: 1.65;
}

/* === Linked capability cards === */
.card-linked {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card-linked .card-link { margin-top: auto; padding-top: 1rem; }
.card-linked:hover .card-link { color: var(--accent-text); }

.card-index {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

/* === Work cards === */
.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.work-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover { border-color: var(--accent-text); }

.work-card-media {
  display: block;
  background: var(--sunk);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.work-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.work-card-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
}

.work-card-meta {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.work-card h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.work-card h3 a { color: var(--heading); text-decoration: none; }
.work-card h3 a:hover { color: var(--accent-text); }

.work-card-body > p {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  line-height: 1.65;
}

.work-outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.75rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.work-outcomes dd { margin: 0; }

@media (min-width: 1024px) {
  .work-card { grid-template-columns: 1.15fr 1fr; }
  .work-card-media { border-bottom: none; border-right: 1px solid var(--line); aspect-ratio: auto; min-height: 26rem; }
  .work-list > .work-card:nth-child(even) .work-card-media { order: 2; border-right: none; border-left: 1px solid var(--line); }
}

/* === Case study page === */
.case-hero .back-link { display: block; }
.case-hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 56rem; }

.case-outcomes {
  background: var(--surface);
  border-bottom: 2px solid var(--line);
}

.case-outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.case-outcomes-grid > div {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line-subtle);
}

.case-outcomes-grid dd { margin: 0; }

@media (min-width: 768px) {
  .case-outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .case-outcomes-grid > div { border-bottom: none; }
  .case-outcomes-grid > div + div { border-left: 1px solid var(--line); padding-left: 2.5rem; }
}

.case-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .case-columns { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.case-columns .service-features + .service-section-label { margin-top: 2rem; }

.case-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text);
  line-height: 1.6;
}

.case-figure {
  margin-top: clamp(3rem, 6vw, 4rem);
}

.case-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.case-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* === Services page === */
.service-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
}

.service-jump a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-detail { scroll-margin-top: 5rem; }

.service-detail p.service-outcome {
  margin-top: 0.75rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--heading);
}

.service-related { margin-top: 2rem; }
.service-related ul { list-style: none; }
.service-related li { margin-bottom: 0.5rem; font-size: 0.9375rem; }

/* "How we help" box at the end of an article */
.article-related {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.article-related ul { list-style: none; padding: 0; margin: 0.5rem 0 1.25rem; }
.article-related ul:last-child { margin-bottom: 0; }
.article-related li { margin: 0 0 0.5rem; font-size: 0.9375rem; }
.related-reading .section-title { margin-bottom: 2rem; }

/* === Who we serve === */
.audience-block .eyebrow { margin-bottom: 0.75rem; }

.audience-proof {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.industry-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.industry-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
}

/* === CTA band === */
.cta-band { padding: clamp(3.5rem, 8vw, 5.5rem) 0; border-top: 2px solid var(--line); }

.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .cta-inner { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
  .cta-actions { justify-self: end; text-align: right; }
}

.cta-band .cta-heading {
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta-body {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 40rem;
  font-size: clamp(1rem, 2vw, 1.0625rem);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .cta-actions { align-items: flex-end; }
}

.cta-email { font-size: 0.9375rem; color: var(--text-2); }

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 5rem; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.25rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.875rem;
  border: 1px solid var(--line);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-family: inherit;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
  color: var(--heading);
  appearance: none;
  border-radius: 0;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group select:focus { outline: none; border-color: var(--accent-text); }
.form-group textarea::placeholder { color: var(--muted); }

.contact-form .btn { margin-top: 0.5rem; }

.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.contact-info .service-section-label { margin-top: 2.5rem; }
.contact-info .service-section-label:first-child { margin-top: 0; }

.next-steps {
  list-style: none;
  counter-reset: step;
}

.next-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.next-steps strong { color: var(--heading); }

/* === Footer (four columns) === */
@media (min-width: 768px) {
  footer .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* ==========================================================================
   Editorial redesign (Oct 2026): direction B "Annual report" with the large
   cropped mark from direction E. Serif display in Newsreader, Inter for text,
   paper background, hairline rules, numbered sections, no boxed cards.
   ========================================================================== */

/* --- Type --- */
h1, h2, h3,
.section-title, .hero h1, .page-hero h1, .case-hero h1,
.cta-band .cta-heading, .audience-heading, .service-detail h2,
.work-card h3, .article-card h2, .article-card h3, .problem-item h3,
.process-step h3, .values-item h3, .card h3, .metric-value {
  font-weight: 500;
  letter-spacing: -0.02em;
}
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--muted); }

/* Section labels read like a report: "I. When to call us" */
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

/* --- Header --- */
header { background: var(--bg); border-bottom: 1px solid var(--rule); }
header .nav-links a:not(.btn) {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Sections --- */
.section-slate { background: var(--band); }
.section + .section:not(.section-slate):not(.section-dark) { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.06; }

/* --- Hero: big serif statement, the mark cropped off the right edge --- */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 8rem) 0 clamp(4rem, 10vw, 8.5rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.hero-text { max-width: none; position: relative; z-index: 1; }
.hero-strap {
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin: 0 0 3rem !important;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(3rem, 6.2vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 13ch;
}
.hero p:not(.hero-strap) {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 31rem;
  margin-top: 2rem;
}
.hero-mark { position: relative; height: 13rem; margin-bottom: 1.5rem; order: -1; }
.hero-mark img {
  position: absolute;
  top: 0;
  right: -4.5rem;
  width: 13rem;
  height: auto;
  max-width: none;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
  .hero-mark { order: 0; height: auto; align-self: stretch; min-height: 30rem; }
  .hero-mark img {
    top: 50%;
    right: auto;
    left: 0;
    transform: translateY(-50%);
    width: clamp(24rem, 36vw, 40rem);
  }
}

/* --- Buttons: square, quiet --- */
.btn { border-radius: 0; }

/* --- Problems: a numbered, ruled list --- */
.problem-grid {
  counter-reset: problem;
  background: none;
  border: 0;
  gap: 0 clamp(2rem, 5vw, 4rem);
}
.problem-item {
  counter-increment: problem;
  position: relative;
  background: none;
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2rem 3rem;
}
.problem-item::before {
  content: counter(problem) ".";
  position: absolute;
  left: 0;
  top: 1.55rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent-text);
}
.problem-item h3 { font-style: normal; font-weight: 400; font-size: clamp(1.375rem, 2.4vw, 1.625rem); line-height: 1.28; }
.problem-item p { margin-top: 0.75rem; }

/* --- Capabilities: ruled columns, no boxes --- */
.services-list { background: none; border: 0 !important; gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 1024px) { .services-list { grid-template-columns: repeat(4, 1fr); } }
.services-list .card, .card {
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 1.75rem;
}
.services-list .card:hover, .card:hover { background: none; border-color: var(--accent-text); }
.card h3 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); line-height: 1.2; }
.card p { font-size: 0.9375rem; }
.card-index {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}

/* --- How we work: rows like a table --- */
.process-grid { grid-template-columns: 1fr !important; gap: 0; }
.process-grid::before { display: none !important; }
.process-step {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  text-align: left !important;
}
.process-step:first-child { border-top-color: var(--heading); }
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-number {
  width: auto; height: auto; margin: 0;
  background: none; border: 0; box-shadow: none;
  justify-content: flex-start;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent-text);
  grid-row: span 2;
}
.process-step h3 { font-size: 1.625rem; }
.process-step p { margin-top: 0; font-size: 1rem; color: var(--text-2); }
@media (min-width: 900px) {
  .process-step { grid-template-columns: 4rem minmax(0, 15rem) minmax(0, 1fr); padding: 1.5rem 0; }
  .process-number { grid-row: auto; font-size: 2.25rem; }
}

/* --- Why us: ruled columns --- */
.values-item { background: none; border-left: 0; border-top: 1px solid var(--rule); padding: 1.25rem 0 1.5rem; }
.values-item h3 { font-size: 1.5rem; }

/* --- Work cards: a report entry, not a boxed card --- */
.work-card { background: none; border: 0; border-top: 1px solid var(--rule); padding-top: 1.75rem; }
.work-card:hover { border-color: var(--accent-text); }
.work-card-media { border: 1px solid var(--line); background: var(--surface); }
.work-card h3 { font-size: clamp(1.625rem, 2.8vw, 2.125rem); line-height: 1.15; }
.metric-value { font-weight: 400; letter-spacing: -0.03em; }

/* --- Articles: ruled entries --- */
.article-card { background: none; border: 0; border-top: 1px solid var(--rule); }
.article-card::before { display: none; }
.article-card:hover { border-color: var(--accent-text); }
.article-card .card-body { padding: 1.25rem 0 1.5rem; }
.article-card h2, .article-card h3 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); line-height: 1.2; }

/* --- Sub-page heroes --- */
.page-hero { background: var(--bg); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; }

/* --- Call to action: dark close, serif heading, italic line above --- */
.cta-band { border-top: 0; }
.cta-band .eyebrow { color: #ff9a55; }
.cta-band .cta-heading { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.025em; }

/* --- Footer: light, under a hairline --- */
footer { background: var(--bg); border-top: 1px solid var(--rule); }
footer a { color: var(--text-2); }
footer a:hover { color: var(--accent-text); }

/* --- Who we serve and industries --- */
.audience-block-line { background: var(--accent-text); }
.industry-list li { background: none; border: 0; border-top: 1px solid var(--rule); padding: 0.75rem 1rem 0.75rem 0; }

/* =========================================================
   Final polish
   ========================================================= */

/* Tags: quiet hairline labels instead of orange-barred chips */
.badge, .badge-tag {
  background: none;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3125rem 0.5rem 0.25rem;
  line-height: 1;
}
.section-slate .badge, .section-slate .badge-tag { border-color: #d3cec3; }

/* Headings: steady line height everywhere they wrap */
h3, .values-item h3, .problem-item h3, .service-detail h3 { line-height: 1.2; }

/* Hero strap: four labels, separators only between them */
.hero-strap { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.625rem 3rem; }
.hero h1 em { display: block; }
@media (max-width: 899px) {
  .hero-strap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
}
@media (max-width: 599px) {
  /* Phones: the nav logo carries the mark; the headline leads */
  .hero-mark { display: none; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-strap { font-size: 0.6875rem !important; gap: 0.375rem 1.25rem; margin-bottom: 2rem !important; }
  .hero h1 { font-size: clamp(2.75rem, 12.5vw, 3.5rem); }
  .hero p:not(.hero-strap) { font-size: 1.1875rem; margin-top: 1.5rem; }
}

/* Work cards: text aligns to the same left edge as the rule above */
.work-card-body { padding: 1.5rem 0 0; }
@media (min-width: 900px) {
  .work-card { gap: 0; }
  .work-card-media { border: 1px solid var(--line) !important; }
  .work-list > .work-card:nth-child(odd) .work-card-body { padding: 0.5rem 0 0 3rem; }
  .work-list > .work-card:nth-child(even) .work-card-body { padding: 0.5rem 3rem 0 0; }
}

/* Case study: one rule colour under the metrics */
.case-outcomes { background: var(--bg); border-bottom: 1px solid var(--line); }

/* Articles */
.article-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.article-content .exec-summary {
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text);
}
.article-content .exec-summary strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
  margin-bottom: 0.375rem;
}
.article-related {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  padding: 1.5rem 0 0;
}

/* Industries: an even ruled grid */
.industry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}
@media (min-width: 900px) { .industry-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.industry-list li { padding: 0.875rem 0 1.25rem; }

/* Footer: link columns side by side on phones */
@media (max-width: 767px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  footer .footer-grid > :first-child { grid-column: 1 / -1; }
}
.article-meta { gap: 0.5rem 0.75rem; align-items: center; }
.article-meta .article-date { flex-basis: 100%; }
.article-content .exec-summary { border-top: 0; padding-top: 0; margin-top: 0; }
.article-content .exec-summary,
.article-content .exec-summary p { font-family: var(--serif); font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.5; color: var(--text); }

/* Services: the one-line outcome reads as a serif pull line */
.service-detail p.service-outcome { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.35; }

/* Contact: ruled steps with serif numerals, like the process rows */
.next-steps li { padding: 0.875rem 0 0.875rem 2.25rem; margin: 0; border-top: 1px solid var(--line); }
.next-steps li:last-child { border-bottom: 1px solid var(--line); }
.next-steps li::before {
  top: 0.625rem; width: auto; height: auto; display: block;
  background: none; color: var(--accent-text);
  font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.2;
}
@media (max-width: 599px) { .contact-form .btn, form .btn[type="submit"] { width: 100%; } }

/* Content that follows a page heading starts closer to its rule */
.page-hero + section, .page-hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.page-hero + .section .container > :first-child:not(.audience-block),
.page-hero + .section .service-detail:first-child { margin-top: 0; padding-top: 0; }

/* =========================================================
   One rule style everywhere: a 1px hairline in --rule.
   Structural edges, list rules, tags and media frames all use it;
   only controls (buttons, form fields) keep their own borders.
   ========================================================= */
:root { --rule: #d6d0c5; }

header,
.hero, .page-hero, .case-hero, .logo-band,
.service-detail, .case-outcomes { border-top: 0; border-bottom: 1px solid var(--rule); }
.service-detail:last-child { border-bottom: 0; }

footer,
.footer-bottom,
.section + .section:not(.section-slate):not(.section-dark),
.problem-item, .card, .work-card, .values-item, .article-card,
.process-step, .process-step:first-child,
.industry-list li, .next-steps li,
.article-related, .work-outcomes, .mobile-menu { border-top: 1px solid var(--rule); }

.process-step:last-child, .next-steps li:last-child,
.hero-strap, .article-meta, .exec-summary { border-bottom: 1px solid var(--rule); }

.case-outcomes-grid > div + div { border-left-color: var(--rule); }

.work-card-media, .work-card-media img,
.case-gallery img, .article-content img,
.badge, .badge-tag,
.section-slate .badge, .section-slate .badge-tag { border: 1px solid var(--rule); }
.work-card-media img { border: 0; }

/* Rules stay put on hover; the title carries the hover state */
.work-card:hover, .article-card:hover, .card:hover { border-color: var(--rule); }

/* Buttons: same 1px weight as the rules */
.btn { border-width: 1px; }

/* Tablets: keep the menu button until the full nav fits on one line */
@media (min-width: 768px) and (max-width: 1023px) {
  header .nav-links { display: none; }
  header .mobile-menu-btn { display: flex; }
  header .mobile-menu { display: none !important; }
  header #mobile-menu.active { display: block !important; }
}
/* Below the two-column layout the nav logo carries the mark */
@media (max-width: 899px) {
  .hero-mark { display: none; }
}
