/* ==========================================================================
   Caribbean Crews — main stylesheet
   Plain CSS, no build step. Sections follow the page order.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --ink: #141414;
  --ink-soft: #3a3835;
  --muted: #6f6a62;
  --paper: #f4f1ec;
  --paper-deep: #ebe6de;
  --line: rgba(20, 20, 20, 0.14);
  --night: #0d0d0d;
  --navy: #1d2a5e;
  --white: #fff;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --header-h: 84px;
  --section: clamp(72px, 10vw, 150px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section { padding-block: var(--section); }
.section--tight { padding-top: 0; }

.section__head {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.section__title { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 64px); line-height: 1; }
.section__note { margin: 0; max-width: 44ch; color: var(--muted); }

.lede { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.15; margin: 0; }
.prose { max-width: 62ch; }
.prose p { margin-bottom: 1.1em; }

/* ---- Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper-deep); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--navy); }
.btn[disabled] { opacity: 0.5; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.4s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover::after { transform: translateX(4px); }

.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px; background: var(--navy); color: var(--white);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---- Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
body:not(.has-overlay) main { padding-top: var(--header-h); }

.site-header--overlay:not(.is-scrolled) {
  background: transparent;
  border-color: transparent;
  color: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: block; flex: none; }
.brand__logo {
  width: 104px; height: auto;
  /* The supplied logo is a JPEG on white; clip to the oval so it sits on any background. */
  clip-path: ellipse(46.5% 43.5% at 48.6% 46.6%);
}

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; }
.site-nav__link {
  position: relative; display: inline-flex; gap: 6px; align-items: flex-start;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  padding-block: 6px;
}
.site-nav__num { font-size: 9px; opacity: 0.55; letter-spacing: 0.05em; }
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav__ig { font-size: 13px; text-decoration: none; opacity: 0.8; }
.site-nav__ig:hover { opacity: 1; }

.menu-toggle {
  display: none; align-items: center; gap: 12px;
  padding: 8px 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  position: relative; z-index: 2;
}
.menu-toggle__icon { display: grid; gap: 6px; width: 26px; }
.menu-toggle__icon span { display: block; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand__logo { width: 88px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 48px;
    padding: var(--header-h) var(--gutter) 48px;
    background: var(--night); color: var(--paper);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
  .site-nav__list { flex-direction: column; gap: 8px; }
  .site-nav__link { font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); letter-spacing: 0; text-transform: none; line-height: 1.1; gap: 14px; }
  .site-nav__num { font-family: var(--sans); font-size: 12px; padding-top: 0.6em; }
  .site-nav__link::after { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; }
}

/* ---- Landing story (black & white → colour) ------------------------------------ */
.story { position: relative; height: 100svh; background: #000; color: var(--white); }
.js .story { height: calc(100svh * 5.5); }

.story__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story__media, .story__layer { position: absolute; inset: 0; }
.story__layer { opacity: 0; will-change: opacity, transform; }
.story__layer:first-child { opacity: 1; }
.story__img { width: 100%; height: 100%; object-fit: cover; }
.story__layer--colour .story__img { filter: grayscale(var(--grey, 1)); }

.story__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0) 65%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 24%);
}

.story__captions {
  position: absolute; inset: 0;
  display: grid; align-items: end;
  padding-bottom: clamp(56px, 12vh, 140px);
}
.story__caption {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
.story__caption.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story__caption .eyebrow { color: rgba(255, 255, 255, 0.75); }

.story__title, .story__line {
  font-family: var(--serif);
  font-size: clamp(46px, 8.4vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}
.story__line em, .story__title em { color: rgba(255, 255, 255, 0.82); }
.story__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.story__progress {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 10px; margin: 0; padding: 0; list-style: none;
}
.story__progress li { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background-color 0.3s, transform 0.3s; }
.story__progress li.is-active { background: var(--white); transform: scale(1.4); }

.story__hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  margin: 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7;
  transition: opacity 0.4s;
}
.story__hint::after {
  content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0;
  background: currentColor; animation: hint 2s var(--ease) infinite;
  transform-origin: top;
}
.story.is-scrolled .story__hint { opacity: 0; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 700px) {
  .story__progress { display: none; }
}

/* ---- Intro + stats ----------------------------------------------------------------- */
.intro__statement {
  font-family: var(--serif);
  font-size: clamp(30px, 3.9vw, 60px);
  line-height: 1.1;
  max-width: 24ch;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin: 0 0 48px;
  border-top: 1px solid var(--line);
}
.stats div { padding-top: 20px; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(56px, 7vw, 112px); line-height: 1; }

/* ---- Cards ----------------------------------------------------------------- */
.card { display: block; text-decoration: none; }
.card__media { position: relative; overflow: hidden; background: var(--paper-deep); aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__badge {
  position: absolute; left: 14px; bottom: 14px;
  padding: 5px 10px; background: rgba(0, 0, 0, 0.6); color: var(--white);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.card__meta { display: grid; gap: 2px; padding-top: 14px; }
.card__client { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.card__title { font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; }
.card__info { font-size: 13px; color: var(--muted); }

/* Featured grid on the home page: an asymmetric rhythm */
.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 32px); }
.featured__item { grid-column: span 12; }
@media (min-width: 800px) {
  .featured__item--1 { grid-column: 1 / span 7; }
  .featured__item--1 .card__media { aspect-ratio: 4 / 3; }
  .featured__item--2 { grid-column: 9 / span 4; margin-top: 18%; }
  .featured__item--3 { grid-column: 1 / span 4; }
  .featured__item--4 { grid-column: 6 / span 7; margin-top: 10%; }
  .featured__item--4 .card__media { aspect-ratio: 16 / 10; }
  .featured__item--5 { grid-column: 2 / span 5; }
  .featured__item--6 { grid-column: 8 / span 5; margin-top: 14%; }
  .featured__item--6 .card__media { aspect-ratio: 1; }
}

/* ---- Logo marquee ------------------------------------------------------------- */
.logos { padding-block: clamp(56px, 7vw, 100px); border-block: 1px solid var(--line); }
.logos .eyebrow { margin-bottom: 40px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(48px, 6vw, 96px); margin: 0; padding: 0; list-style: none; align-items: center; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* Logos are pre-processed to single-colour marks by scripts/build-media.sh */
.marquee__track img { height: clamp(32px, 3.4vw, 48px); width: auto; max-width: 160px; object-fit: contain; opacity: 0.8; transition: opacity 0.3s; }
.marquee__track img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); }
  .marquee__track li[aria-hidden="true"] { display: none; }
}

/* ---- Services preview (home) ------------------------------------------------------ */
.services-preview { position: relative; }
.services-preview__list { margin: 0; padding: 0; list-style: none; }
.services-preview__item {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 16px;
  padding: clamp(14px, 1.6vw, 22px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.4s var(--ease), color 0.3s;
}
.services-preview__num { font-size: 12px; color: var(--muted); }
.services-preview__name { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; transition: transform 0.4s var(--ease); }
.services-preview__caption { font-size: 14px; color: var(--muted); font-style: italic; text-align: right; }
.services-preview__item:hover .services-preview__name { transform: translateX(14px); font-style: italic; }
.services-preview__float {
  position: absolute; top: 0; left: 0; z-index: 3; width: 300px; aspect-ratio: 4 / 3;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}
.services-preview__float img { width: 100%; height: 100%; object-fit: cover; }
.services-preview.is-previewing .services-preview__float { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 700px) {
  .services-preview__item { grid-template-columns: 36px 1fr; }
  .services-preview__caption { grid-column: 2; text-align: left; }
}
@media (hover: none) { .services-preview__float { display: none; } }

/* ---- Full-bleed banner & image heroes --------------------------------------------- */
.banner, .hero-image { position: relative; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: #222; }
.banner { min-height: 86svh; }
.hero-image { min-height: 92svh; }
.banner__img, .hero-image__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::before, .hero-image::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 55%), linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 25%);
}
.banner__content, .hero-image__content { position: relative; z-index: 2; padding-block: clamp(48px, 9vw, 120px); }
.banner .eyebrow, .hero-image .eyebrow { color: rgba(255, 255, 255, 0.8); }
.banner__title, .hero-image__title { font-family: var(--serif); font-size: clamp(40px, 6.4vw, 104px); line-height: 0.98; margin-bottom: 32px; max-width: 18ch; }
.hero-image__title { margin-bottom: 0; }

/* ---- Quotes ---------------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 4vw, 64px); }
.quote { margin: 0; padding-top: 24px; border-top: 1px solid var(--ink); }
.quote blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.25; }
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { font-size: 14px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* ---- Page heads (text-only) -------------------------------------------------------- */
.page-head { padding-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(48px, 6vw, 96px); }
.page-head__title { font-family: var(--serif); font-size: clamp(42px, 6.2vw, 104px); line-height: 0.98; max-width: 17ch; }
.page-head__title em { color: var(--ink-soft); }

.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 48px; }
.jump a { font-size: 14px; text-decoration: none; color: var(--muted); }
.jump a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Filters ------------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
[data-type][hidden] { display: none !important; }

/* ---- Work grid ------------------------------------------------------------------------ */
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px);
  margin: 0; padding: 0; list-style: none;
}
.work-grid__item { animation: fade-up 0.6s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* ---- Gallery dialog -------------------------------------------------------------------- */
.gallery {
  width: 100vw; max-width: none; height: 100svh; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--night); color: var(--paper);
}
.gallery::backdrop { background: rgba(0, 0, 0, 0.8); }
.gallery[open] { animation: fade 0.35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.gallery__inner { display: flex; flex-direction: column; height: 100%; }
.gallery__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gallery__head { padding: clamp(20px, 3vw, 40px) var(--gutter) 20px; max-width: 900px; }
.gallery__head .eyebrow { color: rgba(244, 241, 236, 0.6); margin-bottom: 10px; }
.gallery__title { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; }
.gallery__title em { opacity: 0.7; }
.gallery__summary { margin-top: 10px; color: rgba(244, 241, 236, 0.7); max-width: 60ch; }
.gallery__track {
  flex: 1; min-height: 0;
  display: flex; gap: 12px; align-items: center;
  padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: none; height: 100%; max-height: 72svh; margin: 0; scroll-snap-align: center; display: flex; align-items: center; }
.gallery__slide img, .gallery__slide video { height: 100%; width: auto; max-width: calc(100vw - 2 * var(--gutter)); object-fit: contain; background: #000; }
.gallery__controls { display: flex; align-items: center; gap: 8px; padding: 16px var(--gutter) 24px; }
.gallery__count { margin-right: auto; font-size: 13px; letter-spacing: 0.1em; color: rgba(244, 241, 236, 0.6); }
.gallery__btn { padding: 10px 16px; border: 1px solid rgba(244, 241, 236, 0.3); background: none; cursor: pointer; font-size: 14px; transition: background-color 0.25s, color 0.25s; }
.gallery__btn:hover { background: var(--paper); color: var(--ink); }
body.gallery-open { overflow: hidden; }

/* ---- Client list by year --------------------------------------------------------------- */
.client-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 40px 32px; }
.client-years__year { font-family: var(--serif); font-size: 36px; line-height: 1; margin-bottom: 14px; }
.client-years ul { margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-soft); }
.client-years li { padding: 3px 0; }

/* ---- Split text layout -------------------------------------------------------------------- */
.split { display: grid; gap: 32px clamp(32px, 6vw, 120px); }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } }

/* ---- Locations: mosaic, facts, islands ---------------------------------------------------- */
.mosaic {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 44vw; grid-auto-flow: dense; gap: 6px;
}
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 20vw; } }
.mosaic__item { margin: 0; overflow: hidden; background: var(--paper-deep); }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mosaic__item:hover img { transform: scale(1.04); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 40px 32px; margin: 0; padding: 0; list-style: none; counter-reset: fact; }
.facts li { counter-increment: fact; padding-top: 18px; border-top: 1px solid var(--line); }
.facts li::before { content: "0" counter(fact); display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.facts__label { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin-bottom: 10px; }
.facts p { font-size: 15px; color: var(--ink-soft); }

.islands { border-top: 1px solid var(--ink); }
.island { border-bottom: 1px solid var(--line); }
.island__summary {
  display: grid; grid-template-columns: 1fr auto auto 28px; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
}
.island__summary::-webkit-details-marker { display: none; }
.island__name { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; transition: transform 0.4s var(--ease); }
.island__summary:hover .island__name { transform: translateX(8px); }
.island__region { font-size: 13px; color: var(--muted); }
.island__badge { min-width: 64px; text-align: right; }
.island__toggle { position: relative; width: 18px; height: 18px; justify-self: end; }
.island__toggle::before, .island__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
.island__toggle::after { transform: rotate(90deg); }
.island[open] .island__toggle::after { transform: rotate(0); }
.island__body { display: grid; gap: 24px 64px; padding: 4px 0 36px; }
@media (min-width: 900px) { .island__body { grid-template-columns: 8fr 3fr; } }
.island__facts { margin: 0; display: grid; gap: 14px; align-content: start; }
.island__facts dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.island__facts dd { margin: 2px 0 0; }
@media (max-width: 600px) {
  .island__summary { grid-template-columns: 1fr auto 20px; }
  .island__badge { min-width: 0; }
  .island__region { display: none; }
}

/* ---- Services page ------------------------------------------------------------------ */
.services { display: grid; gap: clamp(72px, 9vw, 140px); padding-bottom: var(--section); }
.service { display: grid; gap: 24px clamp(32px, 6vw, 96px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 900px) {
  .service { grid-template-columns: 7fr 5fr; }
  .service:nth-child(even) { grid-template-columns: 5fr 7fr; }
  .service:nth-child(even) .service__figure { order: 2; }
}
.service__figure { margin: 0; }
.service__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service__figure figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }
.service__num { display: block; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.service__title { font-family: var(--serif); font-size: clamp(36px, 4vw, 64px); line-height: 1; margin-bottom: 20px; }
.service__body p { max-width: 46ch; color: var(--ink-soft); }

/* ---- About -------------------------------------------------------------------------- */
.feature-pair { display: grid; gap: 16px; padding-top: 0; }
@media (min-width: 900px) { .feature-pair { grid-template-columns: 1fr 1fr; } }
.feature-card { padding: clamp(32px, 4vw, 64px); background: var(--paper-deep); }
.feature-card--dark { background: var(--night); color: var(--paper); }
.feature-card--dark .eyebrow { color: rgba(244, 241, 236, 0.6); }
.feature-card__title { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 52px); line-height: 1.02; margin-bottom: 20px; }
.feature-card p { max-width: 46ch; margin-bottom: 24px; }
.wide-figure { margin: 0; }
.wide-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---- Contact ------------------------------------------------------------------------ */
.contact { display: grid; gap: 64px clamp(40px, 7vw, 120px); padding-bottom: var(--section); }
@media (min-width: 1000px) { .contact { grid-template-columns: 7fr 4fr; } }

.form { display: grid; gap: 28px; }
.form__row { display: grid; gap: 28px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0 12px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 18px;
  transition: border-color 0.25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #a39d93; }
.field [aria-invalid="true"] { border-bottom-color: #b42318; }
.field__error { font-size: 14px; color: #b42318; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 14px; color: var(--muted); }
.form .btn { justify-self: start; }
.notice { padding: 14px 18px; margin: 0; font-size: 15px; }
.notice--ok { background: #e3efe5; color: #1d5b2c; }
.notice--error { background: #fbe9e7; color: #8a1c12; }
.form__status:empty { display: none; }

.contact__offices { display: grid; gap: 48px; align-content: start; }
.office__name { font-family: var(--serif); font-size: 36px; line-height: 1.05; margin-bottom: 20px; }
.person + .person { margin-top: 20px; }
.person__name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.person__lines { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.person__lines span { display: inline-block; min-width: 60px; color: var(--muted); font-size: 13px; }
.person__lines a { text-decoration: none; }
.person__lines a:hover { text-decoration: underline; }

/* ---- Footer ---------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--paper); padding-top: clamp(72px, 10vw, 140px); }
.site-footer .eyebrow { color: rgba(244, 241, 236, 0.55); margin-bottom: 14px; }
.site-footer__cta { display: block; text-decoration: none; padding-bottom: clamp(56px, 8vw, 110px); border-bottom: 1px solid rgba(244, 241, 236, 0.15); }
.site-footer__cta-text { display: block; font-family: var(--serif); font-size: clamp(44px, 8vw, 132px); line-height: 0.95; transition: font-style 0.3s; }
.site-footer__cta-text span { display: inline-block; transition: transform 0.5s var(--ease); }
.site-footer__cta:hover .site-footer__cta-text { font-style: italic; }
.site-footer__cta:hover .site-footer__cta-text span { transform: translateX(16px); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 40px 32px; padding-block: 56px; font-size: 15px; }
.site-footer__grid a { text-decoration: none; opacity: 0.85; }
.site-footer__grid a:hover { opacity: 1; text-decoration: underline; }
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { padding: 2px 0; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 32px; border-top: 1px solid rgba(244, 241, 236, 0.15); font-size: 13px; color: rgba(244, 241, 236, 0.55); }
.site-footer__top { text-decoration: none; }
.statcounter { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---- Scroll reveal (progressive) --------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .work-grid__item { animation: none; }
}
