/* ============================================================================
   OBSIDIAN — Kitchen Studio, Miami
   Dark cinematic editorial. Bodoni at scale, copper, midnight navy, deep graphite.
   Nothing here is shared with Northstone or Hearth & Hollis — by design.
   SOURCE OF TRUTH — inlined into every page by scripts/build.py
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --black:      #0a0a0a;
  --graphite:   #1a1c1b;
  --graphite-2: #242725;
  --copper:     #b87333;      /* LARGE text / rules / icons only */
  --copper-lt:  #d99a5e;      /* AA-safe copper for small text on black */
  --copper-dk:  #8a5527;
  --off:        #ede8e0;
  --off-70:     rgba(237,232,224,.72);
  --off-50:     rgba(237,232,224,.52);
  --off-30:     rgba(237,232,224,.30);
  --ink-deep:   #101a26;      /* midnight navy — the cool panel under copper */
  --ink-mid:    #1b2c3d;

  --line:       rgba(237,232,224,.14);
  --line-soft:  rgba(237,232,224,.07);
  --line-copper:rgba(184,115,51,.4);

  --ff-display: "Bodoni Moda", "Didot", Georgia, serif;
  --ff-ui:      "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shell:      1520px;
  --gut:        clamp(1.25rem, 4vw, 4.5rem);
  --sect:       clamp(3.5rem, 6.5vw, 7.25rem);

  --e:          cubic-bezier(.25,.6,.3,1);
  --e-out:      cubic-bezier(.16,1,.3,1);
  --e-io:       cubic-bezier(.76,0,.24,1);
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--black); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ff-ui);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--off);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--copper); color: var(--black); }

/* ---------- 3. Type ---------- */
h1,h2,h3,h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}
.d1 { font-size: clamp(2.75rem, 9vw, 9rem); line-height: .92; }
.d2 { font-size: clamp(2.1rem, 5.6vw, 5rem); }
.d3 { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.d4 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.2; }
.ital { font-style: italic; }

/* Micro-caps label — the UI voice of the brand */
.eyebrow {
  font-family: var(--ff-ui);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--copper-lt);
  margin: 0 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.eyebrow::before {
  content: ""; width: clamp(1.5rem,4vw,3.5rem); height: 1px; flex: none;
  background: var(--copper);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.1s var(--e-out) .1s;
}
[data-in="true"] .eyebrow::before, .eyebrow[data-in="true"]::before { transform: scaleX(1); }

.lede { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.62; color: var(--off-70); text-wrap: pretty; }
.muted { color: var(--off-50); }
.num { font-family: var(--ff-ui); font-variant-numeric: tabular-nums; }

/* ---------- 4. Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect); position: relative; }
.section--graphite { background: var(--graphite); }
.section--ink { background: var(--ink-deep); background-image: radial-gradient(120% 90% at 80% 0%, rgba(184,115,51,.14), transparent 62%); }
.section--off { background: var(--off); color: var(--black); }
.section--off h1,.section--off h2,.section--off h3,.section--off h4 { color: var(--black); }
.section--off .lede { color: rgba(10,10,10,.7); }
.section--off .muted { color: rgba(10,10,10,.55); }
.section--off .eyebrow { color: var(--copper-dk); }
.section--tight { padding-block: clamp(2.5rem,4.2vw,3.75rem); }

/* Hairline that draws itself in */
.section + .section::before {
  content: ""; position: absolute; inset: 0 var(--gut) auto; height: 1px;
  background: var(--line-soft);
}

.grid { display: grid; gap: clamp(1.5rem,2.6vw,2.5rem); }
.g-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.g-asym { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
.g-asym-r { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }

.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }
.maxch { max-width: 58ch; } .maxch-s { max-width: 44ch; }
.shead { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,5fr); gap: clamp(1.5rem,3.5vw,3.25rem); align-items: end; }

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 56px; padding: 1rem 2rem;
  font-family: var(--ff-ui); font-size: .8125rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: color .45s var(--e), border-color .45s var(--e), transform .45s var(--e-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--e-io);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--copper { background: var(--copper); color: var(--black); }
.btn--copper::before { background: var(--off); }
.btn--ghost { background: transparent; color: var(--off); border-color: var(--line); }
.btn--ghost::before { background: var(--off); }
.btn--ghost:hover { color: var(--black); border-color: var(--off); }
.btn--dark { background: var(--black); color: var(--off); }
.btn--dark::before { background: var(--copper); }
.btn--dark:hover { color: var(--black); }
.btn--ghost-dark { background: transparent; color: var(--black); border-color: rgba(10,10,10,.2); }
.btn--ghost-dark::before { background: var(--black); }
.btn--ghost-dark:hover { color: var(--off); border-color: var(--black); }
.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

.tlink {
  position: relative; display: inline-flex; align-items: center; gap: .65rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--copper-lt); padding-bottom: .5rem;
  transition: gap .4s var(--e), color .35s;
}
.tlink::before,.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.tlink::before { background: var(--line); }
.tlink::after { background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--e-io); }
.tlink:hover { gap: 1.1rem; }
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }
.section--off .tlink { color: var(--copper-dk); }

/* ---------- 6. Accessibility ---------- */
/* Clipped, not translated off-screen: `position: absolute` + translateY(-120%)
   resolves against the nearest positioned ancestor, which inside a GoHighLevel
   column is the column — so the link only rose its own height and stayed visible.
   A clipped 1px box is invisible at any depth, same as .vh below. */
.skip { position: fixed; left: 0; top: 0; z-index: 9999; background: var(--copper); color: var(--black); text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: .8125rem; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; padding: .9rem 1.4rem; overflow: visible; clip: auto; clip-path: none; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.section--off :focus-visible { outline-color: var(--copper-dk); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 7. Page-load curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 9000; background: var(--black);
  display: grid; place-items: center; pointer-events: none;
  animation: curtainOut 1.15s var(--e-io) .5s forwards;
}
.curtain span { font-family: var(--ff-display); font-size: clamp(1.5rem,4vw,2.5rem); letter-spacing: .3em; color: var(--copper); animation: curtainMark 1.1s var(--e-out) both; }
@keyframes curtainOut { to { transform: translateY(-100%); } }
@keyframes curtainMark { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* ---------- 8. Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .5s var(--e), transform .55s var(--e), border-color .5s; border-bottom: 1px solid transparent; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 86px; }
.hdr[data-solid="true"] { background: rgba(10,10,10,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom-color: var(--line-soft); }
.hdr[data-hide="true"] { transform: translateY(-100%); }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.brand__n { font-family: var(--ff-display); font-size: 1.35rem; letter-spacing: .34em; text-transform: uppercase; }
.brand__t { font-family: var(--ff-ui); font-size: .6875rem; letter-spacing: .26em; text-transform: uppercase; color: var(--off-50); margin-top: .45rem; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem,2.4vw,2.5rem); }
.nav--main a { position: relative; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--off-70); padding-block: .45rem; transition: color .35s; }
.nav--main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--e-io); }
.nav--main a:hover { color: var(--off); }
.nav--main a:hover::after, .nav--main a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr .btn { min-height: 46px; padding: .7rem 1.4rem; font-size: .75rem; }

.burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); cursor: pointer; transition: border-color .3s; }
.burger:hover { border-color: var(--copper); }
.burger span { display: block; width: 18px; height: 1px; background: currentColor; position: relative; }
.burger span::before,.burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

.drawer { position: fixed; inset: 0; z-index: 200; background: var(--black); display: flex; flex-direction: column; padding: var(--gut); transform: translateY(-100%); transition: transform .65s var(--e-io); overflow-y: auto; }
.drawer[data-open="true"] { transform: translateY(0); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: 86px; margin-bottom: 1.5rem; }
.drawer__close { width: 48px; height: 48px; background: none; border: 1px solid var(--line); cursor: pointer; font-size: 1.25rem; transition: border-color .3s, color .3s; }
.drawer__close:hover { border-color: var(--copper); color: var(--copper); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--ff-display); font-size: clamp(1.75rem,7vw,3rem); text-decoration: none;
  padding: .6rem 0; border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--e-out), transform .6s var(--e-out), color .3s;
}
.drawer[data-open="true"] nav a { opacity: 1; transform: none; }
.drawer nav a:hover { color: var(--copper); }
.drawer__foot { margin-top: auto; padding-top: 2rem; }

/* ---------- 9. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--black); }
.hero__media img,.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.08); animation: heroDrift 16s var(--e-out) forwards; filter: saturate(.9); }
@keyframes heroDrift { to { transform: scale(1); } }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--e); }
.hero__media video[data-ready="true"] { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.2) 34%, rgba(10,10,10,.94) 100%),
    radial-gradient(100% 70% at 85% 20%, rgba(184,115,51,.16), transparent 60%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem,10vh,7rem) clamp(2.5rem,7vh,5rem); }
.hero__h { max-width: 14ch; margin-bottom: 1.75rem; }
.hero__sub { max-width: 46ch; color: var(--off-70); font-size: clamp(1rem,1.45vw,1.25rem); margin-bottom: 2.25rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: clamp(1.25rem,4vw,4rem); margin-top: clamp(2.25rem,6vh,4rem); padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hero__meta div { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--off-50); }
.hero__meta b { display: block; font-family: var(--ff-display); font-size: clamp(1.5rem,2.8vw,2.25rem); font-weight: 400; color: var(--off); margin-bottom: .35rem; letter-spacing: 0; }

/* Top pad tracks the 86px fixed header + ~32px breathing room — near-constant,
   so tall screens do not open a dead band between .hdr and the breadcrumb. */
.phero { position: relative; padding-block: clamp(7.25rem,13.5vh,8.25rem) var(--sect); overflow: hidden; background: var(--graphite); }
.phero__h { max-width: 11em;               /* em, not ch — ch is a body-font measure */
            font-size: clamp(2.5rem, 7.2vw, 7rem); }  /* long words must still fit the column */

/* ---------- 10. THE TRANSFORMATION CHAMBER ---------- */
.chamber { position: relative; height: 460svh; background: var(--black); }
.chamber__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.chamber__layer { position: absolute; inset: 0; }
.chamber__layer img { width: 100%; height: 100%; object-fit: cover; }

/* L1 — the dated room, drains of gloom as progress rises */
.ch-dark img { filter: grayscale(.85) brightness(calc(.42 + var(--p,0) * .55)) saturate(calc(.25 + var(--p,0) * .9)); transition: filter .1s linear; }
/* L2 — finished cabinetry, wiped in between 40–60% */
.ch-mid { clip-path: inset(0 calc(100% - var(--wipe,0%)) 0 0); }
/* L3 — the chosen surface, cross-faded over the finished room by the swatches */
.ch-surface { opacity: var(--surface,0); transition: opacity .7s var(--e); }
/* Light sweep */
.chamber__sweep {
  position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,242,224,.30) 48%, rgba(184,115,51,.18) 54%, transparent 64%);
  transform: translateX(calc(-60% + var(--sweep,0) * 120%));
  opacity: var(--sweepO,0);
}
.chamber__grade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 65% at 50% 45%, transparent 30%, rgba(10,10,10,.75) 100%); }

.chamber__ui { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gut); pointer-events: none; }
/* Directional scrim — guarantees the copy stays legible over any photograph */
.chamber__ui::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(96deg, rgba(10,10,10,.86) 0%, rgba(10,10,10,.62) 30%, rgba(10,10,10,.15) 58%, transparent 76%);
}
@media (max-width: 860px) {
  .chamber__ui::before { background: linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.2) 32%, rgba(10,10,10,.9) 78%); }
}
.chamber__cap { max-width: 30ch; }
.chamber__cap h2 { font-size: clamp(1.9rem,4.4vw,3.75rem); }
.ch-beat { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(7rem,16vh,11rem); opacity: 0; transform: translateY(20px); transition: opacity .55s var(--e), transform .55s var(--e); }
.ch-beat[data-on="true"] { opacity: 1; transform: none; }

/* progress rail */
.chamber__rail { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(2rem,5vh,3.5rem); z-index: 6; display: flex; align-items: center; gap: 1rem; }
.chamber__rail i { flex: 1; height: 1px; background: var(--line); position: relative; }
.chamber__rail i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p,0) * 100%); background: var(--copper); }
.chamber__rail span { font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--off-50); }

/* material swatches */
.swatches { position: absolute; left: var(--gut); bottom: clamp(5rem,11vh,7.5rem); z-index: 7; display: flex; gap: .75rem; pointer-events: auto; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--e), transform .5s var(--e); }
.swatches[data-on="true"] { opacity: 1; transform: none; }
.swatch { width: 60px; height: 60px; border: 1px solid var(--line); background-size: cover; background-position: center; cursor: pointer; padding: 0; position: relative; transition: border-color .35s, transform .4s var(--e-out); }
.swatch:hover { transform: translateY(-3px); }
.swatch[aria-pressed="true"] { border-color: var(--copper); }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--copper); }
.swatch b { position: absolute; left: 0; right: 0; bottom: -1.5rem; font-family: var(--ff-ui); font-size: .6875rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--off-50); }

/* No-JS / reduced-motion fallback: show the finished state, kill the scroll height */
.no-chamber .chamber { height: auto; }
.no-chamber .chamber__stage { position: relative; height: auto; min-height: 70svh; }
.no-chamber .ch-dark { display: none; }
.no-chamber .ch-mid { clip-path: none; }
.no-chamber .ch-beat { position: static; opacity: 1; transform: none; margin-top: 1rem; }
.no-chamber .chamber__rail, .no-chamber .swatches, .no-chamber .chamber__sweep { display: none; }

/* ---------- 10b. THE 3D ROOM — real WebGL, no library ---------- */
.k3d {
  position: relative; height: 94svh; min-height: 540px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #14100e 0%, #08080a 62%);
  cursor: grab; touch-action: pan-y; outline: none;
}
.k3d:active { cursor: grabbing; }
.k3d canvas { position: absolute; inset: 0; display: block; }
.k3d__fb { position: absolute; inset: 0; display: none; }
.k3d__fb img { width: 100%; height: 100%; object-fit: cover; }
.k3d[data-fallback="true"] canvas { display: none; }
.k3d[data-fallback="true"] .k3d__fb { display: block; }
.k3d[data-fallback="true"] { cursor: default; }

.k3d__ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; padding: var(--gut);
           display: flex; flex-direction: column; justify-content: space-between; }
/* Two scrims, not one: the vertical pass seats the copy top and bottom, and the
   left-to-right pass holds the caption legible when the pendants light the wall
   directly behind it. Without the second one the lede drops well under 4.5:1. */
.k3d__ui::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(104deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.74) 26%, rgba(8,8,10,.22) 52%, transparent 68%),
    linear-gradient(180deg, rgba(8,8,10,.78) 0%, transparent 26%, transparent 58%, rgba(8,8,10,.94) 100%); }
/* 26ch is a prose measure — far too tight for a display heading at 80px */
.k3d__cap { position: relative; max-width: min(30rem, 46%); }
@media (max-width: 860px) {
  /* the caption spans the full width on a phone, so the directional scrim has to as well */
  .k3d__ui::before { background:
    linear-gradient(180deg, rgba(8,8,10,.94) 0%, rgba(8,8,10,.80) 34%, rgba(8,8,10,.30) 52%, rgba(8,8,10,.86) 100%); }
}
.k3d__foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between;
             gap: 1.5rem; flex-wrap: wrap; }

/* live badge */
.k3d__live { display: inline-flex; align-items: center; gap: .6rem; font-size: .6875rem;
             letter-spacing: .24em; text-transform: uppercase; color: var(--off-50); }
.k3d__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); flex: none;
               box-shadow: 0 0 0 0 rgba(184,115,51,.6); animation: pulse 2.4s var(--e) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(184,115,51,0); } 100% { box-shadow: 0 0 0 0 rgba(184,115,51,0); } }

/* material picker */
/* the caption sits below the chip, so the row reserves room for it rather than
   letting a two-word stone name wrap back over the swatch beside it */
.k3d__mats { display: flex; gap: 1.15rem; pointer-events: auto; padding-bottom: 1.9rem; }
.k3d__mat { width: 74px; height: 74px; border: 1px solid var(--line); cursor: pointer; padding: 0;
            position: relative; background-size: cover; background-position: center;
            transition: border-color .4s var(--e), transform .45s var(--e-out); }
.k3d__mat:hover { transform: translateY(-4px); }
.k3d__mat[aria-pressed="true"] { border-color: var(--copper); }
.k3d__mat[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--copper); }
.k3d__mat b { position: absolute; left: 50%; transform: translateX(-50%); bottom: -1.55rem;
              width: max-content; white-space: nowrap; font-family: var(--ff-ui);
              font-size: .75rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
              color: var(--off-70); }
/* the chips are painted, not photographed, so each one is the stone the shader
   will actually apply — a stock photo can only ever approximate it */
.k3d__mat--calacatta { background-image:
  repeating-linear-gradient(118deg, transparent 0 13px, rgba(90,86,78,.30) 13px 14px),
  linear-gradient(118deg, #f3f1ec 0%, #e6e3dc 38%, #f6f4ef 60%, #dedad1 100%); }
.k3d__mat--nero { background-image:
  repeating-linear-gradient(118deg, transparent 0 11px, rgba(226,224,218,.55) 11px 12px),
  linear-gradient(118deg, #14141a 0%, #0b0b0f 55%, #191921 100%); }
.k3d__mat--copper { background-image:
  repeating-linear-gradient(118deg, transparent 0 12px, rgba(216,150,88,.42) 12px 13px),
  linear-gradient(118deg, #4a2c17 0%, #22150c 52%, #5c3a1d 100%); }
.k3d__hint { font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--off-50); }

@media (max-width: 860px) {
  .k3d { height: 78svh; min-height: 460px; }
  .k3d__ui { padding: 1.25rem; }
  .k3d__foot { align-items: flex-start; flex-direction: column; gap: 2.25rem; }
  .k3d__mat { width: 60px; height: 60px; }
  .k3d__cap { max-width: 100%; }
}
@media (max-width: 620px) {
  .k3d { height: 72svh; min-height: 420px; }
  .k3d__mat { width: 54px; height: 54px; }
  .k3d__mat b { font-size: .6875rem; letter-spacing: .08em; }
}

/* ---------- 10c. Marquee ---------- */
.marq { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: 1.5rem; }
.marq__t { display: flex; gap: 3rem; width: max-content; animation: marq 38s linear infinite; }
.marq__t span { font-family: var(--ff-display); font-size: clamp(1.5rem,3.4vw,3rem); white-space: nowrap; color: var(--off-30); }
.marq__t span em { font-style: italic; color: var(--copper); }
.marq:hover .marq__t { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- 11. Horizontal portfolio rail ---------- */
.rail { position: relative; }
.rail__track {
  display: flex; gap: clamp(1rem,2vw,2rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-inline: var(--gut); padding-bottom: 1.5rem;
  scrollbar-width: thin; scrollbar-color: var(--copper) transparent;
}
.rail__track::-webkit-scrollbar { height: 2px; }
.rail__track::-webkit-scrollbar-thumb { background: var(--copper); }
.rail__track::-webkit-scrollbar-track { background: var(--line-soft); }
.rail__item { flex: 0 0 clamp(280px, 34vw, 520px); scroll-snap-align: start; text-decoration: none; }
.rail__hint { display: flex; align-items: center; gap: .75rem; font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--off-50); margin-top: 1rem; }

/* ---------- 12. Figures ---------- */
.fig { position: relative; overflow: hidden; background: var(--graphite-2); }
.fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--e-out), filter 1.4s var(--e-out); filter: saturate(.92); }
.fig--tall { aspect-ratio: 3/4; } .fig--wide { aspect-ratio: 16/10; } .fig--sq { aspect-ratio: 1/1; }
.fig--cine { aspect-ratio: 21/9; }
a.fig:hover img, .pitem:hover .fig img { transform: scale(1.05); filter: saturate(1.05); }
.pitem { text-decoration: none; display: block; }
.pitem__meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: 1rem; margin-top: 1.15rem; border-top: 1px solid var(--line-soft); transition: border-color .5s; }
.pitem:hover .pitem__meta { border-top-color: var(--copper); }
.pitem__meta span { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--off-50); }

/* ---------- 13. Before / after ---------- */
.ba { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--black); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--p,50%)); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100%; }
.ba__range::-moz-range-thumb { width: 60px; height: 100%; border: 0; background: transparent; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--p,50%); width: 1px; background: var(--copper); pointer-events: none; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%,-50%); border: 1px solid var(--copper); background: rgba(10,10,10,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .35s var(--e-out); }
.ba:hover .ba__handle::after { transform: translate(-50%,-50%) scale(1.08); }
.ba__handle::before { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; color: var(--off); font-size: .625rem; letter-spacing: .06em; white-space: nowrap; }
.ba__tag { position: absolute; top: 1.25rem; z-index: 3; pointer-events: none; font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--off); background: rgba(10,10,10,.6); padding: .45rem 1rem; }
.ba__tag--b { left: 1.25rem; } .ba__tag--a { right: 1.25rem; }
.ba__range:focus-visible + .ba__handle::after { outline: 2px solid var(--copper); outline-offset: 4px; }

/* ---------- 14. Numbered chapters / process ---------- */
.chapters { display: grid; }
.chapter { display: grid; grid-template-columns: minmax(0,3rem) minmax(0,1fr) minmax(0,1.3fr); gap: clamp(1rem,3vw,3rem); padding-block: clamp(1.75rem,3.4vw,2.75rem); border-top: 1px solid var(--line-soft); align-items: start; transition: background .5s var(--e); }
.chapter:last-child { border-bottom: 1px solid var(--line-soft); }
.chapter:hover { background: rgba(184,115,51,.05); }
.chapter__n { font-family: var(--ff-display); font-size: 1.05rem; color: var(--copper-lt); }
.chapter p { margin: 0; color: var(--off-70); }

/* ---------- 15. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.stats > div { background: var(--black); padding: clamp(1.6rem,3vw,2.6rem) clamp(1rem,2vw,1.75rem); transition: background .5s var(--e); }
.stats > div:hover { background: var(--graphite); }
.section--graphite .stats > div { background: var(--graphite); }
.section--graphite .stats > div:hover { background: var(--graphite-2); }
.section--off .stats { background: rgba(10,10,10,.12); border-color: rgba(10,10,10,.12); }
.section--off .stats > div { background: var(--off); }
.stats b { display: block; font-family: var(--ff-display); font-size: clamp(1.8rem,3.4vw,3rem); font-weight: 400; line-height: 1; margin-bottom: .55rem; font-variant-numeric: tabular-nums; }
.stats span { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--off-50); }
.section--off .stats span { color: rgba(10,10,10,.55); }

/* ---------- 16. Testimonials ---------- */
.quote { border-top: 1px solid var(--line-soft); padding-top: 1.4rem; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--ff-display); font-size: clamp(1.0625rem,1.35vw,1.3125rem); line-height: 1.45; font-style: italic; }
.quote figcaption { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--off-50); }
.quote figcaption b { display: block; color: var(--off); letter-spacing: .12em; margin-bottom: .35rem; }
.section--off .quote figcaption { color: rgba(10,10,10,.55); }
.section--off .quote figcaption b { color: var(--black); }

.vfac { position: relative; width: 100%; padding: 0; border: 0; background: var(--black); cursor: pointer; overflow: hidden; aspect-ratio: 16/9; display: block; }
.vfac img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .5s var(--e), transform 1.4s var(--e-out); }
.vfac:hover img { opacity: .55; transform: scale(1.05); }
.vfac__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 80px; height: 80px; border: 1px solid var(--copper); border-radius: 50%; display: grid; place-items: center; color: var(--copper); transition: background .45s var(--e), transform .5s var(--e-out); }
.vfac:hover .vfac__play { background: rgba(184,115,51,.2); transform: translate(-50%,-50%) scale(1.08); }
.vfac__play svg { margin-left: 3px; }
.vfac__label { position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--off-70); }
.vfac video,.vfac iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* build.py emits .vfac--still when no MEDIA_BASE_URL is configured: the play
   control is stripped, so the block must stop advertising itself as clickable */
.vfac--still { cursor: default; }
.vfac--still:hover img { opacity: .72; transform: none; }

/* ---------- 17. Accordion ---------- */
.acc { border-top: 1px solid var(--line-soft); }
.acc details { border-bottom: 1px solid var(--line-soft); }
.acc summary { list-style: none; cursor: pointer; padding-block: clamp(1.3rem,2.4vw,1.85rem); display: flex; gap: 1.5rem; align-items: baseline; justify-content: space-between; font-family: var(--ff-display); font-size: clamp(1.1rem,1.8vw,1.4rem); line-height: 1.28; transition: color .35s; }
.acc summary:hover { color: var(--copper-lt); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--ff-ui); font-size: 1.4rem; font-weight: 300; line-height: 1; flex: none; color: var(--copper); transition: transform .5s var(--e-io); }
.acc details[open] summary::after { transform: rotate(135deg); }
.acc__body { padding-bottom: 1.85rem; max-width: 66ch; color: var(--off-70); animation: accIn .5s var(--e-out); }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }
.acc__body p { margin: 0 0 1rem; } .acc__body p:last-child { margin-bottom: 0; }
.section--off .acc, .section--off .acc details { border-color: rgba(10,10,10,.12); }
.section--off .acc__body { color: rgba(10,10,10,.7); }

/* ---------- 18. Forms ---------- */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .5rem; }
.field label,.field legend { font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--off-50); padding: 0; }
.field input,.field select,.field textarea {
  width: 100%; min-height: 56px; padding: .95rem 1.1rem; border-radius: 0;
  background: transparent; border: 1px solid var(--line); color: var(--off);
  transition: border-color .35s var(--e), box-shadow .35s var(--e);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover,.field select:hover,.field textarea:hover { border-color: var(--off-30); }
.field input:focus,.field select:focus,.field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184,115,51,.18); }
.field select option { background: var(--graphite); color: var(--off); }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__note { font-size: .8125rem; color: var(--off-50); }
.section--off .field label,.section--off .field legend { color: rgba(10,10,10,.55); }
.section--off .field input,.section--off .field select,.section--off .field textarea { border-color: rgba(10,10,10,.18); color: var(--black); }
.section--off .form__note { color: rgba(10,10,10,.55); }

.pills { display: flex; flex-wrap: wrap; gap: .625rem; }
.pills input { position: absolute; opacity: 0; width: 0; height: 0; }
.pills label { display: inline-flex; align-items: center; min-height: 50px; padding: .7rem 1.3rem; border: 1px solid var(--line); cursor: pointer; font-size: .8125rem; letter-spacing: .06em; color: var(--off-70); transition: all .35s var(--e); }
.pills label:hover { border-color: var(--copper); color: var(--off); }
.pills input:checked + label { background: var(--copper); color: var(--black); border-color: var(--copper); }
.pills input:focus-visible + label { outline: 2px solid var(--copper); outline-offset: 3px; }

/* ---------- 19. Footer ---------- */
.ftr { background: var(--graphite); padding-block: clamp(3.5rem,7vw,6rem) 2.5rem; }
.ftr a { text-decoration: none; color: var(--off-70); transition: color .3s; }
.ftr a:hover { color: var(--copper-lt); }
.ftr__top { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap: clamp(2rem,4vw,3rem); }
.ftr h3 { font-family: var(--ff-ui); font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--off-50); margin-bottom: 1.25rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: .9375rem; }
.ftr__bot { margin-top: clamp(3rem,6vw,4.5rem); padding-top: 1.75rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .8125rem; color: var(--off-50); }
.lphdr { border-bottom: 1px solid var(--line-soft); }
.lphdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 82px; }

/* ---------- 20. Sticky mobile CTA ---------- */
.mbar { position: fixed; inset: auto 0 0; z-index: 90; display: none; grid-template-columns: 1fr 1.4fr; gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); padding-bottom: env(safe-area-inset-bottom); }
.mbar a { display: flex; align-items: center; justify-content: center; min-height: 58px; text-decoration: none; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; background: rgba(10,10,10,.95); color: var(--off); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mbar a + a { background: var(--copper); color: var(--black); }

/* ---------- 21. Motion ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--e-out), transform 1s var(--e-out); transition-delay: var(--d,0ms); }
.rv[data-in="true"] { opacity: 1; transform: none; }
.rvt { display: block; overflow: hidden; }
.rvt > span { display: block; transform: translateY(105%); transition: transform 1.15s var(--e-out); transition-delay: var(--d,0ms); }
.rvt[data-in="true"] > span { transform: none; }
.rvl { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--e-io); }
.rvl[data-in="true"] { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .rv,.rvt > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rvl { transform: scaleX(1); transition: none; }
  .fig img,.vfac img,.hero__media img { transition: none !important; animation: none !important; transform: none !important; }
  .acc__body { animation: none; }
  .eyebrow::before { transform: scaleX(1); transition: none; }
}

/* ---------- 22. Utilities ---------- */
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 1.75rem; } .mt-l { margin-top: clamp(2rem,3.6vw,3rem); } .mt-0 { margin-top: 0; }
.dl { display: grid; margin: 0; border-top: 1px solid var(--line-soft); }
.dl > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 1.5rem; padding-block: .95rem; border-bottom: 1px solid var(--line-soft); }
.dl dt { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--off-50); margin: 0; }
.dl dd { margin: 0; }
.section--off .dl,.section--off .dl > div { border-color: rgba(10,10,10,.12); }
.section--off .dl dt { color: rgba(10,10,10,.55); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; align-items: start; }
.ticks i { color: var(--copper); font-style: normal; }

/* ============================================================================
   23. RESPONSIVE
   ========================================================================= */
@media (min-width: 1700px) { :root { --shell: 1640px; } }

@media (max-width: 1180px) { .nav--main { display: none; } .burger { display: flex; } }
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .g-asym,.g-asym-r { grid-template-columns: 1fr; }
  .chamber { height: 400svh; }
}
@media (max-width: 900px) {
  :root { --sect: clamp(3.5rem,8vw,6rem); }
  .shead { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
  .g-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 92svh; }
  .chapter { grid-template-columns: 2.5rem minmax(0,1fr); }
  .chapter p { grid-column: 2; }
}
@media (max-width: 860px) {
  .mbar { display: grid; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .g-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ba { aspect-ratio: 4/3; }
  .fig--cine { aspect-ratio: 16/10; }
  /* Chamber on phones: shorter scroll, swatches stay reachable by thumb */
  .chamber { height: 340svh; }
  .swatches { bottom: clamp(4.5rem,10vh,6rem); }
  .swatch { width: 52px; height: 52px; }
}
@media (max-width: 620px) {
  :root { --sect: clamp(3rem,11vw,4.5rem); --gut: 1.25rem; }
  .g-3,.g-4 { grid-template-columns: 1fr; }
  .field--2 { grid-template-columns: 1fr; }
  .dl > div { grid-template-columns: 1fr; gap: .3rem; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .hdr .btn,.lphdr .btn { width: auto; }
  .hdr .nav > .btn { display: none; }
  .ftr__top { grid-template-columns: 1fr; }
  .ftr__bot { flex-direction: column; gap: .75rem; }
  .ba { aspect-ratio: 3/4; }
  .ba__tag { top: .75rem; font-size: .6875rem; padding: .35rem .7rem; }
  .ba__tag--b { left: .75rem; } .ba__tag--a { right: .75rem; }
  .hero__meta { gap: 1.25rem 2rem; }
  .hero__meta div { flex: 1 1 40%; }
  .rail__item { flex-basis: 78vw; }
  .chamber__cap h2 { font-size: clamp(1.6rem,7vw,2.2rem); }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .hero__meta div { flex: 1 1 100%; }
  .brand__n { font-size: 1.1rem; letter-spacing: .26em; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 620px; }
  .hero__meta { display: none; }
  .chamber { height: 300svh; }
}

/* ---------- Touch targets: phone + tablet only ---------- */
@media (max-width: 900px) {
  .tlink { min-height: 48px; align-items: center; }
  .brand { min-height: 48px; display: inline-flex; flex-direction: column; justify-content: center; }
  .crumbs a, .crumb a, nav[aria-label="Breadcrumb"] a { display: inline-flex; align-items: center; min-height: 44px; }
  .ftr a, .ftr__bot a { display: inline-flex; align-items: center; min-height: 44px; }
}
