/* ==========================================================================
   Fonts — ABC Diatype (Dinamo), self-hosted. Everything is served locally;
   no external font or script services are used.

   ABC Diatype is a commercial typeface: place your licensed web files in
   /fonts with these names (rename if yours differ):
     ABCDiatype-Light.woff2   ABCDiatype-Regular.woff2   ABCDiatype-Medium.woff2
     ABCDiatype-RegularItalic.woff2
   Until they are present, a locally installed copy is used if there is one,
   otherwise the fallback stack in --font-body.
   ========================================================================== */

@font-face {
  font-family: 'ABC Diatype';
  src: local('ABC Diatype Light'), local('ABCDiatype-Light'),
    url('../fonts/ABCDiatype-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Diatype';
  src: local('ABC Diatype Regular'), local('ABCDiatype-Regular'),
    url('../fonts/ABCDiatype-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Diatype';
  src: local('ABC Diatype Regular Italic'), local('ABCDiatype-RegularItalic'),
    url('../fonts/ABCDiatype-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Diatype';
  src: local('ABC Diatype Medium'), local('ABCDiatype-Medium'),
    url('../fonts/ABCDiatype-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */

/* Dark is the default. Light applies when the visitor chooses it (data-theme,
   set by js/theme.js) or, without JS, when the system prefers light. */
:root {
  --color-bg: #121110;
  --color-surface: #1a1816;
  --color-text: #efe9e1;
  --color-muted: #a59d93;
  --color-accent: #c99c6c;
  --color-line: rgba(239, 233, 225, 0.14);
  --color-contrast: #121110; /* text on a --color-text background */
  --bg-rgb: 18, 17, 16;
  --text-rgb: 239, 233, 225;

  --font-body: 'ABC Diatype', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --font-display: var(--font-body);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #ffffff;
    --color-surface: #f5f4f2;
    --color-text: #1d1b18;
    --color-muted: #665f56;
    --color-accent: #84592f;
    --color-line: rgba(29, 27, 24, 0.14);
    --color-contrast: #ffffff;
    --bg-rgb: 255, 255, 255;
    --text-rgb: 29, 27, 24;
    color-scheme: light;
  }
}

:root[data-theme='light'] {
  --color-bg: #ffffff;
  --color-surface: #f5f4f2;
  --color-text: #1d1b18;
  --color-muted: #665f56;
  --color-accent: #84592f;
  --color-line: rgba(29, 27, 24, 0.14);
  --color-contrast: #ffffff;
  --bg-rgb: 255, 255, 255;
  --text-rgb: 29, 27, 24;
  color-scheme: light;
}

/* Text set over photography or the video stays light in both themes; the
   overlays behind it are always dark. */
.kitchen-scroll,
.page-hero,
.lightbox,
.site-header:not(.is-scrolled):not(.is-nav-open) {
  --color-text: #efe9e1;
  --color-muted: #c4bbb0;
  --color-accent: #d3a676;
  --color-line: rgba(239, 233, 225, 0.18);
  --color-contrast: #121110;
  --text-rgb: 239, 233, 225;
  color: var(--color-text);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 4px;
}

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

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.9rem;
  border: 1px solid rgba(var(--text-rgb), 0.45);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-text);
  background: rgba(var(--bg-rgb), 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.kitchen-scroll .button,
.page-hero .button {
  background: rgba(18, 17, 16, 0.25);
}

.button::after {
  content: '';
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}

.button:hover {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-contrast);
}

.button:hover::after {
  width: 2rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgba(18, 17, 16, 0.55), rgba(18, 17, 16, 0));
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* Solid once the page has scrolled past the hero (set by js/site.js). */
.site-header.is-scrolled,
.site-header.is-nav-open {
  background-image: none;
}

.site-header.is-scrolled {
  background-color: rgba(var(--bg-rgb), 0.92);
  box-shadow: 0 1px 0 var(--color-line);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled {
    background-color: rgba(var(--bg-rgb), 0.9);
    backdrop-filter: blur(14px);
  }
}

.site-header__brand {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Swap the text for an image when the logo is ready, e.g.
   <img src="images/logo.svg" alt="Brand name" height="24"> */
.site-header__brand img {
  display: block;
  height: 1.5rem;
  width: auto;
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  order: 1;
  margin-left: auto;
}

.theme-toggle {
  position: relative;
  z-index: 2;
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: clamp(0.75rem, 2vw, 1.75rem);
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Show the icon of the theme you would switch to. */
.theme-toggle__moon,
[data-theme='light'] .theme-toggle__sun {
  display: none;
}

[data-theme='light'] .theme-toggle__moon {
  display: block;
}

.no-js .theme-toggle {
  display: none;
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-muted);
  transition: color 0.3s var(--ease);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0.22em;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--color-text);
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  .js .theme-toggle {
    margin-left: auto;
  }

  .js .nav-toggle {
    order: 3;
    margin-left: 0.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.6rem;
    padding: 0 0.6rem;
    border: 0;
    background: none;
    color: var(--color-text);
    cursor: pointer;
  }

  .nav-toggle i {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 0.4s var(--ease);
  }

  .is-nav-open .nav-toggle i:first-of-type {
    transform: translateY(4px) rotate(45deg);
  }

  .is-nav-open .nav-toggle i:last-of-type {
    transform: translateY(-4px) rotate(-45deg);
  }

  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: var(--header-h) var(--gutter);
    background: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }

  .js .is-nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease);
  }

  .js .site-nav a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 2.75rem);
    letter-spacing: 0;
    text-transform: none;
  }

  .js .site-nav a::after {
    display: none;
  }

  /* Without JS the links simply wrap under the brand. */
  .no-js .site-header {
    flex-wrap: wrap;
    height: auto;
    padding-block: 1rem;
    row-gap: 0.5rem;
  }

  .no-js .site-nav {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}

body.is-nav-locked {
  overflow: hidden;
}

/* ==========================================================================
   Kitchen scroll video
   --sv-progress (0 → 1) is written by js/scroll-video.js; everything below
   derives from it so the overlays stay locked to the video frame.
   ========================================================================== */

.kitchen-scroll {
  --sv-progress: 0;
  --sv-length: 300vh;
  --sv-viewport: 100vh;

  position: relative;
  height: var(--sv-length);
  background: var(--color-bg);
}

@supports (height: 100svh) {
  .kitchen-scroll {
    --sv-viewport: 100svh;
  }
}

@media (max-width: 1024px) {
  .kitchen-scroll {
    --sv-length: 270vh;
  }
}

@media (max-width: 767px) {
  .kitchen-scroll {
    --sv-length: 230svh;
  }
}

.kitchen-scroll__sticky {
  position: sticky;
  top: 0;
  height: var(--sv-viewport);
  overflow: hidden;
  isolation: isolate;
}

.kitchen-scroll__stage {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--color-bg);
}

.kitchen-scroll__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  /* A slow pull-back over the whole section. */
  transform: scale(calc(1.06 - var(--sv-progress) * 0.06));
  transform-origin: 50% 55%;
  will-change: transform;
}

/* Phones: fill the full screen height (the default `cover` above). The sides of
   the 16:9 frame are cropped; move --sv-focus-x (0% = left, 100% = right) to
   choose which part of the kitchen stays in view. */
@media (max-width: 767px) {
  .kitchen-scroll__video {
    object-position: var(--sv-focus-x, 50%) 50%;
  }
}

/* Portrait tablets: show the whole 16:9 frame instead of cropping the kitchen
   down to a sliver; the charcoal surround matches the cabinetry. */
@media (orientation: portrait) and (min-width: 768px) {
  .kitchen-scroll__video {
    object-fit: contain;
    transform: none;
  }

  .kitchen-scroll__stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, var(--color-bg) 0%, transparent 32%, transparent 68%, var(--color-bg) 100%);
    pointer-events: none;
  }
}

.kitchen-scroll__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(18, 17, 16, 0) 35%, rgba(18, 17, 16, 0.55) 100%),
    linear-gradient(to bottom, rgba(18, 17, 16, 0.5), rgba(18, 17, 16, 0.15) 45%, rgba(18, 17, 16, 0.7));
  /* Heavier while the intro text is up, then eases off to reveal the kitchen. */
  opacity: clamp(0.45, calc(1 - var(--sv-progress) * 4), 1);
}

/* Fade the bottom edge into the next section. */
.kitchen-scroll__sticky::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  opacity: clamp(0, calc((var(--sv-progress) - 0.8) * 5), 1);
  pointer-events: none;
}

/* ---- Intro ---------------------------------------------------------------- */

.kitchen-scroll__intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 6rem;
  text-align: center;
  opacity: clamp(0, calc(1 - var(--sv-progress) * 7), 1);
  transform: translate3d(0, calc(var(--sv-progress) * -45vh), 0);
}

.kitchen-scroll.is-past-intro .kitchen-scroll__intro {
  visibility: hidden;
}

.kitchen-scroll__title {
  max-width: 14ch;
  font-size: clamp(2.4rem, 6.4vw, 5.25rem);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.kitchen-scroll__lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(239, 233, 225, 0.82);
}

/* ---- Captions ------------------------------------------------------------- */

.kitchen-scroll__caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(4.5rem, 12vh, 8rem);
  max-width: 21rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.kitchen-scroll__caption .eyebrow {
  margin-bottom: 0.6rem;
}

.kitchen-scroll__caption--a {
  opacity: clamp(0, min((var(--sv-progress) - 0.24) * 10, (0.5 - var(--sv-progress)) * 10), 1);
  transform: translate3d(0, calc((0.37 - var(--sv-progress)) * 80px), 0);
}

.kitchen-scroll__caption--b {
  left: auto;
  right: var(--gutter);
  text-align: right;
  opacity: clamp(0, min((var(--sv-progress) - 0.54) * 10, (0.8 - var(--sv-progress)) * 10), 1);
  transform: translate3d(0, calc((0.67 - var(--sv-progress)) * 80px), 0);
}

/* ---- Closing call to action ---------------------------------------------- */

.kitchen-scroll__end {
  position: absolute;
  left: 50%;
  bottom: clamp(4rem, 13vh, 8rem);
  opacity: clamp(0, calc((var(--sv-progress) - 0.84) * 9), 1);
  transform: translate3d(-50%, calc((1 - var(--sv-progress)) * 120px), 0);
  pointer-events: none;
}

.kitchen-scroll.is-end .kitchen-scroll__end {
  pointer-events: auto;
}

/* Keep the CTA visible whenever a keyboard user lands on it. */
.kitchen-scroll__end:focus-within {
  opacity: 1;
}

/* ---- Scroll cue, progress rail, loader ----------------------------------- */

.kitchen-scroll__cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-muted);
  transform: translateX(-50%);
  opacity: clamp(0, calc(1 - var(--sv-progress) * 12), 1);
}

.kitchen-scroll__cue i {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.kitchen-scroll__rail {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0.9rem;
  height: 1px;
  background: var(--color-line);
}

.kitchen-scroll__rail i {
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(var(--sv-progress));
  transform-origin: left;
}

.kitchen-scroll__loader {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 0.5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.kitchen-scroll__loader i {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.25; transform: scale(0.7); }
}

.kitchen-scroll.is-loading .kitchen-scroll__loader {
  opacity: 1;
}

/* Until frames are decodable the poster stands in, so hold the video still. */
.kitchen-scroll:not(.is-ready) .kitchen-scroll__video {
  transform: none;
}

/* ---- Static mode (reduced motion, no JS, or video failure) ---------------- */

.no-js .kitchen-scroll,
.kitchen-scroll.is-static,
.kitchen-scroll.is-fallback {
  --sv-length: auto;
  --sv-progress: 0;
}

.no-js .kitchen-scroll__sticky,
.kitchen-scroll.is-static .kitchen-scroll__sticky,
.kitchen-scroll.is-fallback .kitchen-scroll__sticky {
  position: relative;
}

.no-js .kitchen-scroll__end,
.kitchen-scroll.is-static .kitchen-scroll__end,
.kitchen-scroll.is-fallback .kitchen-scroll__end {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}

.no-js .kitchen-scroll__intro,
.kitchen-scroll.is-static .kitchen-scroll__intro,
.kitchen-scroll.is-fallback .kitchen-scroll__intro {
  visibility: visible;
}

.no-js .kitchen-scroll__caption,
.no-js .kitchen-scroll__cue,
.no-js .kitchen-scroll__rail,
.no-js .kitchen-scroll .skip-link--inline,
.kitchen-scroll.is-static .kitchen-scroll__caption,
.kitchen-scroll.is-static .kitchen-scroll__cue,
.kitchen-scroll.is-static .kitchen-scroll__rail,
.kitchen-scroll.is-static .skip-link--inline,
.kitchen-scroll.is-fallback .kitchen-scroll__caption,
.kitchen-scroll.is-fallback .kitchen-scroll__cue,
.kitchen-scroll.is-fallback .kitchen-scroll__rail,
.kitchen-scroll.is-fallback .skip-link--inline {
  display: none;
}

.kitchen-scroll.is-static .kitchen-scroll__video,
.kitchen-scroll.is-fallback .kitchen-scroll__video {
  transform: none;
}

/* ==========================================================================
   Shared sections
   ========================================================================== */

.section {
  padding: clamp(4.5rem, 12vh, 8rem) 0;
}

.section--surface {
  background: var(--color-surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-accent);
  white-space: nowrap;
}

.text-link::after {
  content: '\2192';
  transition: transform 0.4s var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Large editorial statement after the scroll video. */
.statement {
  padding: clamp(5rem, 16vh, 10rem) 0 clamp(2rem, 6vh, 4rem);
}

.statement__text {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.18;
}

.statement__text em {
  color: var(--color-accent);
}

/* ---- Cards ----------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
}

.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid--3,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: block;
  text-decoration: none;
}

.card__media,
.feature__media,
.split__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--color-surface);
}

.card__media {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem;
}

.card__media img,
.feature__media img,
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

a.card:hover .card__media img,
.feature__media:hover img {
  transform: scale(1.04);
}

.card__title {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.card__meta {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.card__text {
  margin-top: 0.9rem;
  max-width: 36rem;
  color: var(--color-muted);
}

/* ---- Feature (image + text) ---------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.feature__media {
  display: block;
  aspect-ratio: 16 / 10;
}

.feature__title {
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

.feature__body p:not(.card__meta) {
  margin-bottom: 2rem;
  color: var(--color-muted);
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }
}

/* ---- Numbered steps ------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin: clamp(3rem, 8vh, 5rem) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.steps__index {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
}

.steps h3 {
  margin: 0.75rem 0 0.9rem;
  font-size: 1.6rem;
}

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

@media (max-width: 767px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---- Closing call to action ---------------------------------------------- */

.cta-band {
  padding: clamp(5rem, 16vh, 10rem) 0;
  background: var(--color-surface);
  text-align: center;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band__text {
  max-width: 32rem;
  margin: 1.5rem 0 2.5rem;
  color: var(--color-muted);
}

/* ==========================================================================
   Inner-page hero
   ========================================================================== */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(78vh, 46rem);
  padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 9vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.page-hero--short {
  min-height: min(56vh, 32rem);
}

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

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(18, 17, 16, 0.55) 0%, rgba(18, 17, 16, 0.2) 40%, rgba(18, 17, 16, 0.92) 100%);
}

.page-hero__title {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
}

.page-hero__lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(239, 233, 225, 0.85);
}

/* ==========================================================================
   About
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.split__text .section-title {
  margin-bottom: 1.75rem;
}

.split__text > p:not(.eyebrow) {
  max-width: 36rem;
  color: var(--color-muted);
}

.split__text > p + p {
  margin-top: 1.25rem;
}

.split__media {
  aspect-ratio: 8 / 9;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  counter-increment: step;
}

.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
}

.timeline strong {
  font-weight: 500;
  color: var(--color-text);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split__media {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact__lede {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.35;
}

.contact__details {
  display: grid;
  gap: 1.5rem;
  margin: 2.75rem 0 0;
}

.contact__details div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-line);
}

.contact__details dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact__details dd {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
}

.contact__details a {
  text-decoration: none;
  color: var(--color-text);
}

.contact__details a:hover {
  color: var(--color-accent);
}

.form {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

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

.field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.field__optional {
  letter-spacing: 0.1em;
  text-transform: none;
  font-weight: 300;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s var(--ease);
}

.field select {
  appearance: none;
  padding-right: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a59d93'/%3E%3C/svg%3E") right center no-repeat;
}

.field select option {
  background: var(--color-surface);
  color: var(--color-text);
}

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

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

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.form .button {
  justify-self: start;
  cursor: pointer;
  font-family: inherit;
}

.form__status {
  min-height: 1.6em;
  font-size: 0.9rem;
  color: var(--color-accent);
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Catalogue: listings
   ========================================================================== */

.section--tight {
  padding-top: clamp(2.5rem, 6vh, 4rem);
}

.section-title--sm {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

ul.card-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__count {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.card .card__meta + .card__title {
  margin-top: 0.4rem;
}

.listing__controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.25rem 1.75rem;
  align-items: end;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-line);
}

@media (max-width: 860px) {
  .listing__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.field--search input {
  padding-left: 1.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%23a59d93' stroke-width='1.2'%3E%3Ccircle cx='6.5' cy='6.5' r='5.5'/%3E%3Cpath d='M10.5 10.5l4 4'/%3E%3C/svg%3E") left center no-repeat;
}

.field input[type='search']::-webkit-search-cancel-button {
  filter: invert(0.7);
}

.listing__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  margin: 1.25rem 0 2rem;
}

.listing__count {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.text-button {
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-accent);
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.listing__empty {
  padding: clamp(3rem, 10vh, 6rem) 0;
  text-align: center;
  color: var(--color-muted);
}

.listing__empty .button {
  margin-top: 1.75rem;
  cursor: pointer;
  font-family: inherit;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: clamp(3rem, 8vh, 4.5rem);
}

.pagination a,
.pagination span.is-current,
.pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-muted);
}

.pagination a {
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.pagination a:hover {
  border-color: var(--color-line);
  color: var(--color-text);
}

.pagination span.is-current {
  border: 1px solid var(--color-accent);
  color: var(--color-text);
}

/* ==========================================================================
   Catalogue: detail pages
   ========================================================================== */

.detail-loading {
  min-height: 70vh;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.detail__body p {
  max-width: 40rem;
  color: var(--color-muted);
}

.detail__body p + p {
  margin-top: 1.35rem;
}

.detail__body .detail__lede {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-text);
}

.detail__aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 2rem 0 2.5rem;
}

.specs div {
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-line);
}

.specs dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.specs dd {
  margin: 0.3rem 0 0;
}

.detail__aside .specs {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.specs dd a {
  color: var(--color-text);
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.25em;
}

@media (max-width: 860px) {
  .detail {
    grid-template-columns: 1fr;
  }

  .detail__aside {
    position: static;
  }

  .detail__aside .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  grid-auto-flow: dense;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.gallery__item button {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--color-bg);
  cursor: zoom-in;
}

.gallery__item.is-portrait button {
  aspect-ratio: auto;
  height: 100%;
}

.gallery__item.is-portrait {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.4s var(--ease);
}

.gallery__item button:hover img {
  transform: scale(1.03);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 9, 8, 0.96);
  color: var(--color-text);
}

.lightbox::backdrop {
  background: rgba(10, 9, 8, 0.7);
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  margin: 0;
  padding: 4.5rem var(--gutter) 2rem;
  pointer-events: none;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100% - 3rem);
  object-fit: contain;
  pointer-events: auto;
}

.lightbox__figure figcaption {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--color-line);
  background: rgba(18, 17, 16, 0.6);
  color: var(--color-text);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 1.6rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--color-accent);
}

.detail-pager {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: clamp(4rem, 10vh, 6rem);
  border-top: 1px solid var(--color-line);
}

.detail-pager a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 45%;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  text-decoration: none;
}

.detail-pager a span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.detail-pager__prev span::before {
  content: '\2190  ';
}

.detail-pager__next {
  margin-left: auto;
  text-align: right;
  align-items: flex-end;
}

.detail-pager__next span::after {
  content: '  \2192';
}

.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
}

.not-found .section-title {
  margin-bottom: 0.5rem;
}

.not-found .cta-band__text {
  margin: 1rem 0 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: clamp(3.5rem, 9vh, 5.5rem) 0 calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.site-footer__grid > * {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.site-footer__brand p {
  max-width: 18rem;
}

.site-footer__heading {
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-text);
}

.site-footer .site-header__brand {
  color: var(--color-text);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 8vh, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
