/* ═══════════════════════════════════════════════════════
   NexStone — inner pages
   Mobile first. Widen with min-width queries.

   Every value here is a token from design-system.css.
   Scoped away from the film: the fixed-stage rules in style.css only apply
   to body.nexstone-film, so these pages scroll normally.
   ═══════════════════════════════════════════════════════ */

/* ─── Page shell ─── */
.site-body {
  min-height: var(--layout-viewport-min);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  /* A closed drawer is parked off the right edge. `clip` contains it without
     creating a scroll container, so position: sticky still works. `hidden`
     first for browsers without `clip`. */
  overflow-x: hidden;
  overflow-x: clip;
}

.site-main { flex: 1 1 auto; }

.container {
  width: var(--layout-size-full);
  max-width: var(--layout-container-max);
  margin-inline: auto;
  padding-inline: var(--layout-container-pad);
}
.container--narrow { max-width: var(--layout-container-narrow); }

.section { padding-block: var(--layout-section-pad); }
.section--sunken { background: var(--color-surface-sunken); }

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
  z-index: var(--z-drawer);
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-raised);
  color: var(--color-text-strong);
  font-size: var(--font-size-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(calc(var(--space-16) * -1));
}
.skip-link:focus { transform: none; }

/* ─── Site header ─── */
/* Fixed, not sticky: sticky still occupies a row in the flow, so every page
   began one header-height down the document. Fixed lifts it onto its own
   layer and the content beneath starts at the top of the viewport. */
.site-header {
  position: fixed;
  top: var(--layout-inset-full);
  inset-inline: var(--layout-inset-full);
  z-index: var(--z-site-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  /* The film's gutter, not a header height of its own: it puts the trigger
     on the same line as the film's and the overlay's. */
  padding-block: var(--layout-gutter-block-sm);
  padding-inline: var(--layout-container-pad);
  /* No backdrop-filter. The background is already zero-alpha, so the blur
     was the whole of the visible bar - a frosted band reads as a background
     even when no colour is painted. */
  background: var(--site-header-bg);
}
body.admin-bar .site-header { top: var(--admin-bar-height-sm); }

.site-header__brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  font-family: var(--font-family-logo);
  font-weight: var(--font-weight-hairline);
  font-size: var(--font-size-md);
  letter-spacing: var(--tracking-caps);
  color: var(--color-text-strong);
  text-decoration: none;
  white-space: nowrap;
}
.site-header__brand span { color: var(--color-text-accent); }


.drawer-backdrop {
  position: fixed;
  inset: var(--layout-inset-full);
  z-index: var(--z-drawer-backdrop);
  background: rgb(var(--rgb-void) / var(--alpha-70));
  opacity: var(--alpha-00);
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-soft), visibility var(--duration-base);
}
.drawer-backdrop[data-open="true"] { opacity: var(--alpha-100); visibility: visible; }

/* ─── Page hero ─── */
.page-hero { padding-block: var(--layout-hero-pad-top) var(--space-8); }
.page-hero__eyebrow {
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps-lg);
  text-transform: uppercase;
  color: var(--color-text-accent);
}
.page-hero__title {
  margin-top: var(--space-4);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h1);
  line-height: var(--leading-none);
  color: var(--color-text-strong);
  text-wrap: balance;
}
.page-hero__title em { font-style: italic; color: var(--color-text-accent); }
.page-hero__lede {
  max-width: var(--layout-measure-prose);
  margin-top: var(--space-5);
  font-size: var(--font-size-prose);
  line-height: var(--leading-loose);
  color: var(--color-text-body);
}

/* ─── Scroll reveal (every inner page) ───────────────────────────────────
   js/page-motion.js sets each element's hidden state in JS, not CSS - a
   visitor with JS off or prefers-reduced-motion set gets the plain static
   markup, never a section stuck invisible. These rules only style the
   word-split it builds for .page-hero__title. */
.page-motion-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.page-motion-word-inner {
  display: inline-block;
}

/* ─── Prose ─── */
.prose { max-width: var(--layout-measure-prose); }

/* Editorial split — heading in a left rail, body beside it. A modifier, not a
   change to .prose: that base rule has nine consumers including
   single-catalog.php, search.php and page.php, none of which were looked at
   here. Mobile keeps the plain stacked column; the grid starts at
   --breakpoint-md, where there is room for a rail. */
.prose--split { max-width: var(--layout-measure-prose); }
.prose h2 {
  margin-top: var(--space-10);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h2);
  line-height: var(--section-title-leading);
  color: var(--color-text-strong);
  text-wrap: balance;
}
.prose h3 {
  margin-top: var(--space-7);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-h3);
  color: var(--color-text-strong);
}
.prose p,
.prose li {
  margin-top: var(--space-4);
  font-size: var(--font-size-prose);
  line-height: var(--leading-loose);
  color: var(--color-text-body);
}
.prose ul, .prose ol { margin-top: var(--space-4); padding-left: var(--space-5); }
.prose a { color: var(--color-text-accent); }
.prose img { max-width: var(--layout-size-full); height: auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-target-min);
  padding-inline: var(--space-6);
  border: var(--border-width-hairline) solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--duration-smooth) var(--ease-cine),
              background var(--duration-smooth) var(--ease-cine);
}
.btn:hover { --btn-bg: var(--btn-bg-hover); --btn-border: var(--btn-border-hover); }
.btn--accent {
  --btn-bg:           var(--btn-accent-bg);
  --btn-bg-hover:     var(--btn-accent-bg-hover);
  --btn-fg:           var(--btn-accent-fg);
  --btn-border:       transparent;
  --btn-border-hover: var(--btn-accent-border-hover);
}

/* ═══════════════ ABOUT ═══════════════ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--layout-grid-gap);
  list-style: none;
}
.stat {
  padding-block: var(--space-6) var(--space-0);
  border-top: var(--border-width-hairline) solid var(--color-border-hairline);
}
.stat__value {
  display: block;
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h2);
  line-height: var(--leading-none);
  color: var(--color-text-strong);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ─── Founder's message ─── */
.founder__eyebrow {
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.founder__quote {
  margin-top: var(--space-6);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h2);
  line-height: var(--leading-snug);
  color: var(--color-text-strong);
}
.founder__rule {
  width: var(--space-16);
  margin-top: var(--space-10);
  margin-left: var(--space-0);
  border: var(--space-0);
  border-top: var(--border-width-hairline) solid var(--color-border-subtle);
}
.founder__name {
  margin-top: var(--space-5);
  font-size: var(--font-size-md);
  color: var(--color-text-strong);
}
.founder__role {
  margin-top: var(--space-1);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--layout-grid-gap);
  margin-top: var(--space-8);
  list-style: none;
}
.principle {
  background: var(--card-bg);
  border: var(--border-width-hairline) solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  transition: border-color var(--duration-smooth) var(--ease-cine);
}
.principle:hover { border-color: var(--card-border-hover); }
.principle__title {
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-h3);
  color: var(--color-text-strong);
}
.principle__body {
  margin-top: var(--space-3);
  font-size: var(--font-size-prose);
  line-height: var(--leading-loose);
  color: var(--color-text-body);
}

.onward-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ═══════════════ CONTACT ═══════════════ */

.contact-heading {
  margin-bottom: var(--space-8);
}
.contact-heading h2 {
  margin-top: var(--space-0);
}

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

.contact-form-layout {
  display: grid;
  gap: var(--space-8);
}

.contact-form {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-block: var(--border-width-hairline) solid var(--color-border-hairline);
}

.contact-form__status {
  margin: var(--space-0);
  padding: var(--space-4);
  border: var(--border-width-hairline) solid var(--color-border-accent);
  background: var(--color-surface-glass);
  color: var(--color-text-strong);
  font-size: var(--font-size-sm);
  line-height: var(--leading-relaxed);
}

.contact-form__status--error {
  border-color: var(--color-border-accent-strong);
}

.contact-form__grid {
  display: grid;
  gap: var(--field-gap);
}

.contact-form__group {
  display: grid;
  gap: var(--field-label-gap);
}

.contact-form__label {
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.contact-form__control {
  width: var(--layout-size-full);
  min-height: var(--field-height);
  padding-inline: var(--field-pad-inline);
  border: var(--border-width-hairline) solid var(--field-border);
  border-radius: var(--field-radius);
  background: var(--field-bg);
  color: var(--color-text-strong);
  font-family: var(--font-family-sans);
  font-size: var(--field-font-size);
  line-height: var(--leading-snug);
}

.contact-form__control option {
  background: var(--color-ink-raised);
  color: var(--color-text-strong);
}

.contact-form__control:focus {
  outline: var(--focus-ring-width) solid var(--color-focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-color: var(--color-border-accent-hover);
}

.contact-form__control--message {
  min-height: var(--field-textarea-min-height);
  padding-block: var(--space-3);
  resize: vertical;
}

.contact-form__actions {
  display: flex;
}

.contact-form__actions .btn {
  width: var(--layout-size-full);
}

.principle--contact {
  display: flex;
  flex-direction: column;
}

.contact-route__actions {
  display: flex;
  flex-direction: column;
  gap: var(--contact-route-actions-gap);
  margin-top: auto;
  padding-top: var(--contact-route-actions-pad);
  border-top: var(--border-width-hairline) solid var(--color-border-hairline);
}

.contact-route__link {
  width: var(--layout-size-full);
}

.contact-route__link--email {
  text-transform: lowercase;
  letter-spacing: var(--tracking-normal);
  font-size: var(--font-size-xs);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.contact-detail {
  display: flex;
  flex-direction: column;
}

.contact-detail__label {
  display: block;
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.contact-detail__value {
  font-size: var(--font-size-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
}

.contact-detail__address {
  display: flex;
  flex-direction: column;
  gap: var(--contact-detail-gap);
  font-style: normal;
}

.contact-detail__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  color: var(--color-text-strong);
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: color var(--duration-smooth) var(--ease-cine);
}
.contact-detail__link:hover {
  color: var(--color-text-accent);
}

/* Direct lines: one hairline-ruled row per enquiry type. Label above the
   number on a phone, label left and number right from --breakpoint-md. */
.direct-lines {
  list-style: none;
  margin-bottom: var(--direct-line-block-gap);
  border-bottom: var(--border-width-hairline) solid var(--color-border-hairline);
}
.direct-line {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--direct-line-pad);
  border-top: var(--border-width-hairline) solid var(--color-border-hairline);
}
.direct-line__label {
  font-size: var(--direct-line-label-size);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--direct-line-label-color);
}
.direct-line__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: var(--space-0);
}
.direct-line__wa {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--direct-line-icon-box);
  aspect-ratio: var(--ratio-square);
  border: var(--border-width-hairline) solid var(--color-border-accent);
  border-radius: var(--radius-pill);
  color: var(--color-text-accent);
  transition: background-color var(--duration-smooth) var(--ease-cine),
              border-color var(--duration-smooth) var(--ease-cine),
              color var(--duration-smooth) var(--ease-cine);
}
.direct-line__wa:hover {
  background-color: var(--color-text-accent);
  border-color: var(--color-text-accent);
  color: var(--color-surface-raised);
}
.direct-line__glyph {
  width: var(--direct-line-icon);
  aspect-ratio: var(--ratio-square);
}
.direct-line__number {
  min-height: var(--tap-target-min);
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--direct-line-number-size);
  line-height: var(--leading-none);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-strong);
  text-decoration: none;
  transition: color var(--duration-smooth) var(--ease-cine);
}
.direct-line__value {
  display: flex;
  flex-direction: column;
  gap: var(--contact-detail-gap);
  min-width: var(--space-0);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--direct-line-value-size);
  line-height: var(--leading-snug);
  color: var(--color-text-strong);
  overflow-wrap: anywhere;
}
.direct-line__link {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-smooth) var(--ease-cine);
}
.direct-line__link:hover {
  color: var(--color-text-accent);
}
.direct-line__number:hover {
  color: var(--color-text-accent);
}

/* @media (min-width: 900px) mirrors --breakpoint-md */
@media (min-width: 900px) {
  .direct-line {
    display: grid;
    grid-template-columns: var(--direct-line-cols);
    align-items: center;
    gap: var(--space-8);
  }
  .direct-line__label { font-size: var(--direct-line-label-size-lg); }
}

/* ═══════════════ COLLECTION ═══════════════ */

.collection__layout { display: block; }

/* Filter bar — a single button on mobile, opens the drawer */
.filters__bar {
  position: sticky;
  top: var(--site-header-height);
  z-index: var(--z-filter-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--filter-bar-height);
  padding-block: var(--space-3);
  background: var(--filter-bar-bg);
  backdrop-filter: blur(var(--filter-bar-blur));
  -webkit-backdrop-filter: blur(var(--filter-bar-blur));
}
.filters__count {
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.filters {
  position: fixed;
  inset: var(--layout-inset-full) var(--layout-inset-full) var(--layout-inset-full) auto;
  z-index: var(--z-drawer);
  width: var(--filter-drawer-width);
  padding: var(--space-6);
  background: var(--color-surface-raised);
  border-left: var(--border-width-hairline) solid var(--color-border-hairline);
  opacity: var(--alpha-00);
  visibility: hidden;
  transform: translateY(var(--drawer-closed-offset));
  transition: opacity var(--duration-base) var(--ease-soft),
              transform var(--duration-smooth) var(--ease-cine),
              visibility var(--duration-smooth);
  overflow-y: auto;
}
.filters[data-open="true"] {
  opacity: var(--alpha-100);
  visibility: visible;
  transform: none;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--filter-group-gap);
}
.filters__title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-light);
  color: var(--color-text-strong);
}

.filters__group + .filters__group { margin-top: var(--filter-group-gap); }
.filters__legend {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--filter-chip-gap);
}

/* The checkbox is the state; the label is the chip. */
.chip { position: relative; }
.chip__input {
  position: absolute;
  inset: var(--layout-inset-full);
  opacity: var(--alpha-00);
  cursor: pointer;
}
.chip__label {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  padding: var(--filter-chip-pad-block) var(--filter-chip-pad-inline);
  /* No outline at rest. A grid of hairline pills reads as a row of disabled
     form controls; the ground carries the hit area instead and the border
     arrives only on hover and when checked, where it means something. */
  border: var(--border-width-hairline) solid var(--color-border-transparent);
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
  font-size: var(--font-size-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-soft),
              color var(--duration-base) var(--ease-soft),
              background var(--duration-base) var(--ease-soft);
}
.chip__input:checked + .chip__label {
  border-color: var(--color-border-accent-hover);
  background: var(--color-surface-raised);
  color: var(--color-text-strong);
}
.chip__input:focus-visible + .chip__label {
  outline: var(--focus-ring-width) solid var(--color-focus-ring);
  outline-offset: var(--focus-ring-offset);
}
.chip__count { margin-left: var(--space-2); color: var(--color-text-meta); }

.filters__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--filter-group-gap);
  padding-top: var(--space-5);
  border-top: var(--border-width-hairline) solid var(--color-border-hairline);
}
.filters__actions .btn { flex: 1 1 auto; }

/* JS hides the submit button - without JS it is the only way to apply filters */
.filters__submit[hidden] { display: none; }

/* ─── Slab grid ─── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--layout-grid-gap);
  margin-top: var(--space-6);
  list-style: none;
}

.catalog-card { position: relative; }
.catalog-card[hidden] { display: none; }
.catalog-card__link {
  display: block;
  background: var(--card-bg);
  border: var(--border-width-hairline) solid var(--card-border);
  border-radius: var(--card-radius);
  text-decoration: none;
  transition: border-color var(--duration-smooth) var(--ease-cine),
              transform var(--duration-smooth) var(--ease-cine);
}
.catalog-card__link:hover {
  border-color: var(--card-border-hover);
  transform: translateY(var(--card-lift));
}
.catalog-card__media {
  display: block;
  width: var(--layout-size-full);
  /* the <img> height attribute otherwise wins over aspect-ratio */
  height: auto;
  aspect-ratio: var(--card-media-ratio);
  object-fit: cover;
  background: var(--color-surface-sunken);
}
.catalog-card__body { padding: var(--card-pad); }
.catalog-card__name {
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-md);
  line-height: var(--leading-snug);
  color: var(--color-text-strong);
}
.catalog-card__meta {
  margin-top: var(--space-1);
  font-size: var(--font-size-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-meta);
}

.collection__empty {
  margin-top: var(--space-10);
  padding: var(--space-10) var(--space-5);
  border: var(--border-width-hairline) dashed var(--color-border-hairline);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-prose);
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-10);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-target-min);
  min-height: var(--tap-target-min);
  padding-inline: var(--space-2);
  border: var(--border-width-hairline) solid var(--color-border-hairline);
  color: var(--color-text-muted);
  font-size: var(--font-size-3xs);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--color-border-accent);
  color: var(--color-text-strong);
}

/* ═══════════════ SINGLE CATALOGUE ITEM ═══════════════ */

.catalog__layout { display: grid; gap: var(--space-8); }

.catalog__gallery { display: grid; gap: var(--layout-grid-gap); }
.catalog__figure {
  width: var(--layout-size-full);
  /* the <img> height attribute otherwise wins over aspect-ratio */
  height: auto;
  aspect-ratio: var(--card-media-ratio);
  object-fit: cover;
  background: var(--color-surface-sunken);
}

.catalog__title {
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h1);
  line-height: var(--leading-none);
  color: var(--color-text-strong);
}
.catalog__taxa {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.catalog__taxa a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  padding-inline: var(--space-4);
  border: var(--border-width-hairline) solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
}
.catalog__taxa a:hover { border-color: var(--color-border-accent); color: var(--color-text-strong); }

.spec-table {
  width: var(--layout-size-full);
  margin-top: var(--space-8);
  border-collapse: collapse;
  font-size: var(--font-size-2xs);
}
.spec-table th,
.spec-table td {
  padding: var(--spec-row-pad) var(--space-0);
  text-align: left;
  border-bottom: var(--border-width-hairline) solid var(--color-border-hairline);
  vertical-align: top;
}
.spec-table th {
  width: var(--spec-label-width);
  font-weight: var(--font-weight-light);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.spec-table td { color: var(--color-text-soft); }

/* ─── Slab detail page ───
   Clears the fixed header itself (the page has no .page-hero). Mobile: crumbs,
   slab, then the facts. From --breakpoint-md the facts sit in a sticky column
   beside the slab, so the enquiry button stays in reach while it scrolls. */
.catalog-detail { padding-top: var(--layout-hero-pad-top); }
.catalog-detail__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--catalog-detail-crumbs-gap);
  font-size: var(--font-size-xs);
  color: var(--color-text-faint);
}
.catalog-detail__crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-soft);
}
.catalog-detail__crumbs a:hover { color: var(--color-text-accent); }
.catalog-detail__crumbs [aria-current] { color: var(--color-text-soft); }

.catalog-detail__layout { display: grid; gap: var(--catalog-detail-gap); }
.catalog-detail__media { background: var(--color-surface-sunken); }
.catalog-detail__figure { display: block; }

.catalog-detail__summary {
  margin-top: var(--space-5);
  font-size: var(--font-size-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text-soft);
}
.catalog-detail__prose { margin-top: var(--space-6); }
.catalog-detail__label {
  margin-top: var(--catalog-detail-block-gap);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.catalog-detail__specs { border-top: var(--border-width-hairline) solid var(--color-border-hairline); }
.catalog-detail__spec {
  display: grid;
  grid-template-columns: var(--spec-label-width) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  min-height: var(--tap-target-min);
  padding-block: var(--spec-row-pad);
  border-bottom: var(--border-width-hairline) solid var(--color-border-hairline);
}
.catalog-detail__spec dt {
  font-size: var(--font-size-2xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.catalog-detail__spec dd {
  font-size: var(--font-size-sm);
  color: var(--color-text-strong);
}
.catalog-detail__spec a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--color-border-accent-hover);
  text-decoration-thickness: var(--border-width-hairline);
  text-underline-offset: var(--space-1);
  transition: color var(--duration-base) var(--ease-soft);
}
.catalog-detail__spec a:hover { color: var(--color-text-accent); }

.catalog-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--catalog-detail-block-gap);
}
.catalog-detail__cta {
  min-height: var(--catalog-detail-cta-height);
  padding-inline: var(--space-8);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-accent-glow);
  transition:
    box-shadow   var(--duration-smooth) var(--ease-cine),
    border-color var(--duration-smooth) var(--ease-cine),
    background   var(--duration-smooth) var(--ease-cine);
}
.catalog-detail__cta:hover,
.catalog-detail__cta:focus-visible { box-shadow: var(--shadow-accent-glow-hover); }
.catalog-detail__back {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  font-size: var(--font-size-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-soft);
}
.catalog-detail__back:hover { color: var(--color-text-strong); }

.catalog-related { border-top: var(--border-width-hairline) solid var(--color-border-hairline); }
.catalog-related__title {
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h3);
  color: var(--color-text-strong);
}

/* ─── Site footer ───
   Four labelled columns at desktop (Identity, Collection, Company, Trade),
   collapsing to two at --breakpoint-md and one on mobile. Shared by every
   page, including the film's home page. */
.site-footer {
  /* isolate + clip: the wordmark's z-index -1 stays inside the footer (above
     its ground, under its content) and its bleed past the edges is cut off
     rather than widening the page. */
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: var(--layout-section-pad);
  padding-top: var(--layout-section-pad);
  padding-bottom: calc(var(--layout-section-pad) + var(--site-footer-mark-reveal));
  border-top: var(--border-width-hairline) solid var(--color-border-hairline);
}

/* ─── Editorial head — the statement, its actions, the direct lines ─── */
.site-footer__head {
  display: grid;
  gap: var(--site-footer-head-gap);
  padding-bottom: var(--site-footer-head-pad);
  margin-bottom: var(--site-footer-head-pad);
  border-bottom: var(--border-width-hairline) solid var(--color-border-hairline);
}
.site-footer__eyebrow {
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps-lg);
  text-transform: uppercase;
  color: var(--color-text-accent);
}
.site-footer__statement {
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--site-footer-statement-size);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-strong);
}
.site-footer__statement em {
  font-style: italic;
  color: var(--color-text-accent);
}
/* The dimension is one unit: its thin spaces must not break "1200 × 3200 mm". */
.site-footer__statement em span { white-space: nowrap; }
/* The column beside the statement: direct lines at its top, the calls to
   action at its foot. Everything in it shares one left and one right edge. */
.site-footer__aside {
  display: flex;
  flex-direction: column;
  gap: var(--site-footer-aside-gap);
  min-width: var(--space-0);
}
.site-footer__actions {
  display: grid;
  gap: var(--space-3);
}
/* Label at the start, orb at the end, so both pills read as one set. */
.site-footer__actions .site-footer__cta { justify-content: space-between; }
/* Both calls to action, highlighted: taller pills with an arrow orb, in the
   home dealers CTA's language. Scoped to the footer - .btn is shared by
   every page and stays byte-identical. */
.site-footer__cta {
  position: relative;
  isolation: isolate;
  gap: var(--site-footer-cta-gap);
  min-height: var(--site-footer-cta-height);
  padding-inline: var(--site-footer-cta-pad-start) var(--site-footer-cta-pad-end);
  font-size: var(--site-footer-cta-label-size);
  font-weight: var(--font-weight-medium);
  transition:
    box-shadow   var(--duration-smooth) var(--ease-cine),
    border-color var(--duration-smooth) var(--ease-cine),
    background   var(--duration-smooth) var(--ease-cine);
}
.site-footer__cta-orb {
  display: grid;
  place-items: center;
  inline-size: var(--site-footer-cta-orb);
  block-size: var(--site-footer-cta-orb);
  border-radius: var(--radius-pill);
  background: var(--site-footer-cta2-orb-bg);
  color: var(--site-footer-cta2-orb-fg);
  transition: transform var(--duration-smooth) var(--ease-cine);
}
.site-footer__cta:hover .site-footer__cta-orb,
.site-footer__cta:focus-visible .site-footer__cta-orb {
  transform: translate(var(--translate-orb-x), var(--translate-orb-y)) scale(var(--scale-orb-hover));
}
/* Secondary: bronze outline and label, filling faintly on hover. */
.site-footer__cta:not(.site-footer__cta--primary) {
  --btn-fg:           var(--site-footer-cta2-fg);
  --btn-border:       var(--site-footer-cta2-border);
  --btn-bg-hover:     var(--site-footer-cta2-bg-hover);
  --btn-border-hover: var(--site-footer-cta2-border);
}
/* Primary: glow, an ink orb, and a halo that breathes out from the pill. */
.site-footer__cta--primary { box-shadow: var(--site-footer-cta-glow); }
.site-footer__cta--primary:hover,
.site-footer__cta--primary:focus-visible { box-shadow: var(--site-footer-cta-glow-hover); }
.site-footer__cta--primary .site-footer__cta-orb {
  background: var(--site-footer-cta-orb-bg);
  color: var(--site-footer-cta-orb-fg);
}
.site-footer__cta--primary::after {
  content: "";
  position: absolute;
  inset: var(--space-0);
  z-index: var(--z-behind);
  border-radius: inherit;
  border: var(--border-width-hairline) solid var(--site-footer-cta-halo);
  animation: footerCtaHalo var(--site-footer-cta-halo-duration) var(--ease-soft) infinite;
  pointer-events: none;
}
@keyframes footerCtaHalo {
  0%   { transform: scale(var(--scale-none));                opacity: var(--alpha-100); } /* mirrors --scale-none */
  70%  { transform: scale(var(--site-footer-cta-halo-scale)); opacity: var(--alpha-00); }
  100% { transform: scale(var(--site-footer-cta-halo-scale)); opacity: var(--alpha-00); }
}
.site-footer__direct {
  list-style: none;
  display: grid;
  gap: var(--space-6);
}
.site-footer__direct-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.site-footer__direct a {
  font-family: var(--font-family-serif);
  font-size: var(--site-footer-direct-size);
  line-height: var(--leading-snug);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--duration-smooth) var(--ease-cine);
}
/* The visible line stays tight to its label; the tap area does not. */
.site-footer__direct a::after {
  content: "";
  position: absolute;
  inset: var(--space-0);
}
.site-footer__direct li {
  position: relative;
  min-height: var(--tap-target-min);
}
.site-footer__direct a:hover,
.site-footer__direct a:focus-visible { color: var(--color-text-accent); }

/* ─── The wordmark behind everything ───
   Wider than the viewport, cropped at both edges and bleeding off the bottom.
   --footer-mark-progress is written by js/footer-mark.js: 1 as the footer
   enters, 0 when its bottom meets the viewport's - so the word rises into
   place. Unset (no JS, reduced motion) it is 0 and the word simply rests. */
.site-footer__mark {
  position: absolute;
  inset-inline: var(--space-0);
  bottom: var(--space-0);
  z-index: var(--z-behind);
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  transform: translate3d(0, calc(var(--site-footer-mark-bleed) + var(--footer-mark-progress, 0) * var(--site-footer-mark-travel)), 0);
  will-change: transform;
}
.site-footer__mark-word {
  font-family: var(--font-family-logo);
  font-weight: var(--font-weight-hairline);
  font-size: var(--site-footer-mark-size);
  line-height: var(--leading-none);
  letter-spacing: var(--site-footer-mark-tracking);
  white-space: nowrap;
  color: transparent;
  background: var(--site-footer-mark-fill);
  -webkit-background-clip: text;
  background-clip: text;
}
/* ─── Middle band ───
   Phone: identity, then the index. 1200 and up: identity on the left, the index on the right, three columns of display-serif links. */
.site-footer__inner {
  display: grid;
  gap: var(--site-footer-band-gap);
}
.site-footer__col { min-width: var(--space-0); }

.site-footer__brand {
  font-family: var(--font-family-logo);
  font-weight: var(--font-weight-hairline);
  font-size: var(--site-footer-brand-size);
  letter-spacing: var(--tracking-caps);
  color: var(--color-text-strong);
}
.site-footer__tagline {
  margin-top: var(--space-3);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--site-footer-tagline-size);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-strong);
}
.site-footer__tagline em {
  font-style: italic;
  color: var(--color-text-accent);
}
.site-footer__lede {
  max-width: var(--site-footer-lede-measure);
  margin-top: var(--space-4);
  font-size: var(--site-footer-link-size);
  line-height: var(--leading-loose);
  color: var(--color-text-muted);
}

.site-footer__locale {
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-6);
}
.site-footer__clock {
  font-variant-numeric: tabular-nums;
  color: var(--color-text-accent);
}

/* ─── The index ─── */
.site-footer__index {
  counter-reset: footer-link;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--site-footer-row-gap) var(--site-footer-col-gap-sm);
  align-content: start;
}
.site-footer__heading {
  margin-bottom: var(--site-footer-heading-gap);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-width-hairline) solid var(--color-border-hairline);
  font-size: var(--site-footer-heading-size);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.site-footer__list { list-style: none; display: grid; gap: var(--site-footer-index-gap); }
/* Plain links: an admin-assigned footer menu prints these. */
.site-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--site-footer-index-size-sm);
  line-height: var(--leading-none);
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color var(--duration-smooth) var(--ease-cine);
}
.site-footer__list a:hover,
.site-footer__list a:focus-visible { color: var(--color-text-accent); }

/* Numbered like a catalogue, 01 onward across all three columns. */
.site-footer__link { gap: var(--space-2); text-wrap: balance; }
.site-footer__link::before {
  counter-increment: footer-link;
  content: counter(footer-link, decimal-leading-zero);
  align-self: flex-start;
  margin-top: var(--space-3);
  font-family: var(--font-family-sans);
  font-size: var(--site-footer-index-num-size);
  letter-spacing: var(--tracking-wide);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-faint);
}
/* The label rolls: a second copy waits below and slides up into place. */
.site-footer__roll {
  position: relative;
  display: inline-block;
  overflow: clip;
  padding-block: var(--space-1);
}
.site-footer__roll > span {
  position: relative;
  display: inline-block;
  transition: transform var(--site-footer-roll-duration) var(--ease-cine);
}
.site-footer__roll > span::after {
  content: attr(data-label);
  position: absolute;
  left: var(--space-0);
  top: calc(var(--layout-size-full) + var(--space-2));
  font-style: italic;
  color: var(--color-text-accent);
}
.site-footer__link:hover .site-footer__roll > span,
.site-footer__link:focus-visible .site-footer__roll > span {
  transform: translate3d(0, calc(-1 * var(--layout-size-full) - var(--space-2)), 0);
}
.site-footer__arrow {
  inline-size: var(--space-3);
  block-size: var(--space-3);
  flex: none;
  color: var(--color-text-accent);
  opacity: var(--alpha-00);
  transform: translate3d(calc(-1 * var(--space-2)), var(--space-2), 0);
  transition: opacity var(--site-footer-roll-duration) var(--ease-cine),
              transform var(--site-footer-roll-duration) var(--ease-cine);
}
.site-footer__link:hover .site-footer__arrow,
.site-footer__link:focus-visible .site-footer__arrow {
  opacity: var(--alpha-100);
  transform: translate3d(0, 0, 0);
}

/* ─── Bottom bar — copyright and the genuine fine print ─── */
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--site-footer-bottom-gap);
  padding-top: var(--site-footer-bottom-pad);
  border-top: var(--border-width-hairline) solid var(--color-border-hairline);
}
.site-footer__note {
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
}
/* The studio credit link: fine print in the line, a full tap target to touch. */
.site-footer__note a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
  transition: color var(--duration-smooth) var(--ease-cine);
}
.site-footer__note a:hover { color: var(--color-text-accent); }
.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap-target-min);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-smooth) var(--ease-cine);
}
.site-footer__top svg {
  inline-size: var(--space-3);
  block-size: var(--space-3);
  transition: transform var(--duration-smooth) var(--ease-cine);
}
.site-footer__top:hover,
.site-footer__top:focus-visible { color: var(--color-text-accent); }
.site-footer__top:hover svg { transform: translate3d(0, calc(-1 * var(--translate-nudge)), 0); }

/* ─── Format atlas: every format, drawn to scale ───
   template-parts/format-atlas.php, on the home page's Formats section.
   Each slab's flex-basis is its share of --atlas-units and its height
   follows from aspect-ratio, so the drawing is exact at every width.
   Bottom-aligned on a hairline, like samples stood against a wall. */
.format-atlas {
  max-width: var(--format-atlas-measure);
  margin-inline: auto;
}
.format-atlas__list {
  --atlas-row: var(--atlas-units-sm);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-6) var(--format-atlas-gap);
}
.format-atlas__item {
  flex: var(--space-0) var(--space-0) calc(var(--layout-size-full) * var(--slab-w) / var(--atlas-row) - var(--format-atlas-gap));
  border-bottom: var(--border-width-hairline) solid var(--color-border-hairline);
}
.format-atlas__slab {
  position: relative;
  display: block;
  aspect-ratio: var(--slab-w) / var(--slab-h);
  min-inline-size: var(--tap-target-min);
  border: var(--border-width-hairline) solid var(--format-atlas-border);
  border-bottom: none;
  background: var(--format-atlas-fill);
  text-decoration: none;
  transform-origin: bottom center;
  transition: background-color var(--duration-smooth) var(--ease-cine),
              border-color var(--duration-smooth) var(--ease-cine),
              opacity var(--duration-smooth) var(--ease-cine);
}
.format-atlas__label {
  position: absolute;
  left: var(--format-atlas-label-inset);
  bottom: var(--format-atlas-label-inset);
  writing-mode: vertical-rl;
  transform: rotate(var(--rotate-half));
  font-size: var(--format-atlas-label-size);
  letter-spacing: var(--tracking-wide);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--color-text-muted);
  transition: color var(--duration-smooth) var(--ease-cine);
}
.format-atlas__slab:hover,
.format-atlas__slab:focus-visible {
  background: var(--format-atlas-fill-hover);
  border-color: var(--format-atlas-border-hover);
}
.format-atlas__slab:hover .format-atlas__label,
.format-atlas__slab:focus-visible .format-atlas__label { color: var(--color-text-accent); }
/* One slab lit, the rest stepping back. */
.format-atlas__list:has(.format-atlas__slab:hover) .format-atlas__slab:not(:hover) {
  opacity: var(--format-atlas-dim);
}
.format-atlas__unit {
  margin-top: var(--space-6);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* Drawn in: opt-in via .js-atlas (js/format-atlas.js), so a visitor without
   JavaScript sees the slabs standing. Each grows up from the baseline,
   staggered left to right, the first time the atlas comes into view. */
.js-atlas .format-atlas__slab {
  transform: scaleY(var(--scale-zero));
  transition: transform var(--format-atlas-draw) var(--ease-cine) calc(var(--i) * var(--format-atlas-stagger)),
              background-color var(--duration-smooth) var(--ease-cine),
              border-color var(--duration-smooth) var(--ease-cine),
              opacity var(--duration-smooth) var(--ease-cine);
}
.js-atlas.is-drawn .format-atlas__slab { transform: scaleY(var(--scale-none)); }

/* ═══════════════ 600px — --breakpoint-sm ═══════════════ */
@media (min-width: 600px) {
  .site-footer__statement { font-size: var(--site-footer-statement-size-lg); }
  .site-footer__index { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--site-footer-index-col-gap); }
  .site-footer__list a { font-size: var(--site-footer-index-size); }
  .format-atlas__list { --atlas-row: var(--atlas-units); column-gap: var(--format-atlas-gap-lg); }
  .format-atlas__item { flex-basis: calc(var(--layout-size-full) * var(--slab-w) / var(--atlas-row) - var(--format-atlas-gap-lg)); }
  .format-atlas__label { font-size: var(--format-atlas-label-size-lg); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onward-links { flex-direction: row; flex-wrap: wrap; }
}

/* ═══════════════ 900px — --breakpoint-md ═══════════════ */
@media (min-width: 900px) {
  /* 900px === --breakpoint-md */

  /* Hero: title left, lede in its own column beside it, both sitting on the
     same baseline band. Below this width they stack, which is the mobile
     rule the template already had. Every inner page renders through
     template-parts/page-hero.php, so this is one rule for all of them; the
     film has its own hero and never loads this one. */
  .page-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--layout-hero-lede));
    column-gap: var(--layout-split-gap);
    align-items: end;
  }
  .page-hero__eyebrow { grid-column: 1; grid-row: 1; }
  .page-hero__title   { grid-column: 1; grid-row: 2; }
  /* Row 2 as well, so it aligns to the foot of the title rather than the
     top of the block. A hero with no lede simply leaves the column empty. */
  .page-hero__lede {
    grid-column: 2;
    grid-row: 2;
    margin-top: var(--space-0);
  }

  /* :has() guards the grid: some sections keep only the <h2> inside .prose
     and put their content in a sibling (.principle-grid, .stage-list), so a
     rail there would be a cramped heading beside an empty column. Those stay
     stacked, and a future section that does the same is handled without
     anyone remembering this rule. */
  .prose--split:has(> :not(h2)) {
    display: grid;
    grid-template-columns: var(--layout-rail-width) minmax(0, var(--layout-measure-prose));
    column-gap: var(--layout-split-gap);
    max-width: var(--layout-size-none);
  }
  /* The heading holds row 1 of the rail; everything else stacks in column 2,
     so the first paragraph sits level with the title rather than below it. */
  .prose--split > h2 {
    grid-column: 1;
    grid-row: 1;
    margin-top: var(--space-0);
  }
  .prose--split > :not(h2) { grid-column: 2; }

  .container { padding-inline: var(--layout-container-pad-lg); }
  .section { padding-block: var(--layout-section-pad-lg); }
  .page-hero { padding-block: var(--layout-hero-pad-top-lg) var(--space-8); }
  .site-header {
    padding-block: var(--layout-gutter-block);
    padding-inline: var(--layout-container-pad-lg);
  }
  body.admin-bar .site-header { top: var(--admin-bar-height); }


  /* Filters leave the drawer and become a sidebar */
  .filters__bar { display: none; }
  .collection__layout {
    display: grid;
    grid-template-columns: minmax(0, var(--layout-sidebar-width)) minmax(0, 1fr);
    gap: var(--space-10);
    align-items: start;
  }
  .filters {
    position: sticky;
    top: calc(var(--site-header-height-lg) + var(--space-6));
    inset-inline: auto;
    width: auto;
    padding: var(--space-0);
    background: none;
    border: none;
    transform: none;
    visibility: visible;
    opacity: var(--alpha-100);
    overflow: visible;
  }
  .filters__close { display: none; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--layout-grid-gap-lg); margin-top: var(--space-0); }
  .catalog__layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); }
  .catalog-detail { padding-top: var(--layout-hero-pad-top-lg); }
  .catalog-detail__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: var(--catalog-detail-gap-lg);
  }
  .catalog-detail__info { position: sticky; top: var(--catalog-detail-sticky-top); }
  .catalog-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-8); }
  .site-footer__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: var(--space-16);
  }
  .site-footer__head { grid-template-columns: minmax(0, 1fr) var(--site-footer-aside-width); }
  .site-footer__eyebrow,
  .site-footer__statement { grid-column: 1; }
  /* Full height of the statement: the direct lines open level with its
     first line, the calls to action close on its last. */
  .site-footer__aside {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    justify-content: space-between;
  }
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-6); }
  .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--layout-grid-gap-lg); }
  .principle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--layout-grid-gap-lg); }
  .contact-form-layout { grid-template-columns: minmax(0, var(--layout-measure-prose)) minmax(0, 1fr); gap: var(--space-12); }
  .contact-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form__group--wide { grid-column: 1 / -1; }
  .contact-form__actions .btn { width: auto; }
}

/* ═══════════════ 1200px — --breakpoint-lg ═══════════════ */
@media (min-width: 1200px) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--site-footer-band-gap); }
  .site-footer__index { grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: space-between; }
}

/* About's facts strip sizes itself to however many facts the client has
   confirmed, so a pending number shows as a narrower row rather than an empty
   fourth cell. The base .stat-row is shared with Contact and with the film's
   landing zone and is deliberately left alone. */
.stat-row--facts {
  grid-template-columns: repeat(auto-fit, minmax(var(--stat-col-min), 1fr));
}

@media (prefers-reduced-motion: reduce) {
  .filters, .catalog-card__link, .drawer-backdrop, .site-footer__list a, .contact-detail__link { transition: none; }
  .format-atlas__slab, .js-atlas .format-atlas__slab { transition: none; transform: none; }
  .site-footer__roll > span, .site-footer__arrow, .site-footer__top, .site-footer__top svg { transition: none; }
  .site-footer__direct a { transition: none; }
  .site-footer__cta--primary::after { animation: none; opacity: var(--alpha-00); }
  .site-footer__cta, .site-footer__cta-orb { transition: none; }
  .site-footer__mark { transform: translate3d(0, var(--site-footer-mark-bleed), 0); will-change: auto; }
}

/* ═══════════════ BLOG (home.php, single.php) ═══════════════
   Own components, not .catalog-*: a slab card is a 2:3 portrait with one
   meta line, a post card is a 3:2 landscape with a date, title and dek.
   One column on mobile, two from --breakpoint-sm, three from
   --breakpoint-lg. */
.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--post-grid-gap);
  list-style: none;
}
.post-card__link {
  display: block;
  height: var(--layout-size-full);
  background: var(--card-bg);
  border: var(--border-width-hairline) solid var(--card-border);
  border-radius: var(--card-radius);
  text-decoration: none;
  transition: border-color var(--duration-smooth) var(--ease-cine),
              transform var(--duration-smooth) var(--ease-cine);
}
.post-card__link:hover {
  border-color: var(--card-border-hover);
  transform: translateY(var(--card-lift));
}
.post-card__media {
  display: block;
  width: var(--layout-size-full);
  /* the <img> height attribute otherwise wins over aspect-ratio */
  height: auto;
  aspect-ratio: var(--post-card-media-ratio);
  object-fit: cover;
  background: var(--color-surface-sunken);
}
.post-card__body { padding: var(--card-pad); }
.post-card__meta {
  font-size: var(--font-size-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-meta);
}
.post-card__title {
  margin-top: var(--space-2);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h3);
  line-height: var(--leading-snug);
  color: var(--color-text-strong);
  text-wrap: balance;
}
.post-card__excerpt {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-body);
}

/* Single post: a reading column, the image wider than the text. */
.post-detail { padding-top: var(--layout-hero-pad-top); }
.post-detail__head { max-width: var(--layout-measure-prose); margin-inline: auto; }
.post-detail__crumbs {
  margin-bottom: var(--post-crumbs-gap);
  font-size: var(--font-size-xs);
}
.post-detail__crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-soft);
}
.post-detail__crumbs a:hover { color: var(--color-text-accent); }
.post-detail__meta {
  font-size: var(--font-size-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-accent);
}
.post-detail__title {
  margin-top: var(--space-4);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h1);
  line-height: var(--leading-none);
  color: var(--color-text-strong);
  text-wrap: balance;
}
.post-detail__dek {
  margin-top: var(--space-5);
  font-size: var(--font-size-prose);
  line-height: var(--leading-loose);
  color: var(--color-text-soft);
}
.post-detail__media {
  display: block;
  width: var(--layout-size-full);
  max-width: var(--layout-size-full);
  height: auto;
  aspect-ratio: var(--post-hero-media-ratio);
  object-fit: cover;
  margin-top: var(--post-block-gap);
  background: var(--color-surface-sunken);
}
.post-detail__prose { margin-top: var(--post-block-gap); margin-inline: auto; }
.post-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  max-width: var(--layout-measure-prose);
  margin: var(--post-block-gap) auto var(--space-0);
  padding-top: var(--post-block-gap);
  border-top: var(--border-width-hairline) solid var(--color-border-hairline);
}
.post-detail__back {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  font-size: var(--font-size-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-soft);
}
.post-detail__back:hover { color: var(--color-text-strong); }

.post-related { border-top: var(--border-width-hairline) solid var(--color-border-hairline); }
.post-related__title {
  margin-bottom: var(--space-6);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h3);
  color: var(--color-text-strong);
}

@media (min-width: 600px) { /* --breakpoint-sm */
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { /* --breakpoint-lg */
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--post-grid-gap-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .post-card__link, .post-detail__crumbs a, .post-detail__back { transition: none; }
}

/* Short footer labels ("Matt", "Blog") measured 27 wide by 44 tall, under
   the tap-target minimum across. Appended rather than edited into the base
   rule above, which the film's footer shares. */
.site-footer__list a { min-inline-size: var(--tap-target-min); }

/* ═══════════════ ABOUT — founder quote, scroll-filled ═══════════════
   js/about-motion.js wraps each word in .founder__word with its index as
   --i, counts them into --quote-words, and writes --quote-progress (0..1)
   as the quote crosses the viewport. A word is at --founder-word-min until
   the progress reaches it, then fills to full ink. Without the script the
   spans never exist and the quote is ordinary text. */
.founder__quote--scrub {
  font-size: var(--founder-scrub-size);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}
.founder__word {
  opacity: clamp(var(--founder-word-min), calc(var(--quote-progress, 1) * var(--quote-words, 1) - var(--i, 0)), var(--alpha-100));
  transition: opacity var(--founder-word-fade) var(--ease-soft);
}

/* ═══════════════ ABOUT — the journey ═══════════════
   The three principles as the route a slab takes: Italy -> Morbi -> the
   world. --journey-progress (0..1) is written by js/about-motion.js; it
   draws the fill and moves the traveller, and each stop the line has
   passed gets .is-reached. Opt-in via .js-journey: without it the line is
   fully drawn and every stop stands.

   Phone: a vertical rail down the left, drawn by ordinary scrolling.
   900 and up: three columns on a horizontal rail, and the section pins
   for --journey-scroll-length while the line draws across. */
.journey { --journey-progress: 1; }
.journey__route {
  position: relative;
  margin-top: var(--space-10);
}
.journey__track {
  position: absolute;
  top: var(--space-0);
  bottom: var(--space-0);
  left: calc(var(--journey-node) / 2);
  inline-size: var(--border-width-hairline);
  background: var(--journey-track);
}
.journey__fill {
  position: absolute;
  inset: var(--space-0);
  background: var(--journey-fill-y);
  transform-origin: top center;
  transform: scaleY(var(--journey-progress));
}
.journey__traveller {
  position: absolute;
  left: var(--layout-size-full);
  top: calc(var(--journey-progress) * var(--layout-size-full));
  inline-size: var(--journey-traveller);
  block-size: var(--journey-traveller);
  border-radius: var(--radius-pill);
  background: var(--journey-node-reached);
  box-shadow: var(--journey-glow);
  transform: translate(var(--translate-center), var(--translate-center));
}
.journey__stops {
  list-style: none;
  display: grid;
  gap: var(--journey-gap);
}
.journey__stop {
  position: relative;
  padding-left: calc(var(--journey-node) + var(--journey-stop-pad));
}
.journey__node {
  position: absolute;
  left: var(--space-0);
  top: var(--journey-rail-inset);
  inline-size: var(--journey-node);
  block-size: var(--journey-node);
  border-radius: var(--radius-pill);
  border: var(--border-width-hairline) solid var(--journey-node-border);
  background: var(--color-surface-raised);
  transition: background-color var(--duration-smooth) var(--ease-cine),
              box-shadow var(--duration-smooth) var(--ease-cine);
}
.journey__place {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-accent);
}
.journey__index { color: var(--color-text-faint); }
.journey__title {
  margin-top: var(--space-3);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h3);
  color: var(--color-text-strong);
}
.journey__body {
  margin-top: var(--space-3);
  max-width: var(--layout-measure-body);
  font-size: var(--font-size-prose);
  line-height: var(--leading-loose);
  color: var(--color-text-muted);
}
/* The text steps back until the line arrives; the node stays on the rail. */
.js-journey .journey__stop > :not(.journey__node) {
  transition: opacity var(--duration-slow) var(--ease-cine),
              transform var(--duration-slow) var(--ease-cine);
}
.js-journey .journey__stop:not(.is-reached) > :not(.journey__node) {
  opacity: var(--journey-dim);
  transform: translate3d(0, var(--translate-nudge), 0);
}
.journey__stop.is-reached .journey__node,
.journey:not(.js-journey) .journey__node {
  background: var(--journey-node-reached);
  box-shadow: var(--journey-glow);
}

@media (min-width: 900px) { /* --breakpoint-md */
  /* Pinned: the section is --journey-scroll-length tall and its content
     holds the viewport while the line draws. */
  .journey.js-journey { block-size: var(--journey-scroll-length); padding-block: var(--space-0); }
  .js-journey .journey__pin {
    position: sticky;
    top: var(--space-0);
    min-block-size: var(--journey-pin-height);
    display: grid;
    align-content: center;
  }
  /* Three columns; the rail runs node to node across the top. Columns have
     no gap (padding instead) so the nodes sit at exact sixths. */
  .journey__route { margin-top: var(--space-16); }
  .journey__stops { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-0); }
  .journey__stop {
    padding-left: var(--space-0);
    padding-inline: var(--journey-stop-pad);
    padding-top: calc(var(--journey-node) + var(--space-8));
    text-align: center;
  }
  .journey__place { justify-content: center; }
  .journey__body { margin-inline: auto; }
  .journey__node {
    left: calc(var(--layout-size-full) / 2);
    top: var(--space-0);
    transform: translateX(var(--translate-center));
  }
  .journey__track {
    top: calc(var(--journey-node) / 2);
    bottom: auto;
    left: calc(var(--layout-size-full) / 6);
    right: calc(var(--layout-size-full) / 6);
    inline-size: auto;
    block-size: var(--border-width-hairline);
  }
  .journey__fill {
    background: var(--journey-fill);
    transform-origin: left center;
    transform: scaleX(var(--journey-progress));
  }
  .journey__traveller {
    left: calc(var(--journey-progress) * var(--layout-size-full));
    top: var(--layout-size-full);
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder__word, .journey__node, .js-journey .journey__stop > :not(.journey__node) { transition: none; }
}

/* ═══════════════ ABOUT — image sections ═══════════════
   Breathing room between the text sections: a full-bleed band under the
   hero, the story and the profile set beside a tall image, and a strip of
   the range. Images arrive from inc/about-media.php.

   .about-reveal wipes an image up into view the first time it arrives
   (js/about-motion.js adds .is-in); opt-in via .js-about, so without the
   script every image simply shows. */

/* ─── Full-bleed band ─── */
.about-band { padding: var(--space-0); }
.about-band__figure {
  position: relative;
  block-size: var(--about-band-height-sm);
  overflow: clip;
}
.about-band__image {
  position: absolute;
  inset-inline: var(--space-0);
  top: calc(-1 * var(--about-band-drift));
  inline-size: var(--layout-size-full);
  max-width: var(--layout-size-full);
  block-size: var(--about-band-overscan);
  object-fit: cover;
  /* --band-shift runs -1..1 as the band crosses the viewport; the image
     moves slower than the page by up to --about-band-drift either way. */
  transform: translate3d(0, calc(var(--band-shift, 0) * var(--about-band-drift)), 0);
  will-change: transform;
}
.about-band__figure::after {
  content: "";
  position: absolute;
  inset: var(--space-0);
  background: var(--about-band-scrim);
  pointer-events: none;
}
.about-band__caption {
  position: absolute;
  z-index: var(--z-stage);
  inset-inline: var(--space-0);
  bottom: var(--space-10);
}
/* On the page's own container edge, so the caption lines up with the text
   above and below the band. */
.about-band__inner {
  display: grid;
  gap: var(--space-3);
}
.about-band__line { max-inline-size: var(--layout-measure-prose); }
.about-band__eyebrow {
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--about-band-fg-muted);
}
.about-band__line {
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--about-band-caption-size);
  line-height: var(--leading-none);
  color: var(--about-band-fg);
}

/* ─── Splits: text beside a tall image ─── */
.about-split {
  display: grid;
  gap: var(--about-split-gap);
  align-items: center;
}
.about-figure { margin: var(--space-0); }
.about-figure__link,
.about-figure > .about-figure__image { display: block; overflow: clip; }
.about-figure__image {
  display: block;
  inline-size: var(--layout-size-full);
  max-width: var(--layout-size-full);
  block-size: auto;
  object-fit: cover;
  transition: transform var(--about-reveal-duration) var(--ease-cine);
}
.about-figure--slab .about-figure__image { aspect-ratio: var(--about-slab-ratio); }
.about-figure--room .about-figure__image { aspect-ratio: var(--about-room-ratio); }
.about-figure__link:hover .about-figure__image,
.about-figure__link:focus-visible .about-figure__image { transform: scale(var(--about-swatch-zoom)); }
.about-figure__caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-4);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.about-figure__caption span { color: var(--color-text-faint); }

/* ─── Strip of the range ─── */
.about-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  margin-bottom: var(--space-10);
}
.about-strip__eyebrow {
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps-lg);
  text-transform: uppercase;
  color: var(--color-text-accent);
}
.about-strip__title {
  margin-top: var(--space-4);
  max-inline-size: var(--layout-measure-body);
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h2);
  line-height: var(--section-title-leading);
  color: var(--color-text-strong);
}
.about-strip__more {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target-min);
  font-size: var(--font-size-3xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-accent);
  text-decoration: underline;
  text-underline-offset: var(--space-2);
}
.about-strip__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-4);
}
.about-swatch__link { display: block; text-decoration: none; }
.about-swatch__media {
  display: block;
  overflow: clip;
  aspect-ratio: var(--about-swatch-ratio);
  background: var(--color-surface-raised);
}
.about-swatch__image {
  display: block;
  inline-size: var(--layout-size-full);
  max-width: var(--layout-size-full);
  block-size: var(--layout-size-full);
  object-fit: cover;
  transition: transform var(--about-reveal-duration) var(--ease-cine);
}
.about-swatch__link:hover .about-swatch__image,
.about-swatch__link:focus-visible .about-swatch__image { transform: scale(var(--about-swatch-zoom)); }
.about-swatch__name {
  display: flex;
  align-items: center;
  min-height: var(--tap-target-min);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lede);
  color: var(--color-text-soft);
  transition: color var(--duration-smooth) var(--ease-cine);
}
.about-swatch__link:hover .about-swatch__name,
.about-swatch__link:focus-visible .about-swatch__name { color: var(--color-text-accent); }

/* ─── Reveal: a wipe up from the bottom edge, staggered along a strip ─── */
.js-about .about-reveal {
  clip-path: var(--menu-clip-below);
  transition: clip-path var(--about-reveal-duration) var(--ease-cine) calc(var(--i, 0) * var(--about-reveal-stagger));
}
.js-about .about-reveal.is-in { clip-path: var(--menu-clip-full); }

@media (min-width: 600px) { /* --breakpoint-sm */
  .about-strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) { /* --breakpoint-md */
  .about-band__figure { block-size: var(--about-band-height); }
  .about-band__caption { bottom: var(--space-16); }
  .about-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--about-split-gap-lg);
  }
  .about-split--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (min-width: 1200px) { /* --breakpoint-lg */
  /* One column per slab, however many the range holds. */
  .about-strip__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .about-band__image { transform: none; will-change: auto; }
  .js-about .about-reveal { clip-path: none; transition: none; }
  .about-figure__image, .about-swatch__image, .about-swatch__name { transition: none; }
}
