/* ==========================================================================
   La Truffole — editorial one-pager
   Tokens, type and voice carried over from the previous build. The scroll
   machinery is not: no fixed sections, no canvas, no text chips over video.
   ========================================================================== */

:root {
  --bg-dark: #0c0a08;
  --bg-raise: #14110d;
  --cream: #f4efe4;
  --gold: #e0b24a;
  --oil: #c47a2c;
  --field: #3f4a38;

  --ink: #f4efe4;
  --ink-soft: rgba(244, 239, 228, 0.72);
  --ink-mute: rgba(244, 239, 228, 0.54);
  --hairline: rgba(244, 239, 228, 0.14);

  --font-display: "Cormorant Garamond", Palatino, Georgia, serif;
  --font-body: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* One easing and one reveal for the whole site. */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --tap: 180ms;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure-wide: 80ch;

  /* The one orange rule. Used under every section label and above every
     pull-quote, always this size, always drawn from the same point. */
  --rule-w: 3rem;
  --rule-h: 2px;
}

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

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

body {
  background: var(--bg-dark);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.is-preloading,
html.is-preloading body {
  overflow: hidden;
}

/* ----------------------------------------------------------- preloader */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg-dark);
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  max-width: none;
}

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

/* The width/height attributes are there to reserve layout space, so height has
   to stay fluid or the intrinsic ratio is overridden and the image squashes. */
img {
  height: auto;
}

/* --------------------------------------------------------- accessibility */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  color: var(--cream);
  background: var(--bg-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skip:focus {
  left: var(--gutter);
  top: 1rem;
  z-index: 100;
  background: var(--bg-dark);
  color: var(--cream);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  outline: 2px solid var(--oil);
}

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

/* ---------------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: rgba(12, 10, 8, 0.82);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tap) var(--ease);
}

.masthead.is-scrolled {
  border-bottom-color: var(--hairline);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a,
.lang button,
.drawer a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--tap) var(--ease);
}

/* Underline sweeps rather than snapping on. */
.nav a {
  padding-bottom: 0.25rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 220ms var(--ease), color var(--tap) var(--ease);
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="true"] {
  color: var(--cream);
  background-size: 100% 1px;
}

.masthead__end {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
  flex-shrink: 0;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.lang button {
  min-height: 44px;
  padding: 0 0.1rem;
}

.lang button[aria-pressed="true"] {
  color: var(--cream);
}

.lang button:hover,
.drawer a:hover {
  color: var(--gold);
}

.menu-toggle {
  width: 30px;
  height: 20px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--cream);
  transition: transform 220ms var(--ease), opacity 160ms var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(9deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-9deg);
}

.drawer {
  position: fixed;
  inset: 3.75rem var(--gutter) auto;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  padding: 1.75rem;
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
}

.drawer[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  /* Fills the fold so the first chapter band sits below it. If the band peeks
     into the first screen its observer fires immediately and the page pays for
     a video before the reader has asked for one. */
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 6rem var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}

/* One baked scrim. No per-element backgrounds, no stacked text-shadows. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(12, 10, 8, 0.94) 0%, rgba(12, 10, 8, 0.72) 34%, rgba(12, 10, 8, 0.12) 68%, rgba(12, 10, 8, 0.3) 100%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.8) 0%, rgba(12, 10, 8, 0) 46%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.322rem, 5.715vw, 5.001rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 1.25rem 0 1.5rem;
}

.hero__tagline {
  color: var(--ink-soft);
  max-width: 30rem;
}

.hero__ticket {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  max-width: 24rem;
}

.hero__ticket dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.25rem;
}

.hero__ticket dt {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero__ticket dd {
  color: var(--cream);
}

.hero__ticket-brand {
  color: var(--oil);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 0.85rem;
}

/* ------------------------------------------------------------ grid shell */

.shell {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(4.5rem, 11vh, 8.5rem) var(--gutter);
}

/* Two text sections back to back share one gap instead of stacking two. */
:is(.bay--a, .bay--b) + :is(.bay--a, .bay--b) {
  padding-top: 0;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--rule-w);
  height: var(--rule-h);
  background: var(--oil);
}

h2 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.prose p {
  max-width: var(--measure-wide);
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose--after {
  margin-top: 2rem;
}

.prose em {
  font-style: italic;
  color: var(--cream);
}

/* Pull-quote breaks the measure. The orange rule sits above it. */
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--cream);
  max-width: none;
  margin: 2.5rem 0;
}

.pull::before {
  content: "";
  display: block;
  width: var(--rule-w);
  height: var(--rule-h);
  margin-bottom: 1.25rem;
  background: var(--oil);
}

/* --------------------------------------------------------- chapter bands */

.chapter {
  position: relative;
  width: 100%;
  background: var(--bg-raise);
  overflow: hidden;
}

.chapter video,
.chapter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chapter__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-raise) center / cover no-repeat;
}

.chapter__poster {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 500ms var(--ease-enter);
}

.chapter__poster.is-loaded {
  opacity: 1;
}

/* The clip stays transparent until its first frame is decoded, then fades in
   over the poster. Set by JS, so without it the native poster shows as usual. */
.chapter[data-fade] video {
  position: relative;
  opacity: 0;
  transition: opacity 600ms var(--ease-enter);
}

.chapter[data-fade].is-ready video {
  opacity: 1;
}

/* Top and bottom feather so the band melts into the page rather than
   sitting in it like a card. */
.chapter__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 8, 0.72) 0%,
    rgba(12, 10, 8, 0) 22%,
    rgba(12, 10, 8, 0) 78%,
    rgba(12, 10, 8, 0.72) 100%
  );
}

.chapter figcaption {
  padding: 1.1rem var(--gutter) 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------- figures */

.figure {
  margin-top: 2.5rem;
}

.figure img {
  width: 100%;
  transform: rotate(-0.6deg);
  /* Organic edge lives on the image, not on decorative shapes. */
  mask-image: radial-gradient(118% 118% at 50% 48%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(118% 118% at 50% 48%, #000 70%, transparent 100%);
}

.figure figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.driveway {
  margin-top: 3.5rem;
}

.driveway .pull {
  margin-top: 0;
  margin-bottom: 2.75rem;
}

.driveway .pull span {
  display: block;
}

.portraits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.portraits img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

/* The script wraps each picture in a frame (curtain reveal) and a zoom layer
   (settle); the picture itself carries the scroll drift. Headroom for the
   drift comes from the 1.2 scale. */
.portraits__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-raise);
}

.portraits__zoom {
  position: absolute;
  inset: 0;
}

.portraits__frame img {
  height: 100%;
  aspect-ratio: auto;
}

.portraits.is-drift .portraits__frame img {
  transform: translate3d(0, var(--py, 0%), 0) scale(1.2);
  will-change: transform;
}

.portraits figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ----------------------------------------------------------- spec ticket */

.spec {
  border-top: 1px solid var(--hairline);
}

.spec dl {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--hairline);
}

.spec__row {
  display: grid;
  grid-template-columns: minmax(9rem, 22%) 1fr;
  gap: 1rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--hairline);
}

.spec__row:first-child {
  border-top: 0;
}

.spec dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 0.3rem;
}

.spec dd {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--cream);
}

.spec dd small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-mute);
}

.spec__note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

/* -------------------------------------------------------------- refs list */

.houses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--cream);
}

.cert {
  margin-top: 2.25rem;
  padding: 1rem 1.25rem;
  border-left: 1px solid var(--field);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.cert strong {
  color: var(--cream);
  font-weight: 500;
}

/* ----------------------------------------------------------------- forms */

.shell.close {
  padding-block: clamp(3rem, 6vh, 4.5rem);
}

.close > .reveal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
}

.close h2 {
  margin-bottom: 0.85rem;
}

.close__note {
  max-width: 28ch;
  color: var(--ink-soft);
  line-height: 1.45;
}

.enquiry {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
  max-width: none;
}

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

.enquiry__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.field {
  display: grid;
  gap: 0.28rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color var(--tap) var(--ease);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--oil);
}

.field select {
  -webkit-appearance: none;
  appearance: none;
}

.field select option {
  background: var(--bg-raise);
  color: var(--cream);
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea {
  border-bottom-color: #c9553f;
}

.field__error {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #e08a76;
}

.field__error:empty {
  display: none;
}

.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--tap) var(--ease), color var(--tap) var(--ease);
}

.button:hover,
.button:focus-visible {
  background: var(--cream);
  color: var(--bg-dark);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.form-status:empty {
  display: none;
}

/* -------------------------------------------------------------- partners */

.partners {
  --pearl-ink: #1c1916;
  --pearl-mute: #5c534c;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--pearl-ink);
  padding: clamp(4.5rem, 11vh, 8.5rem) var(--gutter);
  background-color: #e4d4c4;
  background-image:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(244, 232, 218, 0.72), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(196, 154, 122, 0.55), transparent 52%),
    radial-gradient(ellipse 40% 50% at 70% 80%, rgba(168, 140, 148, 0.34), transparent 55%),
    linear-gradient(118deg, rgba(232, 214, 196, 0.35) 0%, rgba(184, 148, 120, 0.48) 28%, rgba(122, 140, 124, 0.3) 46%, rgba(196, 150, 138, 0.4) 64%, rgba(228, 212, 196, 0.22) 100%),
    linear-gradient(165deg, #eadccf 0%, #e4d4c4 42%, #d8c4b0 100%);
}

.partners::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 8%, rgba(255, 248, 240, 0.35) 22%, transparent 36%),
    linear-gradient(112deg, transparent 42%, rgba(120, 146, 128, 0.28) 54%, transparent 66%),
    linear-gradient(112deg, transparent 68%, rgba(186, 140, 128, 0.4) 78%, transparent 90%);
}

.partners__ink {
  position: absolute;
  width: 0;
  height: 0;
}

.partners .reveal {
  text-align: center;
}

.partners .label {
  color: var(--pearl-mute);
}

.partners .label::after {
  left: 50%;
  transform: translateX(-50%);
}

.partners h2 {
  max-width: 12em;
  margin-inline: auto;
  color: var(--pearl-ink);
}

.partners__grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2.75rem, 6vw, 4.75rem) clamp(1.5rem, 4vw, 2.75rem);
  max-width: 62rem;
  margin: clamp(2.75rem, 6vh, 4.5rem) auto 0;
  padding: 0;
}

.partners__grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  flex: 0 1 17.5rem;
  width: min(100%, 17.5rem);
  min-width: 0;
}

.partners__mark {
  display: block;
  width: auto;
  max-width: 100%;
  height: 6.75rem;
  margin: 0 auto 1.15rem;
  object-fit: contain;
  object-position: center bottom;
  filter: url("#partners-bold");
}

.partners__mark--script {
  width: min(100%, 13.5rem);
  object-position: center 42%;
}

/* The script is the name, so the place sits on it instead of under a hidden title. */
.partners__grid li:has(.partners__mark--script) .partners__place {
  position: relative;
  top: -3.15rem;
}

.partners__name--spacer {
  visibility: hidden;
}

.partners__mark--lockup {
  height: auto;
  width: min(100%, 16.5rem);
  margin-bottom: 0;
}

.partners__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--pearl-ink);
  max-width: 16rem;
  text-wrap: balance;
}

.partners__place {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.45;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pearl-mute);
  max-width: 16rem;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .partners {
    padding-block: clamp(3.25rem, 7vh, 5.25rem);
  }

  .partners .label {
    margin-bottom: 1.05rem;
  }

  .partners h2 {
    margin-bottom: 0.35rem;
  }

  .partners__grid {
    gap: 2.75rem clamp(1.5rem, 4vw, 2.75rem);
    margin-top: clamp(1.6rem, 3vh, 2.35rem);
  }

  .partners__grid li:has(.partners__mark--script) {
    transform: translateY(0.9rem);
  }

  .partners__mark--lockup {
    transform: translateY(-3.4rem);
  }
}

@media (max-width: 800px) {
  .partners__grid li {
    flex-basis: calc(50% - 1.5rem);
    width: calc(50% - 1.5rem);
  }
}

@media (max-width: 520px) {
  .partners__grid {
    max-width: 18rem;
  }

  .partners__grid li {
    flex-basis: 100%;
    width: 100%;
  }

  .partners__mark {
    height: 6rem;
  }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.55rem 2rem;
  padding: 1.25rem var(--gutter);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 220ms var(--ease), color var(--tap) var(--ease);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cream);
  background-size: 100% 1px;
}

/* ---------------------------------------------------------------- motion */

/* Exactly one scroll reveal, used everywhere.

   Gated on .js-reveal, which the script adds only once it is certain it can
   reveal things again. Without it every section stays visible, so a script
   error or a blocked file can never leave the page blank. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal:not(.reveal--staged) {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 480ms var(--ease-enter), transform 480ms var(--ease-enter);
  }

  .js-reveal .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  /* Text sections arrive block by block: label, heading, then the text.
     Blocks that enter together are staggered by --i (set from the script);
     a block that enters alone has no delay. */
  .js-reveal .rv:not(.portraits, .spec) {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 650ms var(--ease-enter), transform 650ms var(--ease-enter);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .js-reveal .rv.is-in:not(.portraits, .spec) {
    opacity: 1;
    transform: none;
  }

  /* The orange rule draws itself, always the same way: under a label after the
     label lands, above a pull-quote after the quote lands. */
  .js-reveal :is(.bay--a, .bay--b) .label::after,
  .js-reveal .pull::before {
    transform: scaleX(0);
    transform-origin: var(--rule-origin, left);
    transition: transform 800ms var(--ease-enter);
    transition-delay: calc(var(--i, 0) * 80ms + 250ms);
  }

  .js-reveal :is(.bay--a, .bay--b) .label.is-in::after,
  .js-reveal .pull.is-in::before,
  .js-reveal .rv.is-in .pull::before {
    transform: scaleX(1);
  }

  /* Portraits: each frame opens like a curtain from the bottom, the picture
     inside settles from a slow zoom, and the caption rises after it. Frames
     follow one another 140ms apart. Afterwards the picture drifts slightly
     against the scroll (script). */
  .js-reveal .portraits__frame {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1300ms var(--ease-enter);
    transition-delay: calc(var(--r, 0) * 140ms);
  }

  .js-reveal .portraits.is-in .portraits__frame {
    clip-path: inset(0);
  }

  .js-reveal .portraits__zoom {
    transform: scale(1.25);
    transition: transform 2000ms var(--ease-enter);
    transition-delay: calc(var(--r, 0) * 140ms);
  }

  .js-reveal .portraits.is-in .portraits__zoom {
    transform: none;
  }

  .js-reveal .portraits figcaption {
    opacity: 0;
    transform: translateY(0.6rem);
    transition: opacity 700ms var(--ease-enter), transform 700ms var(--ease-enter);
    transition-delay: calc(var(--r, 0) * 140ms + 700ms);
  }

  .js-reveal .portraits.is-in figcaption {
    opacity: 1;
    transform: none;
  }

  /* Specification rows read top to bottom. */
  .js-reveal .spec__row,
  .js-reveal .spec__note {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms var(--ease-enter), transform 600ms var(--ease-enter);
    transition-delay: calc(var(--r, 8) * 70ms);
  }

  .js-reveal .spec.is-in .spec__row,
  .js-reveal .spec.is-in .spec__note {
    opacity: 1;
    transform: none;
  }

  /* Chapter bands settle into place as they arrive. */
  .js-reveal .chapter video,
  .js-reveal .chapter img,
  .js-reveal .chapter__poster {
    transform: scale(1.05);
    transition: transform 1600ms var(--ease-enter), opacity 600ms var(--ease-enter);
  }

  .js-reveal .chapter.is-in video,
  .js-reveal .chapter.is-in img,
  .js-reveal .chapter.is-in .chapter__poster {
    transform: none;
  }

  .js-reveal .chapter figcaption {
    opacity: 0;
    transition: opacity 700ms var(--ease-enter) 300ms;
  }

  .js-reveal .chapter.is-in figcaption {
    opacity: 1;
  }

  /* The headline is absent, then it fades in. Nothing moves. It is held at
     opacity 0, not with a paused animation: a paused animation has often
     already finished by the time a refresh shows the page, or it never
     resumes. The script adds .is-title-go when the intro starts to lift,
     after the display face is ready. */
  html.js-title:not(.is-title-go) .hero h1 {
    opacity: 0;
  }

  html.is-title-go .hero h1 {
    animation: title-in 1.2s var(--ease) both;
  }

  @keyframes title-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.is-preloading,
  html.is-preloading body {
    overflow: auto;
  }

  .preloader {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* The intro yields the row before the paired fields do. */
@media (max-width: 960px) {
  .close > .reveal {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ narrow view */

@media (max-width: 767px) {
  body {
    font-size: 1.05rem;
  }

  .wordmark {
    letter-spacing: 0.16em;
    font-size: 0.8rem;
  }

  .masthead {
    gap: 0.5rem;
  }

  .masthead__end {
    margin-left: auto;
    gap: 0.35rem;
  }

  .lang {
    position: relative;
    gap: 0;
  }

  /* On a narrow bar, only the language you can switch to is shown. */
  .lang button[aria-pressed="true"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .bay--a > *,
  .bay--b > * {
    grid-column: 1 / -1;
  }

  .portraits {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero__media img {
    object-position: 72% 38%;
  }

  /* Portrait copy runs the full width, so the scrim has to come from below
     rather than from the side or the headline lands on the bright bowl. */
  .hero__media::after {
    background: linear-gradient(
      0deg,
      rgba(12, 10, 8, 0.97) 0%,
      rgba(12, 10, 8, 0.92) 30%,
      rgba(12, 10, 8, 0.62) 52%,
      rgba(12, 10, 8, 0.28) 72%,
      rgba(12, 10, 8, 0.55) 100%
    );
  }

  .spec__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .close > .reveal,
  .enquiry {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .site-footer address {
    flex-direction: column;
    align-items: flex-start;
  }

  .figure img {
    transform: none;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .masthead__end {
    margin-left: 0;
  }

  .menu-toggle,
  .drawer {
    display: none !important;
  }

  /* Wide screens get a taller band; 16:9 would leave it a thin strip. */
  .chapter__frame {
    aspect-ratio: auto;
    height: min(74vh, 640px);
  }

  .bay--a > *,
  .bay--b > * {
    grid-column: 1 / -1;
  }
}

/* Centered spread. Label, rule and heading are centered over the section and
   the text runs below as one flow, as wide as the portraits and the table.
   Pull-quotes are centered statements. Below 1000px the text is one centered
   column; below 768px everything is left-aligned and stacked. */
@media (min-width: 768px) {
  .bay--a,
  .bay--b {
    --rule-origin: center;
  }

  .bay__head {
    text-align: center;
  }

  .bay__head h2 {
    margin-inline: auto;
  }

  .bay__head .label::after {
    left: calc(50% - var(--rule-w) / 2);
  }

  .bay__body {
    max-width: 46rem;
    margin-inline: auto;
  }

  .bay__body .pull {
    max-width: 28ch;
    margin: 2.5rem auto;
    text-align: center;
  }

  .bay__body .pull::before {
    margin-inline: auto;
  }

  .bay__body .prose:first-child > .pull:first-child {
    margin-top: 0;
  }

  .bay__body .houses {
    justify-content: center;
  }

  .bay__body .prose--after {
    text-align: center;
  }

  .bay__body .prose--after p {
    margin-inline: auto;
  }

  .bay__body .cert {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  /* Opening paragraph of the driveway reads as a lead-in. */
  .bay__body .driveway .prose p:first-child {
    font-size: clamp(1.2rem, 1.9vw, 1.45rem);
    line-height: 1.55;
    color: var(--ink);
  }
}

@media (min-width: 1000px) {
  .bay__body {
    max-width: 72rem;
  }

  /* The container stays as wide as the portraits and the table, but a line of
     text does not: 72rem at body size is ~135 characters, too long to track
     from one line to the next. Prose sits at a readable measure, slightly
     larger and looser, centred under the heading. */
  .bay__body .prose p:not(.pull) {
    max-width: 48rem;
    margin-inline: auto;
    margin-bottom: 1.4rem;
    font-size: 1.2rem;
    line-height: 1.7;
  }

  .bay__body .prose p:not(.pull):last-child {
    margin-bottom: 0;
  }

  .spec dd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    column-gap: 2rem;
    align-items: baseline;
  }

  .spec dd small {
    margin-top: 0;
  }
}
