/* ==========================================================================
   Arqovia Atelier — public site
   Brand colours and fonts arrive as CSS variables from Admin → Settings (see lib/document.js).
   Tokens, then base, buttons, chrome, homepage sections, projects, project page, services, studio, approach,
   contact, forms, states, lightbox, motion. Class names are a contract with the templates (docs/SPEC.md §6).
   ========================================================================== */

:root {
  /* Palette tokens — theme.js overrides these from Admin → Settings → Brand → Palette (fallbacks: Ivory & Gold). */
  --paper: #F5F0E8;
  --paper-2: #ECE4D8;
  --paper-3: #DCD1C1;
  --line-control: #7D7264;
  --ink: #1F1B17;
  --ink-2: #4A433B;
  --accent: #735E2B;
  --dark: #1E1A16;
  --on-dark: #F3EDE4;
  --on-dark-2: #BEB5A8;
  --accent-on-dark: #D3B472;

  /* Derived — never set by the theme. */
  --surface: color-mix(in srgb, var(--paper) 45%, #ffffff);   /* lifted panels, light buttons */
  --ink-3: var(--ink-2);                                        /* muted text keeps 4.5:1 on every surface */
  --ink-4: var(--ink-2);
  --ink-decor: var(--line-control);                             /* numerals in empty frames; never text */
  --line: var(--paper-3);                                       /* hairlines; controls use --line-control (3:1, WCAG 1.4.11) */
  --line-strong: color-mix(in srgb, var(--line-control) 55%, var(--paper));
  --dark-2: color-mix(in srgb, var(--dark) 95%, #ffffff);       /* the second charcoal, for alternating dark bands */
  --line-on-dark: color-mix(in srgb, var(--on-dark) 14%, transparent);

  --positive: #2F6B47;
  --warning: #7F5409;
  --negative: #9B3328;
  --whatsapp: #15804A;

  /* Brand colours and fonts (theme.js emits them; at the column defaults they follow the palette). */
  --brand-primary: #1F1B17;
  --brand-primary-ink: #ffffff;
  --brand-secondary: #735E2B;
  --brand-secondary-ink: #ffffff;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --display-weight: 500;
  --display-scale: 1.1;
  --focus-ring: #735E2B;

  --container: 1400px;
  --gutter: clamp(1rem, 5vw, 4rem);
  --section: clamp(4rem, 10vw, 9rem);
  --header-h: 72px;   /* the sticky header row (the announcement above it scrolls away); 64px below 1024px */
  --radius: 0;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lg: 0 30px 70px -30px rgba(20, 20, 20, 0.45);

  /* One type scale for the whole site. Display steps (serif) scale with the font pairing; text steps never
     go below 14px for reading text (--fs-xs and --fs-label are for meta lines and tracked capitals only). */
  --fs-hero: calc(clamp(2.9rem, 1.5rem + 5.8vw, 6.5rem) * var(--display-scale));
  --fs-1: calc(clamp(2.25rem, 1.4rem + 3.2vw, 4.4rem) * var(--display-scale));
  --fs-2: calc(clamp(1.85rem, 1.3rem + 2.2vw, 3.25rem) * var(--display-scale));
  --fs-numeral: calc(clamp(2.75rem, 2rem + 2.6vw, 4.5rem) * var(--display-scale));   /* the large gold numerals */
  --fs-3: calc(clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem) * var(--display-scale));
  --fs-4: calc(clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem) * var(--display-scale));
  --fs-body: 1.0625rem;   /* 17px: running text */
  --fs-md: 0.9375rem;     /* 15px: interface text — card names, facts, options */
  --fs-sm: 0.875rem;      /* 14px: secondary text, buttons */
  --fs-xs: 0.8125rem;     /* 13px: meta lines — counts, captions, legal */
  --fs-label: 0.6875rem;  /* 11px: tracked capitals — eyebrows, tags, fact labels */

  /* One spacing scale: every gap, margin and padding is one of these steps. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --head-gap: clamp(1.75rem, 3.5vw, 3rem);              /* section head → its content */
  --grid-gap-x: clamp(0.75rem, 1.8vw, 1.75rem);          /* project grids: between columns */
  --grid-gap-y: clamp(2rem, 3.5vw, 3.5rem);              /* …and between rows */
  --container-text: 44rem;                               /* reading width for prose pages */

  /* The architectural grid texture (two repeating gradients, zero bytes), used on empty frames and plates. */
  --grid-line: color-mix(in srgb, var(--accent) 8%, transparent);
  --grid-texture: repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 48px);

  /* A fine grain over the charcoal bands (an inline SVG noise, no request; img-src allows data:). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

/* An italic word inside a display heading is the editorial accent, in the accent colour. */
h1 em,
h2 em {
  color: var(--accent);
  font-style: italic;
}

.section--dark h2 em,
.section--dark-2 h2 em,
.cta-band--dark h2 em,
.page-hero--dark h1 em {
  color: var(--accent-on-dark);
}

p {
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* --focus-ring comes from the theme (the accent colour when it is visible on paper, else ink);
   dark surfaces set it to white below. */
:focus-visible {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 3px;
}

.site-footer,
.contact-band--dark,
.hero--image,
.page-hero--image,
.lightbox,
.site-header--overlay:not(.is-scrolled),
.staff-bar {
  --focus-ring: #ffffff;
}

/* The utility bar's colours are the owner's announcement colours; its text colour always contrasts with its background. */
.topbar {
  --focus-ring: var(--announce-ink, var(--on-dark));
}

::selection {
  background: color-mix(in srgb, var(--brand-secondary) 30%, transparent);
  color: var(--ink);
}

/* The gutter, or the notch/rounded-corner inset when that is wider (landscape phones, viewport-fit=cover). */
.container {
  width: min(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right)), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-main:focus {
  outline: none;
}

/* One motif, one colour, every page: a short thread rule before a small tracked label.
   It is the only decorative use of --accent. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

.hero__eyebrow,
.contact-band--dark .eyebrow,
.page-hero--image .eyebrow {
  color: var(--accent-on-dark);
}

.section-head--center .eyebrow::before {
  display: none;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.eyebrow a {
  text-decoration: none;
}

.muted {
  color: var(--ink-3);
}

.spinner {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn svg {
  flex: none;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-primary-ink);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--brand-primary) 84%, #ffffff);
  border-color: color-mix(in srgb, var(--brand-primary) 84%, #ffffff);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:focus-visible {
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--light {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--on-dark);
  border-color: var(--on-dark);
}

/* One press language for every button: a small settle under the finger or the click (no lift on hover). */
.btn:active:not(:disabled):not([aria-disabled='true']) {
  transform: scale(0.985);
  transition-duration: 0.1s;
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.btn--outline-light:hover {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--ink);
}

.btn--ghost {
  color: var(--ink);
  padding-inline: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.82rem;
}

.btn--lg {
  min-height: 3.5rem;
}

.btn--block {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition: background-color 0.25s var(--ease);
}

.icon-button:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.85rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.text-button:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* display:inline-flex would otherwise override the hidden attribute (e.g. Share without navigator.share). */
.text-button[hidden] {
  display: none;
}

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease);
}

.link-arrow:hover {
  border-bottom-color: currentColor;
}

.link-arrow svg {
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.link-arrow--light {
  color: var(--on-dark);
}

/* --------------------------------------------------------------------------
   Utility bar (layout.js utilityBar): the announcement and, from 1024px, the Retail / Wholesale switch.
   Colours: the owner's announcement colours (layout.js keeps them at 4.5:1, else the palette's dark set).
   -------------------------------------------------------------------------- */

/* Black and gold: the bar's colour with a faint gold sheen in the middle, a gold hairline underneath (no grey
   border), tracked capitals at 88% of the text colour (layout.js sets --announce-soft: 100% when 88% would not
   reach 4.5:1) and the link in the dark set's gold (--announce-accent: the text colour when gold would not read). */
.topbar {
  --topbar-bg: var(--announce-bg, var(--dark));
  --topbar-ink: var(--announce-ink, var(--on-dark));
  background-color: var(--topbar-bg);
  background-image: radial-gradient(60% 160% at 50% 50%, color-mix(in srgb, var(--accent-on-dark) 6%, transparent), transparent 72%);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--accent-on-dark) 25%, transparent);
  color: color-mix(in srgb, var(--topbar-ink) var(--announce-soft, 88%), var(--topbar-bg));
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: min(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right)), var(--container));
  min-height: 2.25rem;
  margin-inline: auto;
}

/* One line: the text ellipsises (the full text stays in the title and the accessible name); the link label never does. */
.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  min-width: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.announcement__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The phone wording (mobile_text) replaces the text below 1024px. */
.announcement__text--short {
  display: none;
}

/* The link: gold, with a thin dot before it and an arrow after; underlined only on hover and focus. */
.announcement__link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.45em;
  color: var(--announce-accent, var(--accent-on-dark));
  white-space: nowrap;
}

.announcement__link::before {
  content: '';
  flex: none;
  width: 3px;
  height: 3px;
  margin-right: 0.45em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--topbar-ink) 55%, transparent);
}

.announcement__label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.25s var(--ease);
}

.announcement__arrow {
  flex: none;
  transition: transform 0.25s var(--ease);
}

/* A link fills the bar's height, so the whole announcement is the target. */
a.announcement {
  align-self: stretch;
}

a.announcement:hover .announcement__label,
a.announcement:focus-visible .announcement__label {
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  a.announcement:hover .announcement__arrow {
    transform: translateX(2px);
  }
}

/* Touch screens (and every screen narrower than a laptop, whatever the pointer): thumb-sized targets (44px)
   for the small text links without changing how they look. */
@media (pointer: coarse), (max-width: 1023px) {
  .breadcrumbs a,
.spec-list dd a {
    display: inline-block;
    padding-block: 0.95rem;
    margin-block: -0.95rem;
  }

  .text-button {
    min-height: 2.75rem;
  }

  .spec-list dd .text-button {
    margin-block: -0.75rem;
  }

  .site-logo,
.site-footer__logo {
    min-height: 2.75rem;
    align-items: center;
  }

  .link-arrow {
    position: relative;
  }

  .link-arrow::after {
    content: '';
    position: absolute;
    inset: -0.6rem 0;
  }

  .site-footer__columns a {
    display: inline-block;
    padding-block: 0.65rem;
    margin-block: -0.65rem;
  }

  .site-footer__policies a {
    display: inline-block;
    padding-block: 0.75rem;
    margin-block: -0.75rem;
  }

  .btn--sm {
    min-height: 2.75rem;
  }
}

/* Phones and tablets: the announcement alone, centred, on one line (36px). A link fills the bar edge to edge,
   so the bar is the tap target. */
@media (max-width: 1023px) {
  .topbar:not(.topbar) {
    display: none;
  }

  .topbar {
    font-size: 0.71875rem;
  }

  .topbar__inner {
    width: 100%;
  }

  .announcement {
    flex: 1 1 auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  }

  a.announcement {
    min-height: 2.25rem;
  }

  .announcement--short .announcement__text--full {
    display: none;
  }

  .announcement--short .announcement__text--short {
    display: block;
  }
}

/* Phones with the short wording: the link is the arrow alone (its label stays in the link's accessible name),
   so the message is never cut. */
@media (max-width: 599px) {
  .announcement--short .announcement__link::before {
    display: none;
  }

  .announcement--short .announcement__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  /* Phones: menu | lockup | actions. Both sides are as wide as the actions (search; plus the WhatsApp icon
     when the floating button is off: .site-header--cta), so the lockup sits in the middle of the bar. */
  --header-side: 2.75rem;
  display: grid;
  grid-template-columns: var(--header-side) minmax(0, 1fr) var(--header-side);
  align-items: center;
  gap: 0.25rem;
  width: min(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right)), var(--container));
  height: var(--header-h);
  margin-inline: auto;
}

.site-header__menu {
  justify-self: start;
  margin-left: -0.6rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

/* Hover: a quiet fade, no movement (and no transition at all for reduced motion). */
.site-logo,
.site-footer__logo {
  transition: opacity 0.3s var(--ease);
}

.site-logo:hover,
.site-footer__logo:hover {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .site-logo,
.site-footer__logo {
    transition: none;
  }
}

.site-logo__dark,
.site-logo__light {
  min-width: 0;
  max-width: 100%;
}

/* The lockup (layout.js brandMark): the mark (the uploaded logo, or the monogram tile when there is none) and
   the brand name beside it (logo_show_name). --mark-h is the logo's height: 36px on phones, 44px from 1024px
   and in the footer. The logo is the original upload, so it stays sharp on high-density screens. */
.brand-lockup {
  --mark-h: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  max-width: 100%;
}

.brand-lockup__img {
  display: block;
  flex: none;
  width: auto;
  height: var(--mark-h);
  max-width: 100%;
  object-fit: contain;
}

/* The logo on its own (the name turned off): a wide logo keeps within the header's middle. */
.brand-lockup--mark-only .brand-lockup__img {
  flex: 0 1 auto;
  min-width: 0;
}

.brand-lockup__img.is-inverted {
  filter: brightness(0) invert(1);
}

/* The monogram (aria-hidden): the initials on the palette's dark tile, with a hairline frame in the accent. */
.brand-lockup__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding-left: 0.08em;
  background: var(--dark);
  box-shadow: inset 0 0 0 2px var(--dark), inset 0 0 0 3px color-mix(in srgb, var(--accent-on-dark) 55%, transparent);
  color: var(--accent-on-dark);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: var(--display-weight);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: none;
}

/* Over a photo (overlay header, not scrolled) and on the dark footer: the same mark as a 1px outline. */
.site-header--overlay:not(.is-scrolled) .brand-lockup__mark,
.site-footer .brand-lockup__mark {
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
  color: inherit;
}

.site-footer .brand-lockup__mark {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-on-dark) 70%, transparent);
  color: var(--accent-on-dark);
}

/* Phones and tablets: sized to the screen only (no font-pairing scale). */
.site-logo__text {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.3rem);
  font-weight: var(--display-weight);
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Engraved capitals (wordmark_style 'stacked_caps', Cinzel): line 1 the first word; line 2 the rest between
   two hairlines ("— APPARELS —"), exactly as wide as line 1 (one max-content grid column, both lines stretched
   to it). Letter-spacing trails the last letter, so each line is padded by the same amount on the left to
   stay centred. Both lines are trimmed to the capitals (text-box), so the pair centres optically on the mark
   and on the nav text. Light backgrounds: ink and the palette accent; dark ones (.brand-lockup--on-dark): the
   dark set's text and gold. Sizes: 16.5 / 7.5px on phones, 22 / 9.5px from 1024px and in the footer. */
.brand-lockup {
  --caps-1: 16.5px;
  --caps-2: 7.5px;
  --caps-gap: 4px;
}

.brand-lockup__name--caps {
  display: inline-grid;
  flex: none;
  grid-template-columns: max-content;
  justify-items: stretch;
  row-gap: var(--caps-gap);
  font-family: var(--font-wordmark);
  font-style: normal;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-lockup__line1 {
  padding-left: 0.08em;
  color: var(--ink);
  font-size: var(--caps-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-box: trim-both cap alphabetic;
}

.brand-lockup__line2 {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--accent);
  font-size: var(--caps-2);
  font-weight: 500;
  letter-spacing: 0.42em;
}

.brand-lockup__line2::before,
.brand-lockup__line2::after {
  content: '';
  flex: 1 1 0;
  min-width: 1.25em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.brand-lockup__rest {
  padding-left: 0.42em;
  text-box: trim-both cap alphabetic;
}

.brand-lockup--caps .brand-lockup__mark {
  width: var(--mark-h);
  height: var(--mark-h);
  font-size: calc(var(--mark-h) * 0.4);
}

.brand-lockup--on-dark .brand-lockup__line1 {
  color: var(--on-dark);
}

.brand-lockup--on-dark .brand-lockup__line2 {
  color: var(--accent-on-dark);
}

/* The logo tagline (logo_subtitle) under the lockup: footer and phone menu only. */
.brand-tagline {
  display: block;
  color: var(--ink-2);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-logo__light {
  display: none;
}

.site-nav {
  display: none;
}

/* Spacing and size scale with the window (20px apart at 1024, 28px at 1280, 40px from about 1640). */
.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3.4vw - 0.95rem, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A 44px row with the text in the middle; the indicator hangs a fixed distance under the text baseline
   (half the line box + 0.12em), whatever the row height. */
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: clamp(0.875rem, 0.62rem + 0.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 0.72em);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

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

/* The underline is the accent: 1px gold on hover, 2px for the current page; on the overlay header the
   dark set's gold. */
.site-nav__link::after {
  background: var(--accent);
}

.site-nav__link[aria-current='page']::after {
  height: 2px;
}

.site-header--overlay:not(.is-scrolled) .site-nav__link::after {
  background: var(--accent-on-dark);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 0;
  min-width: 2.75rem;
  margin-right: -0.4rem;
}

/* Desktop: logo | nav | actions on a 1fr auto 1fr grid, so the nav sits in the middle of the row. The side
   columns never shrink below their content (min-width: max-content) and the 24px column gap is the least
   clearance between the three groups. */
@media (min-width: 1024px) {
  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
    column-gap: 1.5rem;
  }

  .site-header__actions {
    gap: 0.25rem;
    min-width: max-content;
  }

  .site-header__menu {
    display: none;
  }

  .site-logo {
    justify-self: start;
    min-width: max-content;
  }

  .brand-lockup {
    --mark-h: 44px;
    --caps-1: 22px;
    --caps-2: 9.5px;
    --caps-gap: 5.5px;
    gap: 0.75rem;
  }

  .brand-lockup--mark-only .brand-lockup__img {
    max-width: 220px;
  }

  .brand-lockup__mark {
    width: 2.375rem;
    height: 2.375rem;
    font-size: 0.95rem;
  }

  /* 24px from 1280 (23px at 1200), times the pairing's display scale. */
  .site-logo__text {
    font-size: calc(clamp(1.375rem, 0.5rem + 1.25vw, 1.5rem) * var(--display-scale));
    letter-spacing: 0.01em;
  }

  .site-nav {
    display: block;
  }

  

  

  
}

/* 1024–1279px: the engraved lockup grows with the window (logo 40 → 44px, name 19.5 → 22px), so the menu keeps
   the middle of the row and at least 24px from the lockup. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header .brand-lockup {
    --mark-h: clamp(40px, calc(40px + (100vw - 1024px) * 4 / 256), 44px);
    --caps-1: clamp(19.5px, calc(19.5px + (100vw - 1024px) * 2.5 / 256), 22px);
    --caps-2: clamp(8.5px, calc(8.5px + (100vw - 1024px) / 256), 9.5px);
    --caps-gap: clamp(5px, calc(5px + (100vw - 1024px) * 0.5 / 256), 5.5px);
  }
}

/* Small laptops: a smaller lockup, and the WhatsApp link as an icon (its name stays in aria-label). */
@media (min-width: 1024px) and (max-width: 1199px) {
  .brand-lockup {
    gap: 0.6rem;
  }

  .brand-lockup__mark {
    width: 2.125rem;
    height: 2.125rem;
    font-size: 0.85rem;
  }

  .site-logo__text {
    font-size: calc(clamp(1.1875rem, 0.25rem + 1.5vw, 1.25rem) * var(--display-scale));
  }

  .brand-lockup--mark-only .brand-lockup__img {
    max-width: 170px;
  }

  

  
}

/* Transparent header over a full-bleed hero (home page) */
.site-header--overlay {
  margin-bottom: calc(-1 * var(--header-h));
  background: transparent;
  color: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header--overlay::before {
  content: '';
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.35), transparent);
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.site-header--overlay .site-logo__dark {
  display: none;
}

.site-header--overlay .site-logo__light {
  display: inline-flex;
}

.site-header--overlay.is-scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}

.site-header--overlay.is-scrolled::before {
  opacity: 0;
}

.site-header--overlay.is-scrolled .site-logo__dark {
  display: inline-flex;
}

.site-header--overlay.is-scrolled .site-logo__light {
  display: none;
}

/* Phones: a shorter header and no backdrop blur (expensive to repaint while scrolling on mid-range
   Android); a nearly opaque background reads the same. From 1024px up the 72px blurred header stays. */
@media (max-width: 1023px) {
  :root {
    --header-h: 64px;
  }

  .site-header,
.site-header--overlay.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Opaque: without blur a translucent bar only lets things show through (the listing's chips slide under it). */
  .site-header:not(.site-header--overlay),
.site-header--overlay.is-scrolled {
    background: var(--paper);
  }
}

/* --------------------------------------------------------------------------
   Dialogs: drawers, search, modal
   -------------------------------------------------------------------------- */

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
}

body.has-open-dialog {
  overflow: hidden;
}

.drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.drawer::backdrop,
.modal::backdrop {
  background: rgba(23, 21, 18, 0.45);
}

.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

/* Phones: the menu fills the screen, with the grid texture behind the large serif links. */
@media (max-width: 767px) {
  .site-menu .drawer__panel {
    width: 100%;
    background-color: var(--paper);
    background-image: var(--grid-texture);
    box-shadow: none;
  }
}

.drawer--left .drawer__panel {
  left: 0;
  padding-left: env(safe-area-inset-left);
}

.drawer--right .drawer__panel {
  padding-right: env(safe-area-inset-right);
}

/* Landscape phones: the menu panel scrolls as one, so its background always covers its links. */
.site-menu .drawer__panel {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* The panel scrolls as a whole, so its head keeps its full height (lockup and tagline) instead of shrinking. */
.site-menu .drawer__head {
  flex: none;
}

.drawer--right .drawer__panel {
  right: 0;
}

dialog[open].drawer--left .drawer__panel {
  animation: slide-in-left 0.5s var(--ease-out);
}

dialog[open].drawer--right .drawer__panel {
  animation: slide-in-right 0.5s var(--ease-out);
}

dialog.is-closing.drawer--left .drawer__panel {
  animation: slide-out-left 0.28s var(--ease) forwards;
}

dialog.is-closing.drawer--right .drawer__panel {
  animation: slide-out-right 0.28s var(--ease) forwards;
}

@keyframes slide-in-left {
  from { transform: translateX(-100%); }
}

@keyframes slide-in-right {
  from { transform: translateX(100%); }
}

@keyframes slide-out-left {
  to { transform: translateX(-100%); }
}

@keyframes slide-out-right {
  to { transform: translateX(100%); }
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0 1rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.drawer__title {
  margin: 0;
  font-size: calc(1.6rem * var(--display-scale));
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem;
  overscroll-behavior: contain;
}

.drawer__foot {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.75rem;
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* The menu's header: the lockup (phone size) with the logo tagline under it. */
.site-menu__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  padding-block: 0.75rem;
  color: var(--ink);
}

.site-menu__brand .brand-lockup {
  --mark-h: 36px;
}

.site-menu__nav ul {
  margin: 0;
  padding: 1.75rem 1.5rem 0;
  list-style: none;
  counter-reset: menu;
}

/* Large serif links, each numbered in small gold capitals, a hairline between them. */
.site-menu__nav li {
  counter-increment: menu;
  border-bottom: 1px solid var(--line);
}

.site-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: calc(clamp(1.75rem, 1.2rem + 3.2vh, 2.5rem) * var(--display-scale));
  font-weight: var(--display-weight);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}

.site-menu__nav a::before {
  content: counter(menu, decimal-leading-zero);
  flex: none;
  min-width: 1.5rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.site-menu__nav a[aria-current='page'] {
  font-style: italic;
  color: var(--accent);
}

.site-menu__contact {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.site-menu__line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
}

/* "Admin login": a button at the end of the phone menu. */
.site-menu__staff {
  justify-self: start;
  margin-top: 0.5rem;
}

.site-menu__staff-in,
html[data-staff='1'] .site-menu__staff-out {
  display: none;
}

html[data-staff='1'] .site-menu__staff-in {
  display: inline;
}

@keyframes drop-in {
  from { transform: translateY(-24px); opacity: 0; }
}

.modal {
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

dialog[open].modal {
  animation: modal-in 0.4s var(--ease-out);
}

@keyframes modal-in {
  from { transform: translateY(16px); opacity: 0; }
}

.modal__panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.modal__title {
  margin: 0;
  font-size: calc(1.6rem * var(--display-scale));
}

.modal__body {
  padding: 1.5rem;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .modal {
    width: 100%;
    max-height: 92svh;
    /* dvh follows the on-screen keyboard (interactive-widget=resizes-content), so the field being typed in stays visible. */
    max-height: 92dvh;
    margin: auto 0 0;
  }

  dialog[open].modal {
    animation: sheet-in 0.45s var(--ease-out);
  }

  .modal__body {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    scroll-padding-bottom: 6rem;
  }
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

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

.section--tinted {
  background: var(--paper-2);
}

/* One spacing step between sections on the same background (not two stacked paddings). */
.section:not(.section--tinted):not(.contact-band) + .section:not(.section--tinted):not(.contact-band),
.section--tinted + .section--tinted {
  padding-top: 0;
}

.section--flush-top {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

/* The link on the right ("All categories →") sits on the heading's last baseline, not on its box. */
.section-head {
  display: flex;
  align-items: flex-end;
  align-items: last baseline;
  justify-content: space-between;
  gap: var(--space-5) var(--space-7);
  margin-bottom: var(--head-gap);
}

.section-head > .link-arrow {
  flex: none;
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head__title {
  max-width: 18ch;
  margin: 0;
  font-size: var(--fs-2);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.section-head__sub {
  max-width: 36rem;
  margin: 1.1rem 0 0;
  color: var(--ink-3);
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* Phones: the link stays on the heading's row (on its last baseline) instead of dropping under it; a long
   label wraps onto a second line at the right rather than squeezing the heading. */
@media (max-width: 640px) {
  .section-head--split {
    gap: var(--space-4);
  }

  .section-head--split > .link-arrow {
    flex: 0 1 auto;
    max-width: 44%;
    font-size: var(--fs-sm);
    text-align: right;
    white-space: normal;
  }
}

/* Scroll reveals sit on content containers only, so section backgrounds and photographs never fade.
   Content on screen when the page loads is marked revealed straight away (core.js). */
[data-reveal] {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(16px);
}

/* Category cards */

/* Straight after the hero or the proof strip, the tiles start a little sooner: the strip already separates
   them from the hero, so a full section step reads as a gap. */
.hero + .section--categories {
  padding-top: clamp(3rem, 7vw, 6.5rem);
}

.category-grid {
  display: grid;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

/* Phones: a snap row of tiles, the next one peeking in from the right edge, instead of a long stack. */
.category-grid--grid,
.category-grid--mosaic {
  grid-auto-flow: column;
  grid-auto-columns: min(70%, 300px);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}

.category-grid--grid::-webkit-scrollbar,
.category-grid--mosaic::-webkit-scrollbar {
  display: none;
}

.category-grid--grid > *,
.category-grid--mosaic > * {
  scroll-snap-align: start;
}

/* The /categories index: one tall tile per row on phones (the name and description need the width), two
   from 560px, three from 1000px, four from 1280px. */
.category-grid--index {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

@media (min-width: 560px) {
  .category-grid--index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .category-grid--grid,
.category-grid--mosaic {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1.25rem);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  /* Seven or eleven tiles: a lead tile two columns wide keeps every row full at 2, 3 and 4 columns. */
  .category-grid--lead {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid--lead .category-card--large {
    grid-column: span 2;
    aspect-ratio: auto;
    height: 100%;
    min-height: 240px;
  }

  /* The mosaic (3–5 tiles) on tablets: three in a row, two by two, or (five) the lead over two rows beside
     a two-by-two block — every tile portrait, so faces stay above the text. */
  .category-grid--mosaic.category-grid--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid--mosaic.category-grid--count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid--mosaic.category-grid--count-5 {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-auto-rows: clamp(260px, 26vw, 400px);
  }

  .category-grid--mosaic.category-grid--count-5 .category-card {
    aspect-ratio: auto;
    height: 100%;
  }

  .category-grid--mosaic.category-grid--count-5 .category-card--large {
    grid-row: span 2;
  }
}

@media (min-width: 900px) {
  .category-grid--lead {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Desktop mosaic. Three or four tiles: one row of tall tiles with a wider lead (five keep the tablet
   layout). Every tile stays portrait or close to square, so faces stay above the text. */
@media (min-width: 1000px) {
  .category-grid--mosaic.category-grid--count-3 {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .category-grid--mosaic.category-grid--count-4 {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .category-grid--mosaic .category-card--large {
    aspect-ratio: auto;
    height: 100%;
  }

  .category-grid--grid.category-grid--count-6,
.category-grid--grid.category-grid--count-9,
.category-grid--index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid--grid.category-grid--count-8,
.category-grid--grid.category-grid--count-10,
.category-grid--grid.category-grid--count-12,
.category-grid--lead {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .category-grid--index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* An editorial tile: a tall photograph anchored to its top (faces stay clear of the text), the text at the
   foot on its own eased scrim, a hairline frame in the palette's accent on hover and keyboard focus.
   4:5 on phones, 3:4 from 768px; the tile is a size container so the text adapts to the tile's width. */
.category-card {
  --tile-scrim: 11, 10, 9;   /* the scrim colour as r, g, b: near-black, so every palette keeps the contrast */
  --tile-pad: clamp(1rem, 7cqi, 1.75rem);
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: var(--dark);
  color: #ffffff;
  text-decoration: none;
}

@media (min-width: 768px) {
  .category-card {
    aspect-ratio: 3 / 4;
  }
}

.category-card__media,
.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.category-card__img {
  transform-origin: 50% 20%;
  transition: transform 1.8s var(--ease-out);
}

@media (hover: hover) {
  .category-card:hover .category-card__img {
    transform: scale(1.06);
  }
}

/* The hairline frame: the palette's accent on dark (gold on the black-and-gold palettes), set inside the
   edge; on the paper tile the accent itself. Shown on hover and on keyboard focus. */
.category-card__frame {
  position: absolute;
  inset: clamp(0.5rem, 3cqi, 0.875rem);
  z-index: 3;
  border: 1px solid color-mix(in srgb, var(--accent-on-dark) 80%, transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease), inset 0.5s var(--ease);
  pointer-events: none;
}

.category-card:hover .category-card__frame,
.category-card:focus-visible .category-card__frame {
  opacity: 1;
}

/* The text block, anchored to the foot. Its ::before is the scrim: at least 80% near-black under every
   line of text (white text on a pure-white photo pixel stays above 11:1, the gold eyebrow above 5:1),
   then an eased fade over --fade above the block, so the photograph is untouched higher up. Because the
   scrim belongs to the text block, it grows with a long name or description instead of being guessed. */
.category-card__body {
  --fade: clamp(3.25rem, 24cqi, 5.5rem);
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--tile-pad);
  padding-top: var(--space-3);
}

.category-card__body::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--fade)) 0 0 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(var(--tile-scrim), 0.9) 0%,
    rgba(var(--tile-scrim), 0.8) calc(100% - var(--fade)),
    rgba(var(--tile-scrim), 0.62) calc(100% - var(--fade) * 0.72),
    rgba(var(--tile-scrim), 0.38) calc(100% - var(--fade) * 0.46),
    rgba(var(--tile-scrim), 0.14) calc(100% - var(--fade) * 0.2),
    rgba(var(--tile-scrim), 0) 100%);
  pointer-events: none;
}

.category-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 var(--space-3);
  color: var(--accent-on-dark);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.category-card__eyebrow::before {
  content: '';
  flex: none;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
}

/* No count to show: the gold rule alone keeps the composition. */
.category-card__eyebrow--rule {
  width: 2rem;
  height: 2px;
  margin-bottom: var(--space-4);
  background: var(--accent-on-dark);
}

.category-card__eyebrow--rule::before {
  content: none;
}

.category-card__title {
  margin: 0;
  color: inherit;
  font-size: clamp(1.3rem, 0.5rem + 6cqi, 2.25rem);
  line-height: 1.06;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.category-card--large .category-card__title {
  font-size: clamp(1.5rem, 0.6rem + 6.2cqi, 3rem);
}

.category-card__text {
  display: -webkit-box;
  max-width: 34rem;
  margin: var(--space-2) 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-sm);
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "Explore" with an arrow on a hairline; the arrow steps forward on hover. */
.category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-4);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: border-color 0.4s var(--ease);
}

.category-card__cta svg {
  transition: transform 0.4s var(--ease);
}

.category-card:hover .category-card__cta {
  border-bottom-color: var(--accent-on-dark);
}

.category-card:hover .category-card__cta svg {
  transform: translateX(4px);
}

/* Narrow tiles keep the text block low: one line of description, then none on the narrowest. */
@container (max-width: 299px) {
  .category-card__text {
    -webkit-line-clamp: 1;
  }

  .category-card__cta {
    margin-top: var(--space-3);
  }
}

@container (max-width: 219px) {
  .category-card__text {
    display: none;
  }
}

/* No uploaded cover: the pieces' photos stacked in the frame, one visible at a time. category-covers.js
   starts each visit on a random one and crossfades through them while the tile is on screen;
   [data-instant] switches without a fade (the random start). */
.category-card__stack {
  z-index: 0;
  background: var(--dark);
}

.category-card__photo {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 1.8s var(--ease-out);
}

.category-card__photo.is-visible {
  opacity: 1;
}

.category-card__stack[data-instant] .category-card__photo {
  transition: none;
}

/* Reduced motion: no zoom, no crossfade, no arrow or frame movement (the frame still shows, at once). */
@media (prefers-reduced-motion: reduce) {
  .category-card__img,
.category-card__photo,
.category-card__frame,
.category-card__cta,
.category-card__cta svg {
    transition: none;
  }

  .category-card:hover .category-card__img,
.category-card:hover .category-card__cta svg {
    transform: none;
  }
}

/* The lead of a seven or eleven tile grid is two columns wide: a split card, the text on a solid panel at
   the left and the photograph at the right, so a wide crop never puts the text across a face. */
@media (min-width: 768px) {
  .category-grid--lead .category-card--large:not(.category-card--no-image) .category-card__media {
    left: 38%;
    width: 62%;
  }

  .category-grid--lead .category-card--large:not(.category-card--no-image) .category-card__body {
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 46%;
  }

  .category-grid--lead .category-card--large:not(.category-card--no-image) .category-card__body::before {
    inset: 0 calc(-1 * var(--fade)) 0 0;
    background: linear-gradient(to right,
      rgb(var(--tile-scrim)) 0%,
      rgba(var(--tile-scrim), 0.92) calc(100% - var(--fade)),
      rgba(var(--tile-scrim), 0.55) calc(100% - var(--fade) * 0.6),
      rgba(var(--tile-scrim), 0.18) calc(100% - var(--fade) * 0.25),
      rgba(var(--tile-scrim), 0) 100%);
  }
}
/* No photo: a designed tile on the palette's own papers — a tinted gradient, a fine weave and the
   category's number set large in the display face. Every token comes from the palette, so the tile
   suits the light and the dark presets alike; the text keeps the palette's ink-on-paper contrast. */
.category-card--no-image {
  color: var(--ink);
  /* The tints stay in the top corners, away from the text at the foot; checked at 12% / 6% so the
     ink-on-paper text keeps 4.5:1 in every preset even where the numeral sits behind it. */
  background:
    radial-gradient(70% 55% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(60% 45% at 0% 0%, color-mix(in srgb, var(--dark) 6%, transparent), transparent 70%),
    linear-gradient(155deg, var(--paper-2) 0%, var(--paper-3) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line-control) 28%, transparent);
}

.category-card--no-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 3%, transparent) 0 1px, transparent 1px 6px);
  pointer-events: none;
}

.category-card__decor {
  position: absolute;
  top: -0.08em;
  right: -0.03em;
  z-index: 1;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 52cqi, 13rem);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: -0.05em;
  opacity: 0.12;
  transition: transform 0.9s var(--ease);
  pointer-events: none;
  user-select: none;
}

.category-card--no-image:hover .category-card__decor {
  transform: translateX(-0.04em);
}

/* On paper there is no scrim; the eyebrow, rule and frame take the palette's accent, the text its ink. */
.category-card--no-image .category-card__body::before {
  content: none;
}

.category-card--no-image .category-card__eyebrow {
  color: var(--accent);
}

.category-card--no-image .category-card__eyebrow--rule {
  background: var(--accent);
}

.category-card--no-image .category-card__frame {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
}

/* Ink at 78% reads softer than the title yet keeps more contrast than --ink-2 over the tinted corner. */
.category-card--no-image .category-card__text {
  color: var(--ink);
  opacity: 0.78;
}

.category-card--no-image .category-card__cta {
  border-bottom-color: var(--line-control);
  color: var(--ink);
}

.category-card--no-image:hover .category-card__cta {
  border-bottom-color: var(--accent);
}

/* Brand story / philosophy (sections.js brandStory): with a photo, picture and text side by side; without
   one, the editorial version — the eyebrow and title at the left, the first paragraph as a pull quote in
   Cormorant italic at the right, the rest in reading columns. theme 'dark' sets it on the charcoal band. */

.story__inner {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

@media (min-width: 900px) {
  .story__inner {
    grid-template-columns: 1fr 1fr;
  }

  .story--reverse .story__media {
    order: 2;
  }
}

.story__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}

.story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__title {
  max-width: 14ch;
  margin: 0 0 1.75rem;
  font-size: var(--fs-1);
  letter-spacing: -0.025em;
  line-height: 1;
}

.story__body {
  max-width: 34rem;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

/* The pull quote: Cormorant italic, a gold opening mark hanging in the margin. */
.story__quote {
  position: relative;
  max-width: 42rem;
  margin: 0 0 var(--space-6);
  padding-left: clamp(1.5rem, 3vw, 2.25rem);
  border-left: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

.story__quote::before {
  content: '\201C';
  position: absolute;
  left: -0.12em;
  top: -0.55em;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: calc(5rem * var(--display-scale));
  font-style: italic;
  line-height: 1;
  opacity: 0.9;
  pointer-events: none;
}

.story__quote p {
  max-width: 30ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(clamp(1.5rem, 1.15rem + 1.3vw, 2.35rem) * var(--display-scale));
  font-style: italic;
  font-weight: var(--display-weight);
  letter-spacing: -0.012em;
  line-height: 1.28;
  text-wrap: pretty;
}

.story__quote p + p {
  margin-top: 0.75em;
}

.story--text-only .story__body {
  max-width: 44rem;
  margin-bottom: 0;
  font-size: var(--fs-body);
}

.story--text-only .story__copy .link-arrow {
  margin-top: var(--space-6);
}

/* Phones: a calmer title and quote, so the story reads in a few lines rather than a wall. */
@media (max-width: 899px) {
  .story__title {
    margin-bottom: var(--space-5);
    font-size: var(--fs-2);
  }

  .story__body {
    font-size: var(--fs-body);
  }
}

@media (min-width: 900px) {
  .story--text-only .story__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .story--text-only .story__text {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 7rem);
  }

  .story--text-only .story__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .story--text-only .story__title {
    margin-bottom: 0;
  }
}

/* The rest of the text in two reading columns on wide screens. */
@media (min-width: 1100px) {
  .story--text-only .story__body {
    max-width: none;
    columns: 2;
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  .story--text-only .story__body > * {
    break-inside: avoid;
  }

  .story--text-only .story__body > :first-child {
    margin-top: 0;
  }
}

/* On the charcoal band: ivory title and quote, the gold of the dark set for the mark and the rule. */
.story--dark .story__title {
  color: var(--on-dark);
}

.story--dark .story__quote {
  border-left-color: color-mix(in srgb, var(--accent-on-dark) 45%, transparent);
}

.story--dark .story__quote::before {
  color: var(--accent-on-dark);
}

.story--dark .story__quote p {
  color: var(--on-dark);
}

/* Advantages ("what you can expect"): a two-column list, each row a large gold numeral beside the title and
   its text, hairlines between the rows. */
.advantages {
  display: grid;
  gap: 0 var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.advantage {
  display: grid;
  grid-template-columns: minmax(3.5rem, 5rem) minmax(0, 1fr);
  gap: 0.5rem var(--space-5);
  align-items: start;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.advantage__index {
  display: block;
  grid-row: span 2;
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  font-weight: var(--display-weight);
  letter-spacing: -0.03em;
  line-height: 0.85;
}

.advantage__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.15em 0 0;
  font-size: var(--fs-3);
  line-height: 1.15;
}

.advantage__icon {
  flex: none;
  color: var(--accent);
}

.advantage__text {
  grid-column: 2;
  max-width: 32rem;
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-md);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Contact band */

/* Light by default (it usually sits just above the dark footer); content.theme 'dark' keeps the dark band. */
.contact-band {
  background: var(--paper-2);
  color: var(--ink-2);
}

.contact-band--dark {
  background: var(--dark);
  color: var(--on-dark);
}

.contact-band__inner {
  display: grid;
  gap: 3rem;
}

/* Up to three ways to reach the owner sit level with the buttons (the band's two calls to action and the
   list read as one row of choices); a longer list starts level with the eyebrow instead. */
@media (min-width: 900px) {
  .contact-band__inner {
    grid-template-columns: 1fr 1.15fr;
    align-items: end;
    gap: 6rem;
  }

  .contact-band__inner:has(.contact-methods > li:nth-child(4)) {
    align-items: start;
  }
}

.contact-band__title {
  max-width: 14ch;
  margin: 0 0 1.25rem;
  font-size: var(--fs-1);
  letter-spacing: -0.025em;
  line-height: 1;
}

.contact-band__text {
  max-width: 28rem;
  margin: 0 0 2rem;
  color: var(--ink-3);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.contact-band--dark .contact-band__text {
  color: var(--on-dark-2);
}

.contact-band--dark .contact-band__title {
  color: var(--on-dark);
}

.contact-methods {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-methods--dark {
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.contact-methods--dark .contact-method {
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-method__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 50%;
}

.contact-method__text {
  min-width: 0;
}

.contact-method__label {
  display: block;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}

.contact-methods--dark .contact-method__label {
  color: var(--on-dark-2);
}

.contact-method__value {
  display: block;
  font-family: var(--font-display);
  font-size: calc(clamp(1.15rem, 1rem + 0.6vw, 1.5rem) * var(--display-scale));
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-method__arrow {
  margin-left: auto;
  flex: none;
  opacity: 0.45;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

a.contact-method:hover .contact-method__arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.contact-methods--compact .contact-method {
  padding: 1rem 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

/* A faint woven texture (two repeating gradients, zero bytes) over the darkest band of the palette. */
.site-footer {
  position: relative;
  isolation: isolate;
  padding-top: clamp(4rem, 8vw, 6.5rem);
  background-color: var(--dark-2);
  color: var(--on-dark-2);
  font-size: 0.92rem;
}

.site-footer__top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 5rem;
  }
}

/* The statement: the studio's line in Cormorant, large, with the contact button level with it, over a
   gold hairline that separates it from the columns. */
.site-footer__statement {
  display: grid;
  gap: var(--space-5) var(--space-7);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-on-dark) 28%, transparent);
}

.site-footer__statement-text {
  max-width: 46ch;
  margin: 0;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: calc(clamp(1.35rem, 1.05rem + 1.3vw, 2.1rem) * var(--display-scale));
  font-weight: var(--display-weight);
  letter-spacing: -0.015em;
  line-height: 1.22;
  text-wrap: pretty;
}

.site-footer__statement-cta {
  justify-self: start;
}

@media (min-width: 900px) {
  .site-footer__statement {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-footer__statement-cta {
    justify-self: end;
  }
}

.site-footer__logo {
  display: inline-flex;
  color: var(--on-dark);
  text-decoration: none;
}

/* The footer: the lockup at its desktop size on every screen, the dark set's colours, the tagline under it. */
.site-footer .brand-lockup {
  --mark-h: 44px;
  --caps-1: 22px;
  --caps-2: 9.5px;
  --caps-gap: 5.5px;
  gap: 0.75rem;
}

.site-footer__tagline {
  margin-top: 0.75rem;
  color: var(--on-dark-2);
}

.site-footer__about {
  max-width: 24rem;
  margin: 1.5rem 0;
  line-height: 1.7;
}

.site-footer__brand .social {
  margin-top: var(--space-5);
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6) var(--space-5);
}

/* Phones and tablets: the link columns two by two under a hairline, contact details across the full width. */
@media (max-width: 899px) {
  .site-footer__top {
    gap: var(--space-6);
  }

  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-footer__col--contact {
    grid-column: 1 / -1;
  }

  /* Each link's 44px target (see the touch rules above) without overlapping its neighbour's. */
  .site-footer .site-footer__columns ul {
    gap: var(--space-5);
  }

  .site-footer__about {
    margin-block: var(--space-4) var(--space-5);
  }
}

/* Beside the brand column the link columns keep their own width and spread to the right edge, so two
   columns read as balanced as three. */
@media (min-width: 900px) {
  .site-footer__columns {
    grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
    justify-content: space-between;
    gap: 2.5rem clamp(2rem, 4vw, 4rem);
  }
}

.site-footer__heading {
  margin: 0 0 var(--space-4);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 0.2s;
}

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

.site-footer address {
  font-style: normal;
  line-height: 1.6;
}

/* A long email address breaks instead of pushing the page sideways (the columns keep their max-content width). */
.site-footer__col--contact a,
.site-footer__col--contact address {
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  padding-block: var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--accent-on-dark) 24%, transparent);
  font-size: var(--fs-xs);
}

.site-footer__bottom p {
  margin: 0;
}

/* Phones: one column — the brand, then each link column, then the contact details. */
@media (max-width: 599px) {
  .site-footer__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}

/* Phones: the legal line, the policies and the team button stack on the left edge. */
@media (max-width: 599px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .site-footer__staff {
    margin-left: 0;
  }
}

.site-footer__policies {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem !important;
}

/* "Admin login" (or "Open admin" for signed-in staff): a visible button in the footer's bottom line. */
.site-footer__staff {
  margin-left: auto;
}

.site-footer__staff-in,
html[data-staff='1'] .site-footer__staff-out {
  display: none;
}

html[data-staff='1'] .site-footer__staff-in {
  display: inline;
}

.social {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: border-color 0.25s, background-color 0.25s;
}

.social a:hover {
  border-color: var(--on-dark);
}

/* The footer's lists are grids; its social icons stay in one row. */
.site-footer .social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.social--menu a {
  border-color: var(--line-control);
  color: var(--ink);
}

@media (max-width: 1023px) {
  .site-menu__line,
.social a {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .social a {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 12px 30px -10px rgba(16, 70, 40, 0.6);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
}

/* Steps aside over the hero and the footer (core.js); without JS it simply stays. */
.fw-ready .floating-whatsapp.is-hidden {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

/* Over the home page hero it starts hidden, so it never flashes before core.js has measured the hero. */
@media (scripting: enabled) {
  body.has-overlay-header .floating-whatsapp:not(.is-shown) {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 767px) {
  .floating-whatsapp {
    width: 3rem;
    height: 3rem;
  }
}

/* Team shortcuts (signed-in staff only): bottom left, because the WhatsApp button is bottom right. */
.staff-bar[hidden] {
  display: none;
}

.staff-bar {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.staff-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.staff-bar a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Phones: a slim strip along the bottom edge instead of a pill floating over the content. */
@media (max-width: 1023px) {
  .staff-bar {
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    gap: 1.25rem;
    min-height: 2.25rem;
    padding: 0 1rem env(safe-area-inset-bottom);
    border-radius: 0;
    box-shadow: none;
  }

  .staff-bar a {
    min-height: 2.25rem;
    padding: 0 0.5rem;
  }

  

  html[data-staff='1'] .floating-whatsapp {
    bottom: calc(3.25rem + env(safe-area-inset-bottom));
  }

  html[data-staff='1'] .site-footer {
    padding-bottom: 2.5rem;
  }
}

@media print {
  .staff-bar,
.floating-whatsapp {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Page hero and breadcrumbs
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.25rem, 4.5vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}

.page-hero__title {
  max-width: 14ch;
  margin: 0;
  font-size: var(--fs-1);
  letter-spacing: -0.028em;
  line-height: 0.98;
}

.page-hero__text {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--ink-3);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
}

.page-hero__actions {
  margin: 1.5rem 0 0;
}

/* A charcoal page hero (the services index and the service pages). */
.page-hero--dark {
  --focus-ring: #ffffff;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 0;
  background: var(--dark);
  color: var(--on-dark);
}

.page-hero--dark .page-hero__title {
  color: var(--on-dark);
}

.page-hero--dark .page-hero__text {
  color: var(--on-dark-2);
}

.page-hero--dark .eyebrow {
  color: var(--accent-on-dark);
}

.page-hero--dark .breadcrumbs,
.page-hero--dark .breadcrumbs ol,
.page-hero--dark .breadcrumbs a {
  color: var(--on-dark-2);
}

.page-hero--dark .breadcrumbs a:hover {
  color: var(--on-dark);
}

.page-hero--dark .facts {
  max-width: 52rem;
  margin: 2.5rem 0 0;
}

.page-hero--image {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(340px, 52svh, 580px);
  border: 0;
  color: #ffffff;
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darker at the top (breadcrumbs) and the bottom (title) so both read over any photo. */
.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.45), rgba(10, 9, 8, 0.15) 35%, rgba(10, 9, 8, 0.7));
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero--image .page-hero__title,
.page-hero--image .page-hero__text,
.page-hero--image .eyebrow,
.page-hero--image .breadcrumbs,
.page-hero--image .breadcrumbs a {
  color: #ffffff;
}

.page-hero--image .page-hero__text {
  opacity: 1;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  color: var(--ink-4);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.35rem;
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: rgba(14, 13, 12, 0.97);
  color: #ffffff;
}

.lightbox::backdrop {
  background: transparent;
}

dialog[open].lightbox {
  animation: fade-in 0.35s var(--ease);
}

@keyframes fade-in {
  from { opacity: 0; }
}

.lightbox__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

/* Fixed (not auto) grid tracks, so the photo's max-height: 100% means the screen, not the photo. */
.lightbox__slide {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  flex: 0 0 100%;
  place-items: center;
  height: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: center;
}

.lightbox__slide[hidden],
.lightbox__nav[hidden] {
  display: none;
}

/* Fills the slide; gallery.js zooms only when the photo itself is clicked and closes on the space around it. */
.lightbox__zoom {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
}

.lightbox__zoom:focus-visible {
  outline-offset: -4px;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.35s var(--ease);
}

/* Touch screens: the browser's own pinch-zoom instead of the tap-to-zoom used with a mouse. */
@media (hover: none) {
  .lightbox__track {
    touch-action: pan-x pinch-zoom;
  }
}

.lightbox__img.is-zoomed {
  transform: scale(2.2);
  cursor: zoom-out;
}

.lightbox__bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: linear-gradient(rgba(14, 13, 12, 0.6), transparent);
}

.lightbox__counter {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  translate: 0 -50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

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

@media (hover: none) {
  .lightbox__nav {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Content pages, forms, contact
   -------------------------------------------------------------------------- */

.prose {
  color: var(--ink-2);
  line-height: 1.75;
}

.prose > * {
  margin-block: 0;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2em;
  font-size: calc(1.9rem * var(--display-scale));
}

.prose h3 {
  margin-top: 1.75em;
  font-size: calc(1.45rem * var(--display-scale));
}

.prose a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
  text-underline-offset: 0.2em;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose blockquote {
  margin: 1.75em 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(1.4rem * var(--display-scale));
  line-height: 1.4;
}

.prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Page text shares the left edge of the page title above it (one alignment line per page), at a reading width. */
.prose--page {
  max-width: var(--container-text);
  margin-inline: 0;
  font-size: var(--fs-body);
}

.page-updated {
  max-width: var(--container-text);
  margin: var(--space-7) 0 0;
  color: var(--ink-4);
  font-size: var(--fs-xs);
}

.cta-panel {
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter);
  background-color: var(--paper-2);
  background-image: var(--grid-texture);
  text-align: center;
}

.cta-panel__title {
  max-width: 16ch;
  margin: 0 auto;
  font-size: var(--fs-1);
  letter-spacing: -0.025em;
  line-height: 1;
}

.cta-panel__text {
  margin: 1rem 0 2rem;
  color: var(--ink-3);
}

.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* The sheet's title: Cormorant over a short gold rule. */
.card__title {
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-4);
  font-size: var(--fs-2);
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 3rem 1px no-repeat;
}

.card__text {
  margin: 0 0 1.75rem;
  color: var(--ink-3);
}

.contact-page {
  display: grid;
  gap: 3rem;
}

/* Contact details in a tinted panel, the form on paper. */
.contact-page__methods {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper-2);
}

/* The form as a sheet of stationery: a lifted ivory card with a hairline frame and a deep, soft shadow. */
.contact-page__form.card {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 40px 80px -48px rgba(20, 20, 20, 0.28);
}

@media (min-width: 900px) {
  .contact-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field__label {
  color: var(--ink-2);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field__optional {
  color: var(--ink-4);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
}

.field-row {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hairline fields: a 1px frame on the paper, which turns gold (2px) on focus. */
.input {
  width: 100%;
  height: auto;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid var(--line-control);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--accent);
}

.input[aria-invalid='true'] {
  border-color: var(--negative);
}

.textarea {
  height: auto;
  min-height: 7rem;
  padding: 0.85rem 1rem;
  resize: vertical;
}

.form-error {
  margin: 0 0 1rem;
  color: var(--negative);
  font-size: 0.88rem;
}

.field__hint {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  line-height: 1.45;
}

/* Errors sit under their field (aria-describedby), with an icon so colour is not the only cue. */
.field__error {
  display: flex;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  color: var(--negative);
  font-size: 0.8rem;
  line-height: 1.4;
}

.field__error svg {
  flex: none;
  margin-top: 0.1em;
}

.field__error[hidden] {
  display: none;
}

.enquiry-form__note a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.enquiry-form__note {
  margin: 0.85rem 0 0;
  color: var(--ink-4);
  font-size: var(--fs-xs);
  text-align: center;
}

.enquiry-success {
  padding: 1.5rem 0.5rem;
  text-align: center;
}

.enquiry-success:focus {
  outline: none;
}

.enquiry-success__icon {
  display: inline-grid;
  margin-bottom: 1rem;
  color: var(--positive);
}

.enquiry-success__title {
  margin: 0 0 0.75rem;
  font-size: calc(1.6rem * var(--display-scale));
}

.enquiry-success__text {
  margin: 0;
  color: var(--ink-3);
}

.enquiry-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.enquiry-success__actions [hidden] {
  display: none;
}

.contact-page__whatsapp {
  margin-bottom: 1.5rem;
}

/* Empty, 404, maintenance, setup */

.empty-state {
  display: grid;
  justify-items: center;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-3);
}

.empty-state__title {
  margin: 0 0 0.75rem;
  font-size: var(--fs-3);
}

.empty-state__text {
  margin: 0;
  color: var(--ink-3);
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.not-found {
  max-width: 44rem;
  text-align: center;
}

.not-found__code {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: calc(clamp(6rem, 3rem + 11vw, 13rem) * var(--display-scale));
  font-weight: var(--display-weight);
  letter-spacing: -0.04em;
  line-height: 0.9;
  opacity: 0.55;
}

.not-found__title {
  margin: 0.5rem 0 1rem;
  font-size: var(--fs-2);
}

.not-found__text {
  margin: 0 0 2.5rem;
  color: var(--ink-3);
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}

.maintenance,
.setup {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 2rem var(--gutter);
}

.maintenance__inner,
.setup__inner {
  width: min(100%, 36rem);
  text-align: center;
}

.maintenance__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  color: var(--ink);
}

.maintenance__title,
.setup__title {
  margin: 0 0 1rem;
  font-size: var(--fs-2);
}

.maintenance__text {
  margin: 0 0 2.5rem;
  color: var(--ink-3);
  font-size: 1.05rem;
}

.maintenance .contact-methods {
  text-align: left;
}

.maintenance__staff {
  margin: 2.5rem 0 0;
}

.maintenance__staff a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  color: var(--ink-3);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.maintenance__staff a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.setup__list {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.setup code {
  padding: 0.15rem 0.4rem;
  background: var(--paper-2);
  font-size: 0.9em;
}

.preview-root {
  min-height: 50vh;
}

.preview-root__status {
  color: var(--ink-3);
  text-align: center;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

/* --------------------------------------------------------------------------
   Hero (sections.js heroSection): one slide. With a photo: full-bleed (.hero--image, the header overlays it).
   Without: the designed hero — .hero--charcoal (the launch state: the drawing sheet behind the headline, the
   header over it) or .hero--split (ivory text beside a charcoal plate). Entrance: hero.js adds is-animating,
   then is-ready; the text rises in steps and the drawing's lines draw on (stroke-dashoffset). Without the
   script nothing is hidden; under reduced motion everything is simply there.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 46rem;
}

/* The eyebrow: tracked capitals between two hairlines. */
.hero__eyebrow {
  gap: 1rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  color: var(--accent-on-dark);
  letter-spacing: 0.28em;
}

.hero__eyebrow::before {
  width: 2.5rem;
  height: 1px;
  opacity: 0.9;
}

.hero__eyebrow::after {
  content: '';
  flex: none;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.hero__title {
  max-width: 13ch;
  margin: 0;
  font-size: var(--fs-hero);
  letter-spacing: -0.028em;
  line-height: 0.94;
  text-wrap: balance;
}

/* The closing phrase in italic, in the band's gold (sections.js accentHeadline). */
.hero__accent {
  color: var(--accent-on-dark);
  font-style: italic;
  font-weight: var(--display-weight);
  letter-spacing: -0.015em;
}

.hero__rule {
  width: 3rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}

.hero__text {
  max-width: 33rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* The scroll cue: a thin line and a tracked word at the foot, right (from 900px). */
.hero__scroll {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-on-dark);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.85;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, transparent, currentColor);
  transform-origin: top;
  animation: scroll-cue 2.6s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (min-width: 900px) {
  .hero__scroll {
    display: flex;
  }
}

/* Photo hero: the photograph fills the band; the text sits at the foot over a scrim of at least 30%. */
.hero--image {
  --focus-ring: #ffffff;
  display: grid;
  align-items: end;
  min-height: min(92svh, 920px);
  background: var(--dark);
  color: #ffffff;
}

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

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

.hero__media--top img { object-position: center top; }
.hero__media--bottom img { object-position: center bottom; }
.hero__media--left img { object-position: left center; }
.hero__media--right img { object-position: right center; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, calc(var(--scrim, 0.35) + 0.3)) 0%, rgba(10, 9, 8, var(--scrim, 0.35)) 45%, rgba(10, 9, 8, calc(var(--scrim, 0.35) * 0.55)) 100%);
}

.hero--image .hero__inner {
  padding-block: calc(var(--header-h) + 3.5rem) clamp(3rem, 8vw, 6rem);
}

.hero--image .hero__title {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* Over a photograph the accent stays white: gold cannot be guaranteed to read on every picture. */
.hero--image .hero__accent {
  color: inherit;
}

.hero--image .hero__text {
  color: rgba(255, 255, 255, 0.9);
}

/* The designed hero: a charcoal band with the drawing sheet at the right, the headline at the left. */
.hero--charcoal {
  --focus-ring: #ffffff;
  display: grid;
  align-items: center;
  min-height: min(92svh, 960px);
  background-color: var(--dark);
  color: var(--on-dark);
}

.hero--charcoal .hero__title {
  color: var(--on-dark);
}

.hero--charcoal .hero__text {
  color: var(--on-dark-2);
}

.hero--charcoal .hero__inner,
.hero--split .hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

/* The header lies over the charcoal hero (lib/pages.js): the text starts under it, not behind it. */
.has-overlay-header .hero--charcoal .hero__inner {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem));
}

/* The drawing: fixed to the right edge, the lines in gold at a fifth to a third of their strength, fading
   out under the text (a mask), the grid running past the sheet to the band's edges (overflow visible). */
.hero__canvas {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: min(64%, 1100px);
  color: var(--accent-on-dark);
  opacity: 0.46;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%);
  mask-image: linear-gradient(to right, transparent 0, #000 34%);
}

.hero__canvas .elevation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Split: ivory text column, charcoal plate column (stacked on phones: text, then a plate band). */
.hero--split {
  background: var(--paper);
  color: var(--ink-2);
}

.hero--split .hero__title {
  color: var(--ink);
}

.hero--split .hero__eyebrow,
.hero--split .hero__accent {
  color: var(--accent);
}

.hero--split .hero__rule {
  background: var(--accent);
}

.hero--split .hero__scroll {
  color: var(--accent);
}

.hero__plate {
  position: relative;
  display: grid;
  min-height: 280px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--dark);
  color: var(--accent-on-dark);
}

.hero__plate .elevation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

@media (min-width: 1024px) {
  .hero--charcoal .hero__inner {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: center;
  }

  .hero--split .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
  }

  .hero--split .hero__content {
    align-self: center;
  }

  .hero__plate {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* Phones and tablets: the drawing sits behind the text at a tenth of its strength, the sheet's dimension
   lines and title block put away; the split plate becomes a band under the text. */
@media (max-width: 1023px) {
  .hero__canvas {
    inset: 0;
    width: 100%;
    opacity: 0.2;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__canvas .elevation__dims,
  .hero__canvas .elevation__title {
    display: none;
  }

  .hero--split .hero__plate {
    min-height: 240px;
    margin-inline: calc(-1 * var(--gutter));
  }

  .hero--charcoal .hero__inner,
  .hero--split .hero__inner {
    padding-block: clamp(3.5rem, 12vw, 5rem);
  }

  .has-overlay-header .hero--charcoal .hero__inner {
    padding-top: calc(var(--header-h) + clamp(2.5rem, 8vw, 4rem));
  }
}

@media (max-width: 599px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero--charcoal {
    min-height: min(86svh, 760px);
  }

  .hero__title {
    max-width: 12ch;
  }

  /* One hairline before a wrapping eyebrow, tracked a little tighter. */
  .hero__eyebrow {
    gap: 0.75rem;
    letter-spacing: 0.22em;
  }

  .hero__eyebrow::before {
    width: 1.5rem;
  }

  .hero__eyebrow::after {
    display: none;
  }
}

/* Entrance: hero.js opts in (is-animating), then marks the hero ready two frames later; without the script
   nothing is hidden. The text rises in steps; the drawing's lines draw on, plan, then section, then the
   dimensions and the title block; the mark fades in last. A plain fade under reduced motion. */
@media (scripting: enabled) {
  .hero.is-animating .hero__content > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }

  .hero.is-animating .hero__content > :nth-child(2) { transition-delay: 0.1s; }
  .hero.is-animating .hero__content > :nth-child(3) { transition-delay: 0.2s; }
  .hero.is-animating .hero__content > :nth-child(4) { transition-delay: 0.3s; }
  .hero.is-animating .hero__content > :nth-child(5) { transition-delay: 0.4s; }

  .hero.is-ready .hero__content > * {
    opacity: 1;
    transform: none;
  }

  .hero.is-animating .hero__media img {
    transform: scale(1.04);
    transition: transform 1.6s var(--ease-out);
  }

  .hero.is-ready .hero__media img {
    transform: none;
  }

  .hero.is-animating .elevation__line:not(.elevation__line--dashed),
  .hero.is-animating .elevation__dims,
  .hero.is-animating .elevation__ground {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.2s var(--ease-out) 0.3s;
  }

  .hero.is-animating .elevation__section .elevation__line { transition-delay: 0.8s; }
  .hero.is-animating .elevation__ground { transition-delay: 1.1s; }
  .hero.is-animating .elevation__dims { transition-delay: 1.5s; }
  .hero.is-animating .elevation__title .elevation__line { transition-delay: 1.8s; }

  .hero.is-animating .elevation__line--dashed,
  .hero.is-animating .elevation__mark {
    opacity: 0;
    transition: opacity 1.2s var(--ease) 2s;
  }

  .hero.is-ready .elevation__line:not(.elevation__line--dashed),
  .hero.is-ready .elevation__dims,
  .hero.is-ready .elevation__ground {
    stroke-dashoffset: 0;
  }

  .hero.is-ready .elevation__line--dashed {
    opacity: 0.55;
  }

  .hero.is-ready .elevation__mark {
    opacity: 0.6;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero.is-animating .hero__content > *,
    .hero.is-animating .hero__media img {
      transform: none;
      transition-duration: 0.01ms;
    }

    .hero.is-animating .elevation__line,
    .hero.is-animating .elevation__dims,
    .hero.is-animating .elevation__ground {
      stroke-dasharray: none;
      stroke-dashoffset: 0;
      transition: none;
    }

    .hero.is-animating .elevation__line--dashed {
      opacity: 0.55;
      transition: none;
    }

    .hero.is-animating .elevation__mark {
      opacity: 0.6;
      transition: none;
    }
  }
}

/* --------------------------------------------------------------------------
   Components: gold button, header layout, rules, tags, facts, card frame, chips, skeletons, checkbox, select,
   modal, surfaces, preview banner, the elevation line-art
   -------------------------------------------------------------------------- */

/* The gold outline button: gold text and hairline, fills gold with ivory text on hover. */
.btn--gold {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--gold:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* One button language: 44px tall, small tracked capitals, square corners; solid black (primary), gold
   hairline (gold), ink hairline (outline), and their light twins on the charcoal bands. */
.btn {
  min-height: 2.75rem;
  padding: 0 1.6rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn--lg {
  min-height: 3.5rem;
  padding-inline: 2rem;
  font-size: var(--fs-sm);
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.75rem;
}

/* Header: the CTA is a small gold button; lockup left, navigation centred, CTA right from 1024px. */
.site-header__actions .header-cta {
  display: none;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .site-header__inner {
    grid-template-columns: 2.75rem auto 1fr;
    column-gap: 1rem;
  }

  .site-logo {
    justify-self: start;
  }

  .site-header__actions {
    justify-self: end;
  }

  .site-header__actions .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    column-gap: 1.5rem;
  }

  .site-nav {
    justify-self: center;
  }

  .site-header--overlay:not(.is-scrolled) .header-cta {
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
  }

  .site-header--overlay:not(.is-scrolled) .header-cta:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--ink);
  }
}

/* Hairline rules: the paper hairline and the 48px gold rule. */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.rule--gold {
  width: 48px;
  background: var(--accent);
}

.section--dark .rule--gold,
.hero--charcoal .rule--gold {
  background: var(--accent-on-dark);
}

/* Tags: a quiet paper chip; --gold for status and scope. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.75rem;
  padding: 0.2rem 0.65rem;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.tag--gold {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
}

.tag--muted {
  color: var(--ink-3);
}

/* Facts: a definition list of label / value pairs; --bar lays them out in a row with hairlines between. */
.facts {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}

.fact {
  min-width: 0;
}

.fact__label {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fact__value {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.45;
}

.fact__value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  transition: border-color 0.2s;
}

.fact__value a:hover {
  border-bottom-color: var(--accent);
}

.facts--bar {
  grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
  gap: var(--space-3) var(--space-7);
}

@media (min-width: 700px) {
  .facts--bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) 0;
  }

  .facts--bar .fact {
    padding-right: var(--space-6);
    margin-right: var(--space-6);
    border-right: 1px solid var(--line);
  }

  .facts--bar .fact:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }
}

.facts--light .fact__label {
  color: var(--accent-on-dark);
}

.facts--light .fact__value {
  color: var(--on-dark);
}

.facts--light.facts--bar .fact {
  border-right-color: var(--line-on-dark);
}

/* Cards share one hover: a 1px accent frame fades in and the photograph zooms by 3% (both off under reduced motion). */
.card-frame {
  position: relative;
}

.card-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 0 1px var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.card-frame:hover::after,
.card-frame:focus-within::after {
  opacity: 1;
}

.card-frame img {
  transition: transform 0.6s var(--ease);
}

.card-frame:hover img,
.card-frame:focus-within img {
  transform: scale(1.03);
}

/* Chips: the projects rail's category links. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line-control);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active,
.chip[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip__count {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.chip.is-active .chip__count {
  color: var(--on-dark-2);
}

/* Skeletons while the projects grid reloads. */
.skeleton-line {
  display: block;
  height: 0.9rem;
  margin-top: 0.6rem;
  background: var(--paper-2);
}

.skeleton-line--short {
  width: 55%;
}

.project-card--skeleton .project-card__media {
  background: var(--paper-2);
}

/* The consent checkbox: a drawn box with the check icon, 44px row on touch. */
.field--check {
  margin-block: 0.25rem 1.25rem;
}

.checkbox {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-height: 2.75rem;
  padding-top: 0.25rem;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
}

.checkbox__box {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border: 1px solid var(--line-control);
  background: var(--surface);
  color: var(--paper);
  transition: background-color 0.2s, border-color 0.2s;
}

.checkbox__box svg {
  opacity: 0;
}

.checkbox__input:checked + .checkbox__box {
  background: var(--ink);
  border-color: var(--ink);
}

.checkbox__input:checked + .checkbox__box svg {
  opacity: 1;
}

.checkbox__input:focus-visible + .checkbox__box {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 2px;
}

.checkbox__input[aria-invalid='true'] + .checkbox__box {
  border-color: var(--negative);
}

.checkbox__text a {
  color: inherit;
  text-underline-offset: 0.2em;
}

/* Selects share the input's frame, with a chevron drawn in CSS. */
.select {
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.95rem) 50%;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  appearance: none;
}

/* Modal dialog (the project enquiry): a centred panel that scrolls inside itself. */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1rem;
  place-items: center;
}

.modal[open] {
  display: grid;
}

.modal__panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 36rem);
  max-height: min(92svh, 56rem);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

dialog[open].modal .modal__panel {
  animation: modal-in 0.4s var(--ease-out);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.modal__title {
  margin: 0;
  font-size: var(--fs-3);
}

.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
  overscroll-behavior: contain;
}

@media (max-width: 599px) {
  .modal {
    padding: 0;
    place-items: end stretch;
  }

  .modal__panel {
    max-height: 100svh;
  }
}

/* Surfaces: ivory, tinted, charcoal (never two dark bands in a row — the templates alternate them). */
.section--dark,
.section--dark-2 {
  --focus-ring: #ffffff;
  background: var(--dark);
  color: var(--on-dark-2);
}

.section--dark-2 {
  background: var(--dark-2);
}

.section--dark h2,
.section--dark h3,
.section--dark-2 h2,
.section--dark-2 h3 {
  color: var(--on-dark);
}

.section--dark .eyebrow,
.section--dark-2 .eyebrow {
  color: var(--accent-on-dark);
}

.section--dark .section-head__sub {
  color: var(--on-dark-2);
}

.prose--light {
  color: var(--on-dark-2);
}

.prose--light h2,
.prose--light h3,
.prose--light blockquote,
.prose--light strong {
  color: var(--on-dark);
}

.prose--light a {
  color: var(--accent-on-dark);
}

/* The signed-in preview banner above a draft. */
.preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-align: center;
}

/* The architectural line-art (common.js heroElevation) inherits its colour from the plate; its grid runs
   past the sheet to fill the plate (the plate clips it). */
.elevation {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* A fine grain over every charcoal band (zero requests): painted between the band and its content. */
.section--dark,
.section--dark-2,
.cta-band--dark,
.page-hero--dark,
.contact-band--dark {
  position: relative;
  isolation: isolate;
}

.section--dark::before,
.section--dark-2::before,
.cta-band--dark::before,
.page-hero--dark::before,
.contact-band--dark::before,
.project-cover--plain::before,
.site-footer::before,
.hero--charcoal::before,
.hero__plate::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.07;
  pointer-events: none;
}

/* The grid texture on empty frames and plain plates. */
.project-card__media--empty,
.service-tile,
.page-hero--plain,
.hero--split .hero__plate {
  background-image: var(--grid-texture);
}

.hero--split .hero__plate {
  --grid-line: color-mix(in srgb, var(--accent-on-dark) 14%, transparent);
}

/* --------------------------------------------------------------------------
   Homepage sections: intro, services overview, process, testimonials, CTA band
   -------------------------------------------------------------------------- */

/* Intro: sticky head on the left, the copy on the right with the first paragraph set large. */
.intro__inner {
  display: grid;
  gap: var(--space-6);
}

.intro__title {
  margin: 0;
  font-size: var(--fs-2);
}

.intro__lead p {
  max-width: 30ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(clamp(1.5rem, 1.15rem + 1.3vw, 2.35rem) * var(--display-scale));
  font-weight: var(--display-weight);
  letter-spacing: -0.012em;
  line-height: 1.3;
  text-wrap: pretty;
}

.intro__lead p + p {
  margin-top: 1em;
}

.intro__body {
  margin-top: var(--space-5);
  max-width: var(--container-text);
}

.intro__facts {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.intro__copy .link-arrow {
  margin-top: var(--space-6);
}

@media (min-width: 900px) {
  .intro__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 6vw, 6rem);
  }

  .intro__head {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

/* Services overview: the editorial list (numbered rows under hairlines) until the services have covers; with
   photographs, the grid of service cards (2 columns from 700px, 4 from 1200px). */
.services-grid {
  display: grid;
  gap: var(--grid-gap-y) var(--grid-gap-x);
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.services-list--numbered {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.services-list__item {
  border-bottom: 1px solid var(--line);
}

.services-list__link {
  display: grid;
  grid-template-columns: minmax(2.75rem, 4rem) minmax(0, 1fr) auto;
  gap: var(--space-4) var(--space-5);
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  color: inherit;
  text-decoration: none;
}

.services-list__index {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: calc(clamp(1.5rem, 1.2rem + 1vw, 2.25rem) * var(--display-scale));
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
  line-height: 1;
}

.services-list__name {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(clamp(1.5rem, 1.2rem + 1.1vw, 2.3rem) * var(--display-scale));
  font-weight: var(--display-weight);
  letter-spacing: -0.015em;
  line-height: 1.1;
  transition: color 0.3s var(--ease);
}

.services-list__link:hover .services-list__name {
  color: var(--accent);
}

.services-list__text {
  display: block;
  max-width: 44rem;
  margin-top: 0.45rem;
  color: var(--ink-3);
  font-size: var(--fs-md);
  line-height: 1.55;
}

/* The arrow in a hairline ring; it fills with gold as the row is hovered. */
.services-list__more {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-control);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.services-list__arrow {
  transition: transform 0.35s var(--ease);
}

.services-list__link:hover .services-list__more {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.services-list__link:hover .services-list__arrow {
  transform: translateX(2px);
}

/* Wide screens: the name and the description share the row, the description at the right. */
@media (min-width: 1024px) {
  .services-list__link {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  }

  .services-list__body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-6);
    align-items: baseline;
  }

  .services-list__text {
    margin-top: 0;
  }
}

/* Process: large gold numerals over the titles (a row of steps from 900px, a vertical list on phones). */
.process {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process__step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(3.25rem, 4.5rem) minmax(0, 1fr);
  gap: 0.35rem var(--space-5);
  align-items: start;
}

.process__num {
  grid-row: span 2;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  font-weight: var(--display-weight);
  letter-spacing: -0.03em;
  line-height: 0.85;
}

.process__title {
  margin: 0.2em 0 0;
  font-size: var(--fs-4);
  line-height: 1.2;
}

.process__text {
  grid-column: 2;
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-md);
  line-height: 1.55;
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--space-7) var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--line-strong);
  }

  .process--count-5,
  .process--count-6,
  .process--count-7,
  .process--count-8,
  .process--count-9 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: var(--space-8);
  }

  .process__step {
    display: block;
    padding-right: var(--space-5);
  }

  .process__num {
    display: block;
    margin-bottom: var(--space-4);
  }

  .process__title {
    margin: 0 0 0.5rem;
    max-width: 16ch;
  }
}

/* Testimonials: 1–3 cards on the charcoal band; the opening quote mark in gold. */
.testimonials__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 800px) {
  .testimonials__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.testimonial {
  position: relative;
  margin: 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 1px solid var(--line-on-dark);
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  left: var(--space-5);
  top: -0.35em;
  color: var(--accent-on-dark);
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
}

.testimonial__quote {
  margin: var(--space-4) 0 var(--space-5);
}

.testimonial__quote p {
  margin: 0;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: var(--fs-3);
  font-style: italic;
  font-weight: var(--display-weight);
  line-height: 1.35;
}

.testimonial__by {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.85rem;
  align-items: center;
  color: var(--on-dark-2);
  font-size: var(--fs-sm);
}

.testimonial__photo {
  grid-row: span 2;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__name {
  color: var(--on-dark);
  font-weight: 500;
}

.testimonial__meta a {
  color: var(--accent-on-dark);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-on-dark) 50%, transparent);
}

.testimonial__meta a:hover {
  border-bottom-color: currentColor;
}

/* The CTA band: charcoal by default, ivory with --light. */
.cta-band {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.cta-band--dark {
  --focus-ring: #ffffff;
  background: var(--dark-2);
  color: var(--on-dark-2);
}

.cta-band--light {
  background: var(--paper-2);
}

.cta-band__inner {
  display: grid;
  justify-items: start;
}

.cta-band--dark .eyebrow {
  color: var(--accent-on-dark);
}

.cta-band__title {
  max-width: 16ch;
  margin: 0;
  font-size: var(--fs-1);
  letter-spacing: -0.025em;
  line-height: 1;
}

.cta-band--dark .cta-band__title {
  color: var(--on-dark);
}

.cta-band__text {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  font-size: var(--fs-body);
}

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

@media (max-width: 599px) {
  .cta-band__actions .btn {
    flex: 1 1 100%;
  }
}

/* A dark band straight after a dark one would merge: a gold hairline keeps them apart. */
.section--dark + .cta-band--dark,
.cta-band--dark + .section--dark,
.hero--charcoal + .section--dark {
  border-top: 1px solid color-mix(in srgb, var(--accent-on-dark) 24%, transparent);
}

/* --------------------------------------------------------------------------
   Projects index: the sticky rail (chips + search), the live count, the editorial grid and the cards
   -------------------------------------------------------------------------- */

.projects-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.projects-rail__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-3);
}

.projects-search {
  display: flex;
  align-items: stretch;
  flex: 0 1 18rem;
  min-width: 12rem;
  height: 2.75rem;
  border: 1px solid var(--line-control);
  background: var(--surface);
}

.projects-search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.projects-search__input {
  flex: 1;
  min-width: 0;
  padding: 0 0.9rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-sm);
}

.projects-search__input:focus {
  outline: none;
}

.projects-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.projects-search__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--ink-2);
}

.projects-search__btn:hover {
  color: var(--ink);
}

/* Phones: the chips scroll sideways from the left edge, the search takes the full width beneath. */
@media (max-width: 699px) {
  .projects-rail__inner {
    display: grid;
  }

  .chips {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .chip {
    min-height: 2.75rem;
  }

  .projects-search {
    flex-basis: auto;
    width: 100%;
  }
}

.projects-count {
  margin: 0 0 var(--space-5);
  color: var(--ink-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects-results[aria-busy='true'] {
  min-height: 40vh;
}

/* The editorial grid: per ten cards, 8 + 4 (the lead and an offset portrait), 4 + 4 + 4, then 4 + 8 (the
   lead at the right), 4 + 4 + 4 — twelve columns from 900px, two from 600px, one on phones. */
.projects-grid {
  display: grid;
  gap: var(--grid-gap-y) var(--grid-gap-x);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) and (max-width: 899px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid:not(.projects-grid--even) > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .projects-grid > * {
    grid-column: span 4;
  }

  .projects-grid:not(.projects-grid--even) > :nth-child(10n + 1),
  .projects-grid:not(.projects-grid--even) > :nth-child(10n + 7) {
    grid-column: span 8;
  }

  .projects-grid:not(.projects-grid--even) > :nth-child(10n + 2),
  .projects-grid:not(.projects-grid--even) > :nth-child(10n + 6) {
    margin-top: var(--space-8);
  }

  .projects-grid--even > * {
    grid-column: span 4;
  }
}

/* Related projects on phones: a swipe rail. */
@media (max-width: 599px) {
  .projects-grid--related {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .projects-grid--related::-webkit-scrollbar {
    display: none;
  }

  .projects-grid--related > * {
    scroll-snap-align: start;
  }
}

/* The card: a photograph in a fixed frame, then the caption row — the title at the left, the category and
   year at the right — on a hairline. */
.project-card {
  min-width: 0;
}

.project-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .project-card__media {
    aspect-ratio: 4 / 5;
  }

  .projects-grid:not(.projects-grid--even) > :nth-child(10n + 1) .project-card__media,
  .projects-grid:not(.projects-grid--even) > :nth-child(10n + 7) .project-card__media {
    aspect-ratio: 3 / 2;
  }

  .projects-grid--related .project-card__media {
    aspect-ratio: 4 / 3;
  }
}

/* No photograph yet: a designed frame on the papers with the grid lines and an index numeral. */
.project-card__media--empty {
  display: grid;
  place-items: center;
  background-color: var(--paper-2);
  background-image: linear-gradient(135deg, var(--paper-2), var(--paper-3)), var(--grid-texture);
  background-blend-mode: normal, multiply;
}

.project-card__numeral {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: var(--display-weight);
  line-height: 1;
  opacity: 0.8;
}

.project-card__tag {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 1;
}

.project-card__tag .tag--gold {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
}

.project-card__body {
  padding-top: var(--space-4);
}

.project-card__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.project-card__eyebrow {
  flex: none;
  margin: 0;
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-card__title {
  min-width: 0;
  margin: 0;
  font-size: var(--fs-3);
  letter-spacing: -0.015em;
  line-height: 1.12;
  transition: color 0.3s var(--ease);
}

.project-card:hover .project-card__title {
  color: var(--accent);
}

.project-card--lead .project-card__title {
  font-size: calc(clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem) * var(--display-scale));
}

.project-card__meta {
  margin: 0.4rem 0 0;
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* "View project" shows for mouse users on hover; it is always there for touch and keyboard users. */
@media (hover: hover) and (pointer: fine) {
  .project-card__cta {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }

  .project-card:hover .project-card__cta,
  .project-card:focus-within .project-card__cta {
    opacity: 1;
    transform: none;
  }
}

/* Phones: the caption stacks when the title is long. */
@media (max-width: 479px) {
  .project-card__caption {
    flex-wrap: wrap;
  }
}

/* Cards in a revealed grid arrive one after another (60 ms apart). */
.reveal-ready [data-reveal].is-revealed:not(.is-instant) .projects-grid > * {
  animation: rise 0.6s var(--ease-out) both;
}

.reveal-ready [data-reveal].is-revealed:not(.is-instant) .projects-grid > :nth-child(2) { animation-delay: 0.06s; }
.reveal-ready [data-reveal].is-revealed:not(.is-instant) .projects-grid > :nth-child(3) { animation-delay: 0.12s; }
.reveal-ready [data-reveal].is-revealed:not(.is-instant) .projects-grid > :nth-child(4) { animation-delay: 0.18s; }
.reveal-ready [data-reveal].is-revealed:not(.is-instant) .projects-grid > :nth-child(5) { animation-delay: 0.24s; }
.reveal-ready [data-reveal].is-revealed:not(.is-instant) .projects-grid > :nth-child(6) { animation-delay: 0.3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

/* Nothing published at all (the index): the designed empty state on the second paper with the drawing. */
.projects-empty {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 48vh;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  background-color: var(--paper-2);
  background-image: var(--grid-texture);
}

.projects-empty::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grid-texture);
}

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

.projects-empty__title {
  max-width: 14ch;
  margin: 0;
  font-size: var(--fs-1);
  letter-spacing: -0.025em;
  line-height: 1;
}

.projects-empty__text {
  max-width: 30rem;
  margin: 1.25rem 0 2rem;
  color: var(--ink-3);
  font-size: var(--fs-body);
}

.projects-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The homepage's "projects are being prepared" band (sections.js featuredProjects without data): the
   statement at the left, the drawing sheet at the right on the charcoal band. */
.projects-soon {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.projects-soon__title {
  max-width: 12ch;
  margin: 0;
  color: var(--on-dark);
  font-size: var(--fs-1);
  letter-spacing: -0.025em;
  line-height: 1;
}

.projects-soon__body {
  max-width: 30rem;
  margin: 1.25rem 0 2rem;
  color: var(--on-dark-2);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.projects-soon__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.projects-soon__drawing {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  color: var(--accent-on-dark);
  opacity: 0.55;
}

.projects-soon__drawing .elevation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .projects-soon {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(2rem, 6vw, 6rem);
  }

  .projects-soon__drawing {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

/* A filter or search with no match. */
.projects-none {
  padding: var(--space-7) 0;
  text-align: center;
}

.projects-none__text {
  margin: 0 0 var(--space-4);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-3);
}

.projects-more {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.projects-more__status {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Project page: cover, facts bar, editorial columns with a sticky aside, lists, gallery, the phone bar
   -------------------------------------------------------------------------- */

.project-cover {
  --focus-ring: #ffffff;
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(420px, 70vh, 820px);
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.project-cover__media {
  position: absolute;
  inset: 0;
}

.project-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.82) 0%, rgba(10, 9, 8, 0.45) 35%, rgba(10, 9, 8, 0.1) 55%, rgba(10, 9, 8, 0.2) 100%);
}

.project-cover__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.project-cover .breadcrumbs ol,
.project-cover .breadcrumbs a {
  color: var(--on-dark-2);
}

.project-cover .breadcrumbs a:hover {
  color: var(--on-dark);
}

.project-cover__eyebrow {
  color: var(--accent-on-dark);
}

.project-cover__title {
  max-width: 16ch;
  margin: 0;
  color: var(--on-dark);
  font-size: var(--fs-1);
  line-height: 1.02;
}

.project-cover__sub {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--on-dark-2);
  font-size: var(--fs-body);
}

/* Without a photograph: the charcoal band with the drawing sheet at the right, fading under the title. */
.project-cover--plain {
  min-height: clamp(360px, 52vh, 600px);
  background: var(--dark);
  isolation: isolate;
}

.project-cover__plate {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(64%, 1100px);
  color: var(--accent-on-dark);
  opacity: 0.42;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%);
  mask-image: linear-gradient(to right, transparent 0, #000 34%);
}

.project-cover__plate .elevation {
  position: absolute;
  inset: 0;
}

@media (max-width: 1023px) {
  .project-cover__plate {
    width: 100%;
    opacity: 0.2;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .project-cover__plate .elevation__dims,
  .project-cover__plate .elevation__title {
    display: none;
  }
}

/* The facts bar sticks under the header while the content scrolls (desktop). */
.facts-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  padding-block: var(--space-4);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1023px) {
  .facts-bar {
    position: static;
  }

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

.project__layout {
  display: grid;
  gap: var(--space-7);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 1024px) {
  .project__layout {
    grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
    gap: var(--space-8);
    align-items: start;
  }

  .project__aside {
    position: sticky;
    top: calc(var(--header-h) + 4.5rem + var(--space-5));
  }
}

.project__content {
  min-width: 0;
  max-width: var(--container-text);
}

.project__heading,
.service__heading {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-3);
}

.project__content > * + .project__heading,
.service__content > * + .service__heading {
  margin-top: var(--space-7);
}

.project__prose,
.service__prose {
  font-size: var(--fs-body);
}

/* Scope of work: gold check bullets; the numbered variant (services) uses gold numerals. */
.scope-list,
.deliverables {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.scope-list li,
.deliverables li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.55;
}

.scope-list li::before,
.deliverables li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.scope-list--numbered {
  counter-reset: scope;
}

.scope-list--numbered li {
  padding-left: 2.5rem;
  counter-increment: scope;
}

.scope-list--numbered li::before {
  content: counter(scope, decimal-leading-zero);
  top: 0.05em;
  width: auto;
  height: auto;
  border: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.15em;
  transform: none;
}

.materials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The aside: facts stacked, the two actions, the share row. */
.project__aside-inner,
.service__aside-inner {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--line);
  background: var(--surface);
}

.project__facts {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}

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

.project__share {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.project__share .text-button {
  min-height: 2.75rem;
  font-size: var(--fs-sm);
}

/* The gallery: two columns from 700px; landscape photos span both. */
.project-gallery,
.service-gallery {
  padding-block: 0 clamp(3rem, 8vw, 6rem);
}

.project-gallery__heading,
.service-gallery__heading {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: 0 auto var(--space-5);
  font-size: var(--fs-3);
}

.project-gallery__grid,
.service-gallery__grid {
  display: grid;
  gap: var(--grid-gap-x);
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

@media (min-width: 700px) {
  .project-gallery__grid,
  .service-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery__item--wide,
  .service-gallery__item--wide {
    grid-column: 1 / -1;
  }
}

.project-gallery__item,
.service-gallery__item {
  margin: 0;
  min-width: 0;
}

.gallery__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery__zoom img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.gallery__zoom:hover img {
  transform: scale(1.02);
}

.project-gallery__caption,
.service-gallery__caption {
  margin: 0.6rem 0 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

/* The phone project bar: fixed to the bottom edge once the cover has scrolled past (project-page.js). */
.project-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

.project-bar.is-shown {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease);
}

.project-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.4rem max(var(--space-4), env(safe-area-inset-right)) calc(0.4rem + env(safe-area-inset-bottom)) max(var(--space-4), env(safe-area-inset-left));
}

.project-bar__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--display-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-bar__btn {
  flex: none;
}

.project-bar__wa {
  flex: none;
  color: var(--whatsapp);
}

@media (max-width: 1023px) {
  .project-bar {
    display: block;
  }

  body.has-project-bar .site-footer {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  /* The project bar carries WhatsApp on phones; the floating button steps out. */
  .floating-whatsapp--desktop-only {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Services: the index (numbered editorial rows under the charcoal intro band), the homepage grid card with
   its designed tile without a cover, the service page
   -------------------------------------------------------------------------- */

/* The intro band's count line: the number of services in Cormorant, the sentence beside it. */
.page-hero__count {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  max-width: 40rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--accent-on-dark) 30%, transparent);
  color: var(--on-dark-2);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.page-hero__count-num {
  flex: none;
  color: var(--accent-on-dark);
  font-family: var(--font-display);
  font-size: calc(2.5rem * var(--display-scale));
  font-weight: var(--display-weight);
  line-height: 0.9;
}

.services-index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.services-index__item {
  border-bottom: 1px solid var(--line);
}

.services-index__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(3.5rem, 5rem) minmax(0, 1fr) auto;
  gap: var(--space-4) var(--space-5);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 3rem) 0;
  color: inherit;
  text-decoration: none;
}

.services-index__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  font-weight: var(--display-weight);
  letter-spacing: -0.03em;
  line-height: 0.85;
}

.services-index__body {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.services-index__title {
  margin: 0;
  font-size: calc(clamp(1.6rem, 1.25rem + 1.4vw, 2.6rem) * var(--display-scale));
  letter-spacing: -0.018em;
  line-height: 1.05;
  transition: color 0.3s var(--ease);
}

.services-index__link:hover .services-index__title {
  color: var(--accent);
}

.services-index__text {
  display: block;
  max-width: 40rem;
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.services-index__cta {
  justify-self: start;
  margin-top: 0.5rem;
}

.services-index__media {
  display: block;
  grid-column: 2;
  aspect-ratio: 4 / 3;
  max-width: 28rem;
  margin-top: var(--space-3);
  overflow: hidden;
  background: var(--paper-2);
}

.services-index__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.services-index__link:hover .services-index__img {
  transform: scale(1.03);
}

/* The arrow at the right: a hairline ring that fills with gold on hover (mouse only on wide screens). */
.services-index__arrow {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-control);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.services-index__link:hover .services-index__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: translateX(4px);
}

@media (min-width: 1024px) {
  .services-index__link {
    grid-template-columns: 6rem minmax(0, 7fr) minmax(0, 4fr) auto;
    align-items: center;
  }

  .services-index__media {
    grid-column: 3;
    grid-row: 1;
    max-width: none;
    margin-top: 0;
  }

  .services-index__item:not(:has(.services-index__media)) .services-index__body {
    grid-column: 2 / 4;
  }
}

@media (max-width: 599px) {
  .services-index__link {
    grid-template-columns: minmax(2.75rem, 3.5rem) minmax(0, 1fr);
  }

  .services-index__arrow {
    display: none;
  }
}

/* The homepage grid card (with covers): the index numeral over the photograph, the text beneath. */
.service-row {
  min-width: 0;
}

.service-row__link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.service-row__index {
  position: absolute;
  left: var(--space-4);
  top: var(--space-3);
  z-index: 1;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: var(--display-weight);
  line-height: 1;
}

.service-row__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}

.service-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No cover: the tile on the second paper with the grid lines and the service's icon in gold. */
.service-tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--paper-2);
  color: var(--accent);
}

.service-row__media .service-row__index {
  position: absolute;
}

.service-row__body {
  padding-top: var(--space-4);
}

.service-row__title {
  margin: 0;
  font-size: var(--fs-3);
  line-height: 1.15;
}

.service-row__text {
  margin: 0.5rem 0 0.9rem;
  color: var(--ink-3);
  font-size: var(--fs-md);
  line-height: 1.55;
}

/* The service page: dark hero (page-hero--dark), 8/4 layout, numbered scope, check-marked deliverables. */
.service__layout {
  display: grid;
  gap: var(--space-7);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 1024px) {
  .service__layout {
    grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
    gap: var(--space-8);
    align-items: start;
  }

  .service__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
  }
}

.service__content {
  min-width: 0;
  max-width: var(--container-text);
}

.service__related-label {
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service__related ul {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service__related .link-arrow {
  white-space: normal;
}

.page-hero--dark .page-hero__actions {
  margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   Page heroes, studio (founder, philosophy, values), approach (timeline, note), contact page
   -------------------------------------------------------------------------- */

.page-hero--compact {
  padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(1.75rem, 3.5vw, 2.75rem);
}

.page-hero--plain {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner .eyebrow {
  margin-bottom: 0.9rem;
}

/* The studio's introduction: the first paragraph as a large statement in Cormorant, the rest at reading size. */
.studio__intro .prose--page {
  max-width: 52rem;
  font-size: calc(var(--fs-body) + 0.0625rem);
}

.studio__intro .prose--page > :is(h2, h3):first-child {
  margin: 0 0 var(--space-4);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.studio__intro .prose--page > p:first-of-type {
  margin-bottom: 1.25em;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(clamp(1.5rem, 1.15rem + 1.3vw, 2.35rem) * var(--display-scale));
  font-weight: var(--display-weight);
  letter-spacing: -0.012em;
  line-height: 1.3;
  text-wrap: pretty;
}

/* The founder: a 4:5 portrait beside the name, title and biography (text alone works too). */
.founder {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 800px) {
  .founder {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
}

.founder__photo {
  max-width: 320px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}

.founder__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__name {
  margin: 0;
  font-size: var(--fs-2);
}

.founder__title {
  margin: 0.5rem 0 var(--space-5);
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.founder__bio {
  max-width: var(--container-text);
}

/* Philosophy on the charcoal band. */
.philosophy__inner {
  max-width: var(--container-text);
}

.philosophy__title {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-2);
}

/* Values: numbered cells, 2 columns from 700px, 3 from 1100px. */
.values__heading {
  margin: 0 0 var(--head-gap);
  font-size: var(--fs-2);
}

.values {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.value {
  padding: var(--space-6) var(--space-5);
  background: var(--paper);
}

.value__index {
  display: block;
  margin-bottom: var(--space-5);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  font-weight: var(--display-weight);
  letter-spacing: -0.03em;
  line-height: 0.85;
}

.value__title {
  margin: 0 0 0.6rem;
  font-size: var(--fs-3);
  line-height: 1.15;
}

.value__text {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--fs-md);
  line-height: 1.55;
}

/* The approach timeline: numerals on a vertical gold hairline (from 700px), a rule above each step on phones. */
.timeline {
  display: grid;
  gap: 0;
  max-width: 52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__step {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}

.timeline__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  font-weight: var(--display-weight);
  letter-spacing: -0.03em;
  line-height: 0.85;
}

.timeline__title {
  margin: 0;
  font-size: calc(clamp(1.6rem, 1.25rem + 1.4vw, 2.6rem) * var(--display-scale));
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.timeline__text {
  max-width: var(--container-text);
  margin: 0.5rem 0 0;
  color: var(--ink-2);
  line-height: 1.65;
}

.timeline__scope {
  margin-top: var(--space-3);
}

@media (min-width: 700px) {
  .timeline__step {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: var(--space-6);
    padding: var(--space-7) 0;
    border-top: 0;
  }

  .timeline__step::before {
    content: '';
    position: absolute;
    left: 2.6rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--accent);
    opacity: 0.6;
  }

  .timeline__step:first-child::before {
    top: var(--space-7);
  }

  .timeline__step:last-child::before {
    bottom: auto;
    height: var(--space-7);
  }

  .timeline__num {
    position: relative;
    z-index: 1;
    width: max-content;
    padding: 0.25rem 0.5rem 0.25rem 0;
    background: var(--paper);
  }
}

.approach__note-inner {
  max-width: var(--container-text);
}

.approach__note-title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-3);
}

/* The contact page: the form (7) and the methods panel (5) from 1024px; methods first on phones. */
.contact-page {
  display: grid;
  gap: var(--space-6);
}

.contact-page__methods {
  order: -1;
}

@media (min-width: 1024px) {
  .contact-page {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }

  .contact-page__methods {
    order: 0;
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
  }
}

.contact-page__social {
  margin-top: var(--space-5);
}

.contact-page__note {
  margin: var(--space-5) 0 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

.contact-method__map {
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
}

.contact-method__value address {
  font-style: normal;
}

/* The closing panel on the studio and approach pages. */
.cta-panel .eyebrow {
  justify-content: center;
}

.cta-panel__title {
  margin: 0 0 var(--space-6);
}

/* 404: the three links in a row. */
.not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Touch targets, reduced motion, print
   -------------------------------------------------------------------------- */

/* 44px targets below 1024px and on coarse pointers (WCAG 2.5.8 and comfort). */
@media (max-width: 1023px), (pointer: coarse) {
  .btn,
  .chip,
  .link-arrow,
  .text-button,
  .site-nav__link,
  .breadcrumbs a,
  .site-footer__policies a,
  .site-footer__columns a,
  .contact-method,
  .project-card__cta,
  .services-list__link,
  .service__related a,
  .projects-search__btn,
  .gallery__zoom {
    min-height: 2.75rem;
  }

  .breadcrumbs a,
  .site-footer__policies a,
  .site-footer__columns a,
  .link-arrow,
  .text-button {
    display: inline-flex;
    align-items: center;
  }

  .icon-button {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Reduced motion: no transforms, no reveals, no zoom, no slides — content is simply there. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-ready [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }

  .card-frame:hover img,
  .card-frame:focus-within img,
  .gallery__zoom:hover img,
  .link-arrow:hover svg,
  .services-list__link:hover .services-list__arrow,
  .services-index__link:hover .services-index__arrow,
  .services-index__link:hover .services-index__img,
  .floating-whatsapp:hover {
    transform: none;
  }

  .hero__scroll-line {
    animation: none;
    transform: none;
  }

  .project-card__cta {
    opacity: 1;
    transform: none;
  }

  .category-card__photo {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .staff-bar,
  .floating-whatsapp,
  .project-bar,
  .cta-band,
  .topbar,
  dialog {
    display: none !important;
  }
}

/* Toast (core.js) */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  translate: -50% 0;
  animation: toast-in 0.35s var(--ease-out);
}

@media (max-width: 1023px) {
  body:has(.project-bar.is-shown) .toast {
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

/* ==========================================================================
   Homepage v2 (15 Oct 2026) — the owner's brief and reference site: a light, airy page on warm ivory and
   beige bands; the project slideshow under the ivory header; the numbers strip; About (photos left) and
   Vision (photos right) with rotating photos; services and process as short cards with circled numerals;
   centred section heads; cards with soft edges. Class names: sections.js, hero.js, rotator.js.
   ========================================================================== */

:root {
  --radius-card: 6px;
  --shadow-card: 0 1px 2px rgba(60, 45, 25, 0.04), 0 18px 40px -28px rgba(60, 45, 25, 0.28);
  --shadow-card-hover: 0 2px 4px rgba(60, 45, 25, 0.05), 0 28px 60px -30px rgba(60, 45, 25, 0.38);
  --fs-1: calc(clamp(2.1rem, 1.45rem + 2.3vw, 3.6rem) * var(--display-scale));
  --fs-2: calc(clamp(1.9rem, 1.45rem + 1.5vw, 2.9rem) * var(--display-scale));
}

/* Centred section heads (eyebrow between two short hairlines, serif title, one muted line). */
.section-head--center {
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-head--center .section-head__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head--center .section-head__title {
  max-width: 22ch;
}

.section-head--center .section-head__sub {
  max-width: 40rem;
  margin-inline: auto;
}

.section-head--center .eyebrow::before,
.section-head--center .eyebrow::after {
  content: '';
  display: block;
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-more {
  display: flex;
  justify-content: center;
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
}

.t-caps {
  font-size: 0.9em;
  letter-spacing: 0.06em;
}

/* --- Hero: the project slideshow ---------------------------------------- */

.hero--slides {
  --focus-ring: #ffffff;
  display: grid;
  align-items: end;
  min-height: max(34rem, min(calc(100svh - var(--header-h)), 62rem));
  background: var(--dark);
  color: #ffffff;
}

.hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.hero__slide.is-leaving {
  z-index: 1;
  opacity: 1;
  transition: none;
}

.hero__slide.is-active {
  z-index: 2;
  opacity: 1;
}

.hero__slide picture,
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__img {
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: 50% 60%;
}

.hero__slide.is-zooming .hero__img {
  transform: scale(1.045);
  transition: transform calc(var(--interval, 6s) + 4s) linear;
}

.hero__slides--top .hero__img { object-position: center top; }
.hero__slides--bottom .hero__img { object-position: center bottom; }
.hero__slides--left .hero__img { object-position: left center; }
.hero__slides--right .hero__img { object-position: right center; }

/* A warm scrim: darker behind the text and at the foot (the controls), light at the top. */
.hero--slides .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 75% 55% at 50% 72%, rgba(24, 18, 12, calc(var(--scrim, 0.4) + 0.12)) 0%, rgba(24, 18, 12, calc(var(--scrim, 0.4) * 0.5)) 70%, transparent 100%),
    linear-gradient(to bottom, rgba(24, 18, 12, 0.18) 0%, rgba(24, 18, 12, calc(var(--scrim, 0.4) * 0.4)) 45%, rgba(24, 18, 12, calc(var(--scrim, 0.4) + 0.22)) 100%);
}

.hero--left .hero__scrim {
  background:
    linear-gradient(to right, rgba(24, 18, 12, calc(var(--scrim, 0.4) + 0.2)) 0%, rgba(24, 18, 12, calc(var(--scrim, 0.4) * 0.5)) 55%, transparent 85%),
    linear-gradient(to bottom, transparent 55%, rgba(24, 18, 12, calc(var(--scrim, 0.4) + 0.15)) 100%);
}

.hero--slides .hero__inner {
  z-index: 4;
  padding-block: clamp(4rem, 10vh, 6rem) clamp(6.5rem, 15vh, 9.5rem);
}

.hero--slides .hero__content {
  max-width: 64rem;
  text-shadow: 0 1px 18px rgba(20, 14, 8, 0.35);
}

.hero--center .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.hero--slides .hero__title {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: inherit;
  line-height: 1;
  letter-spacing: 0;
}

.hero__kicker {
  display: block;
  margin-bottom: clamp(0.85rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__name {
  display: block;
  font-size: var(--fs-hero);
  font-weight: var(--display-weight);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__name--caps {
  font-size: calc(clamp(2.6rem, 0.9rem + 5.2vw, 5.9rem) * var(--display-scale));
  letter-spacing: 0.07em;
  line-height: 1.04;
  /* The tracking adds space after the last letter: pull it back so the name is truly centred. */
  margin-right: -0.07em;
}

.hero__divider {
  position: relative;
  display: block;
  width: 5.5rem;
  height: 1px;
  margin: clamp(1.25rem, 2.4vw, 1.75rem) 0 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.hero__divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent-on-dark);
  background: rgba(24, 18, 12, 0.6);
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero--left .hero__divider {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.8), transparent);
}

.hero--left .hero__divider span {
  left: 0;
  transform: translate(0, -50%) rotate(45deg);
}

.hero--slides .hero__text {
  max-width: 38rem;
  margin: clamp(1.1rem, 2vw, 1.5rem) 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem);
  line-height: 1.55;
}

.hero--slides .hero__text--caps {
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero--slides .hero__actions {
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 3.4vw, 2.5rem);
}

.hero--left .hero__actions {
  justify-content: flex-start;
}

.hero--slides .hero__actions .btn {
  min-width: 13.5rem;
  min-height: 3.1rem;
  letter-spacing: 0.16em;
  text-shadow: none;
}

.hero--slides .hero__eyebrow {
  margin-bottom: 1rem;
}

/* Controls at the foot: pause, one hairline per photo (the active one fills over the interval), the count. */
.hero__controls {
  position: absolute;
  right: 0;
  bottom: clamp(1.25rem, 3.6vh, 2.25rem);
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero__toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(24, 18, 12, 0.25);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero__toggle:hover {
  border-color: #ffffff;
  background: rgba(24, 18, 12, 0.5);
}

.hero__toggle-play,
.hero.is-paused .hero__toggle-pause {
  display: none;
}

.hero.is-paused .hero__toggle-play {
  display: block;
}

.hero__dots {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__dot {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero__dot::before,
.hero__dot-bar {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
}

.hero__dot::before {
  background: rgba(255, 255, 255, 0.38);
  transition: background-color 0.3s var(--ease);
}

.hero__dot:hover::before {
  background: rgba(255, 255, 255, 0.7);
}

.hero__dot-bar {
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
}

.hero__dot.is-active .hero__dot-bar {
  transform: scaleX(1);
}

.hero.is-running .hero__dot.is-active .hero__dot-bar {
  animation: hero-progress var(--interval, 6s) linear both;
}

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero__count {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
}

.hero__count-sep {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

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

.hero--slides .hero__scroll {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 599px) {
  .hero--slides {
    min-height: max(32rem, calc(100svh - var(--header-h)));
  }

  .hero--slides .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
  }

  .hero--left .hero__actions {
    align-items: flex-start;
  }

  .hero--slides .hero__actions .btn {
    min-width: 0;
  }

  .hero__dot {
    width: 1.6rem;
  }
}

/* --- Numbers strip ------------------------------------------------------ */

.stats {
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.section.stats + .section:not(.section--tinted) {
  padding-top: var(--section);
}

.stats__list {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  row-gap: var(--space-7);
  max-width: 68rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.stats__list--1 { --cols: 1; }
.stats__list--2 { --cols: 2; }
.stats__list--4 { --cols: 4; }

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem clamp(0.5rem, 2vw, 1.5rem);
  text-align: center;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 0;
  width: 1px;
  background: var(--line);
}

.stats__list:not(.stats__list--4) .stat:nth-child(3n + 1)::before {
  display: none;
}

.stat__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.stat__icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
}

.stat__value {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(clamp(2.4rem, 1.9rem + 1.8vw, 3.6rem) * var(--display-scale));
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: var(--display-weight);
  letter-spacing: -0.01em;
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 0.7rem;
  color: var(--ink-2);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-transform: uppercase;
}

@media (max-width: 599px) {
  .stats__list--4,
  .stats__list:not(.stats__list--1):not(.stats__list--2):not(.stats__list--3) {
    --cols: 2;
  }

  .stats__list--4 .stat:nth-child(2n + 1)::before {
    display: none;
  }

  .stat {
    padding-inline: 0.35rem;
  }

  .stat__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.85rem;
  }

  .stat__icon svg {
    width: 18px;
    height: 18px;
  }

  .stat__label {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
  }
}

/* --- About and Vision: photos on one side, the story on the other ------- */

.split__inner {
  display: grid;
  gap: clamp(2.75rem, 6vw, 6rem);
  align-items: center;
}

.split__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 36rem;
}

.split__title {
  max-width: 18ch;
  margin: 0;
  font-size: var(--fs-2);
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.split__rule {
  margin: 1.5rem 0 1.6rem;
}

.split__lead {
  color: var(--ink);
  font-size: calc(var(--fs-body) * 1.06);
  line-height: 1.7;
}

.split__lead p {
  margin: 0 0 1rem;
}

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

.split__body {
  margin-top: 1rem;
  color: var(--ink-2);
}

.split__facts {
  width: 100%;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.split__cta {
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .split__inner {
    grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  }

  .split--reverse .split__inner {
    grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  }

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

  .split--reverse .split__text {
    justify-self: end;
  }
}

/* The rotating photos: stacked in one frame; the active one fades in over the last (rotator.js). A gold
   hairline frame sits offset behind the photo; the dots and the pause button run under it. */
.rotator,
.media-plate {
  position: relative;
  isolation: isolate;
}

.rotator::before,
.media-plate::before {
  content: '';
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) calc(-1 * clamp(0.75rem, 2vw, 1.5rem)) calc(-1 * clamp(0.75rem, 2vw, 1.5rem));
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-card);
  pointer-events: none;
}

.rotator--right::before,
.media-plate--right::before {
  inset: clamp(0.75rem, 2vw, 1.5rem) calc(-1 * clamp(0.75rem, 2vw, 1.5rem)) calc(-1 * clamp(0.75rem, 2vw, 1.5rem)) clamp(0.75rem, 2vw, 1.5rem);
}

.rotator__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
}

.rotator__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0s linear 1.3s;
}

.rotator__slide.is-active {
  z-index: 1;
  opacity: 1;
  transition: opacity 1.2s var(--ease);
}

.rotator__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0s linear 1.3s;
}

.rotator__slide.is-active .rotator__img {
  transform: scale(1.035);
  transition: transform 8s linear;
}

.rotator__bar {
  position: absolute;
  right: 0;
  bottom: 0.85rem;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.rotator__toggle {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(24, 18, 12, 0.4);
  color: #ffffff;
  cursor: pointer;
}

.rotator__toggle:hover {
  background: rgba(24, 18, 12, 0.65);
}

.rotator__play,
.rotator.is-paused .rotator__pause {
  display: none;
}

.rotator.is-paused .rotator__play {
  display: block;
}

.rotator__dots {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(24, 18, 12, 0.32);
  list-style: none;
}

.rotator__dot {
  position: relative;
  display: block;
  width: 1.1rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.rotator__dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease);
}

.rotator__dot.is-active::before {
  width: 18px;
  background: #ffffff;
}

.rotator__dot.is-active {
  width: 1.75rem;
}

/* Without photos: the drawing sheet on a beige plate (never an empty box). */
.media-plate {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--paper-2);
  background-image: var(--grid-texture);
  color: var(--accent);
}

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

.media-plate__drawing {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  opacity: 0.7;
}

/* --- Services: cards with a circled numeral (2 columns from 768px) ------ */

.expertise {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.expertise__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  height: 100%;
  padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.expertise__link:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.expertise__num,
.process-card__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-variant-numeric: lining-nums;
  font-weight: var(--display-weight);
  line-height: 1;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.expertise__link:hover .expertise__num,
.process-card:hover .process-card__num {
  background: var(--accent);
  color: var(--surface);
}

.expertise__name {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem) * var(--display-scale));
  font-weight: var(--display-weight);
  line-height: 1.15;
}

.expertise__text {
  display: -webkit-box;
  margin-top: 0.35rem;
  overflow: hidden;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.expertise__arrow {
  color: var(--line-control);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.expertise__link:hover .expertise__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

@media (min-width: 768px) {
  .expertise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise--odd .expertise__item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - clamp(0.85rem, 1.6vw, 1.25rem) / 2);
  }
}

/* --- Process: short cards with a circled numeral, joined by a hairline --- */

.process-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 2.4vw, 2rem) clamp(1rem, 1.6vw, 1.4rem) clamp(1.4rem, 2.2vw, 1.85rem);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.process-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.process-card__num {
  margin-bottom: 1.1rem;
  background: var(--surface);
}

.process-card__title {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: calc(clamp(1.2rem, 1.1rem + 0.35vw, 1.4rem) * var(--display-scale));
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.process-card__text {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.process-cards__more {
  display: flex;
  justify-content: center;
  margin: clamp(2rem, 3.5vw, 2.75rem) 0 0;
}

@media (max-width: 599px) {
  .process-cards--3 .process-card:last-child,
  .process-cards--5 .process-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .process-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .process-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .process-cards--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  /* The hairline through the numerals, visible in the gaps between the cards. */
  .process-cards::before {
    content: '';
    position: absolute;
    top: calc(clamp(1.5rem, 2.4vw, 2rem) + 1.55rem);
    right: 8%;
    left: 8%;
    height: 1px;
    background: color-mix(in srgb, var(--accent) 45%, transparent);
  }
}

/* --- Projects "being prepared": light, on ivory, the drawing on a beige plate --- */

.projects-soon--light .projects-soon__title {
  color: var(--ink);
}

.projects-soon--light .projects-soon__body {
  color: var(--ink-2);
}

.projects-soon--light .projects-soon__drawing {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--paper-2);
  background-image: var(--grid-texture);
  color: var(--accent);
  opacity: 1;
}

.projects-soon--light .projects-soon__drawing .elevation {
  inset: 7%;
  width: 86%;
  height: 86%;
  opacity: 0.7;
}

/* --- Reduced motion: no zoom, no progress line; photos change only on request --- */

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__slide.is-active,
  .rotator__slide,
  .rotator__slide.is-active {
    transition: none;
  }

  .hero__slide.is-zooming .hero__img,
  .rotator__slide.is-active .rotator__img {
    transform: none;
    transition: none;
  }

  .hero.is-running .hero__dot.is-active .hero__dot-bar {
    animation: none;
  }

  .expertise__link,
  .process-card {
    transition: none;
  }

  .expertise__link:hover,
  .process-card:hover {
    transform: none;
  }
}

/* --- Header: small tracked capitals in the navigation, as on the reference site --- */

.site-nav__link {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* The slideshow has its own controls at the foot: no scroll cue there. */
.hero--slides .hero__scroll {
  display: none;
}

.t-caps {
  white-space: nowrap;
}

/* --- Call to action: centred on the warm charcoal band --- */

.cta-band__inner {
  justify-items: center;
  text-align: center;
}

.cta-band__inner .eyebrow {
  justify-content: center;
}

.cta-band__inner .eyebrow::after {
  content: '';
  display: block;
  flex: none;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

.cta-band__title {
  max-width: 20ch;
}

.cta-band__text {
  margin-inline: auto;
}

.cta-band__actions {
  justify-content: center;
}

/* --- Testimonials: light cards on the beige band --- */

.testimonials--light .testimonial {
  padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 2.4vw, 2rem) clamp(1.5rem, 2.4vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.testimonials--light .testimonial::before {
  top: 0.15em;
  color: var(--accent);
  font-size: 4rem;
  opacity: 0.55;
}

.testimonials--light .testimonial__quote p {
  color: var(--ink);
}

.testimonials--light .testimonial__by {
  color: var(--ink-2);
}

.testimonials--light .testimonial__name {
  color: var(--ink);
}

.testimonials--light .testimonial__meta a {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* --- Contact band with the consultation form --- */

.contact-band--form {
  background: var(--paper);
}

.contact-band__inner--form {
  align-items: start;
}

.contact-band--form .contact-band__title {
  max-width: 16ch;
  font-size: var(--fs-2);
}

.contact-methods--compact {
  margin-top: 1.75rem;
}

.contact-methods--compact .contact-method {
  padding: 0.85rem 0;
}

.contact-methods--compact .contact-method__icon {
  width: 2.5rem;
  height: 2.5rem;
}

.contact-band__form {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.contact-band__form-title {
  font-size: var(--fs-3);
  text-align: left;
}

@media (min-width: 900px) {
  .contact-band__inner--form {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }

  .contact-band__inner--form .contact-band__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* Form rows: each field keeps its own height (a hint under one field never stretches its neighbour). */
.field {
  align-content: start;
}

.field-row {
  align-items: start;
}

.field__label {
  line-height: 1.4;
}

/* The section after the numbers strip keeps its full top space (the strip has its own background). */
.section.stats + .section:not(.section--tinted):not(.contact-band):not(.stats) {
  padding-top: var(--section);
}

/* ==========================================================================
   v3 (15 Oct 2026, docs/SPEC-V3.md §3) — the call pill beside WhatsApp, the Google rating badge, the FAQ,
   project facts and filters, "From drawing to handover" (stage timeline, before/after), the Journal.
   Same language as Homepage v2: warm ivory and beige, hairlines, soft cards, Cormorant titles, gold marks.
   ========================================================================== */

/* --- Floating actions: the call pill above / beside WhatsApp (layout.js floatingActions) --- */

.floating-actions {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

/* Inside the group the WhatsApp button is laid out by the group, not fixed on its own. */
.floating-actions .floating-whatsapp {
  position: static;
}

.fw-ready .floating-actions.is-hidden {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

@media (scripting: enabled) {
  body.has-overlay-header .floating-actions:not(.is-shown) {
    opacity: 0;
    visibility: hidden;
  }
}

.floating-call,
.floating-whatsapp--pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.3rem 0 1.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* The call pill: warm charcoal with a gold mark, as on the reference site. */
.floating-call {
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: 0 14px 32px -14px rgba(30, 22, 12, 0.6), 0 0 0 1px color-mix(in srgb, var(--on-dark) 10%, transparent) inset;
}

.floating-call svg {
  color: var(--accent-on-dark);
}

.floating-call:hover {
  background: color-mix(in srgb, var(--dark) 88%, #ffffff);
  transform: translateY(-2px);
}

/* With the call pill, WhatsApp becomes its light twin: cream pill, green mark, ink text. */
.floating-whatsapp--pill {
  width: auto;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 32px -16px rgba(60, 45, 25, 0.45);
}

.floating-whatsapp--pill svg {
  color: var(--whatsapp);
}

.floating-whatsapp--pill:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* Phones: one row at the bottom right — the call pill and WhatsApp folded to a circle beside it. */
@media (max-width: 767px) {
  .floating-actions--pair {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .floating-call {
    min-height: 2.875rem;
    padding: 0 1.1rem 0 0.95rem;
    font-size: 0.6875rem;
  }

  .floating-whatsapp--pill {
    justify-content: center;
    width: 2.875rem;
    min-height: 2.875rem;
    padding: 0;
  }

  .floating-whatsapp__label {
    display: none;
  }
}

/* The project page: the project bar carries the actions below 1024px. */
@media (max-width: 1023px) {
  .floating-actions--desktop-only {
    display: none;
  }

  html[data-staff='1'] .floating-actions {
    bottom: calc(3.25rem + env(safe-area-inset-bottom));
  }
}

@media print {
  .floating-actions {
    display: none;
  }
}

/* --- Google rating badge (common.js googleRating): gold stars filled to the rating, a quiet line, a link --- */

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.rating__stars {
  position: relative;
  display: inline-flex;
  flex: none;
  line-height: 0;
}

.rating__stars-base,
.rating__stars-fill {
  display: inline-flex;
  gap: 2px;
}

.rating__stars-base {
  color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.rating__stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--accent);
  white-space: nowrap;
}

.rating__stars-fill svg {
  flex: none;
  fill: currentColor;
}

.rating__value {
  color: var(--ink);
  font-weight: 600;
}

.rating__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color 0.25s var(--ease);
}

.rating__link:hover {
  border-bottom-color: var(--accent);
}

/* Under the numbers strip and in the testimonials head: a soft cream pill, centred. */
.stats__rating,
.testimonials__rating {
  width: fit-content;
  max-width: 100%;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  padding: 0.55rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.testimonials__rating {
  margin: calc(-1 * clamp(1rem, 2vw, 1.75rem)) auto clamp(2rem, 3.5vw, 2.75rem);
}

.contact-page__rating {
  justify-content: flex-start;
  margin: var(--space-5) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

/* Footer (on the charcoal band): small and light. */
.rating--small {
  justify-content: flex-start;
  gap: 0.25rem 0.65rem;
  font-size: var(--fs-xs);
}

.site-footer__rating {
  margin-top: var(--space-5);
  color: var(--on-dark-2);
}

.site-footer__rating .rating__value {
  color: var(--on-dark);
}

.site-footer__rating .rating__stars-fill,
.site-footer__rating .rating__link {
  color: var(--accent-on-dark);
}

.site-footer__rating .rating__stars-base {
  color: color-mix(in srgb, var(--accent-on-dark) 40%, transparent);
}

.site-footer__rating .rating__link {
  border-bottom-color: color-mix(in srgb, var(--accent-on-dark) 40%, transparent);
}

/* "Book a call" beside the other ways in. */
.contact-band__book {
  margin-top: var(--space-5);
}

.contact-page__book {
  margin-top: var(--space-3);
}

/* --- FAQ (sections.js faqSection): soft cards in a reading column, native <details>, the first open --- */

.faq__list {
  display: grid;
  gap: clamp(0.6rem, 1.2vw, 0.85rem);
  max-width: 54rem;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.faq__item[open] {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.faq__question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  align-items: center;
  min-height: 3.5rem;
  padding: clamp(1.05rem, 2vw, 1.4rem) clamp(1.1rem, 2.4vw, 1.75rem);
  border-radius: var(--radius-card);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover .faq__q {
  color: var(--accent);
}

.faq__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.04em;
}

.faq__q {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: calc(clamp(1.15rem, 1.05rem + 0.45vw, 1.42rem) * var(--display-scale));
  font-weight: var(--display-weight);
  line-height: 1.25;
  transition: color 0.25s var(--ease);
}

/* A circled plus drawn in CSS; it turns into a minus as the answer opens. */
.faq__toggle {
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 50%;
  color: var(--accent);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease);
}

.faq__toggle::before,
.faq__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 1px;
  background: currentColor;
  translate: -50% -50%;
  transition: transform 0.35s var(--ease);
}

.faq__toggle::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__toggle {
  background: var(--accent);
  color: var(--surface);
}

.faq__item[open] .faq__toggle::after {
  transform: rotate(0deg);
}

.faq__answer {
  max-width: 44rem;
  padding: 0 clamp(1.1rem, 2.4vw, 1.75rem) clamp(1.25rem, 2.4vw, 1.75rem) calc(clamp(1.1rem, 2.4vw, 1.75rem) + 1.4rem + clamp(0.85rem, 2vw, 1.5rem));
  font-size: var(--fs-md);
  line-height: 1.75;
}

.faq__more {
  display: flex;
  justify-content: center;
  margin: clamp(2rem, 3.5vw, 2.75rem) 0 0;
}

@media (max-width: 599px) {
  .faq__answer {
    padding-left: clamp(1.1rem, 2.4vw, 1.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__toggle,
  .faq__toggle::before,
  .faq__toggle::after {
    transition: none;
  }
}

/* --- Project cards: the facts line "Category · 500 sq yd · 2024" under the title --- */

.project-card__facts {
  margin: 0.45rem 0 0;
  white-space: normal;
}

/* --- Projects rail, second row: style chips and the plot size select (projects.js projectsFilters) --- */

.projects-filters {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.projects-filters__group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.projects-filters__label {
  flex: none;
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Quieter chips for the second row: smaller, pill-shaped, cream when idle. */
.chip--quiet {
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border-color: color-mix(in srgb, var(--line-control) 55%, var(--paper));
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--fs-xs);
}

.chip--quiet.is-active,
.chip--quiet[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip--quiet.is-active .chip__count,
.chip--quiet[aria-current] .chip__count {
  color: var(--on-dark-2);
}

.projects-plot {
  flex: none;
}

.projects-plot__select {
  min-width: 11.5rem;
  height: 2.5rem;
  padding: 0 2.4rem 0 0.95rem;
  border: 1px solid var(--line-control);
  border-radius: 999px;
  background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 52%, calc(100% - 0.9rem) 52%;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  -webkit-appearance: none;
  appearance: none;
}

.projects-plot__select:hover {
  border-color: var(--ink);
}

.projects-plot__apply[hidden] {
  display: none;
}

@media (max-width: 699px) {
  .projects-filters {
    display: grid;
    gap: var(--space-3);
  }

  .projects-filters__group--style {
    display: grid;
    gap: var(--space-2);
  }

  .projects-filters .chips {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }

  .projects-plot {
    justify-content: space-between;
  }

  .projects-plot__select {
    flex: 1;
    min-width: 0;
    max-width: 16rem;
    min-height: 2.75rem;
  }

  .chip--quiet {
    min-height: 2.75rem;
  }
}

/* Phones: with the second row the rail is too tall to stick under the header; it scrolls with the page. */
@media (max-width: 699px) {
  .projects-rail:has(.projects-filters) {
    position: static;
  }
}

/* --- "From drawing to handover" (project.js journeySection; journey.js) ---------------------------------
   The stages as a construction timeline: each tab carries a hairline through its marker (so the line runs
   on when the row scrolls sideways on phones); stages already passed and the way into the active one turn
   gold, the active marker is a filled gold dot with a soft ring. */

.journey {
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.journey__tabs {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0;
}

.journey__tab {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.3rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 0.5rem 0.75rem;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

/* The hairline through the markers: half a line on the first and the last stage. */
.journey__tab::before,
.journey__tab::after {
  content: '';
  position: absolute;
  top: 0.6875rem;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.journey__tab::before { left: 0; right: 50%; }
.journey__tab::after { left: 50%; right: 0; }
.journey__tab:first-child::before,
.journey__tab:last-child::after { display: none; }

.journey__tab.is-done::before,
.journey__tab.is-done::after,
.journey__tab[aria-selected='true']::before {
  background: var(--accent);
}

.journey__marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.375rem;
  height: 1.375rem;
  margin-bottom: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 50%;
  background: var(--paper);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.journey__marker::after {
  content: '';
  position: absolute;
  inset: 0.375rem;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.35s var(--ease);
}

.journey__tab.is-done .journey__marker::after {
  background: color-mix(in srgb, var(--accent) 70%, transparent);
}

.journey__tab[aria-selected='true'] .journey__marker {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}

.journey__tab[aria-selected='true'] .journey__marker::after {
  background: var(--paper);
}

.journey__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.journey__name {
  color: var(--ink-2);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}

.journey__count {
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

.journey__tab:hover .journey__name,
.journey__tab[aria-selected='true'] .journey__name {
  color: var(--ink);
}

.journey__tab[aria-selected='true'] .journey__name {
  font-weight: 600;
}

.journey__tab:focus-visible {
  outline-offset: 2px;
  border-radius: var(--radius-card);
}

/* Stage panels: the photos as soft tiles; the stage title shows only without JS (then every stage is listed). */
.journey__panel {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.journey__panel:focus-visible {
  outline-offset: 6px;
}

.journey__panel-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 var(--space-4);
  font-size: var(--fs-3);
}

.journey__panel-num {
  color: var(--accent);
  font-size: 0.8em;
}

.journey.is-enhanced .journey__panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.journey__grid {
  display: grid;
  gap: var(--grid-gap-x);
  margin: 0 auto;
}

.journey__grid--1 {
  max-width: 60rem;
}

@media (min-width: 640px) {
  .journey__grid:not(.journey__grid--1) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .journey__grid--3,
  .journey__grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.journey__item {
  min-width: 0;
  margin: 0;
}

.journey__zoom {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.journey__grid:not(.journey__grid--1) .journey__img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
}

.journey__caption {
  margin: 0.6rem 0 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

/* Without JS: no tabs; every stage in turn, each with its title. */
@media (scripting: none) {
  .journey__tabs {
    display: none;
  }

  .journey__panel[hidden] {
    display: block;
  }
}

/* Phones: the stage row scrolls sideways (the hairline runs on through each tab). */
@media (max-width: 699px) {
  .journey__tabs {
    grid-auto-columns: minmax(6.25rem, 1fr);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

/* --- Before / after (project.js beforeAfter): a slim handle with a circular grip over two photos --- */

.journey__compare {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.journey__sub {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--fs-3);
  text-align: center;
}

.journey__compare-list {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 66rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .journey__compare--many .journey__compare-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

.journey__hint {
  margin: var(--space-4) 0 0;
  color: var(--ink-3);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.compare {
  margin: 0;
}

.compare__frame {
  position: relative;
  aspect-ratio: var(--ratio, 3 / 2);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.compare__before {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.compare__label {
  position: absolute;
  top: var(--space-4);
  z-index: 3;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dark) 62%, transparent);
  color: #ffffff;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  backdrop-filter: blur(4px);
}

.compare__label--before { left: var(--space-4); }
.compare__label--after { right: var(--space-4); }
.compare.is-at-start .compare__label--before,
.compare.is-at-end .compare__label--after { opacity: 0; }

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 2;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(30, 22, 12, 0.12), 0 0 18px rgba(30, 22, 12, 0.25);
  translate: -50% 0;
  pointer-events: none;
}

.compare__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, #ffffff);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 10px 24px -8px rgba(30, 22, 12, 0.45);
  translate: -50% -50%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.compare__grip svg {
  margin-inline: -2px;
}

.compare.is-dragging .compare__grip,
.compare__frame:hover .compare__grip {
  transform: scale(1.06);
}

/* The real control: an invisible range input over the whole photo (drag anywhere, arrow keys, Home/End). */
.compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}

.compare__frame:has(.compare__range:focus-visible) .compare__grip {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.compare__caption {
  margin: 0.75rem 0 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .journey__marker,
  .journey__marker::after,
  .compare__grip,
  .compare__label {
    transition: none;
  }

  .compare.is-dragging .compare__grip,
  .compare__frame:hover .compare__grip {
    transform: none;
  }
}

/* --- Journal index (journal.js): an architecture magazine — centred masthead, a large feature, then the grid --- */

.journal-hero {
  border-bottom: 0;
  text-align: center;
}

.journal-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journal-hero .breadcrumbs ol {
  justify-content: center;
}

.journal-hero .eyebrow::before,
.journal-hero .eyebrow::after {
  content: '';
  display: block;
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.journal-hero .page-hero__title {
  max-width: none;
  font-size: calc(clamp(2.6rem, 1.6rem + 3.6vw, 5rem) * var(--display-scale));
  font-weight: 400;
  letter-spacing: -0.02em;
}

.journal-hero__tag {
  color: var(--accent);
  font-style: italic;
}

.journal-hero .page-hero__text {
  max-width: 34rem;
  margin-inline: auto;
}

.journal__tags {
  width: 100%;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.chips--center {
  justify-content: center;
}

@media (max-width: 699px) {
  .chips--center {
    justify-content: flex-start;
  }
}

.journal {
  padding-bottom: var(--section);
}

/* Post cards: no box — the photograph, small tracked capitals, a Cormorant title, a quiet excerpt. */
.post-card__link {
  display: grid;
  gap: var(--space-4);
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper-2);
}

.post-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-card__link:hover .post-card__img {
  transform: scale(1.03);
}

.post-card__media--empty {
  background-color: var(--paper-2);
  background-image: linear-gradient(135deg, var(--paper-2), var(--paper-3));
}

.post-card__plate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: 0.75;
}

.post-card__drawing {
  width: 120%;
  height: auto;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0;
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.post-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.post-card__title {
  margin: 0;
  color: var(--ink);
  font-size: calc(clamp(1.35rem, 1.2rem + 0.5vw, 1.7rem) * var(--display-scale));
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.15;
  transition: color 0.3s var(--ease);
}

.post-card__link:hover .post-card__title {
  color: var(--accent);
}

.post-card__excerpt {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-md);
  line-height: 1.65;
}

.post-card__excerpt--short {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.3s var(--ease);
}

.post-card__cta svg {
  transition: transform 0.35s var(--ease);
}

.post-card__link:hover .post-card__cta {
  border-bottom-color: var(--ink);
}

.post-card__link:hover .post-card__cta svg {
  transform: translateX(3px);
}

/* The feature: the newest post, its cover beside a large title (stacked on phones). */
.post-card--feature {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.post-card--feature .post-card__media {
  aspect-ratio: 3 / 2;
}

.post-card--feature .post-card__title {
  font-size: calc(clamp(2rem, 1.4rem + 2.2vw, 3.4rem) * var(--display-scale));
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.post-card--feature .post-card__excerpt {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.15rem);
}

@media (min-width: 900px) {
  .post-card--feature .post-card__link {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }

  .post-card--feature .post-card__body {
    gap: 1rem;
  }
}

.post-card--half .post-card__media {
  aspect-ratio: 3 / 2;
}

.post-card--half .post-card__title {
  font-size: calc(clamp(1.6rem, 1.3rem + 1vw, 2.2rem) * var(--display-scale));
}

/* The grid: two side by side under the feature, then rows of three. */
.journal-grid {
  display: grid;
  gap: var(--grid-gap-y) var(--grid-gap-x);
}

.journal-grid--halves {
  margin-bottom: var(--grid-gap-y);
}

@media (min-width: 640px) {
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .journal-grid:not(.journal-grid--halves) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journal-grid--halves {
    gap: var(--grid-gap-y) clamp(1.5rem, 3vw, 3rem);
  }
}

/* Pagination: Newer · 1 2 3 · Older, on a hairline. */
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.pager__edge--next {
  justify-self: end;
}

.pager__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.pager__pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pager__num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variant-numeric: lining-nums;
  text-decoration: none;
}

.pager__num:hover {
  border-color: var(--line-control);
  color: var(--ink);
}

.pager__num.is-current {
  border-color: var(--accent);
  color: var(--accent);
}

.pager__gap {
  color: var(--ink-3);
}

/* The designed empty journal. */
.journal-empty {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 0;
}

.journal-empty__title {
  max-width: 14ch;
  margin: 0;
  font-size: var(--fs-2);
  font-weight: 400;
}

.journal-empty__body {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: var(--ink-2);
  line-height: 1.7;
}

.journal-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}

.journal-empty__drawing {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper-2);
  color: var(--accent);
}

.journal-empty__elevation {
  width: 100%;
  height: 100%;
}

@media (min-width: 900px) {
  .journal-empty {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* --- Journal article: a centred masthead, a wide cover, a reading column with a drop cap, share rail --- */

.article__head {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}

.article__head-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article__head .breadcrumbs ol {
  justify-content: center;
}

.article__head .breadcrumbs li:last-child {
  display: none;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.1rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.article__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.article__tags a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.article__eyebrow {
  justify-content: center;
}

.article__title {
  max-width: 20ch;
  margin: 0;
  font-size: calc(clamp(2.3rem, 1.5rem + 3vw, 4.4rem) * var(--display-scale));
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.04;
}

.article__standfirst {
  max-width: 40rem;
  margin: 1.4rem auto 0;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: calc(clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem) * var(--display-scale));
  font-style: italic;
  line-height: 1.45;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin: 1.6rem 0 0;
  color: var(--ink-3);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.article__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.article__cover {
  width: min(100% - 2 * var(--gutter), 72.5rem);
  margin: 0 auto;
}

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

@media (max-width: 699px) {
  .article__cover {
    width: 100%;
  }

  .article__cover-img {
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }
}

.article__rule {
  display: flex;
  justify-content: center;
}

.article__rule span {
  width: 3rem;
  height: 1px;
  background: var(--accent);
}

.article__layout {
  display: grid;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.article__body {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem);
  line-height: 1.85;
}

/* The opening paragraph: a gold drop cap in the display face. */
.article__body > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 4.1em;
  font-weight: 400;
  line-height: 0.82;
}

.article__body h2 {
  font-weight: 400;
}

.article__body blockquote {
  margin-block: 2.25em;
  padding: 0.25em 0 0.25em 1.5rem;
  font-style: italic;
}

.article__body img {
  max-width: 100%;
  height: auto;
}

.article__share-rail {
  display: none;
}

@media (min-width: 1100px) {
  .article__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 42rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }

  .article__body {
    grid-column: 2;
  }

  .article__share-rail {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  .article__share-rail .share__list {
    flex-direction: column;
  }

  .article__share-rail .share__label {
    writing-mode: vertical-rl;
    margin-bottom: 0.5rem;
    transform: rotate(180deg);
  }
}

/* Share buttons: hairline circles. */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

.share__label {
  color: var(--ink-3);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line-control) 50%, var(--paper));
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

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

.share__btn[hidden] {
  display: none;
}

/* The foot of the article: tags, the byline, share (on wide screens the rail already shares). */
.article__foot {
  display: grid;
  gap: var(--space-5);
  max-width: calc(42rem + 2 * var(--gutter));
  padding-block: clamp(2.5rem, 5vw, 3.5rem) var(--section);
}

.article__foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article__foot-tags .tag {
  border-radius: 999px;
  text-decoration: none;
}

.article__foot-tags .tag:hover {
  color: var(--ink);
}

.article__byline {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-block: 1px solid var(--line);
}

.article__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.article__byline-text {
  display: grid;
  gap: 0.15rem;
}

.article__byline-label {
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article__byline-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.article__byline-org {
  color: var(--ink-3);
  font-size: var(--fs-xs);
}

.journal-related .post-card__title {
  font-size: calc(clamp(1.3rem, 1.15rem + 0.4vw, 1.55rem) * var(--display-scale));
}

@media (prefers-reduced-motion: reduce) {
  .post-card__img,
  .post-card__cta svg {
    transition: none;
  }

  .post-card__link:hover .post-card__img,
  .post-card__link:hover .post-card__cta svg {
    transform: none;
  }
}

@media print {
  .share,
  .article__share-rail {
    display: none !important;
  }
}

.article__tags li {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.article__tags li + li::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* Tuning: a calmer base hairline (the gold reads more clearly), a single stage photo at a modest width. */
.journey__tab::before,
.journey__tab::after {
  background: var(--line);
}

.journey__tab.is-done::before,
.journey__tab.is-done::after,
.journey__tab[aria-selected='true']::before {
  background: var(--accent);
}

.journey__grid--1 {
  max-width: 46rem;
}

.journey__grid--1 .journey__img {
  aspect-ratio: 3 / 2;
  height: 100%;
  object-fit: cover;
}

/* Phones: a slimmer call pill, so the pair takes as little of the reading width as it can. */
@media (max-width: 767px) {
  .floating-call {
    gap: 0.5rem;
    padding: 0 1rem 0 0.85rem;
    letter-spacing: 0.08em;
  }
}

/* Room for the active marker's ring inside the sideways-scrolling stage row. */
@media (max-width: 699px) {
  .journey__tabs {
    padding-top: 0.5rem;
  }
}

@media (max-width: 599px) {
  .stats__rating,
  .testimonials__rating {
    border-radius: 1.5rem;
  }
}
