/* Mobile first: base styles are the phone layout; (min-width: 768px) adds the desktop one. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #f6f3ee;
  --stone: #ebe5dc;
  --ink: #1d1c1a;
  --muted: #5f5a53;
  --bronze: #8a6a45;
  --line: rgb(29 28 26 / 12%);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 1.25rem;
  --section: 4.5rem;
  --header: 4.5rem;
  --radius: 4px;
}

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

/* `hidden` wins over component display rules. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

html[data-menu-open] body { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.6rem, 9vw, 5.25rem); }

h2 { font-size: clamp(2rem, 6vw, 3.25rem); }

h3 { font-size: 1.5rem; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: var(--paper); }

.skip:focus { left: 0.5rem; top: 0.5rem; }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--light { color: rgb(255 255 255 / 85%); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button--small { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 0.875rem; }

.button--ghost { border-color: rgb(255 255 255 / 70%); background: transparent; color: #fff; }

.button--light { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentcolor;
  align-self: flex-start;
}

.link-arrow::after { content: "→"; transition: transform 0.2s; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

/* The blur sits on a pseudo-element: on the header itself it would trap the fixed phone menu inside the bar. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(246 243 238 / 92%);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.header[data-scrolled] { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.header__logo { display: block; position: relative; z-index: 2; }

.header__logo img { width: auto; height: 2.5rem; }

.menu-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 0.875rem var(--sans);
  cursor: pointer;
}

.menu-button__bars, .menu-button__bars::before { display: block; width: 1.25rem; height: 1px; background: currentcolor; transition: transform 0.25s; }

.menu-button__bars { position: relative; transform: translateY(-3px); }

.menu-button__bars::before { content: ""; position: absolute; top: 6px; }

[aria-expanded="true"] .menu-button__bars { transform: rotate(45deg); }

[aria-expanded="true"] .menu-button__bars::before { transform: translateY(-6px) rotate(-90deg); }

/* Phone menu: a full-screen sheet under the header bar. */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: calc(var(--header) + 2rem) max(var(--gutter), env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0s 0.25s;
}

html[data-menu-open] .nav { visibility: visible; opacity: 1; transition: opacity 0.25s; }

.nav__links a { display: block; padding: 0.5rem 0; font: 500 2.25rem/1.2 var(--serif); text-decoration: none; }

.nav__cta { align-self: flex-start; }

.nav__contact { margin-top: auto; color: var(--muted); line-height: 2; }

.nav__contact a { text-decoration: none; }

/* Hero */
.hero { position: relative; display: grid; min-height: min(88svh, 52rem); color: #fff; isolation: isolate; }

.hero__image, .hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero__image { z-index: -1; }

.hero__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 10%) 20%, rgb(0 0 0 / 70%) 100%); }

.hero__content {
  align-self: end;
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding: 6rem max(var(--gutter), env(safe-area-inset-right)) 3rem max(var(--gutter), env(safe-area-inset-left));
}

.hero__lead { max-width: 34rem; margin-top: 1.25rem; font-size: 1.0625rem; color: rgb(255 255 255 / 88%); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Facts */
.facts { border-bottom: 1px solid var(--line); }

.facts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; padding-block: 2.5rem; }

.facts strong { display: block; font: 500 1.5rem/1.2 var(--serif); }

.facts span { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }

/* Text beside a photo */
.split { display: grid; gap: 2.5rem; padding-block: var(--section); }

.split + .split { padding-top: 0; }

.split__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.split__text { display: flex; flex-direction: column; gap: 1.25rem; }

.split__text p:not(.eyebrow) { color: var(--muted); }

.split__text .eyebrow { margin-bottom: -0.25rem; }

/* Top of inner pages */
.page-hero { display: grid; gap: 2.5rem; padding-block: 3rem var(--section); }

.page-hero__text { display: flex; flex-direction: column; gap: 1.25rem; align-self: center; }

.page-hero__text .eyebrow { margin-bottom: -0.25rem; }

.page-hero h1, .page-intro h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }

.page-hero__lead { display: flex; flex-direction: column; gap: 1rem; color: var(--muted); font-size: 1.0625rem; }

.page-hero__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.page-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding-block: 3rem var(--section); }

.page-intro h1 { max-width: 52rem; }

.page-intro .eyebrow { margin-bottom: -0.25rem; }

.page-intro__lead { max-width: 40rem; color: var(--muted); font-size: 1.0625rem; }

/* Short points side by side */
.features { padding-block: var(--section); }

.features--stone { background: var(--stone); }

.feature-list { display: grid; gap: 2rem; }

.feature-list li { padding-top: 1.25rem; border-top: 1px solid var(--line); }

.feature-list p { margin-top: 0.5rem; color: var(--muted); }

/* What a service includes */
.checklist { padding-block: var(--section); background: var(--stone); }

.features--stone + .checklist, .checklist + .features--stone { padding-top: 0; }

.checklist__inner { display: grid; gap: 2rem; }

.checklist__intro { margin-top: 1.25rem; max-width: 30rem; color: var(--muted); }

.checklist__items { display: grid; gap: 0.75rem; }

.checklist__items li { position: relative; padding-left: 1.75rem; }

.checklist__items li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.75rem; height: 0.4rem; border-left: 1.5px solid var(--bronze); border-bottom: 1.5px solid var(--bronze); transform: rotate(-45deg); }

.checklist__note { margin-top: 1.5rem; color: var(--muted); font-size: 0.875rem; }

/* Contact */
.contact { display: grid; gap: 3rem; padding-bottom: var(--section); }

.contact__ways { display: flex; flex-direction: column; gap: 1rem; }

.contact__way { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }

.contact__way > span { color: var(--muted); font-size: 0.875rem; }

.contact__way strong { font: 500 1.25rem/1.3 var(--sans); overflow-wrap: anywhere; }

.contact__facts { display: grid; gap: 1.25rem; margin: 1rem 0 0; }

.contact__facts dt { color: var(--bronze); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.contact__facts dd { margin: 0.25rem 0 0; }

.contact__enquiry { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; padding: 2rem 1.5rem; background: var(--stone); border-radius: var(--radius); }

.contact__enquiry p { color: var(--muted); }

.contact__enquiry .button { margin-top: 0.5rem; }

/* Enquiry form */
.enquiry { display: grid; gap: 1.25rem; width: 100%; }

.field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }

.field label { font-size: 0.875rem; font-weight: 500; }

.field__optional { color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgb(29 28 26 / 22%);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--bronze); outline-offset: 0; border-color: transparent; }

.field [aria-invalid] { border-color: #a3402d; }

.field__error { min-height: 0; color: #a3402d; font-size: 0.8125rem; }

.field__error:empty { display: none; }

.enquiry__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

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

.enquiry__actions .button { margin-top: 0; }

.enquiry__actions .button:disabled { opacity: 0.6; cursor: progress; }

.enquiry__status { color: #a3402d; font-size: 0.875rem; }

.enquiry__note { font-size: 0.875rem; }

.enquiry__sent { display: flex; flex-direction: column; gap: 0.75rem; }

.enquiry__sent h3 { font-size: 1.75rem; }

/* Section headings */
.section-head { margin-bottom: 2.5rem; }

.section-head--row { display: flex; flex-direction: column; gap: 1rem; }

/* Services */
.services { padding-block: var(--section); background: var(--stone); }

.cards { display: grid; gap: 2.5rem; }

.card { position: relative; display: flex; flex-direction: column; gap: 0.625rem; }

.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.625rem; }

/* Crop centre, as a percentage from the top: `focus` on a card or strip photo. */
img.focus-40 { object-position: 50% 40%; }
img.focus-35 { object-position: 50% 35%; }
img.focus-30 { object-position: 50% 30%; }
img.focus-25 { object-position: 50% 25%; }
img.focus-20 { object-position: 50% 20%; }
img.focus-15 { object-position: 50% 15%; }

/* `focusMobile`: the same, on phones only. */
@media (max-width: 767.98px) {
  img.focus-mobile-70 { object-position: 50% 70%; }
  img.focus-mobile-25 { object-position: 50% 25%; }
}

.card h3 a { text-decoration: none; }

/* The whole card is the link's target. */
.card h3 a::after { content: ""; position: absolute; inset: 0; }

.card p { color: var(--muted); }

.logo-strip { padding-block: 2.5rem; border-bottom: 1px solid var(--line); }

.logo-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }

.logo-strip ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3.5rem; }

.logo-strip__logo { width: auto; height: 1.75rem; }

.partner { padding-block: var(--section); }

.partner__head { display: grid; gap: 1.5rem; margin-bottom: 2.5rem; }

.partner__logo { display: block; width: auto; max-width: 100%; height: 2rem; margin-bottom: 2rem; }

.partner__text { display: flex; flex-direction: column; gap: 1.25rem; }

.partner__text p { color: var(--muted); }

.partner__feature { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }

.partner__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.75rem; }

.partner__photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.brands { padding-block: var(--section); background: var(--stone); }

.brand-grid { display: grid; gap: 1.25rem; }

.brand { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; }

.brand__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.brand__body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; }

.brand h3 { display: flex; align-items: center; height: 3rem; }

.brand a { text-decoration: none; }

.brand a::after { content: ""; position: absolute; inset: 0; }

.brand__logo { width: auto; max-width: 100%; height: 1.75rem; }

.brand__logo--square { height: 3rem; }

.brand p { color: var(--muted); }

/* Process */
.process { padding-block: var(--section); }

.steps { display: grid; gap: 2rem; counter-reset: step; }

.steps li { padding-top: 1.25rem; border-top: 1px solid var(--line); counter-increment: step; }

.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.75rem; color: var(--bronze); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; }

.steps p { margin-top: 0.5rem; color: var(--muted); }

/* Recent work */
.work { padding-bottom: var(--section); }

.work + .work { margin-top: calc(var(--section) * -0.4); }

.section-head__text { max-width: 36rem; margin-top: 1rem; color: var(--muted); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.gallery li:first-child, .gallery--4 li:last-child { grid-column: 1 / -1; }

.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

.gallery li:first-child img, .gallery--4 li:last-child img { aspect-ratio: 4 / 3; }

/* Call to action */
.cta { padding-block: var(--section); background: var(--ink); color: var(--paper); }

.cta__inner { display: flex; flex-direction: column; gap: 1.25rem; }

.cta p { max-width: 34rem; color: rgb(246 243 238 / 75%); }

.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.75rem; }

.cta__phone { display: inline-flex; align-items: center; min-height: 2.75rem; color: rgb(246 243 238 / 85%); }

/* Footer */
.footer { padding-block: 3.5rem max(2rem, env(safe-area-inset-bottom)); background: #141311; color: rgb(246 243 238 / 70%); font-size: 0.9375rem; }

.footer__grid { display: grid; gap: 2rem; }

.footer__logo { width: auto; height: 3.5rem; margin-bottom: 1rem; filter: invert(1); opacity: 0.9; }

.footer__contact { margin-top: 1.5rem; }

.footer a { display: inline-block; padding-block: 0.375rem; text-decoration: none; color: var(--paper); }

.footer__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

.nav__links a[aria-current] { color: var(--bronze); }

.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(246 243 238 / 12%); font-size: 0.8125rem; }

.footer__legal a { padding-block: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(246 243 238 / 35%); }

/* Pointer devices get hover feedback; touch never depends on it. */
@media (hover: hover) {
  .button:hover { background: transparent; color: var(--ink); }
  .button--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .button--light:hover { background: transparent; color: var(--paper); }
  .link-arrow:hover::after { transform: translateX(4px); }
  .card img { transition: opacity 0.3s; }
  .card:hover img { opacity: 0.88; }
  .brand__photo { transition: transform 0.6s; }
  .brand:hover .brand__photo { transform: scale(1.04); }
  .nav__links a:hover { color: var(--bronze); }
  /* A lighter bronze: the site's bronze is too dark to see on the black footer. */
  .footer a { transition: color 0.2s; }
  .footer a:hover { color: #d2b48c; }
  .contact__way { transition: border-color 0.2s; }
  .contact__way strong { transition: color 0.2s; }
  .contact__way:hover { border-color: var(--bronze); }
  .contact__way:hover strong { color: var(--bronze); }
}

@media (min-width: 768px) {
  :root { --gutter: 2.5rem; --section: 7rem; --header: 5.5rem; }

  .header__logo img { height: 3rem; }

  .menu-button { display: none; }

  .nav { position: static; flex-direction: row; align-items: center; gap: 2.5rem; padding: 0; background: none; visibility: visible; opacity: 1; transition: none; }

  .nav__links { display: flex; gap: 2rem; }

  .nav__links a { padding: 0.5rem 0; font: 500 0.9375rem var(--sans); }

  .nav__contact { display: none; }

  .hero { min-height: min(86vh, 56rem); }

  .hero__content { padding-bottom: 5rem; }

  .hero__image::after { background: linear-gradient(90deg, rgb(0 0 0 / 60%) 0%, rgb(0 0 0 / 15%) 60%, transparent 100%), linear-gradient(180deg, transparent 50%, rgb(0 0 0 / 35%) 100%); }

  .hero__lead { font-size: 1.1875rem; }

  .facts__list { grid-template-columns: repeat(4, 1fr); padding-block: 3rem; }

  .split { grid-template-columns: 5fr 6fr; align-items: center; gap: 6rem; }

  .split--reverse { grid-template-columns: 6fr 5fr; }

  .split__image { aspect-ratio: 4 / 5; }

  .split--reverse .split__image { order: 2; }

  .page-hero { grid-template-columns: 1fr 1fr; gap: 4rem; padding-top: 4rem; }

  .page-hero + .features:not(.features--stone), .page-hero + .split { padding-top: calc(var(--section) * 0.5); }

  .page-intro { padding-top: 5rem; }

  .feature-list { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; }

  .checklist__inner { grid-template-columns: 5fr 6fr; gap: 6rem; }

  .checklist__items { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }

  .contact { grid-template-columns: 2fr 3fr; gap: 4rem; }

  .contact__enquiry { padding: 3rem; }

  .enquiry { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }

  .field--wide { grid-column: 1 / -1; }

  .section-head { margin-bottom: 3.5rem; }

  .section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 3.5rem 2rem; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .partner__head { grid-template-columns: 5fr 6fr; align-items: end; gap: 6rem; margin-bottom: 3.5rem; }
  .partner__logo { height: 2.5rem; }
  .partner__photos { grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }

  .card img { aspect-ratio: 4 / 3; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }

  .gallery li:first-child { grid-column: 1; grid-row: 1 / span 2; }

  .gallery li:first-child img { aspect-ratio: auto; }

  .gallery--4 li:last-child { grid-column: 2 / span 2; }

  .gallery--4 li:last-child img { aspect-ratio: 2 / 1; }

  .gallery--3 { grid-template-columns: 2fr 1fr; }

  /* The large photo sets the height; the two beside it fill their half. */
  .gallery--3 li:first-child img { aspect-ratio: 4 / 3; }

  .gallery--3 li:not(:first-child) { position: relative; }

  .gallery--3 li:not(:first-child) img { position: absolute; inset: 0; aspect-ratio: auto; }

  .cta__inner { align-items: center; text-align: center; }

  .cta__actions { justify-content: center; }

  .footer__grid { grid-template-columns: 1fr auto auto; gap: 3rem 5rem; }

  .footer__links { flex-direction: column; }
}

@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Carousel options (/options/): shared controls */
.button--outline { background: transparent; color: var(--ink); }

.carousel__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 2rem; }

.carousel__arrow, .carousel__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 400 1.125rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.carousel__controls--dark .carousel__arrow, .carousel__controls--dark .carousel__play, .carousel__arrow--dark, .carousel__play--dark { border-color: rgb(29 28 26 / 30%); color: var(--ink); }

.carousel__arrow:disabled { opacity: 0.3; cursor: default; }

/* Pause: two bars; play: a triangle. */
.carousel__play::before { content: ""; width: 0.6rem; height: 0.75rem; border-inline: 3px solid currentcolor; }

.carousel__play[aria-pressed="true"]::before { width: 0; height: 0; border-block: 0.4rem solid transparent; border-inline: 0.65rem solid currentcolor; border-right: 0; margin-left: 0.2rem; }

.carousel__dots { display: flex; align-items: center; }

.carousel__dots button { position: relative; width: 1.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; }

.carousel__dots button::after { content: ""; position: absolute; left: 0.375rem; right: 0.375rem; top: 50%; height: 2px; background: rgb(255 255 255 / 40%); transition: background-color 0.3s; }

.carousel__dots button[aria-current]::after { background: #fff; }

.carousel__controls--dark .carousel__dots button::after { background: rgb(29 28 26 / 20%); }

.carousel__controls--dark .carousel__dots button[aria-current]::after { background: var(--ink); }

/* On a phone the dots show where you are; the counter joins them on desktop. */
.carousel__counter { display: none; min-width: 4.5rem; color: rgb(255 255 255 / 80%); font-size: 0.8125rem; font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }

.carousel__controls--dark .carousel__counter { color: var(--muted); }

/* Fade: photos stacked, the current one fades in and zooms slowly */
.carousel__fade { margin: 0; overflow: hidden; }

.carousel__fade li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }

.carousel__fade li[data-active] { opacity: 1; }

.carousel__fade li[data-active] img { animation: carousel-zoom 9s ease-out forwards; }

[data-paused] .carousel__fade li[data-active] img { animation-play-state: paused; }

@keyframes carousel-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Slider: whole hero slides moving sideways */
.hero-slider { position: relative; overflow: hidden; color: #fff; }

.hero-slider__track { display: flex; transform: translateX(calc(var(--index, 0) * -100%)); transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); touch-action: pan-y; }

.hero-slider__slide { flex: 0 0 100%; }

.hero-slider__slide .hero__content { padding-bottom: 8rem; }

.hero-slider__title { font-size: clamp(2.6rem, 9vw, 5.25rem); max-width: 14ch; }

.hero-slider__bar { position: absolute; left: 0; right: 0; bottom: 0; max-width: 76rem; margin-inline: auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 2rem max(var(--gutter), env(safe-area-inset-left)); pointer-events: none; }

.hero-slider__bar .carousel__controls { margin-top: 0; pointer-events: auto; }

/* Split: headline beside a framed photo carousel with thumbnails */
.hero-split { display: grid; gap: 2rem; padding-block: 1.5rem var(--section); }

.hero-split__text { display: flex; flex-direction: column; order: 2; }

.hero-split__text .hero__lead { color: var(--muted); }

.hero-split__text h1 { font-size: clamp(2.6rem, 9vw, 4.75rem); }

.hero-split__frame { overflow: hidden; border-radius: var(--radius); }

.hero-split__track { display: flex; transform: translateX(calc(var(--index, 0) * -100%)); transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1); touch-action: pan-y; }

.hero-split__track li { position: relative; flex: 0 0 100%; }

.hero-split__track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-split__caption { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: var(--radius); background: rgb(246 243 238 / 92%); font-size: 0.875rem; font-weight: 500; text-decoration: none; }

.hero-split .carousel__controls { margin-top: 1rem; }

.carousel__dots--thumbs { gap: 0.5rem; }

.carousel__dots--thumbs button { width: 3rem; height: 3rem; border-radius: var(--radius); overflow: hidden; opacity: 0.5; transition: opacity 0.3s; }

.carousel__dots--thumbs button[aria-current] { opacity: 1; outline: 2px solid var(--bronze); outline-offset: 2px; }

.carousel__dots--thumbs button::after { display: none; }

.carousel__dots--thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Thumbnails replace the dots on a phone too, so the arrows and counter wrap underneath. */
.hero-split .carousel__dots--thumbs { order: -1; width: 100%; }

/* Filmstrip: a row of photos under the hero */
.filmstrip { padding-block: var(--section) calc(var(--section) * 0.6); }

.filmstrip .section-head { margin-bottom: 2rem; }

.filmstrip__arrows { display: flex; gap: 0.5rem; }

.filmstrip__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 76rem) / 2 + var(--gutter)));
  padding-inline: max(var(--gutter), calc((100vw - 76rem) / 2 + var(--gutter)));
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.filmstrip__track::-webkit-scrollbar { display: none; }

.filmstrip__item { position: relative; flex: 0 0 78%; scroll-snap-align: start; }

.filmstrip__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.filmstrip__item a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 0.25rem; font-weight: 500; text-decoration: none; }

.filmstrip__item a::after { content: ""; position: absolute; inset: 0; }

/* Ribbon: an endless band of photos */
.ribbon { padding-block: var(--section) calc(var(--section) * 0.5); overflow: hidden; }

.ribbon__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }

.ribbon__band { overflow: hidden; }

.ribbon__track { display: flex; width: max-content; animation: ribbon-drift 70s linear infinite; }

.ribbon[data-paused] .ribbon__track { animation-play-state: paused; }

.ribbon__track ul { display: flex; gap: 0.75rem; padding-right: 0.75rem; }

.ribbon__item { position: relative; flex: none; }

.ribbon__item img { width: auto; height: 15rem; border-radius: var(--radius); }

.ribbon__item span { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.25rem 0.625rem; border-radius: var(--radius); background: rgb(246 243 238 / 90%); font-size: 0.8125rem; font-weight: 500; }

@keyframes ribbon-drift { to { transform: translateX(-50%); } }

/* The options index */
.options { display: grid; gap: 0.75rem; width: 100%; max-width: 44rem; margin-top: 1rem; }

.options a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); text-decoration: none; }

.options span { color: var(--ink); font: 500 1.5rem/1.2 var(--serif); }

/* Filmstrip variants (4a to 4d) */
.filmstrip--captions { background: var(--stone); }

.filmstrip--captions .filmstrip__item img { aspect-ratio: 3 / 2; }

.filmstrip__number { margin-top: 1rem; color: var(--bronze); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; }

.filmstrip--captions .filmstrip__item a { margin-top: 0; font: 500 1.625rem/1.2 var(--serif); }

.filmstrip__text { color: var(--muted); }

.filmstrip--mosaic .filmstrip__track { align-items: flex-end; }

.filmstrip--mosaic .filmstrip__item { flex: none; }

.filmstrip--mosaic .filmstrip__item img { width: auto; height: 16rem; aspect-ratio: 4 / 3; }

.filmstrip--mosaic .filmstrip__item:nth-child(3n + 2) img { height: 20rem; aspect-ratio: 3 / 4; }

.filmstrip--mosaic .filmstrip__item:nth-child(3n) img { height: 13rem; aspect-ratio: 1; }

.filmstrip--dark { background: var(--ink); color: var(--paper); }

.filmstrip--dark .filmstrip__item a { position: absolute; left: 0; right: 0; bottom: 0; align-items: flex-end; min-height: 50%; margin: 0; padding: 1.25rem; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(transparent, rgb(29 28 26 / 75%)); color: #fff; font: 500 1.5rem/1.2 var(--serif); }

.filmstrip--dark .filmstrip__item img { display: block; }

.filmstrip__progress { position: relative; height: 2px; margin-top: 1rem; background: rgb(255 255 255 / 20%); }

.filmstrip__progress::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--start, 0) * 100%); width: calc(var(--size, 0.3) * 100%); background: var(--paper); transition: left 0.15s linear; }

.filmstrip--centred .section-head--row { align-items: center; text-align: center; }

.filmstrip--centred .filmstrip__track { padding-inline: 14vw; scroll-padding-inline: 0; }

.filmstrip--centred .filmstrip__item { flex-basis: 72vw; scroll-snap-align: center; text-align: center; }

.filmstrip--centred .filmstrip__item img { aspect-ratio: 4 / 3; }

/* The photo in the middle of the strip is full size; the ones either side shrink and fade as they leave it. */
@supports (animation-timeline: view()) {
  .filmstrip--centred .filmstrip__item { animation: strip-focus linear both; animation-timeline: view(inline); }
}

@keyframes strip-focus {
  0%, 100% { opacity: 0.4; transform: scale(0.86); }
  50% { opacity: 1; transform: none; }
}

@media (hover: hover) {
  .carousel__arrow:not(:disabled):hover, .carousel__play:hover { background: #fff; color: var(--ink); }
  .carousel__controls--dark .carousel__arrow:not(:disabled):hover, .carousel__controls--dark .carousel__play:hover, .carousel__arrow--dark:not(:disabled):hover, .carousel__play--dark:hover { background: var(--ink); color: var(--paper); }
  .carousel__dots--thumbs button:hover { opacity: 1; }
  .ribbon__band:hover .ribbon__track { animation-play-state: paused; }
  .options a:hover { border-color: var(--bronze); }
}

@media (min-width: 768px) {
  .carousel__counter { display: block; }

  .carousel__dots button { width: 2.25rem; }

  .hero-slider__slide .hero__content { padding-bottom: 9rem; }

  .hero-split { grid-template-columns: 5fr 7fr; align-items: center; gap: 4rem; padding-top: 3rem; }

  .hero-split__text { order: 0; }

  .hero-split__track img { aspect-ratio: 5 / 4; }

  .hero-split .carousel__dots--thumbs { order: 0; width: auto; margin-right: auto; }

  .carousel__dots--thumbs button { width: 4rem; height: 3rem; }

  .filmstrip__item { flex-basis: calc((min(100vw, 76rem) - 2 * var(--gutter)) / 3.2); }

  .ribbon__item img { height: 22rem; }

  .filmstrip--captions .filmstrip__item { flex-basis: calc((min(100vw, 76rem) - 2 * var(--gutter)) / 2.3); }

  .filmstrip--mosaic .filmstrip__item img { height: 24rem; }

  .filmstrip--mosaic .filmstrip__item:nth-child(3n + 2) img { height: 30rem; }

  .filmstrip--mosaic .filmstrip__item:nth-child(3n) img { height: 19rem; }

  .filmstrip--dark .filmstrip__item img { aspect-ratio: 3 / 4; }

  .filmstrip--centred .section-head--row { flex-direction: column; }

  .filmstrip--centred .filmstrip__track { padding-inline: 25vw; }

  .filmstrip--centred .filmstrip__item { flex-basis: 50vw; }

  .filmstrip--centred .filmstrip__item img { aspect-ratio: 16 / 10; }
}

/* Less motion: nothing slides or drifts on its own; the ribbon becomes a strip to scroll. */
@media (prefers-reduced-motion: reduce) {
  .carousel__fade li[data-active] img { animation: none; }
  .ribbon__band { overflow-x: auto; }
  .ribbon__track { animation: none; }
  .ribbon__track ul[aria-hidden] { display: none; }
}
