/* ============================================================
   Refined Cabinetry design system
   Dark, minimal, architectural. Near-black warm neutrals frame
   the photography; a single stone-gold accent. Type: Anton
   (monumental display) + Hanken Grotesk (light, tracked sans).
   ============================================================ */

:root {
  /* Colour: warm-tinted neutrals, never pure black/white */
  --bg-0: #100f0d;            /* header, hero, footer */
  --bg-1: #181613;            /* alternate dark section */
  --bg-2: #1e1b17;            /* cards, form surfaces */
  --paper: #f6f4ef;           /* the one light section */
  --paper-deep: #eceae3;
  --white: #f8f6f1;           /* headings on dark */
  --body: rgba(244, 240, 232, 0.68);
  --body-strong: rgba(244, 240, 232, 0.88);
  --faint: rgba(244, 240, 232, 0.52);
  --accent: #c5ad84;          /* stone gold, sparing */
  --accent-strong: #d4bf9a;
  --ink: #17150f;             /* text on paper */
  --ink-soft: #5b564c;
  --line: rgba(244, 240, 232, 0.14);
  --line-strong: rgba(244, 240, 232, 0.28);
  --line-ink: rgba(23, 21, 15, 0.16);
  --error: #e2a18b;
  --success: #b9c9a8;

  /* Type */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-sans: "Hanken Grotesk", -apple-system, "Segoe UI", Helvetica, sans-serif;

  --text-hero: clamp(3.5rem, 12vw, 11.25rem);
  --text-h2: clamp(2.125rem, 1.4rem + 3vw, 3.625rem);
  --text-h3: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --text-lede: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-label: 0.8125rem;
  --track-label: 0.18em;
  --track-nav: 0.16em;

  /* Layout */
  --container: 80rem;          /* 1280px */
  --gutter: clamp(1.25rem, 5vw, 3.75rem);
  --hero-pad: clamp(1.5rem, 5vw, 3.75rem);
  --section: clamp(6rem, 8vw + 2rem, 10rem);
  --section-tight: clamp(4rem, 5vw + 1.5rem, 6.5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  /* Reserve the scrollbar gutter so locking scroll for the mobile menu
     (overflow:hidden) never reflows the fixed header sideways. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; color: var(--white); text-wrap: balance; }

p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

button { font: inherit; }

::selection { background: var(--accent); color: var(--bg-0); }

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

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

.skip-link {
  position: absolute; top: -100%; left: var(--gutter);
  z-index: 200; padding: 0.75rem 1.25rem;
  background: var(--accent); color: var(--bg-0);
  font-size: var(--text-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  text-decoration: none; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography helpers ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: 0.01em;
}

.eyebrow {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-left: -0.04em; /* optical left alignment for caps */
}
.section-heading--lg { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.35rem); }

.lede {
  font-size: var(--text-lede);
  font-weight: 300;
  line-height: 1.65;
  color: var(--body-strong);
  max-width: 38em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 1.0625rem 2.25rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg-0);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

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

.text-link {
  display: inline-block;
  color: var(--white);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link .arrow { display: inline-block; margin-left: 0.5em; transition: transform 0.3s var(--ease-out); }
.text-link:hover .arrow { transform: translateX(4px); }

.text-link--ink { color: var(--ink); border-bottom-color: var(--line-ink); }
.text-link--ink:hover { color: #94824f; border-color: #94824f; }

/* ---------- Header / split nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}
/* The scrolled background lives on a pseudo-element, not the header itself,
   so the header never becomes a containing block for the fixed mobile
   overlay (a backdrop-filter ancestor would otherwise clip it to the bar). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 12, 10, 0.92);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
  transform: translateZ(0); /* own compositor layer: avoids iOS fixed-header flicker */
}
/* Blur only while scrolled, never always-on, so the URL-bar collapse on
   mobile doesn't repaint a permanent backdrop-filter behind the fixed bar. */
.site-header.scrolled::before {
  opacity: 1;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  /* space reserved on each side so the corner CTA clears the nav and the two
     link pairs sit symmetrically around the centred logo */
  --cta-space: 11rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.125rem var(--gutter);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
  margin: 0; padding: 0; list-style: none;
}
.nav-group--left { justify-content: flex-start; margin-left: var(--cta-space); }
.nav-group--right { justify-content: flex-end; margin-right: var(--cta-space); }

/* Get a Quote button pinned to the top-right corner of the header */
.header-cta {
  position: absolute;
  top: 50%;
  right: clamp(1.25rem, 2.5vw, 2.25rem);
  transform: translateY(-50%);
}

.nav-link {
  color: var(--white);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: text-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
/* hover / current = white, weight emphasised via faux-bold so the text
   thickens in place without nudging its neighbours */
.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--white);
  text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
}
.nav-link[aria-current="page"] { border-bottom-color: var(--white); }

.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 0.625rem 1.375rem;
  /* Soft lift so the button reads as a button over the hero photo. */
  box-shadow: 0 2px 14px rgba(8, 7, 6, 0.38);
  transition: text-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nav-cta:hover, .nav-cta[aria-current="page"] { border-color: var(--white); box-shadow: 0 4px 20px rgba(8, 7, 6, 0.5); }
.nav-cta[aria-current="page"] { border-bottom: 1px solid var(--white); }

.brand {
  display: block;
  padding: 0 clamp(1rem, 2vw, 2.5rem);
}
.brand img {
  height: 5.23rem; /* 15% larger than the previous 4.55rem */
  width: auto;
  /* Drop shadow follows the logo's transparent edges so it stays legible over
     the lighter hero photos (footer logo is .footer-brand, unaffected). */
  filter: drop-shadow(0 1px 3px rgba(8, 7, 6, 0.5)) drop-shadow(0 2px 12px rgba(8, 7, 6, 0.32));
}

/* Services dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 15rem;
  margin: 0; padding: 0.75rem 0;
  list-style: none;
  background: rgba(16, 15, 13, 0.97);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown::before {
  /* hover bridge between trigger and panel */
  content: ""; position: absolute; top: -0.8rem; left: 0; right: 0; height: 0.8rem;
}
.dropdown a {
  display: block;
  padding: 0.625rem 1.5rem;
  color: var(--body-strong);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: text-shadow 0.2s var(--ease-out);
}
.dropdown a:hover {
  color: var(--white);
  text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  background: none; border: 0;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.menu-toggle span {
  position: absolute; left: 0.5rem; right: 0.5rem;
  height: 1px; background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.menu-toggle span:nth-child(1) { top: 1.125rem; }
.menu-toggle span:nth-child(2) { top: 1.625rem; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  background: rgba(13, 12, 10, 0.98);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a,
.mobile-menu .mobile-link {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: text-shadow 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.mobile-menu a:hover,
.mobile-menu .mobile-link:hover {
  color: var(--white);
  text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
}

/* Services toggle (button reset + chevron) */
.mobile-services-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.mobile-chev {
  font-family: var(--font-sans);
  font-size: 0.45em;
  font-weight: 300;
  color: var(--faint);
  transition: transform 0.35s var(--ease-out);
  transform-origin: center;
}
.mobile-services-toggle[aria-expanded="true"] .mobile-chev { transform: rotate(45deg); }

/* Collapsible service list */
.mobile-group { display: flex; flex-direction: column; align-items: center; }
.mobile-submenu {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.mobile-services-toggle[aria-expanded="true"] + .mobile-submenu { grid-template-rows: 1fr; }
.mobile-submenu-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-menu .mobile-sub {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: var(--track-nav);
  color: var(--body);
  line-height: 2.4;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.mobile-menu .mobile-sub:first-child { padding-top: 0.75rem; }
.mobile-menu .mobile-sub:last-child { padding-bottom: 0.5rem; }
.mobile-menu .mobile-sub:hover { color: var(--white); }
.mobile-menu .mobile-cta {
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  border: 1px solid var(--line-strong);
  color: var(--white);
  padding: 1rem 2.5rem;
  line-height: 1;
  transition: border-color 0.3s var(--ease-out);
}
.mobile-menu .mobile-cta:hover { border-color: var(--white); }

@media (max-width: 64rem) {
  .header-inner > nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  /* Hamburger on the left, logo centred, Get a Quote on the right. */
  .menu-toggle { display: block; grid-column: 1; grid-row: 1; justify-self: start; }
  .brand { grid-column: 2; grid-row: 1; }
  .brand img { height: 3.9rem; }
  /* In-grid (not absolute) so it shares the row with the logo instead of
     overlapping it, and compact so it fits the right column on phones. */
  .header-cta {
    display: block;
    position: static;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    inset: auto;
    transform: none;
  }
  .nav-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
}

@media (max-width: 26rem) {
  .brand img { height: 3.3rem; }
  .nav-cta { padding: 0.45rem 0.7rem; letter-spacing: 0.05em; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  /* dvh = the *currently visible* viewport, so the hero always reaches the
     bottom of the screen on phones as the address bar shows/hides (svh left a
     gap whenever the bar was collapsed). */
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero--short { min-height: 72vh; min-height: 72dvh; }

.hero-media, .hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 7, 6, 0.32) 0%, rgba(8, 7, 6, 0.18) 28%, rgba(8, 7, 6, 0.62) 100%);
}

/* Homepage hero slideshow: six slides crossfade over a 36s loop (~6s each),
   each slowly zooming in (Ken Burns). Pure CSS — the per-slide delays below
   assume exactly 6 slides. */
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  animation: hero-slide-fade 36s linear infinite;
}
.hero-slide picture, .hero-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide img {
  animation: hero-slide-zoom 36s ease-in-out infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero-slide:nth-child(1), .hero-slide:nth-child(1) img { animation-delay: -3s; }
.hero-slide:nth-child(2), .hero-slide:nth-child(2) img { animation-delay: -9s; }
.hero-slide:nth-child(3), .hero-slide:nth-child(3) img { animation-delay: -15s; }
.hero-slide:nth-child(4), .hero-slide:nth-child(4) img { animation-delay: -21s; }
.hero-slide:nth-child(5), .hero-slide:nth-child(5) img { animation-delay: -27s; }
.hero-slide:nth-child(6), .hero-slide:nth-child(6) img { animation-delay: -33s; }
@keyframes hero-slide-fade {
  0%     { opacity: 0; }
  4%     { opacity: 1; }
  16.67% { opacity: 1; }
  20.67% { opacity: 0; }
  100%   { opacity: 0; }
}
@keyframes hero-slide-zoom {
  0%     { transform: scale(1); }
  20.67% { transform: scale(1.12); }
  20.68% { transform: scale(1); }
  100%   { transform: scale(1); }
}

.hero-foot {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: 0 var(--hero-pad) var(--hero-pad);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  /* One consistent system for every hero headline: size is driven by the
     longest line's character count (--ch, set per page in the markup), so a
     short word like ABOUT and a long one like WARDROBES fill a comparable
     width instead of each page guessing its own size. Clamped so short words
     don't balloon and long phrases stay legible on small screens. */
  --ch: 8;
  font-size: clamp(2.75rem, calc(84vw / var(--ch)), 10.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-left: -0.045em;
  /* Soft depth so the headline lifts off the photo without looking like a
     hard drop shadow — a close ambient shadow plus a wider, softer glow. */
  text-shadow: 0 2px 6px rgba(8, 7, 6, 0.34), 0 8px 40px rgba(8, 7, 6, 0.32);
}

/* Hero kicker: small stone-gold descriptor above the headline. Carries the
   what/where (and local SEO) the big abstract headline leaves out. */
.hero-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.hero-kicker {
  display: block;
  margin-bottom: clamp(0.7rem, 1.6vw, 1.35rem);
  color: var(--accent-strong);
  /* Scales down on phones so it doesn't compete with the headline, and holds
     its larger size on desktop where the H1 is much bigger. */
  font-size: clamp(0.75rem, 0.5rem + 0.95vw, 1.1875rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* Soft halo so the line holds up over the lighter slideshow photos. */
  text-shadow: 0 1px 16px rgba(8, 7, 6, 0.55), 0 1px 3px rgba(8, 7, 6, 0.5);
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  animation: hero-desc-in 0.9s var(--ease-out) 0.05s forwards;
}

.hero-desc {
  max-width: 17rem;
  text-align: right;
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(244, 240, 232, 0.85);
  /* Same soft depth as the headline, scaled for the smaller copy. */
  text-shadow: 0 1px 4px rgba(8, 7, 6, 0.4), 0 4px 22px rgba(8, 7, 6, 0.32);
  padding-bottom: 0.5rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(244, 240, 232, 0.5);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero-scroll svg { display: block; }
@media (min-width: 69rem) {
  .hero-scroll { display: flex; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.hero-scroll svg { animation: bob 2.2s ease-in-out infinite; }

@media (max-width: 44rem) {
  .hero-foot { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-desc { text-align: left; padding-bottom: 0; max-width: 22rem; }
}

/* Entrance — layered reveal: the title wipes in top-to-bottom (so a stacked
   two-line title reveals line by line) while rising and sharpening from a blur;
   the description follows a beat later. */
.hero-title {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(13px);
  clip-path: inset(0 0 106% 0);
  animation: hero-title-in 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-desc {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  animation: hero-desc-in 1s var(--ease-out) 0.62s forwards;
}
@keyframes hero-title-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); clip-path: inset(0 0 -6% 0); }
}
@keyframes hero-desc-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

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

.section { padding-block: var(--section); }
.section--tight { padding-block: var(--section-tight); }
.section--alt { background: var(--bg-1); }
.section--paper {
  color: var(--ink-soft);
  background-color: var(--paper);
  /* Subtle white-marble texture: a paper-tinted wash sits over the stone so the
     veining reads softly and keeps the warm tone; text stays crisp on top. */
  background-image: linear-gradient(rgba(246, 244, 239, 0.6), rgba(246, 244, 239, 0.6)),
                    url("/assets/img/marble-lg.jpg");
  background-image: linear-gradient(rgba(246, 244, 239, 0.6), rgba(246, 244, 239, 0.6)),
                    -webkit-image-set(url("/assets/img/marble-lg.webp") type("image/webp"),
                                      url("/assets/img/marble-lg.jpg") type("image/jpeg"));
  background-image: linear-gradient(rgba(246, 244, 239, 0.6), rgba(246, 244, 239, 0.6)),
                    image-set(url("/assets/img/marble-lg.webp") type("image/webp"),
                              url("/assets/img/marble-lg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Service-page "Recent projects" bands use the smaller, busier marble. */
.section--marble-alt {
  background-image: linear-gradient(rgba(246, 244, 239, 0.6), rgba(246, 244, 239, 0.6)),
                    url("/assets/img/marble-sm.jpg");
  background-image: linear-gradient(rgba(246, 244, 239, 0.6), rgba(246, 244, 239, 0.6)),
                    -webkit-image-set(url("/assets/img/marble-sm.webp") type("image/webp"),
                                      url("/assets/img/marble-sm.jpg") type("image/jpeg"));
  background-image: linear-gradient(rgba(246, 244, 239, 0.6), rgba(246, 244, 239, 0.6)),
                    image-set(url("/assets/img/marble-sm.webp") type("image/webp"),
                              url("/assets/img/marble-sm.jpg") type("image/jpeg"));
}
.section--paper h2, .section--paper h3 { color: var(--ink); }
.section--paper .lede { color: var(--ink-soft); }
.section--paper .eyebrow { color: #94824f; }

.section-head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
@media (min-width: 56rem) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 4rem;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* Staggered cascade for grid children so rows resolve one beat apart */
.service-grid > .reveal:nth-child(2),
.process-grid > .reveal:nth-child(2),
.strip-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.service-grid > .reveal:nth-child(3),
.process-grid > .reveal:nth-child(3),
.strip-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.service-grid > .reveal:nth-child(4),
.process-grid > .reveal:nth-child(4) { transition-delay: 0.3s; }
.points-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.points-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.points-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.gallery-grid > .reveal:nth-child(3n+2) { transition-delay: 0.07s; }
.gallery-grid > .reveal:nth-child(3n+3) { transition-delay: 0.14s; }

/* Parallax layers (vertical drift driven from main.js).
   Headroom is added via height/top, NOT a uniform scale, so the image
   width never exceeds the container. A horizontal overscan would leak
   past overflow:hidden on WebKit (transformed/composited children aren't
   clipped there), making the page pannable and shoving the header sideways. */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-media img,
  .statement picture img,
  .cta-band picture img {
    will-change: transform;
    height: 114%;
    top: -7%;
    bottom: auto;
  }
}

/* ---------- Trust bar ticker ---------- */

.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1rem, 1.8vw, 1.6rem);
  /* fade both edges so items glide in and out */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 90s linear infinite;
}
.ticker__item {
  flex: 0 0 auto;
  color: var(--body-strong);
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__sep {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  margin-inline: clamp(1.5rem, 4vw, 3rem);
  background: var(--accent);
  transform: rotate(45deg); /* small diamond */
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Suppliers marquee ---------- */

.suppliers .section-head { margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }

.marquee {
  position: relative;
  overflow: hidden;
  /* fade both edges so logos drift in/out of the band */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}

/* Uniform white tiles neutralise each logo's own background, and equal
   width + margin on every item makes a -50% translate seamless. */
.marquee__item {
  flex: 0 0 auto;
  margin-right: clamp(0.75rem, 1.6vw, 1.35rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(8.5rem, 15vw, 11rem);
  height: clamp(4.5rem, 7vw, 5.5rem);
  padding: 0 clamp(1rem, 2.4vw, 1.75rem);
  background: var(--white);
  border-radius: 10px;
}
.marquee__item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 2.85rem;
  object-fit: contain;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Intro (homepage statement under hero) ---------- */

.intro-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 56rem) {
  .intro-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
  }
}
.intro-grid .section-heading { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem); }
.intro-aside { padding-top: 0.75rem; }
.intro-aside .btn { margin-top: 0.5rem; }
.support-line {
  margin-top: 1.25rem;
  font-size: var(--text-sm);
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}
@media (min-width: 44rem) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}

.service-card {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.service-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.service-card:hover .service-card-media img { transform: scale(1.04); }
.service-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0) 45%, rgba(10, 9, 8, 0.72) 100%);
}
.service-card-title {
  position: absolute;
  left: 1.75rem; bottom: 1.25rem;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
}
.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 1.75rem 2rem;
}
.service-card-body p { margin: 0; flex: 1; }
.service-card .text-link { border-bottom-color: transparent; }
.service-card:hover .text-link { color: var(--accent); }

/* ---------- Why / values ---------- */

.points-grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 4rem) clamp(2.5rem, 5vw, 6rem);
}
@media (min-width: 44rem) {
  .points-grid { grid-template-columns: 1fr 1fr; }
}
.point {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.point-num {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.point h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.875rem;
}
.point p { margin: 0; }

.section--paper .point { border-top-color: var(--line-ink); }

/* ---------- Statement band ---------- */

.statement {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 64vh;
  padding: var(--section-tight) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.statement picture, .statement img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.statement::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 7, 6, 0.58);
}
.statement p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1rem + 3.4vw, 3.75rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  max-width: 18em;
}

/* ---------- Teaser / gallery (paper sections) ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 56rem) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.hidden { display: none; }

/* Hover scrim + category caption that mask-reveals on the gallery */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.6), transparent 58%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover::after,
.gallery-item:focus-within::after { opacity: 1; }
.gallery-cap {
  position: absolute;
  left: 1.1rem;
  bottom: 0.9rem;
  z-index: 2;
  color: #fff;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover .gallery-cap,
.gallery-item:focus-within .gallery-cap { opacity: 1; transform: none; }

.teaser-cta { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 3vw, 3rem);
}
.filter-btn {
  background: none;
  border: 0;
  padding: 0.5rem 0.125rem;
  color: var(--ink-soft);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.filter-btn:hover { color: var(--ink); }
.filter-btn[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: #94824f;
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  gap: 3rem;
  counter-reset: step;
  position: relative;
}
@media (min-width: 56rem) {
  .process-grid { grid-template-columns: repeat(4, 1fr); gap: clamp(2rem, 3vw, 3.5rem); }
  .process-grid::before {
    content: "";
    position: absolute;
    top: clamp(2.4rem, 3.4vw, 3.6rem);
    left: 0; right: 0;
    height: 1px;
    background: var(--line);
  }
}
.step { position: relative; }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 3vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  margin-bottom: 1.5rem;
  background: var(--bg-0);
  width: fit-content;
  padding-right: 1.25rem;
  position: relative;
  z-index: 1;
}
.section--alt .step-num { background: var(--bg-1); }
.step h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.step p { margin: 0; font-size: var(--text-sm); }

/* ---------- Testimonial placeholder ---------- */

.review-slot {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.review-stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--line-strong);
}
.review-slot blockquote {
  margin: 0;
  font-size: var(--text-lede);
  font-style: italic;
  color: var(--faint);
}

/* ---------- Instagram feed ---------- */

.ig-feed { min-height: 12rem; }
.ig-feed .eapps-instagram-feed,
.ig-feed [class*="elfsight-app-"] { background: transparent !important; }

/* ---------- Feature list (service pages) ---------- */

.feature-list {
  margin: 0; padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.feature-list li {
  display: grid;
  gap: 0.375rem 3rem;
  padding: 1.625rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 56rem) {
  .feature-list li { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); }
}
.feature-list .feature-name {
  color: var(--white);
  font-weight: 500;
  font-size: 1.0625rem;
}
.feature-list .feature-detail { margin: 0; }
.feature-list li.feature--plain { display: block; }
.feature-list li.feature--plain .feature-name { font-weight: 400; color: var(--body-strong); }
/* Name-only feature lists span two columns so they fill the width. */
@media (min-width: 56rem) {
  .feature-list--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 5vw, 5rem); }
}

/* ---------- Strip images ---------- */

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 34rem) { .strip-grid { grid-template-columns: 1fr; } }
.strip-grid .gallery-item { aspect-ratio: 4 / 3; }
/* Pull the strip images up closer to the intro on the sparse "Something else" page. */
.strip-section--snug { padding-top: 0; }

/* ---------- Prose blocks ---------- */

.prose { max-width: 42em; }
.prose--center { margin-inline: auto; }

.two-col {
  display: grid;
  gap: 3rem;
}
@media (min-width: 56rem) {
  .two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
  }
  .two-col--top { align-items: start; }
}
.two-col figure { margin: 0; overflow: hidden; }
.two-col figure img { width: 100%; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(6rem, 10vw, 11rem) var(--gutter);
}
.cta-band picture, .cta-band picture img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 7, 6, 0.74);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 16em;
  margin-inline: auto;
}
.cta-band .lede {
  margin: 1.75rem auto 0;
  max-width: 34em;
}
.cta-band .btn { margin-top: 2.5rem; }
.cta-band .support-line { margin-top: 1.5rem; }
.cta-band .cta-related {
  margin-top: 2.75rem;
  font-size: var(--text-sm);
  color: var(--faint);
}
.cta-band .cta-related a { color: var(--body-strong); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.cta-band .cta-related a:hover { color: var(--accent); }

/* ---------- Page hero variant for forms/legal ---------- */

.page-head {
  padding: calc(var(--section-tight) + 5rem) 0 var(--section-tight);
  background: var(--bg-0);
}

/* ---------- Quote form ---------- */

.quote-layout {
  display: grid;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .quote-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

.trust-list {
  margin: 2.5rem 0 0; padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.trust-list li {
  display: flex;
  gap: 0.875rem;
  align-items: baseline;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--body-strong);
}
.trust-list .tick { color: var(--accent); }

.quote-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3.5vw, 3rem);
}

.field { margin-bottom: 1.5rem; }
.field-row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 40rem) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field { margin-bottom: 0; }
  .field-row { margin-bottom: 1.5rem; }
}

.field label {
  display: block;
  margin-bottom: 0.625rem;
  color: var(--white);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field .optional { color: var(--faint); text-transform: none; letter-spacing: 0.02em; font-weight: 300; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(244, 240, 232, 0.03);
  border: 1px solid rgba(244, 240, 232, 0.2);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(244, 240, 232, 0.05);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c5ad84' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.field select option { background: var(--bg-2); color: var(--white); }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error {
  display: none;
  margin-top: 0.5rem;
  color: var(--error);
  font-size: var(--text-sm);
}
.field.invalid .field-error { display: block; }

.form-foot { margin-top: 2.25rem; }
.form-note {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--faint);
}
.form-note a { color: var(--body-strong); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.form-note a:hover { color: var(--accent); }

.form-success {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { font-size: var(--text-h3); font-weight: 500; margin-bottom: 1rem; }
.quote-form.submitted form { display: none; }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.breadcrumb a { color: var(--body); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.75rem; color: var(--line-strong); }

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

.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(3.5rem, 6vw, 5.5rem) var(--gutter) clamp(2.5rem, 4vw, 4rem);
  text-align: center;
}
.footer-brand img { height: 5.5rem; width: auto; }
.footer-tagline {
  margin: 0;
  color: var(--body);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
}

.footer-cols {
  display: grid;
  gap: 3rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2.5rem, 4vw, 4rem) var(--gutter);
  border-top: 1px solid var(--line);
}
@media (min-width: 44rem) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.footer-col h2 {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 0.875rem; }
.footer-col a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--body);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.25s var(--ease-out);
}
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: var(--text-sm); margin-bottom: 0.875rem; }

.footer-fine {
  border-top: 1px solid var(--line);
}
.footer-fine-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.5rem var(--gutter);
  font-size: 0.8125rem;
  color: var(--faint);
}
.footer-fine a { color: var(--body); text-decoration: none; }
.footer-fine a:hover { color: var(--accent); }
.footer-fine .legal-links { display: flex; gap: 1.75rem; }

/* ---------- 404 ---------- */

.error-page {
  min-height: 100vh; min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem var(--gutter) 6rem;
}
.error-page .display { font-size: clamp(5rem, 18vw, 12rem); color: var(--white); line-height: 1; }
.error-actions { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }

/* ---------- Legal prose ---------- */

.legal-prose { max-width: 46em; }
.legal-prose h2 { font-size: 1.375rem; font-weight: 500; margin: 2.75rem 0 1rem; }
.legal-prose ul { padding-left: 1.25rem; }
.legal-prose li { margin-bottom: 0.5rem; }

/* ---------- Motion layer (cursor, scroll progress, page transition) ---------- */

/* Thin scroll-progress rule along the very top edge */
.rc-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 130;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Page-transition curtain: rises to cover before navigating away */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: var(--bg-0);
  transform: translateY(100%);
  pointer-events: none;
  will-change: transform;
}
.page-curtain.cover {
  transform: translateY(0);
  transition: transform 0.5s var(--ease-out);
}

@media (pointer: coarse) {
  .rc-progress { display: none; }
}

/* ---------- Gallery lightbox ---------- */

.gallery-item { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 7, 6, 0.97);
  opacity: 0;
  transition: opacity 0.32s var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  touch-action: none; /* gestures handled in JS */
}
.lightbox__img {
  max-width: 92vw; max-height: 88vh;
  width: auto; height: auto;
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
  -webkit-user-drag: none;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.lightbox__img.is-zoomed { cursor: grab; }
.lightbox__img.is-panning { cursor: grabbing; }

.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  background: rgba(22, 20, 16, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(22, 20, 16, 0.92); border-color: var(--accent); }
.lightbox__close[hidden], .lightbox__nav[hidden] { display: none; }
.lightbox__close {
  top: clamp(0.85rem, 2.5vw, 1.75rem); right: clamp(0.85rem, 2.5vw, 1.75rem);
  width: 2.85rem; height: 2.85rem; font-size: 1.1rem;
}
.lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 3.15rem; height: 3.15rem; font-size: 1.9rem; line-height: 0; padding-bottom: 0.18em;
}
.lightbox__prev { left: clamp(0.6rem, 2vw, 1.75rem); }
.lightbox__next { right: clamp(0.6rem, 2vw, 1.75rem); }

.lightbox__counter {
  position: absolute; z-index: 2;
  bottom: clamp(0.9rem, 2.5vw, 1.6rem); left: 50%; transform: translateX(-50%);
  color: var(--faint); font-size: var(--text-label);
  letter-spacing: var(--track-label); text-transform: uppercase;
}
/* Image description is kept on the <img alt> for screen readers but hidden visually. */
.lightbox__caption { display: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title, .hero-desc, .hero-kicker { animation: none; opacity: 1; transform: none; filter: none; clip-path: none; }
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
  .hero-slide img { animation: none; transform: none; }
  .hero-scroll svg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rc-progress, .page-curtain { display: none; }
  .marquee__track { animation: none; transform: none; }
  .marquee { overflow-x: auto; }
  .ticker__track { animation: none; }
  .lightbox { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
