/* Optimal Civils: site.css
   Locked design system, see CLAUDE.md (approved 1 Oct 2026).
   Type: Barlow Condensed 700 (display/headings), Barlow 400/600 (text).
   Sizes: display 96 (tablet 76, phone 56); h2/h3 40; sub 24; lead 18; body 16;
   labels 14 uppercase, 0.08em tracking. Line-heights 0.92 / 1 / 1.5.
   Spacing: 8 / 16 / 24 / 32 / 40 / 56 / 72 / 96. Gutter 56 (phone 16). Max 1280.
   Radius: one token, 24px, on photo frames, the hero notch and the contact cards only.
   Shadows: hard 6px offset on bricks; soft shadow under the process line and markers. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Barlow-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Barlow-SemiBold.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --orange: #fd5104;
  --orange-p3: #fd5104;
  --orange-dark: #c93f00;
  --grey: #6b7075;
  --line: rgba(107, 112, 117, 0.3);        /* hairline on white */
  --line-inv: rgba(255, 255, 255, 0.15);   /* hairline on black */
  --text-inv-2: rgba(255, 255, 255, 0.7);  /* secondary text on black */

  --display: "Barlow Condensed", "Arial Narrow", "DejaVu Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s6: 40px; --s8: 56px; --s12: 72px; --s16: 96px;

  --gutter: 56px;
  --max: 1280px;
  --panel: #f3f4f5;
  --r: 24px; /* photo frames and the hero notch only; controls stay square */
}

@supports (color: color(display-p3 1 0 0)) {
  :root { --orange-p3: color(display-p3 1 0.38 0.12); }
}

/* ---------- Reset (minimal) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--orange-dark); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Focus: one visible treatment everywhere */
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.footer :focus-visible { outline-color: var(--white); }
.btn:focus-visible { outline-color: var(--black); }

.skip {
  position: absolute; left: var(--s2); top: -100px;
  padding: var(--s1) var(--s2); background: var(--black); color: var(--white);
  font-weight: 600; text-decoration: none; z-index: 10;
}
.skip:focus { top: var(--s2); }

/* ---------- Type ---------- */
.display, h1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 96px; line-height: 0.92; letter-spacing: -0.01em;
  text-wrap: balance; overflow-wrap: anywhere;
}
h2, h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 40px; line-height: 1;
  text-wrap: balance;
}
.h28 { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1; }
.lead { font-size: 18px; line-height: 1.5; max-width: 32em; }
.label {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.muted { color: var(--grey); }

/* Placeholders: read as finished copy, stay visibly flagged for review */
.todo { text-decoration: underline dotted; text-decoration-color: var(--orange-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.header { background: var(--black); color: var(--white); }
.header :focus-visible { outline-color: var(--white); }
.header .nav a.label:hover { color: var(--orange); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 108px; }
.logo img { height: 88px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s6); }
.nav a { text-decoration: none; }
.header-row { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Hero ---------- */
.eyebrow { margin-bottom: var(--s3); color: var(--grey); }
/* Full-bleed photo; the headline and CTA sit centred over it, white on a dark scrim. */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden; background: var(--black);
  min-height: calc(100vh - 108px);
  min-height: calc(100svh - 108px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1) contrast(1.08);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.55), rgba(11, 11, 11, 0.3) 42%, rgba(11, 11, 11, 0.72));
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; color: var(--white); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s4);
  padding-top: var(--s16); padding-bottom: var(--s16);
}
.hero-inner .eyebrow { margin-bottom: 0; color: rgba(255, 255, 255, 0.82); }
.hero-inner h1 { color: var(--white); max-width: 16em; }
.hero-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s3) var(--s4); margin-top: var(--s1); }

/* Intro band: the value statement, directly below the hero */

/* ---------- Photo zones ---------- */
.photo { position: relative; margin: 0; background: var(--black); overflow: hidden; border-radius: var(--r); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }  /* all photography runs mono so the orange is the only colour on the page */
.photo::before {
  content: attr(data-shot); position: absolute; left: var(--s3); bottom: var(--s3); z-index: 0; right: var(--s3);
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35);
}
.photo::after { content: none; }
.photo img { z-index: 1; }

/* ---------- Split rhythm: heading left, explainer right ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: var(--s12); align-items: start; margin-bottom: var(--s8); }
.split-text { display: flex; flex-direction: column; gap: var(--s2); }
.split-text p { max-width: 34em; }

/* ---------- Disciplines dial (desktop, motion allowed, JS on) ---------- */
.services .wrap:first-child { padding-bottom: var(--s8); }
.dial-stage { display: none; }
.service-rows { display: block; padding-bottom: var(--s16); }
@media (min-width: 1280px) and (min-height: 600px) { /* the panel needs the height */
  .js .service-rows { display: none; }
  .js .dial-stage { display: block; height: calc(var(--dial-h) + (var(--dial-n, 4) - 1) * var(--dial-step)); margin-bottom: var(--s16); }
  .dial-sticky { max-width: min(1440px, 92vw); } /* let the feature use more of the wide screen */
  .services .dial-stage .dial-sticky { padding-top: 0; padding-bottom: 0; } /* beats .services .wrap's padding-top, which pushed the photo 96px past the sticky onto the band */
}
:root { --dial-h: min(660px, calc(100svh - 110px)); --dial-step: 260px; } /* --dial-step: scroll distance per service */
.dial-sticky {
  position: sticky; top: calc((100vh - var(--dial-h)) / 2); height: var(--dial-h);
  display: grid; grid-template-columns: 280px minmax(0, 1fr) 480px; gap: var(--s8); align-items: center;
}
.dial { position: relative; height: 100%; clip-path: inset(0 -48px 0 0); } /* clip top and bottom only, so "10" can run into the gap */
.dial-ring { position: absolute; left: -180px; top: 50%; width: 0; height: 0; will-change: transform; }
.dial-arc { position: absolute; left: -400px; top: -400px; width: 800px; height: 800px; border: 1px solid var(--line); border-radius: 50%; }
.dial-dot {
  position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--line);
  transform-origin: 0 0; transform: rotate(var(--a)) translate(400px) translate(-50%, -50%);
  transition: background 0.3s, width 0.3s, height 0.3s;
}
.dial-dot.is-active { width: 12px; height: 12px; background: var(--black); }
.dial-num { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: rotate(var(--a)) translate(400px) translate(0, -50%); }
.dial-num span {
  display: block; padding-left: var(--s3); will-change: transform, opacity;
  font-family: var(--display); font-weight: 700; font-size: 104px; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--black); transform-origin: 0 50%;
}
.dial-text { position: relative; height: 100%; display: flex; align-items: center; }
.dial-item {
  position: absolute; left: 0; right: 0; max-width: 30em;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dial-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.dial-item .label { margin-bottom: var(--s1); }
.dial-item h3 { font-size: 50px; margin-bottom: var(--s2); }
.dial-item p { font-size: 20px; line-height: 1.5; margin-bottom: var(--s2); }
.dial-cta { display: inline-block; text-decoration: none; border-bottom: 2px solid var(--black); padding-bottom: 2px; }
.dial-cta:hover { color: var(--orange-dark); border-bottom-color: var(--orange-dark); }
.dial-frame { height: var(--dial-h); margin: 0; }
.dial-frame::before, .dial-frame::after { display: none; }
.dial-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.dial-photo.is-active { opacity: 1; }
.dial-hint { position: absolute; left: 0; bottom: var(--s4); }

/* Compact dial: phones and tablets (below 1280 wide, at least 560 tall). The same parts stacked:
   the arc of numbers turned so the active one sits at the top, then the text, then the photo.
   JS places the numbers and dots on the arc (--dial-rc radius, top of the arc at --dial-top). */
:root { --dial-hc: min(calc(100svh - 32px), 680px); --dial-rc: 300px; --dial-top: 88px; --dial-step-c: 200px; --dial-text-h: 280px; }
@media (max-width: 1279px) and (min-height: 560px) {
  .js .service-rows { display: none; }
  .js .dial-stage { display: block; height: calc(var(--dial-hc) + (var(--dial-n, 4) - 1) * var(--dial-step-c)); margin-bottom: var(--s12); }
  .services .dial-stage .dial-sticky { /* beats .services .wrap:first-child, whose padding would eat the photo */
    top: calc((100svh - var(--dial-hc)) / 2); height: var(--dial-hc); padding-top: 0; padding-bottom: 0;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: 132px var(--dial-text-h) minmax(0, 1fr); gap: var(--s3); align-items: stretch;
  }
  .dial { clip-path: none; overflow: hidden; }
  .dial-ring { left: 0; top: 0; width: 100%; height: 100%; }
  .dial-arc { left: calc(50% - var(--dial-rc)); top: var(--dial-top); width: calc(2 * var(--dial-rc)); height: calc(2 * var(--dial-rc)); }
  .dial-dot, .dial-num { transform: none; }
  .dial-num span { padding-left: 0; font-size: 56px; transform-origin: 50% 50%; }
  .dial-text { height: 100%; align-items: flex-start; }
  .dial-item { top: 0; }
  .dial-hint { display: none; }
  .dial-frame { height: auto; min-height: 0; }
}
@media (max-width: 720px) and (min-height: 560px) {
  :root { --dial-text-h: 264px; }
  .dial-item h3 { font-size: 24px; margin-bottom: var(--s1); }
  .dial-item p { font-size: 16px; }
}

/* ---------- Button (the one treatment) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 var(--s4);
  background: var(--orange); color: var(--white); border: 0; border-radius: 8px;
  font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1;
  text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  align-self: flex-start;
}
.btn:hover { background: var(--orange-dark); color: var(--white); }

/* Ghost treatment: a secondary action, same geometry, no fill */
.btn-ghost { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }

/* Index bricks: a solid block with the number, square-cornered like the brand */
.idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 32px; background: #fd5104; background: var(--orange-p3, #fd5104); color: var(--black);
  font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* the brick's hard offset: a solid block behind it, zero blur (not a soft shadow) */
.idx { box-shadow: 6px 6px 0 0 var(--black); }

/* ---------- Services ---------- */
/* Services + Company share one grey midsection; the white founder card punctuates it */
/* flow-root contains the dial-stage's bottom margin so the grey stays continuous into .company */
.services { background: var(--panel); display: flow-root; }
.services .wrap { padding-top: var(--s16); }
.service {
  display: grid; grid-template-columns: 96px 320px minmax(0, 1fr); gap: var(--s6);
  align-items: start; padding: var(--s6) 0;
}
.service .idx { padding-top: 0; }
.service p { max-width: 34em; }

/* ---------- Company: the founder, an open section in the site's own language ---------- */
/* Divider banner between What we do and Company: the four discipline groups on black */
.band { background: var(--black); color: var(--white); }
.band-row { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: var(--s8); padding-bottom: var(--s8); }
.band-item {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 28px; line-height: 1; letter-spacing: 0.04em; white-space: nowrap;
}
.band-item + .band-item { border-left: 1px solid rgba(255, 255, 255, 0.15); }
.band-num { font-size: 15px; letter-spacing: 0; color: var(--orange); }

.company { background: var(--panel); }
.company .wrap { padding-top: var(--s12); padding-bottom: var(--s12); }
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s12); align-items: center; }
.company-text { display: flex; flex-direction: column; gap: var(--s4); }
.company-head { display: flex; flex-direction: column; gap: var(--s1); }
.company-head h2 { font-size: 56px; line-height: 0.92; }
.founder-role { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 16px; color: var(--orange-dark); margin-top: var(--s1); } /* orange-dark: 4.5:1 on the grey panel (WCAG AA); plain orange is 3:1 */
.company-bio { display: flex; flex-direction: column; gap: var(--s2); }
.company-bio p { font-size: 18px; line-height: 1.5; max-width: 36em; color: var(--grey); }
.company-photo { aspect-ratio: 4 / 5; }
.company-photo img { object-position: 50% 25%; }

.company-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.company-actions .btn { align-self: auto; }

.stats { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--s8); align-items: start; margin: var(--s2) 0 0; }
.stats div { display: flex; flex-direction: column; gap: var(--s1); }
.stats dd { order: -1; margin: 0; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--black); }
.stats dt { font-size: 14px; color: var(--grey); }

@media (max-width: 1100px) {
  .band-item { font-size: 23px; }
  .company-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s8); }
  .company-head h2 { font-size: 48px; }
}
@media (max-width: 860px) {
  .company-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .company-photo { order: -1; width: min(100%, 420px); }
}
@media (max-width: 720px) {
  .band-row { position: relative; grid-template-columns: repeat(2, 1fr); gap: var(--s2) var(--s6); padding-top: var(--s4); padding-bottom: var(--s4); }
  .band-row::before { content: ""; position: absolute; left: 50%; top: var(--s4); bottom: var(--s4); width: 1px; background: rgba(255, 255, 255, 0.15); }
  .band-item { font-size: 20px; gap: 7px; justify-content: flex-start; }
  .band-item + .band-item { border-left: 0; }
  .band-num { font-size: 12px; }
  .company .wrap { padding-top: var(--s8); padding-bottom: var(--s8); }
  .company-head h2 { font-size: 40px; }
  .company-bio p { font-size: 16px; }
  .company-photo { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .stats dd { font-size: 32px; }
}

/* ---------- Contact ---------- */
/* ---------- Our work: coverflow carousel ---------- */
.work .wrap { padding-top: var(--s16); padding-bottom: var(--s16); }
.coverflow { position: relative; left: 50%; transform: translateX(-50%); width: min(1440px, 92vw); max-width: none; margin-top: var(--s10, var(--s8)); }
.cf-track {
  position: relative; height: 600px; perspective: 1700px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.cf-card {
  position: absolute; top: 50%; left: 50%; height: 480px; aspect-ratio: 4 / 5;
  margin: 0; padding: 0; border: 0; background: var(--panel); cursor: pointer;
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 16px 34px rgba(11, 11, 11, 0.2);
  transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s;
  will-change: transform;
}
.cf-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cf-card.is-active { cursor: zoom-in; }
.cf-card:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.cf-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 120;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--black);
  font-size: 26px; line-height: 1; cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.cf-arrow:hover, .cf-arrow:focus-visible { background: var(--black); color: var(--white); }
.cf-prev { left: 0; }
.cf-next { right: 0; }

/* Each dot keeps its 8px look, on a 24px button (WCAG 2.5.8 tap target). */
.cf-dots { display: flex; justify-content: center; gap: 0; margin-top: var(--s4); }
.cf-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.cf-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.2s ease, transform 0.2s ease; }
.cf-dots button[aria-current="true"]::before { background: var(--orange); transform: scale(1.35); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: var(--s6); background: rgba(11, 11, 11, 0.92); }
.lightbox[hidden] { display: none; }
.lightbox-stage { margin: 0; }
.lightbox-img { display: block; max-width: min(1100px, 90vw); max-height: 86vh; width: auto; height: auto; border-radius: var(--r); }
.lightbox-btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; transition: background 0.2s ease; }
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: var(--orange); color: var(--white); }
.lightbox-close { top: var(--s3); right: var(--s3); font-size: 30px; }
.lightbox-prev { left: var(--s3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--s3); top: 50%; transform: translateY(-50%); }
.lightbox :focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.contact .wrap { padding-top: var(--s16); padding-bottom: var(--s16); }
.contact-head { max-width: 640px; display: flex; flex-direction: column; gap: var(--s2); }
.contact-head .lead { margin-top: var(--s1); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); margin-top: var(--s8); align-items: stretch; }

/* Two ways to reach Marché: grey cards, icon + title top, blurb, detail and arrow at the foot */
.contact-cards { display: flex; flex-direction: column; justify-content: center; gap: var(--s3); }
.ccard {
  position: relative; display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s4); background: var(--panel); border-radius: var(--r);
  color: var(--black); text-decoration: none;
  border: 1px solid transparent; transition: border-color 0.2s ease, background 0.2s ease;
}
.ccard:hover { border-color: rgba(107, 112, 117, 0.25); }
.ccard-top { display: flex; align-items: center; gap: var(--s2); }
.ccard-icon { width: 26px; height: 26px; flex: none; }
.ccard-top strong { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1; text-transform: uppercase; }
.ccard-desc { font-size: 16px; line-height: 1.5; color: var(--grey); margin: 0; max-width: 34em; }
.ccard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  margin-top: var(--s1);
}
.ccard-detail { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: var(--black); }
.ccard-go {
  flex: none; width: 44px; height: 44px;
  background: var(--black); color: var(--white); display: grid; place-items: center; border-radius: 8px;
  transition: background 0.2s ease;
}
.ccard-go svg { width: 18px; height: 18px; }
.ccard:hover .ccard-go { background: var(--orange); }

.form { display: flex; flex-direction: column; gap: var(--s3); }
.form h3 { font-size: 28px; margin-bottom: var(--s1); }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field label { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 var(--s2);
  border: 1px solid var(--grey); border-radius: 0; background: var(--white);
  font-size: 16px; line-height: 1.5; color: var(--black);
}
.field ::placeholder { color: var(--grey); opacity: 0.8; }
.field textarea { height: auto; min-height: 140px; padding: var(--s2); resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: var(--s6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230B0B0B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s2) center;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); outline-offset: 0; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--orange-dark); }
.field .hint { font-size: 14px; color: var(--orange-dark); display: none; }
.field input:user-invalid ~ .hint, .field textarea:user-invalid ~ .hint { display: block; }
/* POPIA consent: a plain square checkbox with running text, not an uppercase label. */
.field.consent .check { display: flex; align-items: flex-start; gap: var(--s2); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5; color: var(--grey); cursor: pointer; }
.field.consent .check a { color: inherit; }
.field.consent input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--black); }
.field.consent:has(input:user-invalid) .hint { display: block; }

.form-foot { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s3); }
.form-foot .note { font-size: 14px; color: var(--grey); }
.form-foot .note a { color: inherit; }
.btn-wide { width: 100%; align-self: stretch; }

/* Sent and error states: the ?sent=1 / ?error=1 redirect (JS) or its #form-sent / #form-error fragment (no JS). */
.form-status { display: none; padding: var(--s3); border: 1px solid var(--black); }
.form-status:target, .form-status.is-shown { display: block; }
.form-status .label { margin-bottom: var(--s1); }
.form-status:focus { outline: none; } /* focused for screen readers only; it is not a control */
.form-status a { color: inherit; font-weight: 600; white-space: nowrap; }
.form-status-error { border-color: var(--orange-dark); }
.form-status-error .label { color: var(--orange-dark); }

/* reCAPTCHA v3 badge hidden; the notice under the button is Google's required attribution. */
.grecaptcha-badge { visibility: hidden; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); }
.footer .wrap { padding-top: var(--s8); padding-bottom: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.footer-top img { height: 56px; width: auto; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s3); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s4); }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-social { display: flex; gap: var(--s2); }
.footer-social .social { display: inline-flex; color: var(--white); transition: color 0.2s ease; }
.footer-social .social svg { width: 24px; height: 24px; display: block; }
.footer-social .social:hover { color: var(--orange); }
/* Nav links: 24px tap target (WCAG 2.2) without moving anything; the padding is cancelled by the margin. */
.nav a.label, .footer-nav a { padding-block: 2px; margin-block: -2px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding-top: var(--s3);
  font-size: 14px; color: var(--text-inv-2);
}
.footer-contact { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal .wrap { padding-top: var(--s12); padding-bottom: var(--s16); }
.legal-head { max-width: 46rem; margin-bottom: var(--s8); }
.legal-head .eyebrow { margin-bottom: var(--s2); }
.legal-head h1 { font-size: 76px; margin-bottom: var(--s3); }
.legal-updated { font-size: 14px; color: var(--grey); margin-top: var(--s3); }
.legal-body { max-width: 46rem; }
.legal-body section + section { margin-top: var(--s8); }
.legal-body h2 { font-size: 24px; margin-bottom: var(--s3); }
.legal-body h3 { font-size: 18px; text-transform: none; letter-spacing: 0; margin: var(--s4) 0 var(--s1); }
.legal-body p + p { margin-top: var(--s2); }
.legal-body ul { margin: var(--s2) 0 0; padding-left: var(--s3); }
.legal-body li { margin-bottom: var(--s1); }
.legal-body a { font-weight: 600; }
.legal-note { margin-bottom: var(--s8); padding: var(--s3); border-left: 2px dotted var(--orange-dark); background: var(--panel); }
.legal-note .label { margin-bottom: var(--s1); color: var(--orange-dark); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .display, h1 { font-size: 76px; }
  .service { grid-template-columns: 64px 240px minmax(0, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .split { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s8); }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .display, h1 { font-size: 56px; }
  h2, h3 { font-size: 40px; }
  .service h3 { font-size: 24px; }

  .header .wrap { height: auto; flex-direction: column; align-items: stretch; gap: var(--s2); padding-top: var(--s2); padding-bottom: var(--s2); }
  .logo img { height: 72px; }
  .nav { justify-content: flex-start; flex-wrap: wrap; gap: var(--s1) var(--s3); }

  .btn { height: 56px; width: 100%; }

  .hero { min-height: 72svh; }
  .hero-inner { padding-top: var(--s12); padding-bottom: var(--s12); gap: var(--s3); }
  .hero-cta { flex-direction: column; gap: var(--s3); width: 100%; }


  .split { grid-template-columns: 1fr; gap: var(--s3); margin-bottom: var(--s4); }
  .cf-track {
    height: calc(min(66vw, 270px) * 1.25 + 60px);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  }
  .cf-card { height: auto; width: min(66vw, 270px); box-shadow: none; }
  .cf-card.is-active { box-shadow: 0 7px 18px rgba(11, 11, 11, 0.16); }
  .cf-arrow { width: 38px; height: 38px; font-size: 20px; }
  .cf-prev { left: 2px; } .cf-next { right: 2px; }
  .lightbox-btn { width: 40px; height: 40px; font-size: 24px; }
  .services .wrap { padding-top: var(--s6); }
  .services .wrap { padding-bottom: var(--s6); }
    .photo::before { font-size: 12px; left: var(--s2); bottom: var(--s2); }

  .service { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s1) var(--s2); padding: var(--s3) 0; }
  .service .idx { grid-row: 1 / span 3; width: 56px; height: 28px; font-size: 18px; }
  .idx { box-shadow: 4px 4px 0 0 var(--black); }
  .service > :not(.idx) { grid-column: 2; }


          
  .contact .wrap { padding-top: var(--s6); padding-bottom: var(--s4); }
  .contact-grid { margin-top: var(--s6); gap: var(--s4); }
  .ccard { gap: var(--s3); padding: var(--s3); }
  .ccard-desc { font-size: 15px; }
  .form { gap: var(--s2); }
  .two { grid-template-columns: 1fr; gap: var(--s2); }
  .field input, .field select { height: 48px; }
  .field textarea { min-height: 112px; }

  .footer .wrap { padding-top: var(--s4); padding-bottom: var(--s4); }
  .footer-top { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .footer-top img { height: 48px; }
  .footer-right { align-items: flex-start; }
  .footer-nav { gap: var(--s2) var(--s3); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--s1); padding-top: var(--s2); }

  .legal-head h1 { font-size: 48px; }
  .legal .wrap { padding-top: var(--s8); padding-bottom: var(--s12); }
}
