/* Defiant Motor Culture - homepage mockup
   Inter throughout, weight and tracking carrying the display voice rather
   than a second family. Near-black ground, cream
   counter-sections, accent sampled from the light blue on their own cars.
   The hero composition (full-bleed photo, floating masthead, bottom-left
   serif headline, cream card bottom-right, logo band beneath) is the
   layout James asked to build the page around.
   No frameworks, no build step. */

:root {
  --ink: #0c0e10;
  --ink-2: #15181c;
  --ink-3: #1e2227;
  --cream: #f8f5ef;
  --cream-2: #efeae0;
  --accent: #92c2f6;
  --accent-deep: #6ba5e4;
  --accent-note: #2f6ea8;

  --on-ink: #f4f6f8;
  --on-ink-soft: rgba(244, 246, 248, 0.7);
  --on-ink-faint: rgba(244, 246, 248, 0.42);
  --on-cream-soft: rgba(12, 14, 16, 0.66);
  --rule-dark: rgba(244, 246, 248, 0.16);
  --rule-light: rgba(12, 14, 16, 0.14);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);

  --max: 78rem;
  --gutter: clamp(2rem, 5.5vw, 5.5rem);
  --pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Set while the phone menu overlay is open, so the page cannot scroll behind it. */
body.nav-open { overflow: hidden; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--ink);
  padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Section inners share a div with .container, so vertical spacing uses
   longhand. Shorthand padding here would wipe the horizontal gutter and
   let copy run into the viewport edge. */
.section__inner {
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}

/* A grotesque carries far more ink than the serif did at the same size, so
   the display scale comes down and the tracking tightens to compensate. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.7rem, 6vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.1vw, 3.3rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; line-height: 1.35; letter-spacing: 0; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 500; line-height: 1;
  padding: 0.72rem 1.25rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn--lg { font-size: 0.97rem; padding: 0.95rem 1.7rem; }
.btn--block { width: 100%; }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-deep); }

.btn--ghost { background: transparent; color: var(--on-ink); border-color: rgba(244, 246, 248, 0.34); }
.btn--ghost:hover { border-color: var(--on-ink); background: rgba(244, 246, 248, 0.08); }

.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--ink-3); }

.link-plain { font-size: 0.9rem; color: var(--on-ink); opacity: 0.9; }
.link-plain:hover { opacity: 1; }

/* =============================== HERO =============================== */
.hero {
  position: relative;
  min-height: 660px;
  height: 100svh;
  max-height: 1100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  filter: saturate(0.92) contrast(1.04) brightness(0.82);
}

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8, 10, 12, 0.82) 0%, rgba(8, 10, 12, 0.42) 42%, rgba(8, 10, 12, 0.1) 75%),
    linear-gradient(to bottom, rgba(8, 10, 12, 0.72) 0%, rgba(8, 10, 12, 0.12) 26%, rgba(8, 10, 12, 0.32) 62%, rgba(8, 10, 12, 0.86) 100%);
}

/* ------------------------------ masthead ------------------------------ */
.masthead {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 4;
  padding: clamp(1.1rem, 2.2vw, 1.9rem) var(--gutter);
}
.masthead__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.brand img { height: clamp(24px, 2.4vw, 32px); width: auto; }

.nav {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.1rem, 2.2vw, 2.1rem);
}
.nav a {
  font-size: 0.92rem;
  color: rgba(244, 246, 248, 0.88);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: rgba(244, 246, 248, 0.5); }

/* The Services item carries a full-width mega panel. It opens on hover AND on
   focus in CSS alone, so it works with JS off; the caret is a separate hit
   target for touch, and inside the burger menu the whole thing collapses to an
   indented list.

   Spanning the navbar is done by hanging the panel off .masthead__inner rather
   than off the nav item, so its edges land on the masthead's content box with
   no reference to 100vw - which carries the scrollbar and would overflow. The
   item is stretched to the full row height for the same reason the panel has a
   padding-top bridge: the pointer must never cross ground that belongs to
   neither, or the menu closes under the cursor on the way down to it. */
.nav { align-self: stretch; }
.nav__item { display: flex; align-items: center; }
.nav__item--menu { align-self: stretch; gap: 0.3rem; }

.nav__caret {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: rgba(244, 246, 248, 0.6);
  transition: transform 0.2s ease, color 0.2s ease;
}
.nav__caret svg { width: 10px; height: 10px; }
.nav__item--menu:hover .nav__caret,
.nav__item--menu:focus-within .nav__caret,
.nav__item--menu.is-open .nav__caret { color: #fff; transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: 100%; left: 0; right: 0;
  z-index: 5;
  padding-top: 0.85rem;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav__item--menu:hover .nav__menu,
.nav__item--menu:focus-within .nav__menu,
.nav__item--menu.is-open .nav__menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}

.nav__mega {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.35fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.4rem, 2vw, 2rem);
  text-align: left;
  /* The panel hangs off the masthead, which sits inside a cream-grounded body,
     so anything that is not a link inherits the page's dark ink and disappears
     on this ground. The panel has to set its own. */
  color: var(--on-ink);
  background: rgba(12, 14, 16, 0.95);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(244, 246, 248, 0.13);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.nav__mega-intro { display: flex; flex-direction: column; }
.nav__mega .eyebrow { color: var(--on-ink-soft); }
.nav__mega-lede {
  margin-top: 0.9rem; max-width: 22rem;
  font-size: 0.94rem; line-height: 1.55; color: var(--on-ink-soft);
}
.nav__mega-act {
  margin-top: auto; padding-top: 1.4rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
  border-top: 1px solid rgba(244, 246, 248, 0.13);
}
.nav__mega .nav__mega-where {
  font-size: 0.86rem; line-height: 1.5; color: var(--on-ink-soft);
  border-bottom: 0;
}
.nav__mega .nav__mega-where:hover { color: #fff; }
.nav__mega .nav__mega-where span { display: block; color: var(--on-ink-faint); }
/* .nav a is a class plus an element, so it outranks .btn and would strip the
   pill back to a nav link. Both of these have to beat it on their own. */
.nav__mega .btn { padding: 0.72rem 1.25rem; font-size: 0.9rem; border-bottom: 0; }
.nav__mega .nav__mega-tel {
  font-size: 0.92rem; color: var(--on-ink-soft);
  border-bottom: 1px solid rgba(244, 246, 248, 0.28);
}
.nav__mega .nav__mega-tel:hover { color: #fff; border-bottom-color: var(--on-ink); }

.nav__mega-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }

.nav__mega-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem 0.9rem; align-content: start;
}
.nav__svc a {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem; align-items: start;
  padding: 0.7rem 0.8rem;
  border-radius: 12px; border-bottom: 0;
  color: var(--on-ink);
  transition: background-color 0.18s ease;
}
.nav__svc a:hover,
.nav__svc a:focus-visible {
  background: rgba(244, 246, 248, 0.07);
  border-bottom-color: transparent; color: #fff;
}
.nav__svc img {
  display: block; width: 76px; height: 57px;
  object-fit: cover; border-radius: 8px; background: var(--ink-3);
}
.nav__svc-txt { display: block; min-width: 0; }
.nav__svc-head { display: flex; align-items: baseline; gap: 0.6rem; }
.nav__svc-num {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em;
  color: var(--accent);
}
.nav__svc-name { font-size: 0.98rem; line-height: 1.25; }
.nav__svc-desc {
  display: block; margin-top: 0.25rem;
  font-size: 0.8rem; line-height: 1.45; color: var(--on-ink-soft);
}

/* The eighth cell. Seven services fill three and a half rows of a two-column
   grid, so the odd cell out becomes the way through to the gallery. */
.nav__svc--more a {
  grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  border: 1px dashed rgba(244, 246, 248, 0.2);
}
.nav__svc--more a:hover { border-color: rgba(146, 194, 246, 0.5); }
.nav__svc-arrow {
  width: 16px; height: 16px; color: var(--accent);
  transition: transform 0.18s ease;
}
.nav__svc--more a:hover .nav__svc-arrow { transform: translateX(3px); }

.masthead__actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 0.6rem;
}

.burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 34px;
  padding: 8px 6px;
  justify-self: end;
}
.burger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--on-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger span + span { margin-top: 7px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ------------------------------ hero body ------------------------------ */
.hero__body {
  position: relative; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2.5rem;
  padding: 0 var(--gutter) clamp(2.75rem, 7vh, 5rem);
  width: 100%;
}

.hero__copy { max-width: 44rem; }
.hero__copy .eyebrow { color: var(--on-ink-soft); margin-bottom: clamp(1rem, 2.2vw, 1.6rem); }
.hero h1 { color: #fff; }
.hero__sub {
  margin-top: clamp(1.1rem, 2vw, 1.6rem);
  max-width: 34rem;
  font-size: clamp(1rem, 1.15vw, 1.09rem);
  line-height: 1.55;
  color: rgba(244, 246, 248, 0.84);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: clamp(1.6rem, 3vw, 2.3rem); }

.hero__card {
  display: flex; flex-direction: column; align-items: center;
  flex: 0 0 auto;
  width: min(21rem, 26vw);
  margin-bottom: 0.25rem;
}
/* A real photo in a thin white frame, on James's call. The border is what
   separates it from the hero shot behind it - a photo laid straight onto
   another photo has no edge of its own. */
.hero__card-face {
  display: block; overflow: hidden;
  width: 100%;
  aspect-ratio: 2.35 / 1;
  background: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hero__card-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__card:hover .hero__card-face { transform: translateY(-3px); border-color: #fff; }
.hero__card-cap {
  margin-top: 0.85rem;
  font-size: 0.93rem;
  color: rgba(244, 246, 248, 0.9);
}

/* ============================ MATERIALS BAND ============================ */
/* Same effect as the gallery: one row running edge to edge, pausing when you
   put the cursor on it. The gap lives in a custom property because the
   keyframe has to translate by exactly one set PLUS one gap to land on an
   identical frame - four copies means a quarter of the track less a quarter
   of a gap. Read from the same property, the two can never drift apart. */
.band { background: var(--cream); padding: clamp(1.9rem, 3.4vw, 2.6rem) 0; overflow: hidden; }
.band__row { overflow: hidden; }
.band__track {
  --band-gap: clamp(2.5rem, 5vw, 4.5rem);
  list-style: none;
  display: flex; align-items: center;
  gap: var(--band-gap);
  width: max-content;
  animation: band-scroll 38s linear infinite;
}
@keyframes band-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-25% - var(--band-gap) / 4), 0, 0); }
}
.band:hover .band__track { animation-play-state: paused; }

.band__track li { display: flex; align-items: center; flex: 0 0 auto; }
/* Seven brand marks with seven different aspect ratios: capping BOTH axes is
   what stops the wide wordmarks (Teckwrap, Inozetek) swamping the square-ish
   ones (3M, Hexis) the way a height-only cap does. */
.band__track img {
  height: auto;
  width: auto;
  max-height: clamp(22px, 2vw, 28px);
  max-width: clamp(86px, 8vw, 112px);
  opacity: 0.72;
  transition: opacity 0.18s ease;
}
.band__track li:hover img { opacity: 1; }

/* ============================== SECTIONS ============================== */
.section--ink { background: var(--ink); color: var(--on-ink); }
/* Two sections sharing a ground stack their paddings into a dead void instead
   of reading as breathing room. Halve it on both sides of an ink/ink seam. */
.section--ink + .section--ink .section__inner,
.section--cream + .section--cream .section__inner { padding-top: clamp(2.25rem, 4vw, 3.5rem); }
.section--cream { background: var(--cream); color: var(--ink); }
/* A ground change separates two sections on its own, so the seam rule above
   must not clip the top of the panel that changes colour. */
.section--cream + .section--white .section__inner { padding-top: clamp(4.5rem, 9vw, 8rem); }
/* One shade down, so the white card the open question lifts into actually
   reads. On the lighter cream it is nearly invisible. */
.section--cream-2 { background: var(--cream-2); }
/* Keeps .section--cream so every colour rule hanging off it still applies,
   and only takes the ground to white. */
.section--white { background: #fff; }

.head { max-width: 46rem; }
.head .eyebrow { margin-bottom: 1.1rem; }
.section--ink .head .eyebrow { color: var(--accent); }
.section--cream .head .eyebrow { color: var(--accent-deep); }
.head__sub {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: 1.03rem;
  line-height: 1.6;
}
.section--ink .head__sub { color: var(--on-ink-soft); }
.section--cream .head__sub { color: var(--on-cream-soft); }

/* ------------------------------ services ------------------------------ */
/* The card carousel from the reference James sent: a centred head, then cream
   cards on the dark ground running off the right edge, each pairing a service
   with the photo that proves it. Native scroll-snap, so it drags on a
   trackpad and swipes on a phone with no carousel library behind it. */
.svcs {
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}

.head--center { max-width: 42rem; margin-left: auto; margin-right: auto; text-align: center; }
.head--center .head__sub { margin-left: auto; margin-right: auto; }

.carousel {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* The first card has to line up with the centred head above it, and the last
   one needs the same air on its right. A percentage here resolves against the
   body content box, so it tracks .container without 100vw's scrollbar error. */
.carousel { scroll-padding-left: max(var(--gutter), calc(50% - 39rem + var(--gutter))); }
.carousel__track {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  width: max-content;
  padding-left: max(var(--gutter), calc(50% - 39rem + var(--gutter)));
  padding-right: var(--gutter);
}

.card {
  flex: 0 0 min(58rem, 84vw);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: clamp(320px, 34vw, 470px);
  padding: clamp(1.5rem, 2.2vw, 2.25rem);
  background: var(--cream);
  color: var(--ink);
  border-radius: clamp(16px, 1.6vw, 24px);
}
.card__copy { display: flex; flex-direction: column; }
.card__kicker { color: var(--accent-deep); margin-bottom: 1.1rem; }
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
/* Copy sits at the foot of the card, the way the reference stacks it. */
.card__body { margin-top: auto; padding-top: 2rem; }
.card__body p { font-size: 0.95rem; line-height: 1.62; color: var(--on-cream-soft); }
.card__body p + p { margin-top: 0.9rem; }

.card__shot { height: 100%; }
.card__shot img {
  width: 100%;
  height: 100%;
  min-height: clamp(200px, 24vw, 340px);
  object-fit: cover;
  border-radius: clamp(10px, 1vw, 14px);
  background: var(--ink-3);
}

.carousel__foot {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.rail {
  position: relative;
  flex: 1 1 auto;
  max-width: 24rem;
  height: 2px;
  background: var(--rule-dark);
  border-radius: 2px;
}
.rail__fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 30%;
  background: var(--accent);
  border-radius: 2px;
  transition: left 0.18s ease, width 0.18s ease;
}
.carousel__nav { display: flex; gap: 0.6rem; }
.cbtn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--pill);
  border: 1px solid rgba(244, 246, 248, 0.34);
  background: transparent;
  color: var(--on-ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}
.cbtn svg { width: 20px; height: 20px; }
.cbtn:hover:not(:disabled) { border-color: var(--on-ink); background: rgba(244, 246, 248, 0.08); }
.cbtn:disabled { opacity: 0.3; cursor: default; }

/* Notes to Gerard, never customer-facing copy. Light accent on the dark
   ground, a darker one on cream, where #92c2f6 has almost no contrast. */
.flag {
  display: inline;
  color: var(--accent);
  border-bottom: 1px dashed rgba(146, 194, 246, 0.6);
}
.card .flag,
.section--cream .flag {
  color: var(--accent-note);
  border-bottom-color: rgba(47, 110, 168, 0.5);
}

/* ------------------------------- gallery ------------------------------- */
/* Two full-bleed rows running in opposite directions, bleeding off both
   edges. The section keeps its own padding rather than .section__inner,
   because the marquee has to escape any container. The services section's
   own bottom padding carries the gap, hence padding-top: 0. */
.gallery {
  padding-top: 0;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
}
.marquee { display: grid; gap: clamp(0.75rem, 1.2vw, 1rem); }
.marquee__row { overflow: hidden; }

.marquee__track {
  list-style: none;
  display: flex;
  gap: clamp(0.75rem, 1.2vw, 1rem);
  width: max-content;
  animation: marquee 64s linear infinite;
}
/* The track holds the set twice, so translating exactly half its width
   (gap included, hence the gap correction) lands on an identical frame. */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - clamp(0.375rem, 0.6vw, 0.5rem)), 0, 0); }
}
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 78s; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.gal__item {
  flex: 0 0 auto;
  height: clamp(190px, 23vw, 330px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-3);
}
.gal__item--wide     { aspect-ratio: 3 / 2; }
.gal__item--standard { aspect-ratio: 4 / 3; }
.gal__item--square   { aspect-ratio: 1 / 1; }
.gal__item--tall     { aspect-ratio: 3 / 4; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------- split ------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split__copy h2 { margin-bottom: 1.6rem; }
.split__copy p { max-width: 32rem; margin-bottom: 1.1rem; line-height: 1.65; }
.section--ink .split__copy p { color: var(--on-ink-soft); }
.section--cream .split__copy p { color: var(--on-cream-soft); }
.split__media { display: grid; gap: clamp(0.75rem, 1.2vw, 1rem); }
.split__shot img {
  width: 100%;
  height: clamp(240px, 27vw, 360px);
  object-fit: cover;
  border-radius: 14px;
}
/* A shot inside a copy column rather than a media column, so it sits lower
   and shorter than the ones carrying a whole section. */
.split__shot--inline { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.split__shot--inline img { height: clamp(190px, 19vw, 275px); }

/* Keyless Google embed. It only renders light, so it sits as a deliberate
   inset panel on the dark ground rather than being filtered into a fake
   dark mode, which mangles Google's own marks. */
.map {
  border-radius: 14px;
  overflow: hidden;
  height: clamp(180px, 19vw, 250px);
  background: var(--ink-3);
  border: 1px solid var(--rule-dark);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.facts__go {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(146, 194, 246, 0.4);
}
.facts__go:hover { border-bottom-color: var(--accent); }

.facts { margin-top: 2rem; display: grid; gap: 1.05rem; }
.facts > div { display: grid; gap: 0.2rem; border-top: 1px solid var(--rule-dark); padding-top: 0.9rem; }
.facts dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-faint); }
.facts dd { font-size: 0.98rem; color: var(--on-ink); }
.facts a { border-bottom: 1px solid var(--rule-dark); }
.facts a:hover { border-bottom-color: var(--accent); }

/* --------------------------------- faq --------------------------------- */
/* The accordion James referenced: one centred column, a closed row sitting
   bare on the ground, and the open one lifting out of it as a white card.
   The card's padding is what makes it wider than the rows, so every question
   stays on the same left edge whether its item is open or shut. */
/* Narrower than the container it sits in, and centred inside it, so the
   column matches the reference without fighting the page gutter. */
.faq__title,
.faq__list { max-width: 52rem; margin-left: auto; margin-right: auto; }
.faq__title { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.faq__list { display: grid; gap: clamp(0.35rem, 0.8vw, 0.75rem); }

.faq__item {
  border-radius: clamp(14px, 1.4vw, 20px);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.faq__item[open] {
  background: #fff;
  box-shadow: 0 20px 50px rgba(12, 14, 16, 0.09), 0 2px 6px rgba(12, 14, 16, 0.04);
}

.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 1.5rem;
  padding: clamp(1.35rem, 2.4vw, 2.1rem) clamp(1.35rem, 2.2vw, 2rem);
  font-size: clamp(1rem, 1.25vw, 1.12rem); font-weight: 500; line-height: 1.4;
}
.faq__q::-webkit-details-marker { display: none; }
/* Chevron drawn from two borders rather than an icon file, so it rotates
   between the two states instead of swapping glyphs. */
.faq__q::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 11px; height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__q::after { transform: translateY(2px) rotate(-135deg); }
.faq__q:hover { color: var(--accent-note); }
.faq__q:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

.faq__a {
  padding: 0 clamp(1.35rem, 2.2vw, 2rem) clamp(1.5rem, 2.2vw, 2rem);
  margin-top: -0.35rem;
}
.faq__a p { font-size: 0.97rem; line-height: 1.68; color: var(--on-cream-soft); }

/* ------------------------------- contact ------------------------------- */
.split--form { align-items: start; }
.contact__direct { margin-top: 1.8rem; }

.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; gap: 0.4rem; }
.form label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em; color: var(--on-cream-soft); }
.form input, .form textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-light);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  width: 100%;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(146, 194, 246, 0.32);
}
.form textarea { resize: vertical; }

/* -------------------------------- footer -------------------------------- */
.foot { background: var(--ink-2); color: var(--on-ink); }
.foot__inner {
  padding-top: clamp(2.75rem, 5vw, 3.75rem);
  padding-bottom: clamp(2.75rem, 5vw, 3.75rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
.brand--foot img { height: 26px; opacity: 0.9; }
.foot__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.4rem; }
.foot__nav a { font-size: 0.9rem; color: var(--on-ink-soft); }
.foot__nav a:hover { color: var(--on-ink); }
.foot__meta { font-size: 0.87rem; color: var(--on-ink-soft); text-align: right; line-height: 1.7; }
.foot__meta a { border-bottom: 1px solid var(--rule-dark); }
.foot__fine { color: var(--on-ink-faint); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1080px) {
  .masthead__inner { grid-template-columns: auto minmax(0, 1fr); }
  .nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column; align-items: flex-start;
    gap: 0.25rem;
    padding-top: 1.25rem;
  }
  /* On a phone the menu is a destination, not a dropdown. It was a floating
     card with the hero still visible around it, which left the close button
     stranded underneath the panel it belonged to. Open, the whole masthead
     becomes the screen: brand and close at the top, links in the middle, the
     two ways to make contact pinned at the bottom - and .masthead__actions,
     hidden on mobile since it was built, finally has somewhere to live. */
  .masthead.is-open {
    position: fixed; inset: 0;
    z-index: 60;
    background: var(--ink);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
  }
  .masthead.is-open .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    /* dvh so the bar-collapsing viewport on iOS cannot leave the bottom row
       floating in the middle of the screen. */
    min-height: calc(100vh - 2 * clamp(1.1rem, 2.2vw, 1.9rem) - 2rem);
    min-height: calc(100dvh - 2 * clamp(1.1rem, 2.2vw, 1.9rem) - 2rem);
  }
  .masthead.is-open .brand  { grid-area: 1 / 1 / 2 / 2; }
  .masthead.is-open .burger { grid-area: 1 / 2 / 2 / 3; position: relative; z-index: 2; }
  .masthead.is-open .nav    { grid-area: 2 / 1 / 3 / -1; align-self: start; }
  .masthead.is-open .masthead__actions {
    grid-area: 3 / 1 / 4 / -1;
    display: flex; flex-direction: column; align-items: stretch;
    justify-content: flex-start;
    gap: 0.7rem;
    margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid var(--rule-dark);
  }
  .masthead.is-open .link-plain { text-align: center; padding: 0.2rem 0; }

  .nav.is-open {
    display: flex;
    margin-top: 1.6rem;
    padding: 0;
    max-height: none; overflow: visible;
  }
  .nav a { font-size: 1.12rem; padding: 0.55rem 0; }
  .masthead__actions { display: none; }
  .burger { display: block; }

  /* Inside the burger menu the panel is not a floating card spanning the
     navbar, it is an indented list that the caret expands. display:none is what
     hides it here, so the desktop hover rules above (which only move opacity)
     cannot re-open it. */
  .nav__item { width: 100%; flex-wrap: wrap; }
  .nav__item--menu { align-self: auto; gap: 0.4rem; }
  .nav__caret { width: 34px; height: 34px; color: rgba(244, 246, 248, 0.7); }
  .nav__caret svg { width: 12px; height: 12px; }
  .nav__menu {
    display: none;
    position: static; width: 100%;
    padding: 0 0 0.4rem;
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
  }
  /* The open-state rule above is three classes deep, so it outranks the plain
     .nav__menu reset in here and would keep the panel translated. The transform
     has to be undone at the same specificity. */
  .nav__item--menu:hover .nav__menu,
  .nav__item--menu:focus-within .nav__menu,
  .nav__item--menu.is-open .nav__menu { transform: none; }
  .nav__item--menu.is-open .nav__menu { display: block; }

  .nav__mega {
    grid-template-columns: minmax(0, 1fr); gap: 0;
    padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav__mega-intro { display: none; }
  .nav__mega-grid {
    grid-template-columns: minmax(0, 1fr); gap: 0;
    padding-left: 0.2rem;
    border-left: 1px solid rgba(244, 246, 248, 0.16);
  }
  /* The descriptions are what make the desktop panel worth opening; in a phone
     menu they are just length between the visitor and the link they came for. */
  .nav__svc-desc { display: none; }
  .nav__svc a { padding: 0.45rem 0.7rem; gap: 0.75rem; align-items: center; }
  .nav__svc img { width: 54px; height: 40px; }
  .nav__svc--more a { border: 0; padding-left: 0.7rem; }
  .hero__card { display: none; }
  .hero__body { padding-bottom: clamp(2.5rem, 6vh, 4rem); }
}

@media (max-width: 700px) {
  /* A square source covering a tall viewport can only be cropped sideways, so
     object-position cannot lift the car up the frame - only a zoom can. */
  .hero__img { transform: scale(1.22); transform-origin: 50% 62%; }
}

@media (max-width: 860px) {
  .card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }
  /* Photo above the copy on a phone, where a side-by-side card would leave
     both halves too narrow to read. */
  .card__shot { order: -1; }
  .card__shot img { height: clamp(180px, 46vw, 260px); min-height: 0; }
  .card__body { padding-top: 1.25rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--form .split__copy { margin-bottom: 0.5rem; }
  .foot__inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 1.6rem; }
  .foot__nav { justify-content: center; }
  .foot__meta { text-align: center; }
}

@media (max-width: 560px) {
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  /* Static and scrollable by hand rather than moving on its own. The cards
     were always dragged, so they need nothing here. */
  .marquee__track, .band__track { animation: none; }
  .marquee__row, .band__row { overflow-x: auto; }
  .rail__fill { transition: none; }
}
