/* ==========================================================================
   STONEDGE — main stylesheet
   Mobile-first. Palette: charcoal / ivory / marble white + brushed bronze.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
/* Metric-matched fallbacks reduce layout shift while fonts load */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 87%; ascent-override: 102%; descent-override: 32%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 104%; ascent-override: 102%; descent-override: 28%;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #121110;
  --charcoal: #1b1a18;
  --graphite: #2a2825;
  --ivory: #f3eee5;
  --marble: #faf8f4;
  --paper: #fffdf9;
  --stone: #7d776d;
  --stone-light: #b5ada0;
  --bronze: #b08d57;
  --bronze-light: #d0b27c;
  --bronze-deep: #8a6b3c;
  --line: rgba(18, 17, 16, 0.12);
  --line-light: rgba(243, 238, 229, 0.16);

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 160px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1.1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
::selection { background: var(--bronze); color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--charcoal); color: var(--ivory); }
.section--dark a:not(.btn) { color: var(--bronze-light); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 1.4em;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--bronze-light); }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 0.6em;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  line-height: 1.4;
  color: var(--ink);
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head__lede { color: var(--stone); max-width: 52ch; margin-top: 1.2em; }
.section--dark .section-head__lede { color: var(--stone-light); }
.section-head--split { max-width: none; display: grid; gap: 24px; align-items: end; }
.section-head--split .section-head__lede { margin: 0; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn--gold { --btn-bg: var(--bronze); --btn-fg: var(--ink); --btn-bd: var(--bronze); }
.btn--gold:hover { --btn-bg: var(--bronze-light); --btn-bd: var(--bronze-light); }
.btn--ghost { --btn-bd: rgba(243, 238, 229, 0.45); }
.btn--ghost:hover { --btn-bg: var(--ivory); --btn-fg: var(--ink); --btn-bd: var(--ivory); }
.section:not(.section--dark) .btn--ghost { --btn-bd: var(--line); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.7rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--ivory);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.site-header.is-solid { background: rgba(18, 17, 16, 0.92); box-shadow: 0 1px 0 var(--line-light); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; color: var(--ivory); text-decoration: none; margin-right: auto; }
.brand__mark { height: 32px; width: auto; overflow: visible; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 1px; background: currentColor; position: relative;
  transition: transform 0.4s var(--ease), background-color 0.2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.primary-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: var(--ink); padding: 32px var(--gutter) 120px; overflow-y: auto;
  display: none;
}
.nav-open .primary-nav { display: block; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .primary-nav { display: block; position: static; padding: 0 0 12px; background: none; }
.primary-nav__list > li { border-bottom: 1px solid var(--line-light); }
.primary-nav__list a {
  display: block; padding: 14px 0; text-decoration: none;
  font-family: var(--serif); font-size: 1.7rem; line-height: 1.2;
}
.primary-nav__list a[aria-current="page"] { color: var(--bronze-light); }
.primary-nav .sub { padding: 0 0 12px 16px; }
.primary-nav .sub a { font-family: var(--sans); font-size: 0.95rem; padding: 8px 0; color: var(--stone-light); }
.primary-nav__cta { display: grid; gap: 16px; margin-top: 32px; }
.nav-phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 0.95rem; }
.nav-phone .icon { width: 18px; height: 18px; color: var(--bronze-light); }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .primary-nav, html:not(.js) .primary-nav {
    display: flex; position: static; inset: auto; padding: 0; background: none; overflow: visible;
    align-items: center; gap: 36px;
  }
  .primary-nav__list { display: flex; gap: 30px; }
  .primary-nav__list > li { border: 0; position: relative; }
  .primary-nav__list a {
    font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
    padding: 8px 0; position: relative;
  }
  .primary-nav__list > li > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
    background: var(--bronze-light); transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease);
  }
  .primary-nav__list > li > a:hover::after,
  .primary-nav__list > li > a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav .sub {
    position: absolute; top: 100%; left: -24px; min-width: 260px;
    background: var(--ink); padding: 14px 24px; box-shadow: 0 24px 48px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .primary-nav .sub a { font-size: 0.85rem; letter-spacing: 0.02em; }
  .primary-nav .sub a:hover { color: var(--ivory); }
  .primary-nav__cta { display: flex; align-items: center; gap: 24px; margin: 0; }
  .nav-phone { font-size: 0.8rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  background: var(--ink); color: var(--ivory);
  display: grid; grid-template-areas: "slab" "content"; grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding-top: calc(var(--header-h) + 8px); padding-bottom: 56px;
  overflow: hidden;
}
.hero__backdrop { position: absolute; inset: 0; z-index: -2; }
.hero__backdrop img { width: 100%; height: 100%; object-fit: cover; }
.hero__backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 72% 45%, rgba(176, 141, 87, 0.10), transparent 55%),
    linear-gradient(90deg, rgba(18,17,16,0.85) 0%, rgba(18,17,16,0.35) 55%, rgba(18,17,16,0.15) 100%);
}
.hero__content { grid-area: content; position: relative; z-index: 3; min-width: 0; }
.hero__slab {
  grid-area: slab; margin: 0 auto -8px; width: min(88vw, 520px); position: relative; z-index: 1;
  transition: opacity 1.2s var(--ease);
}
.hero__slab img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.45)); }
.hero__stage { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
html:not(.has-3d) .hero__stage { display: none; }
.hero__stage canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
.has-3d .hero__stage canvas { width: 100% !important; height: 100% !important; }
.has-3d.is-3d-ready .hero__stage canvas { opacity: 1; }
.has-3d.is-3d-ready .hero__slab { opacity: 0; }

.hero__kicker {
  display: block; font-family: var(--sans);
  font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.95rem); font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-light);
  margin-bottom: 18px;
}
.hero__display {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 1.8rem + 5.2vw, 6.6rem); line-height: 0.95; letter-spacing: -0.02em;
  max-width: 11ch;
}
.hero__display em { font-style: italic; color: var(--bronze-light); }
.hero__lede { max-width: 46ch; margin: 22px 0 30px; color: rgba(243, 238, 229, 0.78); font-size: 0.98rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; width: 28px; height: 46px; margin-left: -14px;
  border: 1px solid rgba(243,238,229,0.35); border-radius: 14px;
  display: none;
}
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; background: var(--bronze-light); animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* Material switcher (only shown when 3D is running) */
.swatches { margin-top: 36px; }
.swatches[hidden] { display: none; }
.swatches__label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 14px; }
.swatches__list { display: flex; gap: 10px; pointer-events: auto; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.swatches__list::-webkit-scrollbar { display: none; }
.swatch { flex: none; }
.swatch {
  display: grid; grid-template-columns: 26px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 8px 14px 8px 8px; background: rgba(243,238,229,0.04); border: 1px solid var(--line-light);
  border-radius: 40px; cursor: pointer; text-align: left;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.swatch__chip { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.swatch__name { font-size: 0.8rem; font-weight: 500; line-height: 1.2; }
.swatch__type { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-light); line-height: 1.3; }
.swatch:hover { border-color: rgba(243,238,229,0.4); }
.swatch[aria-pressed="true"] { border-color: var(--bronze-light); background: rgba(176,141,87,0.14); }

@media (min-width: 1000px) {
  .hero {
    grid-template-areas: "content slab"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-top: calc(var(--header-h) + 24px); padding-bottom: 0;
  }
  .hero__lede { font-size: 1.02rem; margin: 28px 0 36px; }
  .swatches { margin-top: 44px; }
  .swatches__list { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .hero__content { grid-column: 1 / -1; grid-row: 1; }
  .hero__slab {
    grid-area: auto; grid-row: 1; grid-column: 2;
    width: 52vw; max-width: 980px; margin: 0 0 0 -6vw; justify-self: start; align-self: center;
  }
  .hero__scroll { display: block; }
}

/* ---------- Collection ---------- */
.collection { position: relative; z-index: 1; }
.cat-grid { display: grid; gap: 18px; }
.cat-card__link { display: grid; text-decoration: none; height: 100%; background: var(--paper); }
.cat-card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--ivory); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cat-card__link:hover img { transform: scale(1.05); }
.cat-card__body { display: grid; gap: 10px; padding: 24px 24px 28px; align-content: start; }
.cat-card__index { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--bronze-deep); }
.cat-card__title { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.05; }
.cat-card__blurb { color: var(--stone); font-size: 0.95rem; }
.cat-card__more { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 8px; }
.cat-card__more .icon { transition: transform 0.5s var(--ease); }
.cat-card__link:hover .cat-card__more .icon { transform: translateX(6px); }
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card--feature { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .cat-card--feature { grid-column: span 2; grid-row: span 2; }
  .cat-card--feature .cat-card__link { grid-template-rows: 1fr auto; }
  .cat-card--feature .cat-card__media { aspect-ratio: auto; min-height: 420px; }
  .cat-card--feature .cat-card__title { font-size: clamp(2.2rem, 1.4rem + 1.6vw, 3.2rem); }
}

/* ---------- Intro ---------- */
.intro__grid { display: grid; gap: 40px; }
.intro__body p:not(.lead) { color: #4a463f; }
.intro__body a { color: var(--bronze-deep); }
.pillars { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-top: 16px; }
.pillar { background: var(--marble); padding: 26px 0; }
.pillar dt { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; }
.pillar dd { color: var(--stone); font-size: 0.95rem; }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 5fr 7fr; column-gap: 80px; }
  .pillars { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); border: 0; background: none; gap: 0; }
  .pillar { padding: 32px 28px 0 0; border-top: 1px solid var(--line); margin-right: 28px; }
}

/* ---------- Varieties ---------- */
.variety-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
.variety__link { display: grid; gap: 4px; text-decoration: none; }
.variety__media { overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 12px; border-radius: 120px 120px var(--radius) var(--radius); background: var(--marble); }
.variety__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.variety__link:hover img { transform: scale(1.06); }
.variety__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.variety__origin { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
@media (min-width: 640px) { .variety-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .variety-row { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Services ---------- */
.service-list { display: grid; gap: 1px; background: var(--line-light); border-block: 1px solid var(--line-light); }
.service { background: var(--charcoal); padding: 36px 0; }
.service p { color: var(--stone-light); margin: 0; }
.service__num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--bronze-light); margin-bottom: 18px; }
@media (min-width: 900px) {
  .service-list { grid-template-columns: repeat(3, 1fr); }
  .service { padding: 44px 40px 44px 0; }
  .service + .service { padding-left: 40px; }
}

/* ---------- Applications ---------- */
.applications__grid { display: grid; gap: 24px; }
.app-list { border-top: 1px solid var(--line); }
.app { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.app dt { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.app dd { color: var(--stone); }
.app a { color: var(--bronze-deep); }
@media (min-width: 900px) {
  .applications__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .app { grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline; }
}

/* ---------- Projects (CSS 3D tilt) ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; perspective: 1200px; }
.project-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; }
.project-card__link {
  position: relative; display: block; text-decoration: none; color: var(--ivory);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease);
}
.project-card.is-tilting .project-card__link { transition: transform 0.12s linear; }
.project-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateZ(0); transition: transform 1.2s var(--ease); }
.project-card__link:hover .project-card__media img { transform: scale(1.12); }
.project-card__link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(180deg, transparent 45%, rgba(10,10,9,0.78));
}
.project-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px;
  transform: translateZ(40px); display: grid; gap: 2px;
}
.project-card__place { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-light); }
.project-card__name { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); line-height: 1.1; }
@media (min-width: 1000px) {
  .project-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .project-card:nth-child(4n + 2), .project-card:nth-child(4n + 4) { margin-top: 64px; }
}

/* ---------- Project photo gallery + lightbox ---------- */
.section--tight { padding-top: 0; }
.gallery { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 14px; }
.gallery__item { break-inside: avoid; margin: 0 0 14px; }
.gallery__link { position: relative; display: block; overflow: hidden; background: var(--graphite); cursor: zoom-in; }
.gallery__link img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease), filter 0.6s var(--ease); }
.gallery__link:hover img, .gallery__link:focus-visible img { transform: scale(1.04); filter: brightness(1.06); }
.gallery__zoom {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(18,17,16,0.55) center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3eee5' stroke-width='1.6'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E");
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__link:hover .gallery__zoom, .gallery__link:focus-visible .gallery__zoom { opacity: 1; transform: none; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; column-gap: 18px; } .gallery__item { margin-bottom: 18px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  border: 0; background: rgba(12,11,10,0.96); color: var(--ivory);
  display: grid; grid-template-rows: 1fr auto; place-items: center;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(12,11,10,0.9); }
.lightbox__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.lightbox__img {
  max-width: min(94vw, 1600px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.lightbox__img.is-loading { opacity: 0; transform: scale(0.97); }
.lightbox__bar { display: flex; gap: 16px; align-items: center; justify-content: center; padding: 14px 20px 22px; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--stone-light); text-align: center; }
.lightbox__count { color: var(--bronze-light); letter-spacing: 0.2em; font-size: 0.7rem; white-space: nowrap; }
.lightbox__btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-light);
  background: rgba(18,17,16,0.5); color: var(--ivory); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.3s, border-color 0.3s;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--bronze-deep); border-color: var(--bronze); }
.lightbox__prev { left: clamp(8px, 3vw, 32px); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(8px, 3vw, 32px); top: 50%; transform: translateY(-50%); }
.lightbox__close { right: clamp(8px, 3vw, 32px); top: clamp(8px, 3vw, 28px); }
@media (max-width: 639px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; transform: none; } }
html.lb-open { overflow: hidden; }

/* ---------- Display Center ---------- */
.visit__grid { display: grid; gap: 44px; align-items: center; }
.visit__media { overflow: hidden; aspect-ratio: 16 / 10; }
.visit__media img { width: 100%; height: 100%; object-fit: cover; }
.visit__body > p { color: var(--stone-light); margin-top: 1.2em; }
.visit__facts { display: grid; gap: 12px; margin: 28px 0 36px; }
.visit__facts li { display: flex; gap: 14px; align-items: flex-start; }
.visit__facts .icon { flex: none; color: var(--bronze-light); margin-top: 4px; }
@media (min-width: 1000px) { .visit__grid { grid-template-columns: 1.1fr 1fr; gap: 88px; } }

/* ---------- Areas ---------- */
.areas__grid { display: grid; gap: 28px; }
.areas p { color: #4a463f; }
.areas a { color: var(--bronze-deep); }
@media (min-width: 900px) { .areas__grid { grid-template-columns: 5fr 7fr; gap: 80px; } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 8px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  color: var(--bronze-deep); transition: transform 0.4s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__q { font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); line-height: 1.25; }
.faq__a { padding: 0 0 26px; color: #4a463f; max-width: 70ch; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 80px; } }

/* ---------- Journal ---------- */
.post-grid { display: grid; gap: 40px; }
.post-card__link { display: grid; gap: 10px; text-decoration: none; }
.post-card__media { overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 10px; background: var(--ivory); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.post-card__link:hover img { transform: scale(1.05); }
.post-card__title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.post-card__excerpt { color: var(--stone); font-size: 0.95rem; }
.journal .section-head__lede a { color: var(--bronze-deep); }
@media (min-width: 900px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(80px, 10vw, 140px); background: var(--ink); color: var(--ivory); text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(ellipse at 50% 120%, rgba(176,141,87,0.35), transparent 60%);
}
.cta-band__inner { position: relative; max-width: 820px; }
.cta-band p { color: var(--stone-light); margin: 22px auto 36px; max-width: 52ch; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Breadcrumbs (inner pages) ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--stone-light); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--bronze-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--stone-light); padding: 88px 0 calc(28px + 64px); font-size: 0.92rem; }
.site-footer__grid { display: grid; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.site-footer__brand .brand { color: var(--ivory); margin-bottom: 12px; }
.site-footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--bronze-light); margin-bottom: 14px; }
.site-footer__h { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); margin-bottom: 18px; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.site-footer .nap { margin-bottom: 18px; line-height: 1.65; }
.site-footer .nap strong { color: var(--ivory); font-weight: 500; }
.site-footer .nap .icon { display: inline; width: 15px; height: 15px; vertical-align: -2px; color: var(--bronze-light); }
.nap__hours { color: var(--stone-light); }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-light); border-radius: 50%; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 0.8rem; }
.site-footer__legal p { margin: 0; }
@media (min-width: 900px) {
  .site-footer { padding-bottom: 28px; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}

/* ---------- Floating WhatsApp + sticky CTA ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 80px; z-index: 45;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #1f8f4d; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  transition: transform 0.4s var(--ease);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); border-top: 1px solid var(--line-light);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta__item {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px;
  color: var(--ivory); text-decoration: none;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.sticky-cta__item .icon { width: 18px; height: 18px; color: var(--bronze-light); }
.sticky-cta__item--gold { background: var(--bronze); color: var(--ink); }
.sticky-cta__item--gold .icon { color: var(--ink); }
@media (min-width: 900px) {
  .wa-float { bottom: 28px; right: 28px; }
  .sticky-cta {
    left: auto; right: 96px; bottom: 28px; grid-template-columns: auto auto; border: 0; background: none; gap: 10px;
    transform: translateY(calc(100% + 48px)); transition: transform 0.6s var(--ease);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta__item { min-height: 54px; padding: 0 22px; background: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
  .sticky-cta__item--gold { background: var(--bronze); }
}

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js [data-reveal], .js [data-reveal-stagger] > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .is-in[data-reveal], .js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------- Custom cursor (desktop only, created by JS) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.8);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), background-color 0.4s var(--ease);
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; background: rgba(255,255,255,0.12); }
.cursor.is-hidden { opacity: 0; }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Reduced motion ---------- */
@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; }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* ==========================================================================
   STAGE 2 — inner pages, 3D viewer, gallery, forms, transitions
   ========================================================================== */

/* ---------- Inner hero ---------- */
.hero--inner { min-height: 0; padding-top: calc(var(--header-h) + 28px); padding-bottom: 64px; }
.hero--inner .crumbs { margin-bottom: 28px; }
.hero__display--inner { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.4rem); max-width: 14ch; }
.hero--photo { min-height: 72vh; min-height: 72svh; align-content: end; }
.hero--photo .hero__backdrop img { opacity: 0.9; }
.hero--photo .hero__backdrop::after {
  background: linear-gradient(180deg, rgba(18,17,16,0.55) 0%, rgba(18,17,16,0.35) 40%, rgba(18,17,16,0.92) 100%);
}
.hero--photo .hero__content { padding-top: 18vh; }
@media (min-width: 1000px) {
  .hero--inner.hero--slab { min-height: 78vh; min-height: 78svh; }
  .hero--inner .hero__slab { width: 46vw; margin-left: -2vw; }
  .hero--photo .hero__backdrop::after {
    background: linear-gradient(90deg, rgba(18,17,16,0.88) 0%, rgba(18,17,16,0.55) 50%, rgba(18,17,16,0.2) 100%);
  }
  .hero--photo { align-content: center; }
  .hero--photo .hero__content { padding-top: 0; }
}

/* ---------- Prose / article ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.1; margin-top: 1.8em; }
.prose h3 { font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); line-height: 1.2; margin-top: 1.5em; }
.prose p, .prose li { color: #3f3b35; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.4em; margin-bottom: 0.5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--bronze-deep); }
.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: 0.5em; padding-left: 0.3em; }
.prose a { color: var(--bronze-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--bronze); font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: 0.82rem; color: var(--stone); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1.6em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); background: var(--ivory); }
.section--dark .prose p, .section--dark .prose li { color: var(--stone-light); }

.content-grid { display: grid; gap: 48px; }
.content-aside { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1000px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; }
  .content-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.aside-card { background: var(--ivory); padding: 28px; }
.aside-card h2, .aside-card h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; margin-bottom: 12px; }
.aside-card p { color: var(--stone); font-size: 0.95rem; }
.aside-card ul { display: grid; gap: 10px; margin: 14px 0 20px; font-size: 0.95rem; }
.aside-card a:not(.btn) { color: var(--bronze-deep); }
.aside-card .btn { width: 100%; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 0.92rem; margin: 0; }
.facts dt { color: var(--stone); }
.facts dd { color: var(--ink); font-weight: 500; }

/* ---------- Two-up media rows ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split__media { overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .split--reverse .split__media { order: 2; }
}

/* ---------- Application cards (home) ---------- */
.app-cards { display: grid; gap: 28px; }
.app-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 18px; background: var(--ivory); }
.app-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.app-card:hover .app-card__media img { transform: scale(1.05); }
.app-card__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; margin-bottom: 8px; }
.app-card p { color: var(--stone); margin: 0; }
.app-card a { color: var(--bronze-deep); }
@media (min-width: 700px) { .app-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .app-cards { grid-template-columns: repeat(6, 1fr); gap: 32px 24px; }
  .app-card { grid-column: span 2; }
  .app-card:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .app-card:nth-child(1) .app-card__media { aspect-ratio: auto; height: calc(100% - 120px); min-height: 420px; }
}

/* ---------- Real slab gallery / 3D carousel ---------- */
.gallery { overflow: hidden; }
.slab-gallery { padding-inline: var(--gutter); }
.slab-gallery__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; max-width: var(--wrap); margin-inline: auto; }
.slab-gallery__item figure { margin: 0; }
.slab-gallery__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--graphite); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.slab-gallery__media img { width: 100%; height: 100%; object-fit: cover; }
.slab-gallery figcaption { display: grid; gap: 2px; margin-top: 12px; }
.slab-gallery__name { font-family: var(--serif); font-size: 1.4rem; color: var(--ivory); line-height: 1.1; }
.slab-gallery__note { font-size: 0.78rem; color: var(--stone-light); }
@media (min-width: 640px) { .slab-gallery__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .slab-gallery__list { grid-template-columns: repeat(4, 1fr); } }

/* 3D ring mode (added by main.js on desktop) */
.slab-gallery.is-ring { height: 100vh; height: 100svh; display: grid; place-items: center; perspective: 1600px; padding: 0; }
.slab-gallery.is-ring .slab-gallery__list {
  display: block; position: relative; width: 260px; height: 380px; max-width: none; margin: 0;
  transform-style: preserve-3d;
}
.slab-gallery.is-ring .slab-gallery__item {
  position: absolute; inset: 0; transform-style: preserve-3d; backface-visibility: hidden;
}
.slab-gallery.is-ring .slab-gallery__media { aspect-ratio: auto; height: 100%; }
.slab-gallery.is-ring figure { height: 100%; }
.slab-gallery.is-ring figcaption { position: absolute; left: 0; right: 0; bottom: -64px; text-align: center; }

/* ---------- 3D viewer ---------- */
.viewer__grid { display: grid; gap: 40px; align-items: center; }
.viewer__intro p { color: var(--stone-light); margin-top: 1.2em; }
.viewer__tips { display: grid; gap: 8px; margin-top: 20px; font-size: 0.9rem; color: var(--stone-light); }
.viewer__tips li::before { content: "— "; color: var(--bronze-light); }
.viewer__stage {
  position: relative; aspect-ratio: 4 / 5; background: radial-gradient(ellipse at 50% 40%, #2c2a27, #151413 70%);
  border: 1px solid var(--line-light); overflow: hidden; touch-action: pan-y;
}
.viewer__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.8s var(--ease); }
.viewer__stage.is-live canvas { opacity: 1; touch-action: none; }
.viewer__poster { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; transition: opacity 0.8s var(--ease); }
.viewer__poster img { width: 88%; height: auto; }
.viewer__poster figcaption { position: absolute; left: 18px; bottom: 14px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-light); }
.viewer__stage.is-live .viewer__poster { opacity: 0; pointer-events: none; }
.viewer__launch { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; }
.viewer__launch[hidden] { display: none; }
.viewer__noscript { position: absolute; right: 16px; top: 12px; font-size: 0.75rem; color: var(--stone-light); margin: 0; }
.js .viewer__noscript { display: none; }
.viewer__controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 8px; padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(12,12,11,0.85));
}
.viewer__controls[hidden] { display: none; }
.viewer__group { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.viewer__group::-webkit-scrollbar { display: none; }
.viewer__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--stone-light); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; min-height: 34px;
  border: 1px solid var(--line-light); border-radius: 30px; background: rgba(18,17,16,0.6); color: var(--ivory);
  font-size: 0.74rem; letter-spacing: 0.04em; cursor: pointer; transition: border-color 0.3s, background-color 0.3s;
}
.chip__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.chip[aria-pressed="true"] { border-color: var(--bronze-light); background: rgba(176,141,87,0.22); }
.chip:hover { border-color: rgba(243,238,229,0.5); }
@media (min-width: 640px) { .viewer__stage { aspect-ratio: 4 / 3; } }
@media (min-width: 1000px) {
  .viewer__grid { grid-template-columns: 4fr 7fr; gap: 72px; }
}

/* ---------- About: quarry → home story ---------- */
.story { position: relative; overflow: clip; }
.story__steps { display: grid; gap: 48px; counter-reset: step; }
.story__step { display: grid; gap: 18px; }
.story__step h3 { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1.05; }
.story__step h3 span { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 10px; }
.story__step p { color: var(--stone-light); max-width: 46ch; }
.story__step .story__img { overflow: hidden; aspect-ratio: 16 / 10; }
.story__step .story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__canvas { display: none; }
.story.is-3d .story__canvas { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none; }
.story.is-3d .story__canvas canvas { width: 100% !important; height: 100% !important; }
.story.is-3d .story__step { min-height: 100vh; min-height: 100svh; align-content: center; position: relative; z-index: 1; }
.story.is-3d .story__img { display: none; }
.story.is-3d .story__step > div { background: rgba(18,17,16,0.55); padding: 28px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 460px; }
@media (min-width: 1000px) {
  .story__steps { gap: 80px; }
  .story__step { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .story.is-3d .story__step { grid-template-columns: 1fr; }
}

/* ---------- Timeline / values ---------- */
.values { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.value { background: var(--marble); padding: 30px 0; }
.value h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 8px; }
.value p { color: var(--stone); margin: 0; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } .value { padding: 36px 32px 36px 0; } .value + .value { padding-left: 32px; } }

/* ---------- Map + visit ---------- */
.map-embed { position: relative; aspect-ratio: 4 / 3; background: var(--graphite); overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line-light); text-align: left; }
.hours-table th { font-weight: 500; color: var(--ivory); }
.hours-table td { color: var(--stone-light); text-align: right; }
.steps-list { counter-reset: s; display: grid; gap: 22px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; color: var(--bronze-deep); }
.steps-list h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 4px; }
.steps-list p { color: var(--stone); margin: 0; }

/* ---------- Forms ---------- */
.enquiry { background: var(--paper); padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 80px rgba(18,17,16,0.08); }
.enquiry__title { margin-bottom: 22px; }
.form__grid { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--marble);
  border: 1px solid #d7d0c4; border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(176,141,87,0.2); }
.field--error input, .field--error textarea { border-color: #a63d2f; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 0.82rem; color: var(--stone); margin: 18px 0; }
.form__note a { color: var(--bronze-deep); }
@media (min-width: 700px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.notice { padding: 18px 20px; margin-bottom: 24px; border-left: 3px solid; font-size: 0.95rem; }
.notice strong { display: block; margin-bottom: 4px; }
.notice ul { margin-top: 6px; padding-left: 1.1em; list-style: disc; }
.notice--ok { background: #eef4ec; border-color: #3d7a46; }
.notice--error { background: #f8ece9; border-color: #a63d2f; }
.notice a { color: var(--bronze-deep); }

/* ---------- Contact cards ---------- */
.contact-cards { display: grid; gap: 18px; }
.contact-card { background: var(--charcoal); color: var(--ivory); padding: 28px; }
.contact-card h2 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 10px; }
.contact-card p { color: var(--stone-light); margin-bottom: 6px; }
.contact-card a { color: var(--bronze-light); }
@media (min-width: 700px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Project detail ---------- */
.project-hero-media { overflow: hidden; aspect-ratio: 16 / 9; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.note { font-size: 0.85rem; color: var(--stone); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; }

/* ---------- Blog list ---------- */
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-light); margin-top: 20px; }
.article-hero-media { margin-top: -40px; position: relative; z-index: 2; overflow: hidden; aspect-ratio: 21 / 9; }
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.toc { font-size: 0.9rem; }
.toc ol { display: grid; gap: 8px; list-style: decimal; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--bronze-deep); }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 60px) var(--gutter) 80px; background: var(--ink); color: var(--ivory); }
.error-page .h2 { margin: 14px 0 18px; }
.error-page p { color: var(--stone-light); max-width: 48ch; margin-inline: auto; }
.error-page .hero__actions { justify-content: center; margin-top: 28px; }
.error-code { font-family: var(--serif); font-size: clamp(6rem, 18vw, 12rem); line-height: 0.9; color: var(--bronze-light); font-style: italic; }

/* ---------- Scroll depth (3D) ---------- */
[data-depth] { transform-style: preserve-3d; }
.js .depth-ready [data-depth], .js [data-depth].depth-ready { will-change: transform; }

/* Headings flip up in 3D as they reveal */
.js .h2[data-reveal], .js [data-reveal] .h2 { transform-origin: 50% 100%; }
.js [data-reveal]:not(.is-in) .h2, .js .h2[data-reveal]:not(.is-in) {
  transform: perspective(900px) rotateX(-38deg) translateY(18px); opacity: 0;
}
.js [data-reveal] .h2, .js .h2[data-reveal] { transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.42s cubic-bezier(0.4, 0, 1, 1) both; transform-origin: 50% 0%; }
::view-transition-new(root) { animation: vt-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; transform-origin: 50% 100%; }
@keyframes vt-out { to { opacity: 0; transform: perspective(1400px) rotateX(10deg) translateY(-3%) scale(0.95); filter: blur(2px); } }
@keyframes vt-in { from { opacity: 0; transform: perspective(1400px) rotateX(-9deg) translateY(5%) scale(1.02); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .js [data-reveal]:not(.is-in) .h2, .js .h2[data-reveal]:not(.is-in) { transform: none; opacity: 1; }
}

/* ---------- Related links ---------- */
.related-links { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.related-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px;
  background: var(--marble); text-decoration: none; font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  transition: padding 0.5s var(--ease), color 0.3s;
}
.related-links a:hover { padding-left: 16px; color: var(--bronze-deep); }
.related-links .icon { flex: none; color: var(--bronze-deep); }
@media (min-width: 900px) { .related-links { grid-template-columns: 1fr 1fr; column-gap: 48px; background: none; border: 0; } .related-links li { border-bottom: 1px solid var(--line); } }

.viewer__stage.is-photo canvas { cursor: default; }
.viewer__stage:not(.is-photo) canvas { cursor: grab; }
.viewer__stage:not(.is-photo) canvas:active { cursor: grabbing; }
