/* EndPointScience homepage. Aktiv Grotesk only; brand colours as variables; all masks are SVG clip paths (see the defs at the end of index.html). */
/* slop-ok: the uppercase letterspaced line is the brand tagline as set on the approved brand sheet, used once in the header; the terracotta/cream/charcoal palette is the client's fixed brand palette, not a default. */

@font-face { font-family: "Aktiv Grotesk"; src: url("assets/fonts/AktivGrotesk-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: block; }
@font-face { font-family: "Aktiv Grotesk"; src: url("assets/fonts/AktivGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Aktiv Grotesk"; src: url("assets/fonts/AktivGrotesk-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: "Aktiv Grotesk"; src: url("assets/fonts/AktivGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Aktiv Grotesk"; src: url("assets/fonts/AktivGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: block; }

:root {
  --cream: #FCFCFA;
  --terracotta: #B5523D;
  --charcoal: #2E2E2E;
  --paper: #FFFFFF;
  --muted: #5F6973;
  --rule: #C9CCC8;
  --max: 1260px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body { margin: 0; background: var(--cream); color: var(--charcoal); font-family: "Aktiv Grotesk"; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, dt, figure, blockquote, address, ul { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
.shell { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: var(--cream); padding: 8px 12px; font-size: 13px; }
.skip-link:focus { left: 8px; z-index: 10; }

/* arrows */
.arrow { width: 18px; height: 9px; margin-left: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--rule); }
.header-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; gap: 40px; }
.logo img { width: 124px; height: auto; }
.primary-nav { display: flex; gap: 36px; font-size: 14px; font-weight: 700; color: var(--charcoal); }
.primary-nav a:hover { color: var(--terracotta); }
.nav-static { color: var(--charcoal); cursor: default; }
.header-tag { justify-self: end; display: flex; align-items: center; gap: 14px; padding-left: 26px; border-left: 1px solid var(--rule); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--charcoal); white-space: nowrap; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 48px; padding-block: 72px 64px; }
.hero-copy h1 { font-size: 54px; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 26px; }
.hero-copy h1 span { display: block; font-size: 54px; white-space: nowrap; }
.hero-copy .h1-a { font-weight: 700; }
.hero-copy .h1-b { font-weight: 400; }
.hero-copy p { font-size: 19px; line-height: 1.4; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.hero-actions .text-link { font-size: 15px; }
.btn-primary { display: inline-flex; align-items: center; background: var(--terracotta); color: var(--cream); font-size: 15px; font-weight: 500; padding: 15px 26px; }
.btn-primary:hover { background: #A64836; }
.hero-art { justify-self: end; width: 100%; max-width: 600px; }
.hero-art img { width: 100%; height: 520px; object-fit: cover; object-position: 55% 45%; clip-path: url(#mask-hero); }

/* ---------- values strip ---------- */
.values { border-bottom: 1px solid var(--rule); }
.values-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; align-items: center; gap: 0; padding-block: 34px; }
.values-intro { font-size: 18px; line-height: 1.35; color: var(--muted); padding-right: 36px; max-width: 460px; }
.values-intro strong { display: block; font-size: 22px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; letter-spacing: -0.01em; }
.value { display: flex; align-items: center; gap: 14px; padding: 6px 22px; border-left: 1px solid var(--rule); }
.value-icon { width: 56px; height: 56px; flex: none; }
.value h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.value p { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ---------- services ---------- */
.services { padding: 88px 0 96px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 40px; }
h2.section-title { font-size: 48px; line-height: 1; letter-spacing: -0.03em; font-weight: 300; color: var(--terracotta); }
h2.section-title b { font-weight: 700; }
.text-link { position: relative; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 500; padding-bottom: 6px; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.text-link:hover { color: var(--terracotta); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; background: var(--paper); padding: 22px 22px 26px; border-radius: 10px; }
.service-num { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.service-image { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.mask-1 img { clip-path: url(#mask-1); }
.mask-2 img { clip-path: url(#mask-2); }
.mask-3 img { clip-path: url(#mask-3); }
.mask-4 img { clip-path: url(#mask-4); }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-bottom: 22px; flex: 1; }
.service-card .text-link { align-self: flex-start; }

/* ---------- case study band ---------- */
.case { background: var(--terracotta); color: var(--cream); }
.case-grid { display: grid; grid-template-columns: 36% 26% 1fr; gap: 40px; align-items: center; padding-block: 72px; }
.case-kicker { font-size: 15px; margin-bottom: 14px; opacity: 0.92; }
.case-lead h2 { font-size: 34px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 400; margin-bottom: 20px; }
.case-intro { font-size: 17px; line-height: 1.45; max-width: 380px; margin-bottom: 30px; }
.case-actions { display: flex; align-items: center; gap: 26px; }
.btn-outline { display: inline-flex; align-items: center; border: 1px solid var(--cream); padding: 13px 20px; font-size: 14.5px; font-weight: 500; }
.btn-outline:hover { background: var(--cream); color: var(--terracotta); }
.plain-link { position: relative; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 500; padding-bottom: 4px; }
.plain-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.case-meta { border-left: 1px solid rgba(252, 252, 250, 0.35); padding-left: 32px; display: grid; gap: 18px; }
.case-meta div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.4; }
.case-meta dt { opacity: 0.85; }
.case-visual { position: relative; height: 350px; }
.card { position: absolute; background: var(--paper); color: var(--charcoal); border-radius: 12px; }
.card-back-2 { left: 48px; top: 0; width: 330px; height: 250px; background: #ECEBE6; }
.card-back-1 { left: 24px; top: 20px; width: 340px; height: 262px; background: #F5F5F1; }
.chart-card { left: 0; top: 40px; width: 350px; padding: 22px 20px 16px; }
.chart-card h3 { font-size: 17px; font-weight: 700; }
.chart-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.chart { width: 228px; height: auto; font-family: "Aktiv Grotesk"; fill: var(--charcoal); }
.chart text { fill: var(--muted); }
.note-card { right: -40px; top: 160px; width: 140px; padding: 22px 16px 16px; font-size: 15px; line-height: 1.3; color: var(--muted); }
.note-card img { margin-top: 24px; margin-left: auto; }

/* ---------- leadership ---------- */
.leadership { padding: 88px 0 96px; }
.lead-grid { display: grid; grid-template-columns: 1fr 300px 330px; gap: 48px; align-items: center; }
.lead-copy h3 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; margin: 18px 0 20px; }
.lead-copy p { font-size: 15.5px; line-height: 1.5; color: var(--muted); max-width: 520px; }
.lead-copy strong { color: var(--charcoal); font-weight: 700; }
.lead-photo img { width: 100%; height: 340px; object-fit: cover; object-position: 50% 30%; clip-path: url(#mask-portrait); }
.lead-quote { position: relative; border-left: 1px solid var(--rule); padding: 64px 0 0 32px; }
/* slop-ok: the oversized faded quotation mark is a display glyph set in Georgia at Anaïs's request; body type stays Aktiv Grotesk. */
.quote-mark { position: absolute; left: 10px; top: -52px; font-family: Georgia, "Times New Roman", serif; font-size: 280px; line-height: 1; font-weight: 700; color: var(--terracotta); opacity: 0.16; pointer-events: none; user-select: none; }
.lead-quote p { position: relative; font-size: 20px; line-height: 1.35; font-style: italic; color: var(--charcoal); margin-bottom: 20px; }
.lead-quote footer { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.lead-quote footer strong { color: var(--charcoal); }

/* ---------- selected clients ---------- */
.clients { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.clients-row { display: flex; align-items: center; gap: 40px; padding-block: 30px; }
.clients h2 { font-size: 19px; font-weight: 700; white-space: nowrap; }
.clients ul { display: flex; flex: 1; justify-content: space-between; }
.clients li { display: flex; align-items: center; gap: 12px; padding-left: 26px; border-left: 1px solid var(--rule); font-size: 13px; line-height: 1.25; color: var(--charcoal); }
.clients li svg { width: 30px; height: 30px; flex: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 0.8fr 1.2fr 1.2fr 0.9fr; gap: 32px; padding-block: 56px 40px; font-size: 13.5px; line-height: 1.6; }
.footer-brand img { width: 196px; height: auto; }
.footer-col { display: grid; align-content: start; gap: 4px; border-left: 1px solid rgba(252, 252, 250, 0.18); padding-left: 24px; }
.footer-col a:hover, .footer-email { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(252, 252, 250, 0.18); padding-block: 18px; font-size: 12.5px; color: rgba(252, 252, 250, 0.85); }

/* ---------- considered details: depth, hover, focus, reveal. CSS only, nothing needs JavaScript. ---------- */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --shadow-rest: 0 1px 2px rgba(46, 46, 46, 0.04), 0 8px 24px -12px rgba(46, 46, 46, 0.18); --shadow-lift: 0 2px 4px rgba(46, 46, 46, 0.05), 0 18px 36px -14px rgba(46, 46, 46, 0.28); }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
.site-header { position: sticky; top: 0; z-index: 20; }
.primary-nav a { position: relative; padding: 6px 0; transition: color 0.2s var(--ease); }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 0.26s var(--ease); }
.primary-nav a:hover::after { transform: scaleX(1); }
.arrow { transition: transform 0.22s var(--ease); }
a:hover .arrow { transform: translateX(4px); }
/* link underlines wipe out to the right and redraw from the left on hover */
.text-link::after, .plain-link::after { transform-origin: right; transition: background-color 0.2s var(--ease); }
.text-link:hover::after, .plain-link:hover::after { animation: wipe 0.55s var(--ease) both; }
@keyframes wipe { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 55% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.primary-nav a { transition: color 0.2s var(--ease); }
.btn-primary, .btn-outline, .text-link, .plain-link, .footer-col a { transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.service-card { box-shadow: var(--shadow-rest); transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card { box-shadow: var(--shadow-rest); }
.chart-card, .note-card { transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.case-visual:hover .chart-card, .case-visual:hover .note-card { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.service-image img, .hero-art img, .lead-photo img { transition: opacity 0.5s var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
::selection { background: var(--terracotta); color: var(--cream); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1, .hero-copy p, .hero-copy .btn-primary { animation: rise 0.6s var(--ease) both; }
  .hero-copy p { animation-delay: 0.08s; }
  .hero-copy .btn-primary { animation-delay: 0.16s; }
  .hero-art { animation: settle 0.8s var(--ease) 0.1s both; }
  @supports (animation-timeline: view()) {
    .value, .service-card, .case-lead, .case-meta, .case-visual, .lead-copy, .lead-photo, .lead-quote, .clients li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
    .service-card:nth-child(2), .value:nth-child(3), .case-meta, .lead-photo { animation-range: entry 6% entry 34%; }
    .service-card:nth-child(3), .value:nth-child(4), .case-visual, .lead-quote { animation-range: entry 12% entry 40%; }
    .service-card:nth-child(4) { animation-range: entry 18% entry 46%; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- responsive: tablet and phone. The desktop rules above stay as designed; these only take over on screens below 1100px and 760px, never in print, where Chrome would otherwise evaluate them against its default paper width. The header menu is a CSS-only checkbox toggle, no JavaScript. ---------- */
.nav-toggle, .nav-label { display: none; }

@media screen and (max-width: 1100px) {
  :root { --gutter: 28px; }
  .header-grid { gap: 24px; }
  .primary-nav { gap: 22px; }
  .header-tag span { display: none; }
  .header-tag { padding-left: 18px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-block: 56px 48px; }
  .hero-copy h1, .hero-copy h1 span { font-size: 44px; }
  .hero-art img { height: 440px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); padding-block: 30px; }
  .values-intro { grid-column: 1 / -1; max-width: none; padding: 0 0 22px; }
  .value:first-of-type { border-left: 0; padding-left: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; gap: 36px; padding-block: 60px; }
  .case-visual { grid-column: 1 / -1; width: 430px; max-width: 100%; }
  .lead-grid { grid-template-columns: 1fr 280px; gap: 36px; }
  .lead-quote { grid-column: 1 / -1; padding-top: 56px; }
  .clients-row { flex-wrap: wrap; gap: 24px; }
  .clients ul { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
  .clients li { padding-left: 16px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media screen and (max-width: 760px) {
  :root { --gutter: 24px; }
  html { scroll-padding-top: 80px; }
  .header-grid { grid-template-columns: 1fr auto; min-height: 72px; gap: 16px; }
  .logo img { width: 108px; }
  .nav-label { display: inline-flex; align-items: center; justify-self: end; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; padding: 8px 0; cursor: pointer; color: var(--charcoal); transition: color 0.2s var(--ease); }
  .nav-label:hover { color: var(--terracotta); }
  .nav-label-close { display: none; }
  .nav-toggle:checked ~ .nav-label .nav-label-open { display: none; }
  .nav-toggle:checked ~ .nav-label .nav-label-close { display: inline; }
  .primary-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 19; flex-direction: column; gap: 0; padding: 8px var(--gutter) 40px; background: var(--cream); font-size: 28px; letter-spacing: -0.02em; overflow: auto; }
  .nav-toggle:checked ~ .primary-nav { display: flex; }
  .primary-nav a, .primary-nav .nav-static { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .primary-nav a::after { display: none; }
  .header-tag { display: none; }
  .nav-toggle:checked ~ .header-tag { display: flex; position: fixed; left: var(--gutter); bottom: 36px; z-index: 19; border-left: 0; padding-left: 0; }
  .nav-toggle:checked ~ .header-tag span { display: inline; }
  body:has(.nav-toggle:checked) { overflow: hidden; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 48px; }
  .hero-copy h1 { font-size: 38px; margin-bottom: 20px; }
  .hero-copy h1 span { font-size: 38px; white-space: normal; }
  .hero-copy p { font-size: 17px; margin-bottom: 26px; }
  .hero-actions { flex-wrap: wrap; gap: 18px 26px; }
  .hero-art { justify-self: stretch; max-width: none; }
  .hero-art img { height: 300px; }
  .values-grid { grid-template-columns: 1fr; padding-block: 28px 10px; }
  .values-intro { padding: 0 0 18px; font-size: 17px; }
  .values-intro strong { font-size: 21px; }
  .value, .value:first-of-type { padding: 14px 0 14px 18px; border-left: 1px solid var(--rule); }
  .value-icon { width: 48px; height: 48px; }
  .services, .leadership { padding: 56px 0 64px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  h2.section-title { font-size: 38px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 52px 56px; }
  .case-lead h2 { font-size: 28px; }
  .case-intro { max-width: none; }
  .case-actions { flex-wrap: wrap; gap: 16px 24px; }
  .case-meta { padding-left: 20px; }
  .case-visual { width: 100%; height: auto; padding-top: 24px; }
  .card-back-2, .card-back-1 { display: none; }
  .chart-card { position: relative; z-index: 0; left: 0; top: 0; width: 100%; padding: 20px 18px 14px; }
  .chart-card::before, .chart-card::after { content: ""; position: absolute; z-index: -1; border-radius: 12px; }
  .chart-card::before { inset: -24px 0 24px 24px; background: #ECEBE6; }
  .chart-card::after { inset: -12px 0 12px 12px; background: #F5F5F1; }
  .chart { width: 100%; }
  .note-card { position: relative; right: auto; top: auto; width: 168px; margin: -24px 0 0 auto; }
  .lead-grid { grid-template-columns: 1fr; gap: 32px; }
  .lead-copy h3 { font-size: 24px; }
  .lead-photo { max-width: 300px; }
  .lead-photo img { height: 320px; }
  .lead-quote { grid-column: auto; padding: 52px 0 0 22px; }
  .quote-mark { font-size: 200px; top: -40px; left: 4px; }
  .lead-quote p { font-size: 18px; }
  .clients-row { padding-block: 26px 28px; }
  .clients ul { grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 44px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 160px; }
  .footer-col { padding-left: 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; padding-block: 16px; }
}

/* ---------- phone refinements: mark and hamburger in the header, full-width call to action, swipeable services, ruled facts in the case band. ---------- */
.logo-mark, .nav-extra, .swipe-hint { display: none; }

@media screen and (max-width: 760px) {
  .header-grid { min-height: 64px; }
  .logo img:first-child { display: none; }
  .logo .logo-mark { display: block; width: 30px; height: 30px; }
  .nav-label { width: 44px; height: 44px; margin-right: -10px; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
  .bar { display: block; width: 24px; height: 1.5px; background: var(--charcoal); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
  .nav-label:hover .bar { background: var(--terracotta); }
  .nav-toggle:checked ~ .nav-label .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-label .bar:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-label .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .primary-nav { top: 64px; padding: 16px var(--gutter) 40px; font-size: 30px; font-weight: 400; letter-spacing: -0.02em; }
  .primary-nav a, .primary-nav .nav-static { padding: 16px 0; border-bottom: 0; }
  .primary-nav a:first-child { padding-top: 8px; }
  .primary-nav .nav-static { color: var(--muted); }
  .nav-extra { display: grid; gap: 8px; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 400; letter-spacing: 0; }
  .nav-extra a { padding: 0; border: 0; }
  .nav-toggle:checked ~ .header-tag { bottom: 24px; display: none; }
  .hero-grid { gap: 28px; padding-block: 36px 0; }
  .hero-copy h1, .hero-copy h1 span { font-size: 46px; letter-spacing: -0.04em; line-height: 1; }
  .hero-copy h1 { margin-bottom: 22px; }
  .hero-copy p { font-size: 17px; margin-bottom: 24px; }
  .btn-primary { width: 100%; height: 54px; padding: 0 20px; justify-content: space-between; font-size: 16px; }
  .hero-actions { display: grid; gap: 14px; }
  .hero-art { margin: 0 calc(-1 * var(--gutter)); width: auto; max-width: none; padding-bottom: 36px; }
  .hero-art img { height: 330px; }
  .service-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 18px; scrollbar-width: none; }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 82%; scroll-snap-align: start; }
  .swipe-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .case-actions { display: grid; gap: 10px; }
  .btn-outline { width: 100%; justify-content: space-between; height: 50px; padding: 0 16px; }
  .plain-link { padding: 8px 0; }
  .case-meta { border-left: 0; padding-left: 0; gap: 0; border-top: 1px solid rgba(252, 252, 250, 0.35); }
  .case-meta div { padding: 12px 0; border-bottom: 1px solid rgba(252, 252, 250, 0.35); }
  .lead-photo { max-width: none; }
  .lead-photo img { height: 360px; }
  .clients-row { display: block; }
  .clients h2 { margin-bottom: 14px; }
  .clients ul { display: flex; gap: 0; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .clients ul::-webkit-scrollbar { display: none; }
  .clients li { flex: 0 0 auto; padding: 4px 18px 4px 16px; }
  .clients li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- contact page: hero with the Atlas rock face in mono, enquiry form on a card, terracotta closing band with the red-earth duotone ---------- */
.primary-nav a[aria-current="page"] { color: var(--terracotta); }
.contact-hero { border-bottom: 1px solid var(--rule); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 64px 56px; }
.contact-copy h1 { font-size: 72px; line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 26px; }
.contact-copy h1 b { color: var(--terracotta); }
.contact-copy p { font-size: 19px; line-height: 1.45; color: var(--muted); max-width: 470px; }
.contact-copy p + p { margin-top: 26px; }
.contact-art { justify-self: end; width: 100%; max-width: 600px; }
.contact-art img { width: 100%; height: 440px; object-fit: cover; object-position: 60% 50%; clip-path: url(#mask-contact); }
.enquiry { padding: 72px 0 88px; }
.enquiry-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.form-card, .aside-card { background: var(--paper); border-radius: 10px; box-shadow: var(--shadow-rest); }
.form-card { position: relative; padding: 40px 40px 44px; }
.aside-card { padding: 34px 32px 36px; }
.form-card h2 { font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 10px; }
.aside-card h2 { font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 12px; }
.form-intro { font-size: 17px; color: var(--muted); margin-bottom: 30px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-bottom: 32px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field i { font-style: normal; color: var(--terracotta); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-weight: 400; font-size: 15px; color: var(--charcoal); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: #9AA0A6; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%232E2E2E' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:invalid { color: #9AA0A6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(181, 82, 61, 0.15); }
.field textarea { resize: vertical; min-height: 150px; }
.hp { position: absolute; left: -9999px; top: 0; }
.form-card .btn-primary { border: 0; cursor: pointer; font-family: inherit; }
.aside-card p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.aside-card dl { margin-top: 24px; }
.aside-card dl div { border-top: 1px solid var(--rule); padding: 18px 0; }
.aside-card dl div:last-child { padding-bottom: 0; }
.aside-card dt { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.aside-card dd { font-size: 15px; line-height: 1.45; color: var(--muted); }
.aside-card dd a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.contact-band { position: relative; background: var(--terracotta); color: var(--cream); overflow: hidden; }
.band-grid { position: relative; z-index: 1; padding-block: 88px 320px; }
.band-copy { max-width: 560px; }
.band-copy h2 { font-size: 48px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 400; margin-bottom: 18px; }
.band-copy p { font-size: 18px; line-height: 1.45; max-width: 460px; margin-bottom: 30px; }
.band-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 440px; object-fit: cover; object-position: 50% 55%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 48%); mask-image: linear-gradient(to bottom, transparent 0%, #000 48%); }
.thanks .contact-copy p:last-child { margin-top: 30px; }

@media screen and (max-width: 1100px) {
  .contact-copy h1 { font-size: 56px; }
  .contact-art img { height: 380px; }
  .enquiry-grid { grid-template-columns: 1fr 300px; }
}
@media screen and (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 0; }
  .contact-copy h1 { font-size: 52px; margin-bottom: 18px; }
  .contact-copy p { font-size: 17px; }
  .contact-art { margin: 0 calc(-1 * var(--gutter)); width: auto; max-width: none; padding-bottom: 36px; }
  .contact-art img { height: 320px; object-position: 55% 50%; }
  .enquiry { padding: 44px 0 52px; }
  .enquiry-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-card { padding: 28px 22px 30px; }
  .aside-card { padding: 26px 22px 28px; }
  .form-card h2 { font-size: 28px; }
  .fields { grid-template-columns: 1fr; gap: 18px; }
  .band-grid { padding-block: 56px 250px; }
  .band-copy h2 { font-size: 36px; }
  .band-copy p { font-size: 17px; }
  .band-art { height: 330px; }
}
@media screen and (max-width: 760px) { address.footer-col { grid-column: 1 / -1; } }
