/* ============================================================
   CWG Consulting — Design System v2
   Sharp, editorial, light-first. Palette derived from brand
   logo colours (blue #0A4A9B, red #DE1F10, orange #F08300),
   deepened & muted. Raw logo colours appear only in the logo
   and the tri-square motif.
   ============================================================ */

:root {
  --ink: #0b1d38;
  --ink-2: #122c52;
  --blue: #1a4e9c;
  --blue-deep: #143e7d;
  --blue-tint: #eef3fa;

  --amber: #b97a14;
  --amber-strong: #9a6510;
  --amber-tint: #faf3e4;
  --brick: #b3372b;

  --brand-blue: #0a4a9b;
  --brand-red: #de1f10;
  --brand-orange: #f08300;

  --paper: #faf9f6;
  --paper-2: #f1eee7;
  --card: #ffffff;
  --line: #e7e2d8;
  --line-2: #d8d2c4;
  --text: #333f4f;
  --muted: #5f6c7d;
  --on-dark: #cfd9e8;

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 640;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.012em; }

/* No hanging single words in headings; tidy rag in body copy */
h1, h2, h3, .pull-quote, .display { text-wrap: balance; }
p, blockquote, li, small { text-wrap: pretty; }

.lead { font-size: 1.14rem; color: var(--muted); line-height: 1.7; }

/* Tri-square motif — the one place raw brand colours appear */
.tri { display: inline-flex; gap: 5px; align-items: center; }
.tri i { width: 9px; height: 9px; display: block; }
.tri i:nth-child(1) { background: var(--brand-blue); }
.tri i:nth-child(2) { background: var(--brand-red); }
.tri i:nth-child(3) { background: var(--brand-orange); }

.center-cta { text-align: center; margin-top: 48px; }
.center-note { text-align: center; max-width: 720px; margin: 44px auto 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8rem; font-weight: 650; letter-spacing: normal;
  text-transform: uppercase; color: var(--amber-strong);
  margin-bottom: 18px;
}

/* ---------- Buttons: sharp corners, echoing the logo ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 0;
  font-family: var(--font-body); font-size: 0.94rem; font-weight: 600;
  letter-spacing: 0.01em; cursor: pointer; border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

/* ---------- Header (static, not sticky) ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.logo-link img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links > a, .nav-links .has-dropdown > a {
  font-size: 0.9rem; font-weight: 540; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav-links > a::after, .nav-links .has-dropdown > a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--amber); transition: width 0.25s ease;
}
.nav-links > a:hover::after, .nav-links > a.active::after,
.nav-links .has-dropdown > a:hover::after, .nav-links .has-dropdown > a.active::after { width: 100%; }
.nav-links > a.active, .nav-links .has-dropdown > a.active { color: var(--blue-deep); }

/* Dropdown */
.has-dropdown { position: relative; display: flex; align-items: center; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.has-dropdown .caret { transition: transform 0.2s ease; }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: -18px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.dropdown-inner {
  background: #fff; border: 1px solid var(--line); min-width: 210px;
  box-shadow: 0 14px 40px rgba(11,29,56,0.1); padding: 8px 0;
}
.dropdown a {
  display: block; padding: 11px 20px; font-size: 0.9rem; font-weight: 520; color: var(--ink);
}
.dropdown a:hover { background: var(--paper); color: var(--blue-deep); }

/* Nav CTA — must out-rank the generic .nav-links > a rule for colour AND padding */
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; }
.nav-links a.nav-cta { margin-left: 8px; padding: 12px 24px; font-size: 0.88rem; }
.nav-links a.nav-cta::after { display: none; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 110;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px auto; transition: all 0.3s ease;
}

/* ---------- Media / editorial image treatment ----------
   Sharp corners, no drop shadows. Images sit on an offset
   solid block that echoes print-editorial layouts. */
.media { position: relative; }
.media::before {
  content: ""; position: absolute; z-index: 0;
  top: 28px; left: 28px; right: -28px; bottom: -28px;
  background: var(--paper-2);
}
.media.media-left::before { left: -28px; right: 28px; }
.media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.media .tri { position: absolute; z-index: 2; bottom: -14px; left: 0; }
.media .tri i { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 110px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 84px; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.hero .lead { margin: 26px 0 38px; max-width: 30em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-media img { aspect-ratio: 5 / 4; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { flex-direction: column; gap: 10px; align-items: center; }
.section-head .lead { margin-top: 16px; }

/* ---------- Logo marquee ---------- */
.clients-band { padding: 64px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-band p.band-label {
  text-align: center; font-size: 0.82rem; letter-spacing: normal;
  text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 38px;
}
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 76px; width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 40px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1) opacity(0.55); transition: filter 0.3s ease;
}
.marquee-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards (sharp, minimal) ---------- */
.card-grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line);
  padding: 36px 32px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.card:hover { border-color: var(--line-2); }
.card h3 { margin: 20px 0 10px; }
.card p { font-size: 0.94rem; color: var(--muted); }
.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-tint); color: var(--blue);
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Timeline (journey / stages) — open, no boxes ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px;
  position: relative; padding-top: 34px;
}
.timeline::before {
  content: ""; position: absolute; top: 7px; left: 8px; right: 8px;
  height: 1px; background: var(--line-2);
}
.tl-step { position: relative; }
.tl-step::before {
  content: ""; position: absolute; top: -34px; left: 0;
  width: 15px; height: 15px; background: var(--paper);
  border: 3px solid var(--ink);
}
.section-alt .tl-step::before { background: #fff; }
.tl-step:nth-child(1)::before { border-color: #2e6b45; }
.tl-step:nth-child(2)::before { border-color: var(--blue); }
.tl-step:nth-child(3)::before { border-color: var(--amber); }
.tl-step:nth-child(4)::before { border-color: #5b4a86; }
.tl-step .tl-num {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: normal;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.tl-step b { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.tl-step small { color: var(--muted); font-size: 0.9rem; line-height: 1.55; display: block; }

/* ---------- Service stages — open columns with hairline dividers ---------- */
.stages {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
}
.stage {
  padding: 36px 28px 36px 0; margin-right: 28px;
  border-right: 1px solid var(--line); position: relative;
}
.stage:last-child { border-right: none; margin-right: 0; }
.stage::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px;
}
.stage-1::before { background: #2e6b45; }
.stage-2::before { background: var(--blue); }
.stage-3::before { background: var(--amber); }
.stage-4::before { background: #5b4a86; }
.stage .stage-num {
  font-family: var(--font-display); font-size: 0.84rem; font-weight: 700;
  letter-spacing: normal; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 12px;
}
.stage h3 { margin-bottom: 10px; }
.stage > p { font-size: 0.92rem; color: var(--muted); margin-bottom: 20px; }
.stage ul li {
  padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 0.92rem; color: var(--text); font-weight: 520;
}
.stage ul li:first-child { border-top: none; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 84px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.split .lead { margin-bottom: 22px; }

.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 11px 0; font-weight: 520; color: var(--text);
}
.checklist li svg { flex-shrink: 0; margin-top: 5px; color: var(--blue); }

/* ---------- System stack (approach) ---------- */
.system-stack { display: grid; gap: 0; max-width: 860px; margin: 0 auto; }
.system-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 26px;
  padding: 40px 0; align-items: start;
  border-top: 1px solid var(--line);
}
.system-row:first-child { border-top: none; }
.system-row .sys-num {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  width: 52px; height: 52px; display: flex;
  align-items: center; justify-content: center; color: #fff;
}
.system-row:nth-child(1) .sys-num { background: #5b4a86; }
.system-row:nth-child(2) .sys-num { background: var(--amber); }
.system-row:nth-child(3) .sys-num { background: var(--blue); }
.system-row:nth-child(4) .sys-num { background: #2e6b45; }
.system-row h3 { margin-bottom: 4px; }
.system-row .sys-what {
  font-size: 0.84rem; color: var(--amber-strong); letter-spacing: normal;
  text-transform: uppercase; display: block; margin-bottom: 12px; font-weight: 650;
}
.system-row p { font-size: 0.95rem; color: var(--muted); }
.system-row ul { margin-top: 14px; display: grid; gap: 10px; }
.system-row ul li { font-size: 0.93rem; color: var(--text); padding-left: 20px; position: relative; }
.system-row ul li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px; background: var(--line-2);
}
.system-row ul li b { color: var(--ink); }

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value-card {
  background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 34px 30px;
}
.value-card .letter {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: var(--amber); line-height: 1;
}
.value-card h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.value-card p { font-size: 0.9rem; color: var(--muted); }

/* Vision / mission statements — scale down gracefully on small screens */
.statement, .card p.statement {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
  line-height: 1.5; color: var(--ink);
}

/* ---------- Pull quote ---------- */
.pull-quote {
  max-width: 860px; margin: 0 auto; text-align: center;
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.7vw, 1.9rem);
  line-height: 1.4; color: var(--ink); font-weight: 560; letter-spacing: -0.015em;
}
.pull-quote em { color: var(--blue); font-style: normal; }

/* ---------- Testimonials ---------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card {
  background: #fff; border: 1px solid var(--line);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 20px;
}
.t-card .quote-mark { font-family: Georgia, serif; font-size: 3rem; line-height: 0.5; color: var(--amber); margin-top: 12px; }
.t-card blockquote { font-size: 1rem; color: var(--text); line-height: 1.65; flex: 1; }
.t-card footer { border-top: 1px solid var(--line); padding-top: 16px; }
.t-card footer b { display: block; color: var(--ink); font-size: 0.94rem; }
.t-card footer span { font-size: 0.84rem; color: var(--muted); }

/* ---------- Client logo grid ----------
   Per-cell borders (not a gap trick) so an incomplete final row
   simply ends: no grey leftover block at any breakpoint. */
.client-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.client-cell {
  background: #fff; aspect-ratio: 5 / 3; display: flex;
  align-items: center; justify-content: center; padding: 24px;
  min-width: 0; overflow: hidden;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.client-cell img {
  max-height: 52px; max-width: 78%; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(0.6); transition: filter 0.3s ease;
}
.client-cell:hover img { filter: grayscale(0) opacity(1); }
/* Cells fade up as they enter the viewport (delay set per column in JS) */
.client-grid .client-cell { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.client-grid .client-cell.cell-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .client-grid .client-cell { opacity: 1; transform: none; transition: none; }
}
.disclaimer {
  margin-top: 28px; font-size: 0.8rem; color: var(--muted); line-height: 1.6;
  max-width: 880px;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: #fff; border: 1px solid var(--line);
  padding: 38px 32px;
}
.team-card .t-head {
  display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px;
}
.team-card .t-head img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 3px solid var(--paper-2);
  margin-top: 3px; /* optically level with the cap height of the name */
}
.team-card h3 { font-size: 1.16rem; }
.team-card .role { font-size: 0.8rem; font-weight: 650; color: var(--amber-strong); letter-spacing: normal; text-transform: uppercase; margin: 4px 0 1px; }
.team-card .practice { font-size: 0.82rem; color: var(--muted); }
.team-card .exp {
  display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--blue-deep);
  background: var(--blue-tint); padding: 4px 12px; margin-bottom: 14px;
}
.team-card p.bio { font-size: 0.92rem; color: var(--muted); }

/* ---------- Dark CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 96px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -160px; top: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,131,0,0.14), transparent 65%);
}
.cta-inner { position: relative; z-index: 1; max-width: 760px; }
.cta-band h2 { color: #fff; margin-bottom: 18px; }
.cta-band p { color: var(--on-dark); font-size: 1.06rem; margin-bottom: 34px; max-width: 36em; }
.cta-band .eyebrow { color: #e9b565; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 84px 0 64px; }
.page-hero .lead { margin-top: 20px; max-width: 44em; }
.page-hero.has-rule { border-bottom: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info .info-row {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.contact-info .info-row:last-child { border-bottom: none; }
.contact-info .info-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.contact-info b { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 2px; }
.contact-info p, .contact-info a { font-size: 0.95rem; color: var(--muted); }
.contact-info a:hover { color: var(--blue); }
.contact-form {
  background: #fff; border: 1px solid var(--line);
  padding: 42px;
}
.contact-form h3 { margin-bottom: 8px; }
.contact-form > p { font-size: 0.92rem; color: var(--muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 0;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: var(--paper); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,78,156,0.12); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid img { height: 60px; width: auto; margin-bottom: 20px; }
.footer-grid p { font-size: 0.9rem; line-height: 1.7; }
.footer-grid h4 {
  color: #fff; font-size: 0.85rem; letter-spacing: normal; text-transform: uppercase;
  margin-bottom: 20px; font-weight: 650;
}
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid a { color: var(--on-dark); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-tagline { color: #8fa3c0; margin-top: 14px; font-size: 0.92rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 26px 0; font-size: 0.82rem; color: #8296b3;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .t-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 52px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage:nth-child(2) { border-right: none; }
  .stage:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .media::before { top: 18px; left: 18px; right: -18px; bottom: -18px; }
  .media.media-left::before { left: -18px; right: 18px; }
  .nav-links {
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; justify-content: center; gap: 26px;
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 105;
  }
  .nav-links.open { transform: none; }
  .nav-links > a { font-size: 1.2rem; }
  /* Flatten dropdown on mobile */
  .has-dropdown { flex-direction: column; gap: 26px; }
  .has-dropdown > a { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; }
  .dropdown-inner { background: none; border: none; box-shadow: none; padding: 0; display: flex; flex-direction: column; gap: 26px; align-items: center; }
  .dropdown a { padding: 0; font-size: 1.2rem; }
  .dropdown a:hover { background: none; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .system-row { grid-template-columns: 1fr; gap: 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* Mobile menu CTA needs breathing room at overlay font size */
  .nav-links a.nav-cta { margin-left: 0; padding: 16px 40px; font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .section-head.center { text-align: left; margin-left: 0; margin-right: 0; }
  .section-head.center .eyebrow { flex-direction: row; align-items: center; }
  .pull-quote { text-align: left; }
  .center-cta, .center-note { text-align: left; margin-left: 0; margin-right: 0; max-width: none; }
  main .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .timeline { grid-template-columns: 1fr; row-gap: 40px; padding-top: 0; }
  .timeline::before, .tl-step::before { display: none; }
  /* Stages: keep the coloured accent bars, drop the grey hairlines */
  .stages { border-top: none; }
  .stage:nth-child(n+3) { border-top: none; }
  .stage::before { top: 0; }
}

@media (max-width: 560px) {
  .values-grid, .t-grid, .team-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-cell { padding: 14px; }
  .client-cell img { max-height: 38px; }
  .stages { grid-template-columns: 1fr; }
  .stage { border-right: none; margin-right: 0; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
}
