/* Rehmani Sons — site stylesheet.
   Tokens first, then base, global components (header, footer), then page sections. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/playfair-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --charcoal: #1A1A1A;
  --navy: #1B2A41;
  --cream: #F5F1E8;
  --off-white: #FAF8F4;
  --gold: #A6803C;
  --gold-light: #C39A4E;
  --gold-dark: #85662D; /* #8A6A2F nudged so 11px eyebrows pass 4.5:1 on cream */
  --ink: #3D4654;
  --ink-soft: #5B6472;

  --on-dark: #F5F1E8;
  --on-dark-78: rgba(245, 241, 232, .78);
  --on-dark-72: rgba(245, 241, 232, .72);
  --on-dark-66: rgba(245, 241, 232, .66);
  --on-dark-62: rgba(245, 241, 232, .62);
  --on-dark-55: rgba(245, 241, 232, .55);
  --hairline-dark: rgba(245, 241, 232, .09);
  --line-dark: rgba(245, 241, 232, .16);
  --line-gold: rgba(166, 128, 60, .4);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 64px;
  --subnav-h: 48px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
html.page-home { scroll-padding-top: calc(var(--header-h) + var(--subnav-h)); }

body {
  margin: 0;
  overflow-x: clip; /* never overflow-x:hidden on a sticky ancestor */
  background: var(--charcoal);
  color: var(--on-dark);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--gold-light); 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: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 12px 18px; background: var(--gold); color: var(--charcoal);
  font-size: 13px; transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: none; color: var(--charcoal); }

/* ---------- Type helpers ---------- */

.eyebrow {
  font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.label {
  font-weight: 400; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.on-light .label, .on-light .eyebrow { color: var(--gold-dark); }
.on-navy .label { color: var(--gold-light); }

.num-eyebrow {
  display: flex; align-items: baseline; gap: 16px; margin: 0 0 26px; font-weight: 400;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.num-eyebrow span { font-family: var(--serif); font-size: 26px; letter-spacing: 0; }
.on-light .num-eyebrow { color: var(--gold-dark); }

.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; color: var(--on-dark);
}
.h-section {
  margin: 0 0 26px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.06; letter-spacing: -.015em; color: var(--on-dark);
}
.on-light .h-section { color: var(--navy); }

.rule { width: 150px; height: 1px; background: var(--gold); transform-origin: left; }

.text-link {
  display: inline-block; padding-bottom: 6px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light); border-bottom: 1px solid rgba(195, 154, 78, .4);
}
.on-light .text-link { color: var(--gold-dark); border-bottom-color: rgba(133, 102, 45, .4); }
.on-light .text-link:hover { color: var(--navy); }

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

.btn {
  display: inline-block; padding: 16px 34px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--charcoal); }
.btn-ghost { border-color: rgba(245, 241, 232, .4); color: var(--on-dark); background: none; }
.btn-ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn-outline-gold { border-color: rgba(166, 128, 60, .65); color: var(--gold); padding: 15px 28px; }
.btn-outline-gold:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

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

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(26, 26, 26, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-dark);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand-mark { width: 34px; height: 34px; }
.brand-word {
  font-family: var(--serif); font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-link {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-78);
  background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--on-dark); }

.nav-products { position: relative; }
.nav-products-btn { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark); }
.nav-caret { transition: transform .3s ease; }

.nav-panel {
  position: absolute; top: 42px; right: -28px;
  width: min(460px, calc(100vw - 40px)); padding: 24px 28px 22px 36px;
  background: rgba(22, 22, 22, .97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(245, 241, 232, .12); border-top: 1px solid var(--gold);
  box-shadow: 0 28px 64px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
/* Hover bridge so the panel doesn't close crossing the gap */
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-panel-label {
  margin: 0 0 14px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.nav-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; }
.nav-panel-grid a {
  position: relative; display: block; padding: 6px 0;
  font-size: 13px; line-height: 1.45; color: var(--on-dark-72); transition: color .2s ease;
}
.nav-panel-grid a::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 1px;
  background: var(--gold); opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.nav-panel-grid a:hover, .nav-panel-grid a[aria-current="page"] { color: var(--on-dark); }
.nav-panel-grid a:hover::before, .nav-panel-grid a[aria-current="page"]::before { opacity: 1; transform: none; }

/* Open on hover, on tap/click/Enter (.is-open, set by site.js), and while focus is inside the panel */
.nav-products.is-open .nav-panel,
.nav-panel:focus-within { opacity: 1; visibility: visible; transform: none; }
.nav-products.is-open .nav-caret,
.nav-products:has(.nav-panel:focus-within) .nav-caret { transform: rotate(180deg); }
@media (hover: hover) {
  .nav-products:hover .nav-panel { opacity: 1; visibility: visible; transform: none; }
  .nav-products:hover .nav-caret { transform: rotate(180deg); }
}

.menu-btn {
  display: none; align-items: center; gap: 10px; padding: 10px 0;
  background: none; border: 0; cursor: pointer; color: var(--on-dark);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.menu-btn-lines { position: relative; width: 20px; height: 9px; }
.menu-btn-lines::before, .menu-btn-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--gold);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn-lines::before { top: 0; }
.menu-btn-lines::after { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn-lines::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines::after { top: 4px; transform: rotate(-45deg); }

/* Phones and tablets: solid bars instead of a live blur, which is costly to redraw while scrolling */
@media (max-width: 879px) {
  .site-header { background: rgba(26, 26, 26, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .subnav { background: rgba(26, 26, 26, .98); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (max-width: 719px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 28px var(--gutter) 48px; overflow-y: auto;
    background: var(--charcoal); border-top: 1px solid var(--hairline-dark);
  }
  .site-nav.is-open { display: flex; }
  .nav-products-btn { display: none; }
  .nav-panel {
    position: static; width: auto; padding: 0 0 22px 14px; margin-bottom: 18px;
    opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; border-bottom: 1px solid var(--hairline-dark); box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav-panel::before { display: none; }
  .nav-panel-grid { grid-template-columns: 1fr; }
  .nav-panel-grid a { padding: 9px 0; font-size: 15px; }
  .site-nav > .nav-link { padding: 14px 0; font-size: 13px; border-bottom: 1px solid var(--hairline-dark); }
  html.menu-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block for the fixed menu panel */
  html.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--charcoal); }
}

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

.site-footer {
  padding: clamp(64px, 9vw, 104px) var(--gutter) 40px;
  background: var(--navy); border-top: 1px solid rgba(166, 128, 60, .28);
}
.footer-grid { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); }
.footer-col { flex: 1 1 220px; min-width: 0; }
.footer-col .label { margin: 0 0 18px; color: var(--gold-light); font-size: 11px; letter-spacing: .26em; }
.footer-list { font-size: 15px; line-height: 2; color: var(--on-dark-78); }
.footer-list a { color: var(--on-dark-78); }
.footer-list a:hover { color: var(--on-dark); }
.footer-address { margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: var(--on-dark-78); font-style: normal; }
.footer-hours { margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: var(--on-dark-62); }
.footer-map { flex: 1 1 280px; min-height: 220px; display: flex; }
.footer-map iframe {
  width: 100%; min-height: 220px; border: 1px solid var(--line-dark);
  filter: grayscale(1) contrast(.9);
}
.footer-bottom {
  max-width: 1240px; margin: clamp(48px, 6vw, 72px) auto 0; padding-top: 28px;
  border-top: 1px solid rgba(245, 241, 232, .12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 11px; text-transform: uppercase;
}
.footer-bottom p:first-child { letter-spacing: .24em; color: var(--gold-light); }
.footer-bottom p:last-child { letter-spacing: .16em; color: var(--on-dark-62); }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .25s ease, background-color .25s ease;
}
.wa-float:hover { background: var(--gold-light); transform: translateY(-2px); }
.wa-float:active { transform: scale(.94); }

/* ---------- Shared section shells ---------- */

.section { padding: clamp(80px, 11vh, 130px) var(--gutter); }
.bg-charcoal { background: var(--charcoal); }
.bg-navy { background: var(--navy); }
.bg-cream { background: var(--cream); }
.bg-off { background: var(--off-white); }
.on-light { color: var(--ink); }
.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-wide { max-width: 1320px; margin: 0 auto; }

/* Page hero shared by inner pages */
.page-hero {
  position: relative; display: flex; align-items: center;
  min-height: 100svh; padding: 120px var(--gutter) 80px; overflow: hidden;
}
.page-hero-inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px);
}
.page-hero-copy { flex: 1 1 380px; min-width: 0; }
.page-hero-media { flex: 1 1 420px; min-width: 0; will-change: transform; max-width: max(320px, calc(100svh - 140px)); } /* keeps the photo within one screen on landscape phones */
.page-hero .eyebrow { margin: 0 0 28px; }
.page-hero h1 {
  max-width: 14ch; font-size: clamp(40px, 6vw, 82px); line-height: 1.02;
}
.page-hero .rule { margin: 36px 0 28px; }
.page-hero-lede {
  max-width: 440px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; color: var(--on-dark-72);
}

/* Text-only hero (About, Contact, Gallery) */
.text-hero { display: flex; align-items: flex-end; padding: 160px var(--gutter) 90px; }
.text-hero .eyebrow { margin: 0 0 28px; }
.text-hero-inner { max-width: 900px; }
.about-hero { min-height: 80svh; }
.about-title { font-size: clamp(40px, 7vw, 92px); line-height: 1.02; }
.about-rule { margin: 38px 0 28px; }
.about-lede { max-width: 520px; font-size: 17px; line-height: 1.8; }

/* Closing CTA band */
.closing {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(90px, 13vh, 140px) var(--gutter);
}
.closing h2 {
  max-width: 16ch; font-size: clamp(36px, 6vw, 80px); line-height: 1.04;
}
.closing .rule-center { width: 180px; height: 1px; margin: 42px 0; background: var(--gold); }
.closing .btn-row { justify-content: center; }
.closing-address {
  margin: 40px 0 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  line-height: 2; color: var(--on-dark-62); font-style: normal;
}

/* ---------- Homepage ---------- */

.hero-home { background: var(--charcoal); }
.hero-home h1 { max-width: none; font-size: clamp(52px, 8.5vw, 116px); line-height: .96; }
.hero-home .word { display: inline-block; }
.hero-home .rule { margin: 38px 0 30px; }
.hero-home .page-hero-lede { max-width: 430px; font-size: clamp(15px, 1.5vw, 17.5px); line-height: 1.7; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; width: 1px; height: 56px;
  background: var(--gold); transform-origin: bottom;
}

.subnav {
  position: sticky; top: var(--header-h); z-index: 70;
  background: rgba(26, 26, 26, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-dark);
}
.subnav-inner {
  max-width: 1440px; margin: 0 auto; height: var(--subnav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 5vw, 64px);
}
.subnav-links {
  flex: 1 1 auto; min-width: 0; display: flex; gap: clamp(16px, 2.2vw, 34px);
  overflow-x: auto; scrollbar-width: none; padding: 14px 0;
}
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a {
  flex: 0 0 auto; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245, 241, 232, .55); transition: color .3s ease;
}
.subnav-links a span { color: var(--gold); margin-right: .5em; }
.subnav-links a:hover, .subnav-links a.is-active { color: var(--on-dark); }
.subnav-cta {
  flex: 0 0 auto; padding: 9px 18px; border: 1px solid rgba(166, 128, 60, .65);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
@media (max-width: 559px) { .subnav-cta { display: none; } }
/* Landscape phones: the section bar scrolls away so it doesn't cover a quarter of the screen */
@media (max-height: 500px) {
  .subnav { position: relative; top: 0; }
  html.page-home { scroll-padding-top: calc(var(--header-h) + 16px); }
}

.proposition {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 44px; padding: clamp(90px, 14vh, 160px) var(--gutter); text-align: center;
}
.proposition h2 {
  max-width: 14ch; font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 7vw, 92px); line-height: 1.04; letter-spacing: -.02em; color: var(--navy);
}
.proposition p { max-width: 600px; font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.8; text-wrap: pretty; }

.stats { padding: clamp(64px, 9vw, 104px) var(--gutter); }
.stats-grid { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 0px); }
.stat { flex: 1 1 240px; padding: 0 clamp(0px, 3vw, 40px); text-align: center; }
.stat + .stat { border-left: 1px solid rgba(166, 128, 60, .35); }
.stat-num { font-family: var(--serif); font-size: clamp(44px, 6vw, 74px); line-height: 1; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.stat-label { margin: 18px 0 0; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
@media (max-width: 799px) {
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(166, 128, 60, .35); padding-top: 32px; }
}

.cap {
  min-height: 100svh; display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(40px, 6vw, 88px); padding: clamp(80px, 11vh, 140px) var(--gutter);
}
.cap--flip { flex-direction: row-reverse; }
.cap-copy { flex: 1 1 340px; min-width: 0; max-width: 560px; }
.cap-text { margin: 0 0 34px; max-width: 440px; font-size: 16px; line-height: 1.75; color: var(--on-dark-72); text-wrap: pretty; }
.on-light .cap-text { color: var(--ink); }
.cap-media { flex: 1 1 420px; min-width: 0; overflow: hidden; }
.cap-media img { width: 100%; transition: transform 1.2s var(--ease); }
.motion .cap-media.is-in img { transform: scale(1.035); }
@media (max-width: 859px) { .cap--flip { flex-direction: row; } }

.materials { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(44px, 6vw, 72px); padding: clamp(80px, 11vh, 140px) var(--gutter); }
.materials-intro { max-width: 620px; }
.materials-intro p:last-child { max-width: 460px; font-size: 16px; line-height: 1.75; color: var(--on-dark-72); text-wrap: pretty; }
.materials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; max-width: 1320px; }
@media (min-width: 760px) { .materials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); } }
@media (min-width: 1000px) { .materials-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.material { padding-top: 20px; border-top: 1px solid var(--line-gold); }
.material h3 { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--gold-light); }
.material ul { font-size: 15px; line-height: 2; color: var(--on-dark-66); }
/* Phones: two columns, with the fifth group across the full width so it isn't left alone */
@media (max-width: 759px) {
  .material:last-child { grid-column: 1 / -1; }
  .material:last-child ul { columns: 2; column-gap: 20px; }
  .material h3 { margin-bottom: 12px; font-size: 18px; }
  .material ul { font-size: 14px; line-height: 1.85; }
  .material li { break-inside: avoid; }
}

/* Phones: short sections size to their content instead of filling the screen */
@media (max-width: 699px) {
  .proposition, .cap, .materials { min-height: 0; }
  .proposition { gap: 28px; padding: 96px var(--gutter); }
  .cap { gap: 32px; padding: 72px var(--gutter); }
  .materials { gap: 36px; padding: 72px var(--gutter); }
}

/* How a box is made — pinned scroll sequence where there is room, stacked list elsewhere */
.stage { position: relative; background: var(--charcoal); }
.stage-inner {
  display: flex; flex-direction: column; align-items: stretch; gap: clamp(32px, 6vw, 48px);
  padding: clamp(70px, 10vh, 110px) var(--gutter);
}
.stage-rail-col { display: none; flex: 0 0 2px; align-self: stretch; margin: 14vh 0; background: rgba(245, 241, 232, .12); position: relative; }
.stage-rail { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(var(--p, 1)); transition: transform 1s var(--ease); }
.stage-caps { min-width: 0; z-index: 2; }
.stage-caps .num-eyebrow { margin-bottom: clamp(22px, 4vh, 38px); }
.cap-deck { display: grid; gap: clamp(30px, 6vw, 42px); }
.step-num { margin: 0 0 12px; font-family: var(--serif); font-size: 20px; color: var(--gold); }
.step h3 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; color: var(--on-dark); }
.step p:last-child { font-size: 15.5px; line-height: 1.75; color: var(--on-dark-66); }
.stage-box-col { order: -1; display: flex; align-items: center; justify-content: center; }
/* "Keep scrolling" hint, shown only while the sequence is pinned, so the end of the
   box animation never reads as the end of the page */
.scroll-cue {
  display: none; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.scroll-cue span { padding-left: .3em; }
.scroll-cue svg { animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); opacity: .45; } 50% { transform: translateY(4px); opacity: 1; } }
.stage-frame {
  position: relative; width: min(78vw, 360px); aspect-ratio: 1 / 1; perspective: 1500px;
  display: flex; align-items: center; justify-content: center;
}
.stage-glow {
  position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(166, 128, 60, .13), rgba(166, 128, 60, 0) 68%);
}

.box {
  --w: min(62vw, 290px); --wall: calc(var(--w) * .27); --skirt: calc(var(--w) * .1);
  position: relative; width: var(--w); height: var(--w);
  transform-style: preserve-3d; transform: rotateX(52deg) rotateZ(-12deg);
  transition: transform 1.1s var(--ease);
}
.box-floor {
  position: absolute; inset: 0; transform-style: preserve-3d;
  background: linear-gradient(150deg, #302B25, #1C1917);
  box-shadow: inset 0 0 0 1px rgba(166, 128, 60, .26), inset 0 0 60px rgba(0, 0, 0, .5);
}
.box-lining {
  position: absolute; inset: 5%;
  background: radial-gradient(circle at 32% 26%, #53422F, #2E251E);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .55); transition: opacity .9s ease;
}
.box-score { position: absolute; inset: 8%; border: 1px dashed rgba(200, 155, 80, .5); opacity: 0; transition: opacity .7s ease; }
.box-side { position: absolute; inset: 0; transform-style: preserve-3d; }
.box-side.rz90 { transform: rotateZ(90deg); }
.box-side.rz180 { transform: rotateZ(180deg); }
.box-side.rz270 { transform: rotateZ(270deg); }
.box-wall {
  position: absolute; left: 0; top: 100%; width: 100%; height: var(--wall);
  transform-origin: center top; transform: rotateX(90deg);
  transition: transform 1.15s cubic-bezier(.34, 1.15, .5, 1);
}
.box-wall.w1 { background: linear-gradient(180deg, #453D31, #2B2520); box-shadow: inset 0 1px 0 rgba(200, 155, 80, .42); }
.box-wall.w2 { background: linear-gradient(180deg, #3A342B, #251F1B); box-shadow: inset 0 1px 0 rgba(200, 155, 80, .3); transition-delay: 81ms; }
.box-wall.w3 { background: linear-gradient(180deg, #332D26, #211D19); box-shadow: inset 0 1px 0 rgba(200, 155, 80, .22); transition-delay: 162ms; }
.box-wall.w4 { background: linear-gradient(180deg, #403830, #292420); box-shadow: inset 0 1px 0 rgba(200, 155, 80, .36); transition-delay: 243ms; }
.box-lid {
  position: absolute; left: -4%; top: -4%; width: 108%; height: 108%;
  transform-style: preserve-3d; transform: translateZ(var(--wall));
  transition: transform 1.2s var(--ease);
}
/* The lid fades by fading its faces: opacity on .box-lid itself would flatten its 3D */
.box-lid-top, .box-skirt { transition: opacity .8s ease; }
.box-lid-top {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(148deg, #4C4335 0%, #382F26 44%, #231F19 100%);
  /* hairline only: a large outer shadow on a 3D face renders as a dark slab over the walls */
  box-shadow: inset 0 0 0 1px rgba(200, 155, 80, .36);
}
.box-foil {
  width: 24%; aspect-ratio: 1 / 1; border: 1px solid #C89B50; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(14px, 2vw, 26px); letter-spacing: .04em; color: #C89B50;
  text-shadow: 0 0 14px rgba(200, 155, 80, .5);
  transition: transform .7s var(--ease) .25s, opacity .7s ease .25s;
}
.box-skirt {
  position: absolute; left: 0; top: 100%; width: 100%; height: var(--skirt);
  transform-origin: center top; transform: rotateX(-90deg);
}
.box-skirt.s1 { background: linear-gradient(180deg, #4A4134, #2E2822); box-shadow: inset 0 1px 0 rgba(200, 155, 80, .44); }
.box-skirt.s2 { background: linear-gradient(180deg, #3E362C, #28231E); box-shadow: inset 0 1px 0 rgba(200, 155, 80, .32); }
.box-skirt.s3 { background: linear-gradient(180deg, #37302A, #241F1B); box-shadow: inset 0 1px 0 rgba(200, 155, 80, .24); }
.box-skirt.s4 { background: linear-gradient(180deg, #453C32, #2C2722); box-shadow: inset 0 1px 0 rgba(200, 155, 80, .38); }

/* Pinned scroll sequence on any screen tall enough for it, phones held upright included.
   Landscape phones, reduced motion and no-JS keep the stacked list above. */
@media (min-height: 640px) {
  .motion .stage { height: 420vh; }
  .motion .stage-inner { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .motion .stage-rail-col { display: block; }
  .motion .scroll-cue { display: flex; }
  .motion .cap-deck { position: relative; display: block; }
  .motion .step { transition: opacity .6s ease; }
  .motion .step + .step { position: absolute; inset: 0; }

  .motion .stage[data-phase] .step { opacity: 0; }
  .motion .stage[data-phase="1"] .step:nth-child(1),
  .motion .stage[data-phase="2"] .step:nth-child(2),
  .motion .stage[data-phase="3"] .step:nth-child(3),
  .motion .stage[data-phase="4"] .step:nth-child(4) { opacity: 1; }

  .motion .stage[data-phase="1"] { --p: .25; }
  .motion .stage[data-phase="2"] { --p: .5; }
  .motion .stage[data-phase="3"] { --p: .75; }
  .motion .stage[data-phase="1"] .box { transform: rotateX(64deg) rotateZ(-44deg); }
  .motion .stage[data-phase="1"] .box-wall { transform: rotateX(0deg); }
  .motion .stage[data-phase="1"] .box-score { opacity: 1; }
  .motion .stage[data-phase="2"] .box { transform: rotateX(58deg) rotateZ(-32deg); }
  .motion .stage[data-phase="3"] .box { transform: rotateX(56deg) rotateZ(-22deg); }
  .motion .stage[data-phase="1"] .box-lining,
  .motion .stage[data-phase="2"] .box-lining { opacity: 0; }
  .motion .stage[data-phase="1"] .box-lid,
  .motion .stage[data-phase="2"] .box-lid,
  .motion .stage[data-phase="3"] .box-lid { transform: translateZ(calc(var(--w) * 1.05)); }
  .motion .stage[data-phase="1"] :is(.box-lid-top, .box-skirt),
  .motion .stage[data-phase="2"] :is(.box-lid-top, .box-skirt),
  .motion .stage[data-phase="3"] :is(.box-lid-top, .box-skirt) { opacity: 0; }
  .motion .stage[data-phase="1"] .box-foil,
  .motion .stage[data-phase="2"] .box-foil,
  .motion .stage[data-phase="3"] .box-foil { opacity: 0; transform: scale(1.4); }
}

/* Wide screens: captions beside the box, vertical progress rail */
@media (min-width: 880px) and (min-height: 640px) {
  .motion .stage-inner {
    flex-direction: row; align-items: center; gap: clamp(32px, 5vw, 80px);
    padding: calc(var(--header-h) + var(--subnav-h) + 24px) var(--gutter) 48px;
  }
  .motion .stage-caps { flex: 1 1 320px; max-width: 400px; }
  .motion .cap-deck { min-height: 300px; }
  .motion .stage-box-col { order: 0; flex: 1 1 440px; min-width: 0; align-self: stretch; }
  .motion .stage-frame { width: min(74vh, 100%); }
  .motion .stage .box { --w: min(40vh, 350px); }
  .motion .scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); }
}

/* Phones and tablets held upright: box on top, caption below, progress bar along the bottom */
@media (max-width: 879px) and (min-height: 640px) {
  .motion .stage { height: 460vh; } /* about one screen of scrolling per step, so a quick swipe doesn't race through */
  .motion .stage-inner {
    justify-content: center; gap: 14px;
    padding: calc(var(--header-h) + var(--subnav-h) + 8px) var(--gutter) 24px;
  }
  .motion .stage-frame { --f: min(80vw, 34svh, 340px); width: var(--f); }
  .motion .stage .box { --w: calc(var(--f) * .58); }
  .motion .stage-caps .num-eyebrow { margin-bottom: 12px; }
  .motion .cap-deck { min-height: 190px; }
  .motion .scroll-cue { order: 2; }
  .motion .step-num { margin-bottom: 8px; }
  .motion .step h3 { margin-bottom: 10px; font-size: 28px; }
  .motion .stage-rail-col { order: 3; flex: 0 0 2px; margin: 0 72px 0 0; } /* stops short of the WhatsApp button */
  .motion .stage-rail { transform-origin: left; transform: scaleX(var(--p, 1)); }
}

.clients-words { display: flex; flex-wrap: wrap; align-items: baseline; gap: clamp(20px, 4vw, 56px); margin: 0 0 56px; }
.clients-words li { font-family: var(--serif); font-size: clamp(38px, 6.4vw, 86px); line-height: 1.05; color: var(--navy); }
.clients-note { max-width: 560px; font-size: 16px; line-height: 1.8; text-wrap: pretty; }

.work-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 48px; }
/* Masonry: CSS columns, so every photo keeps its own proportions */
.work-grid { columns: 3 280px; column-gap: 16px; }
.work-card { position: relative; overflow: hidden; margin: 0 0 16px; background: #222; break-inside: avoid; }
.work-card img { width: 100%; transition: transform .8s var(--ease); }
.work-card:hover img { transform: scale(1.03); }
.work-scrim {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0) 60%);
}
.work-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px;
  font-size: 13.5px; line-height: 1.6; color: var(--on-dark);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s var(--ease); pointer-events: none;
}
.work-card:hover .work-scrim, .work-card:focus-within .work-scrim, .work-card.is-active .work-scrim { opacity: 1; }
.work-card:hover .work-cap, .work-card:focus-within .work-cap, .work-card.is-active .work-cap { opacity: 1; transform: none; }
/* Touch screens have no hover: show captions at rest */
@media (hover: none) {
  .work-scrim { opacity: 1; }
  .work-cap { opacity: 1; transform: none; }
}

/* ---------- Product pages ---------- */

.intro { display: flex; justify-content: center; padding: clamp(90px, 14vh, 150px) var(--gutter); }
.intro-inner { max-width: 700px; text-align: center; }
.intro h2 { margin: 0 0 30px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -.015em; color: var(--navy); }
.intro p { font-size: 17px; line-height: 1.85; text-wrap: pretty; }

.construction-grid { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(40px, 6vw, 88px); }
.spec-col { flex: 1 1 320px; min-width: 0; max-width: 420px; }
@media (min-width: 880px) and (min-height: 600px) { .spec-col { position: sticky; top: calc(var(--header-h) + 36px); } }
.spec-col > .label { margin: 0 0 30px; }
.spec { margin: 0 0 28px; }
.spec h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--on-dark); }
.spec p { font-size: 15px; line-height: 1.8; color: var(--on-dark-62); }
.photo-col { flex: 1 1 460px; min-width: 0; display: grid; gap: clamp(20px, 3vw, 40px); }

.pieces-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: clamp(20px, 3vw, 36px); }
.piece figcaption { margin-top: 16px; font-size: 14px; line-height: 1.65; color: var(--ink); }
.section > .label { margin: 0 0 48px; }
.wrap > .label { margin: 0 0 48px; }

.answers { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 56px); }
.answer { flex: 1 1 300px; }
.answer h3 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--navy); }
.answer p { font-size: 15.5px; line-height: 1.8; text-wrap: pretty; }

.related { padding: clamp(70px, 9vh, 110px) var(--gutter); }
.related > .label { margin: 0 0 40px; }
.related-list { display: flex; flex-wrap: wrap; gap: 16px; }
.related-list a {
  flex: 1 1 280px; padding: 34px 30px; border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--on-dark);
  transition: border-color .3s ease;
}
.related-list a:hover { border-color: var(--gold); color: var(--on-dark); }
.related-list span:first-child { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.related-list span:last-child { color: var(--gold); }

/* Photo still to come: a quiet branded panel instead of a broken image */
.photo-pending {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: #222; border: 1px solid rgba(166, 128, 60, .28);
}
.on-light .photo-pending { background: #EDE7DA; border-color: rgba(133, 102, 45, .3); }
.photo-pending img { width: 22%; opacity: .5; }

/* Quote / enquiry form */
.quote { padding: clamp(90px, 13vh, 140px) var(--gutter); }
.quote-grid { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 88px); }
.quote-copy { flex: 1 1 340px; min-width: 0; }
.quote-copy h2 { margin: 0 0 24px; max-width: 14ch; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.015em; color: var(--on-dark); }
.quote-lede { margin: 0 0 34px; max-width: 400px; font-size: 16px; line-height: 1.8; color: var(--on-dark-72); }
.quote-copy .btn-row { gap: 14px; margin-bottom: 30px; }
.quote-copy .btn { padding: 15px 30px; }
.quote-meta { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; line-height: 2; color: var(--on-dark-62); }
.quote-form { flex: 1 1 380px; min-width: 0; display: grid; gap: 16px; align-content: start; }
.quote-form input, .quote-form textarea {
  width: 100%; padding: 15px 16px; background: transparent;
  border: 1px solid rgba(245, 241, 232, .26); border-radius: 0; color: var(--on-dark); font-size: 15px;
  transition: border-color .2s ease;
}
.quote-form textarea { resize: vertical; min-height: 120px; }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: rgba(245, 241, 232, .55); }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--gold-light); }
.quote-form .btn { justify-self: start; padding: 16px 30px; }

/* ---------- About ---------- */

.story { display: flex; justify-content: center; padding: clamp(90px, 13vh, 140px) var(--gutter); }
.story-inner { max-width: 700px; }
.story p { margin: 0 0 26px; font-size: 17.5px; line-height: 1.9; text-wrap: pretty; }
.story p:last-child { margin: 0; }

.timeline { max-width: 900px; margin: 0 auto; display: flex; gap: clamp(24px, 4vw, 56px); }
.timeline-rail { flex: 0 0 2px; position: relative; background: rgba(245, 241, 232, .14); }
.timeline-rail-fill { position: absolute; inset: 0; background: var(--gold); transform-origin: top; }
.timeline-list { flex: 1 1 auto; min-width: 0; display: grid; gap: clamp(48px, 7vw, 88px); }
.timeline-list .label { margin: 0 0 14px; }
.timeline-list h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; color: var(--on-dark); }
.timeline-list p:last-child { max-width: 520px; font-size: 16px; line-height: 1.8; color: var(--on-dark-66); text-wrap: pretty; }

/* ---------- Contact ---------- */

.contact-hero { min-height: 70svh; padding-top: 150px; padding-bottom: 80px; }
.contact-hero h1 { margin: 0 0 34px; max-width: 820px; font-size: clamp(38px, 6.4vw, 86px); line-height: 1.03; }
.details-grid { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 72px); }
.details-col { flex: 1 1 260px; }
.details-col .label { margin: 0 0 18px; font-size: 11px; letter-spacing: .26em; }
.details-col p, .details-col address { font-size: 16px; line-height: 1.9; font-style: normal; }
.details-col a { color: var(--navy); }
.details-col a:hover { color: var(--gold-dark); }
.muted { color: var(--ink-soft); }
.map-band { padding: 0 var(--gutter) clamp(80px, 11vh, 130px); }
.map-frame { max-width: 1240px; margin: 0 auto; height: clamp(300px, 45vh, 460px); }
.map-frame iframe { width: 100%; height: 100%; border: 1px solid rgba(27, 42, 65, .18); }
.map-link { max-width: 1240px; margin: 18px auto 0; }

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

.gallery-hero { padding: 170px var(--gutter) 70px; }
.gallery-hero-inner { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.gallery-hero .eyebrow { margin: 0 0 26px; }
.gallery-hero h1 { max-width: 720px; font-size: clamp(40px, 6.4vw, 86px); line-height: 1.03; }
.feed { padding: 0 var(--gutter) clamp(90px, 13vh, 140px); }
.feed-widget:empty { display: none; }
.feed.has-feed .feed-fallback { display: none; }
.fallback-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fallback-grid a { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #222; }
.fallback-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fallback-grid a:hover img { transform: scale(1.04); }

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

.notfound { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; padding: 160px var(--gutter) 100px; }
.notfound .eyebrow { margin: 0 0 28px; }
.notfound h1 { font-size: clamp(40px, 6vw, 82px); line-height: 1.04; margin: 0 0 24px; }
.notfound-lede { max-width: 520px; font-size: 17px; line-height: 1.8; color: var(--on-dark-72); margin: 0 0 34px; }

/* ---------- Motion ----------
   Everything is visible at rest. Load animations run only under .motion
   (set before first paint when reduced motion is not requested). Scroll
   reveals are Web Animations with fill:none, started from site.js. */

@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes breathe { 0%, 100% { opacity: .25; transform: scaleY(.45); } 50% { opacity: 1; transform: scaleY(1); } }

.motion .rise { animation: rise .95s var(--ease) both; }
.motion .rise-slow { animation: rise 1.4s var(--ease) both; }
.motion .draw { animation: draw 1.1s var(--ease) both; }
.motion .scroll-hint { animation: breathe 3.4s ease-in-out 2s infinite; }
.d-15 { animation-delay: .15s !important; }
.d-20 { animation-delay: .2s !important; }
.d-30 { animation-delay: .3s !important; }
.d-45 { animation-delay: .45s !important; }
.d-60 { animation-delay: .6s !important; }
.d-75 { animation-delay: .75s !important; }
.d-80 { animation-delay: .8s !important; }
.d-90 { animation-delay: .9s !important; }
.d-95 { animation-delay: .95s !important; }
.d-100 { animation-delay: 1s !important; }
.d-105 { animation-delay: 1.05s !important; }
.d-115 { animation-delay: 1.15s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .rise, .rise-slow, .draw, .scroll-hint, [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cap-media img, .work-card img { transform: none !important; }
}
