/* Self-hosted display face */
@font-face {
  font-family: "Ophian";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Ophian-Regular.woff2") format("woff2");
}

/* Self-hosted Jost (SIL Open Font License 1.1) */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-normal-latin.woff2") format("woff2");
}

:root {
  /* Palette — quiet editorial: ivory, ink, terracotta and one gray for media placeholders */
  --color-bg: #f6f1e8;
  --color-ink: #051230;
  --color-ink-inverse: #ffffff;
  --color-placeholder: #dcdcdc;
  --color-accent: #b4633e;
  --color-accent-text: #a55a37; /* darker terracotta for small text: 4.5:1 on ivory */

  /* Type */
  --font-display: "Ophian", "Optima", "Optima nova LT Pro", Candara, "Segoe UI", system-ui, sans-serif;
  --font-body: "Jost", system-ui, sans-serif;

  --text-small: 14px; /* labels, language links, numbers, button, small print */
  --text-body: 18px;

  --leading-tight: 1.25;
  --leading: 1.45;

  /* Spacing */
  --pad-side: clamp(20px, 4vw, 32px);
  --gutter: clamp(20px, 2.6vw, 32px);
  /* vertical spacing sizes */
  --space-s: 80px;
  --space-m: 120px;
  --space-l: 160px;
  --space-xl: 200px;
  /* fluid between 375px and 1440px wide: S up to M (default), L or XL */
  --section-space: clamp(var(--space-s), 65.9px + 3.756vw, var(--space-m));
  --section-space-l: clamp(var(--space-s), 51.8px + 7.512vw, var(--space-l));
  --section-space-xl: clamp(var(--space-s), 37.7px + 11.268vw, var(--space-xl));
  --head-gap: clamp(24px, 3vw, 40px);

  --container: 1512px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);    /* strong ease-out for entrances */
  --ease-reflow: cubic-bezier(0.22, 1, 0.36, 1); /* destination cards resizing */
  --duration-press: 160ms;
  --duration-hover: 250ms;
  --duration-reflow: 500ms;
  --duration-reveal: 600ms;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, figure { display: block; max-width: 100%; }

h1, h2, h3, p, figure { margin: 0; }

/* No bold anywhere in this design — headings default to 400, body is light */
h1, h2, h3, b, strong { font-weight: 400; }

/* avoid single orphan words; short centred headlines use text-wrap: balance instead */
h1, h2, h3, p, li, figcaption, blockquote, .card-title, .card-body { text-wrap: pretty; }

/* No italics anywhere on the site */
em, i, cite, address { font-style: normal; }

/* Pretty text wrapping on all titles */
h1, h2, h3 { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-side);
  padding-right: var(--pad-side);
}

/* Two-column editorial split: heading on the left, content on the right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}

/* Retune: baseline-align the heading with the first content line */
/* Retune: sticky heading that travels alongside a long content column */
.split--sticky { align-items: stretch; }
.split--sticky .col-head { display: flex; flex-direction: column; }
.split--sticky .col-head .h2 { position: sticky; top: 32px; }
.split--sticky .col-body { padding-top: 12px; }

.section {
  padding-top: var(--section-space);
}

/* Small spacing on top (the space below is the next section's M) */
.section.section--top-s { padding-top: var(--space-s); }

/* Large spacing; after a large or XL bottom, the next block adds no space of its own */
.section.section--xl { padding-block: var(--section-space-xl); }
.section.section--bottom-l { padding-bottom: var(--section-space-l); }
.section--xl + .section,
.section--bottom-l + .section { padding-top: 0; }
.section--bottom-l + .media,
.section--bottom-l + .banner { margin-top: 0; }

/* The closing section gets the same space below it */
main > .section:last-child { padding-bottom: var(--section-space); }

/* hidden icon sprite (a class, not a style attribute, so the CSP can forbid inline styles) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* hairline underlines on every link that has one */
a { text-decoration-thickness: 0.5px; }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--color-bg);
  color: var(--color-ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; } /* only focused by the skip link */

/* ---------- Typography ---------- */
.h2 {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: var(--leading);
}

.card-title {
  color: var(--color-accent-text);
  font-family: var(--font-display);
  font-size: clamp(21px, 1.6vw, 24px);
  letter-spacing: -0.01em;
  line-height: var(--leading);
}

.label {
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: var(--leading);
  text-transform: uppercase;
}

.stat .label { color: var(--color-accent-text); }

/* ---------- Hero (looping background video) ---------- */
.hero {
  position: relative;
  /* first frame of the loop doubles as the poster while the video loads */
  background: var(--color-ink) url("../img/hero-desktop.jpg") center / cover no-repeat;
  aspect-ratio: 21 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px var(--pad-side);
  text-align: center;
  color: var(--color-ink-inverse);
  overflow: hidden;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft navy veil so the white type reads over any frame */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(5, 18, 48, 0.62) 0%,
    rgba(5, 18, 48, 0.55) 12%,
    rgba(5, 18, 48, 0.42) 35%,
    rgba(5, 18, 48, 0.42) 65%,
    rgba(5, 18, 48, 0.32) 100%
  );
  pointer-events: none;
}

.hero__toggle {
  position: absolute;
  right: var(--pad-side);
  bottom: clamp(16px, 2vw, 28px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(5, 18, 48, 0.25);
  color: var(--color-ink-inverse);
  cursor: pointer;
  transition: transform var(--duration-press) ease-out;
}

.hero__toggle:focus-visible { outline: 2px solid var(--color-ink-inverse); outline-offset: 3px; }
.hero__toggle svg { width: 12px; height: 12px; fill: currentColor; }
.hero__toggle .icon-play,
.hero__toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero__toggle[aria-pressed="true"] .icon-play { display: block; }
html:not(.js) .hero__toggle { display: none; }

/* Language switcher: top-left of the hero, aligned with the wordmark */
.lang {
  position: absolute;
  top: clamp(28px, 3vw, 40px);
  left: var(--pad-side);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  z-index: 1;
  color: var(--color-ink-inverse);
  font-size: var(--text-small);
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}
.lang a {
  color: inherit;
  text-decoration: none;
  padding: 8px 2px;
}
.lang a[aria-current="page"] { font-weight: 800; } /* weight marks the current language */
.lang a:focus-visible { outline: 2px solid var(--color-ink-inverse); outline-offset: 2px; }
.lang span { opacity: 0.5; }

/* Contact link: top-right of the hero, same type as the language switcher */
.hero__contact {
  position: absolute;
  top: clamp(28px, 3vw, 40px);
  right: var(--pad-side);
  display: flex;
  align-items: center;
  height: 32px;
  z-index: 1;
  color: var(--color-ink-inverse);
  font-size: var(--text-small);
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.hero__contact:hover { text-decoration: underline 0.5px; text-underline-offset: 5px; }
.hero__contact:focus-visible { outline: 2px solid var(--color-ink-inverse); outline-offset: 2px; }

.hero__brand {
  font-kerning: none; /* pairs are set by hand below */
  position: absolute;
  top: clamp(28px, 3vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.08em;
  padding-left: 0.08em; /* balances the tracking after the last letter, keeping it centred */
  white-space: nowrap;
  line-height: 1;
}

/* Optical spacing for the wordmark (values relative to the font size).
   N–A opened up; A–Y sits 0.045em looser than the font's own -0.075em pair. */
.hero__kern-na { margin-right: 0.055em; }
.hero__kern-ay { margin-right: -0.03em; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.9vw, 40px);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* One-time entrance on page load */
@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: hero-title-in var(--duration-reveal) var(--ease-out) both; }
}
@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .hero__title > span { display: block; white-space: nowrap; }
}

/* ---------- Intro ---------- */
/* letter-spacing in em is computed on body (--text-body) and inherited as px, so restate it at other sizes */
.intro__text { font-size: 20px; letter-spacing: -0.01em; }

/* Paragraph spacing equal to one blank line */
.intro__text + .intro__text { margin-top: calc(var(--leading) * 1em); }

.stats {
  display: flex;
  gap: clamp(40px, 11vw, 172px);
  margin-top: 36px;
}

.stat { display: flex; flex-direction: column; gap: 12px; }

.stat__value {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: var(--leading);
}

/* ---------- Locations (media placeholders) ---------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4.5px;
}

.location {
  position: relative;
  background: var(--color-placeholder);
  aspect-ratio: 0.53;
  min-height: 240px;
  padding: 24px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  isolation: isolate;
}

.location__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navy fade at the top so the white name reads over the sky */
.location::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 18, 48, 0.65), rgba(5, 18, 48, 0));
  pointer-events: none;
}

.location__name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: var(--leading);
  color: var(--color-ink-inverse);
}

/* Desktop: hovering a card smoothly widens it (others give way) */
@media (min-width: 960px) {
  .location-grid {
    display: flex;
    aspect-ratio: 1512 / 463;
  }
  .location {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: auto;
    transition: flex-grow var(--duration-reflow) var(--ease-reflow);
  }
}

@media (min-width: 960px) and (hover: hover) {
  .location:hover { flex-grow: 1.7; }
}

@media (min-width: 960px) and (prefers-reduced-motion: reduce) {
  .location { transition: none; }
}

/* ---------- Services list ---------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.service {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.service__icon {
  flex-shrink: 0;
  color: var(--color-accent);
  width: 24px;
  height: 24px;
  margin-top: 5px;
}

.service__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* ---------- Full-bleed media placeholder ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--color-placeholder);
  width: 100%;
  min-height: 420px;
  aspect-ratio: 1512 / 648;
  margin-top: var(--section-space);
}

.media__img,
.gallery__img,
.banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Why NAYA: numbered editorial rows ---------- */
.why-grid {
  margin-top: var(--head-gap);
  counter-reset: why;
}

.why-card {
  display: grid;
  grid-template-columns: minmax(48px, 1fr) minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--gutter);
  align-items: baseline;
  /* fluid from 32px (375px wide) to 48px (1440px wide) */
  padding: clamp(32px, 26.4px + 1.502vw, 48px) 0;
  border-top: 1px solid rgba(5, 18, 48, 0.14);
  counter-increment: why;
}

.why-card::before {
  content: counter(why, decimal-leading-zero);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent-text);
}

/* fluid from 24px (375px wide) to 30px (1440px wide) */
.why-card .card-title { font-size: clamp(24px, 21.9px + 0.563vw, 30px); }
.why-card .card-body { max-width: 52ch; }
.why-card:first-child { border-top: 0; padding-top: 0; }
.why-card:last-child { padding-bottom: 0; }

/* ---------- Guest offerings gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--head-gap);
  align-items: start;
}

.gallery__item {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  background: var(--color-placeholder);
  overflow: hidden;
}

/* Staggered vertical rhythm, echoing the reference collage */
.gallery__item--2 { margin-top: 39%; }
.gallery__item--3 { margin-top: 12%; }
.gallery__item--4 { margin-top: 24%; }

/* Extended, eased scrim so the caption reads without a hard gradient edge */
.gallery__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.42) 20%,
    rgba(0, 0, 0, 0.27) 40%,
    rgba(0, 0, 0, 0.14) 60%,
    rgba(0, 0, 0, 0.05) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 28px;
  color: var(--color-ink-inverse);
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  isolation: isolate;
  overflow: clip; /* unlike hidden, lets the box grow past its ratio if the text ever needs it */
  aspect-ratio: 16 / 9;
  background: var(--color-ink);
  color: var(--color-ink-inverse);
  margin-top: var(--section-space);
  padding: clamp(40px, 4.2vw, 64px) var(--pad-side) 24px;
  display: flex;
  flex-direction: column;
}

.banner__img { z-index: -1; opacity: 0.9; } /* lets the banner's deep blue ink show through */

/* soft shade at the foot so the small print stays readable over the coast */
.banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 128px;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 18, 48, 0.9) 0%, rgba(5, 18, 48, 0.72) 40%, rgba(5, 18, 48, 0) 100%);
  pointer-events: none;
}

.banner__inner {
  /* background spans the window; the text stays within the page container */
  flex: 1;
  width: 100%;
  max-width: calc(var(--container) - 2 * var(--pad-side));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.banner__inner p { margin: 0; }

/* takes 35% of the spare height, so the text sits just above the middle */
.banner__inner::before {
  content: "";
  flex: 0.35 0 0;
}

.banner__title {
  max-width: 18em; /* wraps the title into two balanced lines */
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

.banner__inner .banner__terms {
  max-width: 62ch;
  margin-top: 16px;
  text-wrap: pretty;
}

.banner__terms strong { font-weight: 600; }

/* small print, pinned to the bottom of the banner */
.banner__inner .banner__conditions {
  margin-top: auto;
  padding-top: 24px;
  font-size: var(--text-small);
  letter-spacing: 0.03em;
  line-height: var(--leading);
  text-wrap: pretty;
}

.banner__cta {
  display: inline-block;
  margin-top: 44px;
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--color-ink-inverse);
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--duration-hover) ease, color var(--duration-hover) ease, transform var(--duration-press) ease-out;
}

.banner__cta:hover { background: var(--color-ink-inverse); color: var(--color-ink); }
.banner__cta:focus-visible { outline: 2px solid var(--color-ink-inverse); outline-offset: 3px; }

/* ---------- Press feedback ---------- */
@media (prefers-reduced-motion: no-preference) {
  .banner__cta:active,
  .hero__toggle:active { transform: scale(0.97); }
}

/* legal links, under the small print in the navy area */
.banner__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 24px;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.banner__legal a { color: inherit; padding: 5px 2px; text-underline-offset: 3px; }
.banner__legal a:focus-visible { outline: 2px solid var(--color-ink-inverse); outline-offset: 2px; }

/* ---------- Founder quote ---------- */
.founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
}

.founder__quote {
  max-width: 40ch;
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(28px, 21px + 1.878vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.founder__quote p { margin: 0; }
.founder__quote span { display: block; text-wrap: balance; } /* one sentence per line where it fits */

.founder__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--head-gap);
}
.founder__author p { margin: 0; }

/* fluid text: 375px to 1440px wide */
.founder__author { font-size: clamp(18px, 17.3px + 0.188vw, 20px); }
.founder__author .founder__name {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(20px, 19.3px + 0.188vw, 22px);
  line-height: var(--leading-tight);
}

.founder__photo {
  width: clamp(76.8px, 8vw, 102.4px);
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--color-placeholder);
  object-fit: cover;
}

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
  }
  /* edge-to-edge images fade in place */
  html.js .media.reveal,
  html.js .banner.reveal {
    transform: none;
  }
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Reduced motion: no movement, just a short fade */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 0;
    transition: opacity 200ms ease;
  }
  html.js .reveal.is-visible { opacity: 1; }
}

/* Staggered groups: the container stays put, its children reveal in turn */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal.reveal--stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .reveal--stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
  }
  html.js .reveal--stagger.is-visible > * {
    opacity: 1;
    transform: none;
  }
  html.js .reveal--stagger > :nth-child(2) { transition-delay: 60ms; }
  html.js .reveal--stagger > :nth-child(3) { transition-delay: 120ms; }
  html.js .reveal--stagger > :nth-child(4) { transition-delay: 180ms; }
  html.js .reveal--stagger > :nth-child(5) { transition-delay: 240ms; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  /* stacked layout: an empty heading column must not add a row gap */
  .split > .col-head:empty { display: none; }
  .split {
    grid-template-columns: 1fr;
    gap: var(--head-gap);
  }
  .location-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gallery__item--3 { margin-top: 0; }
  .gallery__item--2,
  .gallery__item--4 { margin-top: 14%; }
}

@media (max-width: 640px) {
  .lang { display: none; } /* no language switcher on phones */

  /* Contact floats at the bottom of the screen as a terracotta button */
  .hero__contact {
    position: fixed;
    top: auto;
    right: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    justify-content: center;
    min-width: 148px;
    height: 44px;
    padding: 0 24px;
    font-size: 13px;
    background: var(--color-accent-text); /* darker terracotta: white text passes contrast */
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(5, 18, 48, 0.28);
    transition: opacity var(--duration-hover) ease, visibility var(--duration-hover) ease;
  }
  .hero__contact:hover { text-decoration: none; }
  /* visibility also removes the tucked button from the tab order */
  .hero__contact.is-tucked { opacity: 0; visibility: hidden; }
  .hero__contact:focus-visible { outline-color: var(--color-ink); }
  html { scroll-padding-bottom: 76px; } /* keeps focused items clear of the button */
  .banner::after { height: 200px; }
  .hero {
    aspect-ratio: 2 / 3;
    background-image: url("../img/hero-mobile.jpg");
  }
  .stats { flex-direction: column; gap: 24px; }
  .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .location { aspect-ratio: 0.7; padding: 20px; }
  .why-card { grid-template-columns: 1fr; gap: 8px; }
  .banner { aspect-ratio: 2 / 3; padding: 36px var(--pad-side) 20px; }
  .banner__title { font-size: 22px; }
  .banner__inner .banner__terms { font-size: 14px; line-height: 1.4; }
  .banner__cta { margin-top: 28px; padding: 11px 20px; }
  .service-list { gap: 28px; }
  .media { min-height: 260px; aspect-ratio: 4 / 5; }
  /* Carousel: swipeable row that bleeds off both screen edges */
  .gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-side);
    margin-inline: calc(-1 * var(--pad-side));
    padding-inline: var(--pad-side);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
  .gallery__item--2,
  .gallery__item--3,
  .gallery__item--4 { margin-top: 0; }
  .gallery__caption { padding: 18px; font-size: 14px; }
}

/* ---------- 404 page ---------- */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--head-gap);
  padding: var(--space-s) var(--pad-side);
  text-align: center;
}
.notfound p { margin: 0; }
.notfound a { color: var(--color-accent-text); }

/* ---------- Legal pages ---------- */
/* dark blue page with ivory text */
.legal-page { background: var(--color-ink); color: var(--color-bg); }
.legal-page .hero__contact:focus-visible { outline-color: var(--color-bg); }
@media (max-width: 640px) {
  .legal-page .hero__contact { color: var(--color-bg); }
}
/* Header: the same nav as the home page (languages left, wordmark centre, contact right),
   ivory on the dark blue page. It reuses .lang, .hero__brand and .hero__contact. */
.legal-header {
  position: relative;
  height: calc(2 * clamp(28px, 3vw, 40px) + 32px);
}
.legal-header .hero__brand,
.legal-header .lang { color: var(--color-bg); }
.legal-header .hero__brand { text-decoration: none; }
.legal-header .hero__brand:focus-visible,
.legal-header .lang a:focus-visible { outline: 2px solid var(--color-bg); outline-offset: 3px; }
@media (min-width: 641px) {
  /* on phones the contact link stays the filled terracotta button */
  .legal-page .hero__contact { color: var(--color-bg); }
  .legal-page .hero__contact:focus-visible { outline-color: var(--color-bg); }
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 24px var(--pad-side);
  color: var(--color-bg); /* same treatment as the header */
}
.legal-footer a { color: inherit; text-decoration: none; padding: 4px 2px; }
.legal-footer a:focus-visible { outline: 2px solid var(--color-bg); outline-offset: 2px; }

.legal {
  max-width: calc(72ch + 2 * var(--pad-side));
  margin: 0 auto;
  padding: var(--space-s) var(--pad-side);
  overflow-wrap: break-word;
}
.legal h1 { margin: 0 0 32px; color: var(--color-bg); font-family: var(--font-display); font-size: clamp(32px, 28px + 1.1vw, 44px); line-height: var(--leading-tight); }
.legal h2 { margin: 48px 0 12px; color: var(--color-bg); font-family: var(--font-display); font-size: 24px; line-height: var(--leading-tight); }
.legal p,
.legal ul { margin: 0 0 16px; }
.legal ul { padding-left: 20px; list-style-type: "\2013\00A0\00A0"; } /* en dash instead of dots */
.legal li { margin-bottom: 6px; }
.legal a { color: var(--color-bg); text-underline-offset: 3px; } /* underline marks links */
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.legal th,
.legal td { padding: 12px 16px 12px 0; border-bottom: 1px solid rgba(246, 241, 232, 0.22); text-align: left; vertical-align: top; }
.legal th { font-weight: 500; }
@media (max-width: 640px) {
  /* each table row stacks, with its column name as a caption */
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal tr { padding: 12px 0; border-bottom: 1px solid rgba(246, 241, 232, 0.22); }
  .legal td { padding: 2px 0; border: 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: var(--text-small); font-weight: 500; }
}
.legal-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: var(--text-small); }
.legal-footer [aria-current="page"] { text-decoration: underline 0.5px; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .legal-footer { padding-bottom: 76px; } /* room for the floating contact button */
}
