/* ==========================================================================
   Matt Meazey — freelance SEO consultant
   Design system: editorial, typography-led. Cormorant Garamond / Inter Tight /
   Geist Mono. Warm cream + ink, single accent. No frameworks, no animation libs.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #171514;
  --bg: #f5f1e8;
  --bg-alt: #ebe4d4;
  --accent: #154dfe;
  --accent-ink: #0a2dd9;
  --accent-light: #b8c5ff;
  --accent-soft: #e8e8ee;

  /* Contextual roles (flipped on dark sections) */
  --text: var(--ink);
  --muted: rgba(23, 21, 20, 0.6);
  --muted-2: rgba(23, 21, 20, 0.78);
  --faint: rgba(23, 21, 20, 0.4);
  --hair: rgba(23, 21, 20, 0.14);
  --hair-strong: rgba(23, 21, 20, 0.25);
  --surface: var(--bg);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x: clamp(20px, 5vw, 56px);
  --sec-y: clamp(72px, 9vw, 116px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--dark :focus-visible { outline-color: var(--accent-light); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sec-y); }
.section + .section { border-top: 1px solid var(--hair); }
.section--hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(48px, 7vw, 84px); }
.section--soft { background: var(--accent-soft); }
.section--dark {
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.55);
  --muted-2: rgba(245, 241, 232, 0.82);
  --faint: rgba(245, 241, 232, 0.4);
  --hair: rgba(245, 241, 232, 0.15);
  --hair-strong: rgba(245, 241, 232, 0.3);
  --surface: var(--ink);
  color: var(--text);
  background: var(--ink);
}
.section--dark + .section, .section + .section--dark { border-top: 0; }
.stack > * + * { margin-top: var(--gap, 24px); }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: -0.025em; }
.display em, em.em { font-style: italic; }
.em-light { font-style: italic; color: var(--accent-light); }
.h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.25rem, 8.2vw, 7rem); line-height: 0.95; letter-spacing: -0.03em; }
/* For hero headlines that are a full sentence rather than a short phrase */
.h1--statement { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.025em; }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.08; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.5; color: var(--muted-2); }
.lead-serif { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.28; color: var(--muted-2); }
.prose p { font-size: clamp(1rem, 1.2vw, 1.1875rem); line-height: 1.6; color: var(--muted-2); }
.prose p + p { margin-top: 1.1em; }
.kicker { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 500; }

/* ---------- Section label ---------- */
.section-label { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.section-label .idx { color: var(--accent); font-weight: 500; }
.section--dark .section-label .idx { color: var(--accent-light); }
.section-label .lbl-rule { width: 24px; height: 1px; background: var(--hair-strong); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--hair-strong); }
.btn--secondary:hover { border-color: var(--text); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; justify-content: space-between; }
.section--dark .btn--primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }

.textlink { font-size: 13px; color: var(--text); border-bottom: 1px solid var(--hair-strong); padding-bottom: 2px; transition: border-color .15s ease; width: fit-content; }
.textlink:hover { border-color: var(--text); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 4px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 18px; line-height: 1;
  flex: none;
}
.section--dark .logo-mark, .site-footer .logo-mark { background: var(--bg); color: var(--ink); }
.logo-text { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }

/* ---------- Award chip + brands ---------- */
.award-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--hair-strong); border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted-2);
  width: fit-content;
}
.award-chip svg { width: 12px; height: 12px; flex: none; }
.award-chip b { font-weight: 500; color: var(--text); }

.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.brand { font-family: var(--font-display); font-weight: 500; font-size: clamp(15px, 2vw, 19px); letter-spacing: 0.04em; text-transform: uppercase; color: rgba(23, 21, 20, 0.62); }
.section--dark .brand { color: rgba(245, 241, 232, 0.62); }

/* ---------- Nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(245, 241, 232, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.nav-inner { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-link { font-size: 13.5px; padding: 8px 14px; border-radius: 999px; color: var(--text); transition: background .15s ease, color .15s ease; }
.nav-link:hover { background: rgba(23, 21, 20, 0.06); }
.nav-link[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-cta { flex: none; }
.lbl-short { display: none; }

/* ---------- Footer (editorial cream) ---------- */
.site-footer { background: var(--bg); color: var(--ink); padding-block: clamp(56px, 7vw, 88px) 26px; border-top: 1px solid var(--hair); }
.footer-tagline { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; color: var(--ink); }
.footer-tagline em { font-style: italic; color: var(--accent); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(32px, 5vw, 56px); margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(36px, 4vw, 48px); border-top: 1px solid var(--hair); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-eyebrow { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 4px; }
.footer-col a, .footer-loc { font-size: 15px; color: var(--muted-2); transition: color .15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-loc { color: var(--muted); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; margin-top: clamp(40px, 5vw, 56px); padding-top: 26px; border-top: 1px solid var(--hair); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: end; margin-top: clamp(28px, 4vw, 40px); }
.hero-grid--media { align-items: start; }
.hero-grid .h1 { max-width: 16ch; }
.hero-aside { display: flex; flex-direction: column; gap: 24px; }
.hero-aside .portrait--hero { margin-top: 4px; }

/* ---------- Generic two-column ---------- */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: clamp(28px, 4vw, 40px); }
.split--end { align-items: end; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--wide-left { grid-template-columns: 1.5fr 1fr; }
.split--narrow-left { grid-template-columns: 1fr 1.5fr; }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Value props (small stacked list) ---------- */
.props { display: grid; gap: 28px; }
.prop .kicker { margin-bottom: 8px; }
.prop p { font-size: 17px; line-height: 1.45; color: var(--muted-2); }

/* ---------- Bordered cell grid (signature) ---------- */
.cell-grid { display: grid; gap: 1px; background: var(--cb, var(--hair)); border: 1px solid var(--cb, var(--hair)); border-radius: 6px; overflow: hidden; }
.cell-grid--ink { --cb: var(--ink); }
.cell-grid--2 { grid-template-columns: 1fr 1fr; }
.cell-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cell { background: var(--surface); padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.cell--soft { background: var(--accent-soft); }
.section--dark .cell { background: var(--ink); }
.cell-link { text-decoration: none; transition: background .15s ease; }
a.cell:hover { background: rgba(23, 21, 20, 0.03); }
.cell .kicker { margin-bottom: 4px; }
.cell h3 { font-family: var(--font-display); }
.cell p { color: var(--muted-2); font-size: 15px; line-height: 1.55; }
.cell .textlink { margin-top: 6px; }

/* Services list inside a cell */
.svc h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 2.4vw, 1.6rem); letter-spacing: -0.01em; }
.svc-lede { color: var(--muted-2); font-size: 14.5px; line-height: 1.5; }
.svc ul { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 4px; }
.svc li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.4; color: var(--muted-2); }
.svc li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Process / step numbers ---------- */
.step { gap: 16px; }
.step-num { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(3.5rem, 6vw, 5.25rem); line-height: 0.9; color: rgba(23, 21, 20, 0.12); }
.section--dark .step-num { color: var(--accent-light); }
.step h3 { margin-top: 4px; }
.step p { color: var(--muted-2); font-size: 16px; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.metric-num { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(3rem, 6.5vw, 6.5rem); line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.metric--accent .metric-num, .section--dark .metrics .metric:first-child .metric-num { color: var(--accent-light); }
.metric-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); margin-top: 12px; }
.metric-desc { font-size: 14px; color: var(--muted-2); margin-top: 6px; max-width: 26ch; }

/* ---------- Pull quote + testimonial grid ---------- */
.pullquote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.625rem, 4vw, 3.25rem); line-height: 1.2; letter-spacing: -0.02em; max-width: none; margin-top: clamp(28px, 4vw, 40px); }
.pullquote-cite { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); margin-top: 32px; font-style: normal; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 44px); margin-top: clamp(40px, 5vw, 56px); }
.quote { border-top: 1px solid var(--hair); padding-top: 24px; }
.quote-text { font-family: var(--font-display); font-style: italic; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.32; color: var(--text); }
.quote-cite { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 18px; font-style: normal; }

/* ---------- Case study cards ---------- */
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); margin-top: clamp(40px, 5vw, 56px); }
.case-card { border: 1px solid var(--hair); border-radius: 6px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; transition: border-color .15s ease, transform .15s ease; }
.case-card:hover { border-color: var(--hair-strong); transform: translateY(-2px); }
.case-metric { font-family: var(--font-display); font-style: italic; font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1; color: var(--text); }
.case-card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.case-card p { font-size: 15px; color: var(--muted-2); line-height: 1.55; }

/* ---------- Band (award / facts strip) ---------- */
.band { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--accent-soft); }
.band-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(22px, 3vw, 28px); }
.band-inner p { font-size: clamp(15px, 1.6vw, 17px); color: var(--muted-2); }

/* ---------- Q&A (My story) ---------- */
.podcast-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.podcast-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.qa { display: grid; gap: clamp(36px, 4vw, 56px); max-width: 780px; margin-top: clamp(32px, 4vw, 48px); }
.qa-item { display: grid; gap: 14px; }
.qa-q { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.1; letter-spacing: -0.02em; }
.qa-a p { font-size: clamp(1rem, 1.15vw, 1.0625rem); line-height: 1.62; color: var(--muted-2); }
.qa-a p + p { margin-top: 1em; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); }
.field input, .field textarea, .field select {
  font-size: 16px; padding: 12px 0; background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid var(--hair-strong); border-radius: 0;
  transition: border-color .15s ease;
}
.field select { padding-right: 20px; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 4px top 20px, right 0 top 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.section--dark .field input:focus, .section--dark .field textarea:focus, .section--dark .field select:focus { border-color: var(--accent-light); }
.field select option { color: #171514; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-fallback { font-size: 13px; color: var(--muted); }
.form-fallback a { border-bottom: 1px solid var(--hair-strong); }

.contact-aside { border-left: 1px solid var(--hair); padding-left: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.contact-aside .big-link { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); border-bottom: 1px solid var(--hair-strong); width: fit-content; padding-bottom: 2px; }
.contact-aside .big-link:hover { border-color: var(--text); }

/* Contact — split form card */
.contact-split-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.form-card { background: var(--bg-alt); border: 1px solid var(--hair); border-radius: 12px; padding: clamp(26px, 3.5vw, 44px) clamp(22px, 3.5vw, 48px); }
.form-card > .kicker { color: var(--accent); display: block; margin-bottom: clamp(20px, 3vw, 28px); }
.form-card .enquiry-form { gap: clamp(16px, 2vw, 22px); }
.form-card .field input, .form-card .field select, .form-card .field textarea { background: var(--bg); border: 1px solid var(--hair); border-radius: 6px; padding: 12px 14px; font-size: 16px; }
.form-card .field textarea { min-height: 108px; }
.form-card .field select { -webkit-appearance: auto; appearance: auto; background-image: none; padding-right: 12px; }
.form-card .field input:focus, .form-card .field select:focus, .form-card .field textarea:focus { border-color: var(--accent); outline: none; }
.form-card .form-actions { margin-top: 4px; }
.chat-panel .h2 em { font-style: italic; color: var(--accent); }
.chat-intro { font-family: var(--font-display); font-style: italic; font-size: clamp(1.125rem, 1.9vw, 1.4rem); line-height: 1.32; color: var(--muted-2); margin-top: clamp(20px, 3vw, 28px); max-width: none; }
.contact-rows { margin-top: clamp(28px, 4vw, 44px); }
.contact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: clamp(14px, 2vw, 18px) 0; border-top: 1px solid var(--hair); color: var(--ink); transition: color .15s ease; }
.contact-row:last-child { border-bottom: 1px solid var(--hair); }
.contact-row:hover { color: var(--accent); }
.contact-row .row-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); transition: color .15s ease; }
.contact-row:hover .row-label { color: var(--accent); }
.contact-row .row-val { font-family: var(--font-display); font-size: clamp(1.0625rem, 1.7vw, 1.3125rem); text-align: right; }
@media (max-width: 800px) { .contact-split-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: clamp(40px, 5vw, 64px); }
.maxw-sm { max-width: 44ch; } .maxw-md { max-width: 60ch; }
.cta-actions { display: flex; flex-direction: column; gap: 16px; }
.brands-row { border-top: 1px solid var(--hair); margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(24px, 3vw, 28px); display: grid; gap: 20px; }
.brands-row .kicker { color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .metrics, .cell-grid--3, .case-cards, .quotes { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); padding-top: 32px; }
}

@media (max-width: 820px) {
  /* Nav → scrollable pill row */
  .nav-inner { flex-wrap: wrap; gap: 14px; }
  .logo { margin-right: auto; }
  .nav-cta { order: 1; }
  .nav-links { order: 2; flex: 1 0 100%; margin: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; padding: 11px 15px; }
  .nav-cta { padding: 14px 20px; }
  /* Shorter nav labels so all items fit without scrolling */
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
}

@media (max-width: 680px) {
  .hero-grid, .split, .split--even, .split--wide-left, .split--narrow-left,
  .cell-grid--2, .cell-grid--3, .metrics, .case-cards, .quotes, .band-inner,
  .footer-top { grid-template-columns: 1fr; }
  .split, .hero-grid { align-items: start; }
  .enquiry-form { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand { max-width: none; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .band-inner { gap: 18px; }
}

/* ==========================================================================
   Client logos · portraits · award badges
   ========================================================================== */
/* Selected clients band — heading block + horizontally-divided logo strip */
.clients { padding-block: clamp(48px, 7vw, 84px); border-top: 1px solid var(--hair); }
.clients-inner { display: grid; grid-template-columns: minmax(220px, 1fr) 3.2fr; align-items: center; gap: clamp(28px, 3.5vw, 48px); }
.clients-head { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 20px); }
.clients-eyebrow { color: var(--accent); }
.clients-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em; }
.clients-title em { font-style: italic; color: var(--accent); }
.clients-logos { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; }
.client-cell { display: grid; place-items: center; padding: clamp(18px, 2.6vw, 28px) 10px; }
.client-cell img { max-height: 48px; max-width: 84%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 1000px) { .clients-inner { grid-template-columns: 1fr; gap: clamp(22px, 4vw, 30px); } .clients-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .clients-logos { grid-template-columns: repeat(2, 1fr); } .client-cell { min-height: 116px; } }

.portrait { border-radius: 6px; overflow: hidden; background: var(--accent-soft); }
.portrait img { width: 100%; height: auto; display: block; }
.portrait--hero { margin-top: 28px; }
.portrait--band { margin-block: clamp(24px, 4vw, 44px); }

.badges-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--hair); }
.badge img { display: block; width: 100%; height: auto; }
.badge--band { width: clamp(116px, 20vw, 140px); }
.badge--case { width: clamp(116px, 17vw, 148px); }
.section--dark .badge { border-color: rgba(245, 241, 232, 0.16); }

/* Defer rendering/layout of long off-screen sections (perf) */
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* Cookie consent banner */
.consent {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: clamp(12px, 3vw, 24px); width: calc(100% - 2 * var(--pad-x)); max-width: 620px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--hair-strong); border-radius: 10px;
  box-shadow: 0 8px 30px rgba(23, 21, 20, 0.14);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
}
.consent[hidden] { display: none; }
.consent-text { font-size: 14px; line-height: 1.5; color: var(--ink-soft, rgba(23,21,20,0.7)); flex: 1 1 260px; }
.consent-text a { color: var(--ink); border-bottom: 1px solid var(--hair-strong); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 480px) { .consent-actions { flex: 1 0 100%; } .consent-actions .btn { flex: 1; justify-content: center; } }

/* Site logo image (Matt's mark) */
.logo-img { height: 26px; width: auto; display: block; }
.site-footer .logo-img { filter: none; }

/* Filler placeholders — copy for Matt to provide */
.filler { color: var(--accent); background: rgba(21, 77, 254, 0.08); font-style: italic; padding: 0.05em 0.35em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.section--dark .filler { color: var(--accent-light); background: rgba(184, 197, 255, 0.14); }
h1 .filler, h2 .filler, .h1 .filler, .h2 .filler { font-style: italic; }
