/* ============ GRANITE PALETTE ============ */
:root {
  --graphite: #15171A;
  --slate: #20242A;
  --gray-1: #6B7177;
  --gray-2: #8A9098;
  --stone: #D9DAD7;
  --offwhite: #F2F2F0;
  --steel: #AEB4BA;
  --black: #000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* copy stays selectable everywhere; images/video can't be dragged or selected */
body { -webkit-user-select: text; user-select: text; }
img, video {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;   /* can't grab the image to drag it out */
}

html { background: var(--black); }

body {
  font-family: "Inter", -apple-system, sans-serif;
  color: var(--graphite);
  background: var(--offwhite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;       /* crisp, light-weight display type */
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

body.story-mode {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hidden { opacity: 0; visibility: hidden; }

/* ============ NAV ============ */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px clamp(18px, 3vw, 44px);
  mix-blend-mode: difference;   /* white text → black on light bg, white on black */
  color: #fff;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; }
.brand-name { font-weight: 600; letter-spacing: 0.32em; font-size: clamp(12px, 1.1vw, 15px); }
.brand-sub { font-weight: 300; letter-spacing: 0.22em; font-size: clamp(10px, 0.9vw, 12px); opacity: 0.75; }
.nav-right { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-link {
  color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.8;
}
.nav-link:hover { opacity: 1; }
.nav-cta {
  color: #fff; text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 11px 22px;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: #fff; color: #000; }

/* ---- hamburger toggle (hidden until the inline nav no longer fits) ----
   three perfectly equal hairlines (absolute, full-width) that fold into a
   clean symmetric X — refined version of the original three-line mark */
.nav-toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 15px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;   /* nav uses mix-blend-difference, so white adapts to bg */
  transition: top 0.28s ease, opacity 0.18s ease, transform 0.36s cubic-bezier(0.76,0,0.24,1);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 6.75px; }
.nav-toggle span:nth-child(3) { top: 13.5px; }
.nav-toggle:hover span:nth-child(2) { transform: scaleX(0.82); transform-origin: right; }   /* subtle hover refinement */
.nav-solid .nav-toggle span { background: var(--graphite); }   /* solid navs need a dark icon */
body.nav-open .nav-toggle span:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
body.nav-open .nav-toggle span:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }

/* ---- full-screen menu (the three pages + contact, footer-style) ---- */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 40;            /* covers the page, sits under the fixed nav (50) */
  background: var(--offwhite);
  display: flex;
  align-items: center;
  padding: clamp(96px, 16vh, 150px) 9vw 8vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.nav-open .nav-menu { opacity: 1; visibility: visible; }
.nav-menu-inner { width: 100%; display: flex; flex-direction: column; gap: clamp(30px, 6vh, 56px); }
.nm-links { display: flex; flex-direction: column; gap: clamp(8px, 1.8vh, 16px); }
.nm-links a {
  font-size: clamp(34px, 9vw, 58px);
  font-weight: 200;
  letter-spacing: -0.018em;
  line-height: 1.04;
  color: var(--graphite);
  text-decoration: none;
  width: max-content;
}
.nm-links a:hover { color: var(--gray-1); }
.nm-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid rgba(21,23,26,0.12);
  padding-top: clamp(22px, 3.4vh, 32px);
}
.nm-contact a, .nm-hours {
  font-size: 14px; font-weight: 300; line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--gray-1);
  text-decoration: none;
}
.nm-phone { font-size: 17px; color: var(--graphite); letter-spacing: 0.04em; }
.nm-contact a:hover { color: var(--graphite); }
.nm-socials { display: flex; gap: 22px; margin-top: 10px; }
.nm-socials a {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray-1);
}
body.nav-open { overflow: hidden; }

/* the option text is flush-left (aligned with the phone/email below); the screw
   sits in the left margin and only appears on the hovered option */
.nm-links a { position: relative; display: inline-block; }
.nm-screw {
  position: absolute;
  right: calc(100% + 0.45em);
  top: 50%;
  width: 0.55em; height: 0.55em;
}
.nm-screw svg { width: 100%; height: 100%; display: block; }
.nm-screw path { fill: var(--steel); }

/* the options pop out — slide in with a slight overshoot — and the screws spin */
.nm-links a,
.nm-contact > * {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34,1.5,0.5,1), color 0.25s ease;
}
/* the screw appears + drills in only on the hovered (selected) option */
.nm-screw { opacity: 0; transform: translateY(-50%) scale(0.5) rotate(0deg); transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.2,0.8,0.2,1); }
.nm-links a:hover .nm-screw { opacity: 1; transform: translateY(-50%) scale(1) rotate(720deg); }
body.nav-open .nm-links a,
body.nav-open .nm-contact > * { opacity: 1; transform: translateX(0); }
body.nav-open .nm-links a:nth-child(1) { transition-delay: 0.12s; }
body.nav-open .nm-links a:nth-child(2) { transition-delay: 0.19s; }
body.nav-open .nm-links a:nth-child(3) { transition-delay: 0.26s; }
body.nav-open .nm-contact > *:nth-child(1) { transition-delay: 0.34s; }
body.nav-open .nm-contact > *:nth-child(2) { transition-delay: 0.39s; }
body.nav-open .nm-contact > *:nth-child(3) { transition-delay: 0.44s; }
body.nav-open .nm-contact > *:nth-child(4) { transition-delay: 0.49s; }
body.nav-open .nm-contact > *:nth-child(5) { transition-delay: 0.54s; }
@media (prefers-reduced-motion: reduce) {
  .nm-links a, .nm-contact > *, .nm-screw { transition: opacity 0.2s ease; transform: none; }
}

/* ============ BEATS 1–3 : VIDEO STAGE ============ */
/* JS controls the narrative order. The sections share one viewport while
   story-mode is active, then the final kitchen hands off to normal scroll. */
#hero-scroll { height: 100vh; height: 100svh; position: relative; }

body.story-mode #hero-scroll,
body.story-mode #designs,
body.story-mode #exit-scroll {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin: 0;
}

body.story-mode #hero-scroll { z-index: 1; }
body.story-mode #designs { z-index: 2; }
body.story-mode #exit-scroll { z-index: 3; }

body.story-mode .stage,
body.story-mode .pin,
body.story-mode .stage2 {
  position: absolute;
  inset: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
}

body.story-complete #hero-scroll,
body.story-complete #designs {
  display: none;
}

body.story-complete #exit-scroll {
  position: relative;
  height: 100vh;
  height: 100svh;
  z-index: 1;
}

body.story-complete .stage2 {
  position: relative;
  top: auto;
  height: 100vh;
  height: 100svh;
}

.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--offwhite);
}
.stage.black { background: var(--black); }

.layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 50%;   /* bias toward the cabinet on the right */
}
.l2 { z-index: 2; }
.l3 { z-index: 3; }

/* hero copy — fixed top anchor so the two text groups land in the
   same optical position when they swap */
.herotext {
  position: absolute;
  z-index: 10;
  left: 7vw;
  top: 24vh;
  max-width: min(560px, 48vw);
}
.eyebrow {
  font-size: clamp(10px, 0.85vw, 12px); font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--gray-1);
  margin-bottom: clamp(16px, 2.6vh, 26px);
}
.eyebrow.steel { color: var(--steel); }
/* small brushed-steel rule that leads the eyebrow — editorial accent */
.eyebrow-mark {
  display: inline-block;
  width: clamp(18px, 2vw, 30px);
  height: 1px;
  margin: 0 14px 4px 0;
  vertical-align: middle;
  background: var(--steel);
}
.herotext h1 {
  font-size: clamp(44px, 6.4vw, 104px);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: -0.028em;   /* tighter tracking reads more refined at display size */
  color: var(--graphite);
  margin-bottom: clamp(18px, 3.2vh, 30px);
}
.sub {
  font-size: clamp(15px, 1.18vw, 17px); font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.004em;
  color: var(--gray-1);
  margin-bottom: clamp(26px, 4.4vh, 42px);
  max-width: 46ch;
}
.cta-row { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); flex-wrap: wrap; }
.btn-dark {
  background: var(--graphite); color: var(--offwhite);
  text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 17px 34px;
  transition: background 0.3s;
}
.btn-dark:hover { background: var(--slate); }
.btn-ghost {
  color: var(--graphite); text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--gray-2);
  padding-bottom: 5px;
}
.hint {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gray-2);
}

/* text children start hidden; GSAP drives them both directions */
.herotext .t { opacity: 0; visibility: hidden; }

.scrollcue {
  position: absolute; z-index: 10;
  left: 50%; bottom: 34px; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.4em; color: var(--gray-2);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0;
}
.scrollcue span {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(var(--gray-2), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

/* ============ BEAT 4 : FEATURED WORK ON BLACK ============
   Overlaps the video stage by a full viewport: the black sheet
   rises OVER the door shot as it darkens, so the featured-work
   content arrives on top of the video — no dead black gap.
   Scrolling up, the sheet slides away first, then the video reverses. */
#designs { height: 100vh; height: 100svh; position: relative; background: var(--black); z-index: 5; margin-top: 0; }

.pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
  padding: 11vh 7vw 6vh;
  color: var(--offwhite);
  overflow: hidden;
}
.d-head { margin-bottom: 4.5vh; }
#d-title {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--offwhite);
}
#d-title .ch { display: inline-block; }

.d-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5vw;
  min-height: 0;
}

/* list (left) — sized for 8 collection rows in one viewport */
.d-list { position: relative; flex: 0 0 42%; padding-left: 56px; }
.d-row {
  display: flex; align-items: baseline; gap: 18px;
  padding: 1.85vh 0;
  opacity: 0.35;
  cursor: pointer;
  border-bottom: 1px solid rgba(174,180,186,0.12);
}
.d-num {
  font-size: 11px; font-weight: 300; color: var(--steel);
  letter-spacing: 0.2em;
}
.d-name {
  font-size: clamp(17px, 1.75vw, 30px);
  font-weight: 300;
  color: var(--offwhite);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.d-meta {
  margin-left: auto;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray-2);
}

/* the indicator is a drawn Phillips screw head — a flat grey disc with the
   cross cut out — that spins rapidly as it steps down, like a drill driving in */
.d-square {
  position: absolute; left: 5px; top: 0;
  width: 18px; height: 18px;
  will-change: transform;   /* keep the y-glide + spin on the compositor (no jank) */
}
.d-square svg, .sp-rail-square svg { width: 100%; height: 100%; display: block; }
.d-square path, .sp-rail-square path { fill: var(--steel); }   /* single accent grey, cross is a cutout */

/* previews (right) — kitchen photo + floating full-door sample chip */
.d-previews { position: relative; flex: 1; height: 60vh; }
.d-prev {
  position: absolute; inset: 0;
  opacity: 0;
  overflow: hidden;
  will-change: opacity, transform, clip-path;
}
.d-prev .d-kitchen {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: var(--graphite);
  will-change: transform;
}
.d-prev .d-door {
  position: absolute;
  /* sit fully inside the frame's bottom-left corner — .d-prev clips overflow,
     so a negative offset (the old value) sliced the chip's left edge off */
  left: clamp(14px, 1.6vw, 26px);
  bottom: 7%;
  width: clamp(96px, 9vw, 150px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(174,180,186,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  background: var(--offwhite);
  will-change: opacity, transform;
}

/* ============ BEATS 5–6 : OUT OF THE DARK (code-driven) ============ */
#exit-scroll { height: 100vh; height: 100svh; position: relative; background: var(--black); z-index: 5; }

.stage2 {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--black);
}
.x-layer {
  position: absolute; inset: 0;
  background: #fefefe;   /* exact white of the lineup photo — no boundary seam */
}
.x-layer img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
#x-lineup {
  /* starts as a sliver of light in the dark — JS animates the slit open */
  clip-path: inset(0% 49.9% 0% 49.9%);
  visibility: hidden;
}
#x-lineup img { object-fit: contain; object-position: center 46%; }
#x-kitchen {
  z-index: 2;
  clip-path: circle(0% at 50% 58%);
  visibility: hidden;
}
.x-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(75deg, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0) 70%);
}

.exittext {
  position: absolute; z-index: 10;
  /* both captions start at the same point — just under the left countertop,
     at the top of the drawers — so the copy sits with the cabinetry and stays
     put as the lineup hands off to the finished kitchen */
  left: 7vw; top: 56.75%; bottom: auto;
  max-width: min(560px, 60vw);
}
.exittext.dark {
  max-width: min(480px, 46vw);
}
/* the lineup section reads better as just the cabinet set — no caption */
#tg3 { display: none; }
.exittext h2 {
  font-size: clamp(40px, 4.9vw, 78px);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: -0.022em;
  margin-bottom: clamp(14px, 2.4vh, 24px);
}
.exittext .t { opacity: 0; visibility: hidden; }
.exittext.dark h2 { color: var(--graphite); }
.exittext.dark .sub {
  color: rgba(21,23,26,0.68);
  margin-bottom: 0;
  max-width: 36ch;
}
.exittext.light h2 { color: #fff; }
.exittext.light .eyebrow { color: #fff; }
.exittext.light .sub {
  color: rgba(255,255,255,0.9);
  max-width: 39ch;
  margin-bottom: clamp(20px, 3vh, 34px);
}

.btn-light {
  background: var(--offwhite); color: var(--graphite);
  text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 17px 34px;
  transition: background 0.3s;
}
.btn-light:hover { background: #fff; }
.btn-ghost-light {
  color: var(--offwhite); text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid rgba(242,242,240,0.6);
  padding-bottom: 5px;
}

/* ============ MARBLE SLAB FOOTER ============ */
.granite-footer {
  position: relative;
  color: var(--graphite);
  margin-top: -1px;
  background-color: #f7f8f8;
  background-image:
    linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.38)),
    image-set(
      url("../assets/marble-footer.webp") type("image/webp"),
      url("../assets/marble-footer.png") type("image/png")
    );
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(21,23,26,0.08);
}
.granite-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(174,180,186,0.2) 100%);
  pointer-events: none;
}
.gf-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) clamp(22px, 5vw, 64px) clamp(34px, 5vh, 56px);
}
.gf-brand .brand-name { color: var(--graphite); }
.gf-brand .brand-sub { color: rgba(21,23,26,0.55); }
.gf-brand p { margin-top: 16px; font-size: 13px; font-weight: 300; line-height: 1.7; color: rgba(21,23,26,0.64); }
.gf-col h4 {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(21,23,26,0.55);
  margin-bottom: 16px;
}
.gf-col a {
  display: block;
  color: var(--graphite); text-decoration: none;
  font-size: 14px; font-weight: 300; line-height: 1.7;
  margin-bottom: 10px;
  transition: color 0.25s;
}
.gf-col a:hover { color: #000; }
.gf-col p { font-size: 13px; font-weight: 300; line-height: 1.8; color: rgba(21,23,26,0.62); }
.gf-socials { display: flex; gap: 18px; margin-top: 14px; }
.gf-socials a { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(21,23,26,0.72); }
.gf-bottom {
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 64px) 34px;
  font-size: 11.5px; font-weight: 300; letter-spacing: 0.1em;
  color: rgba(21,23,26,0.5);
}

/* ============ CABINET PAGE TRANSITION ============ */
.cabinet-page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}
.cabinet-page-transition.is-active { visibility: visible; }
/* two plain black panels that slide together to cover the page, then part open
   onto the next — pure black, no door detailing */
.cpt-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.08%;
  background: var(--black);
  will-change: transform;
}
.cpt-left {
  left: 0;
  transform: translateX(-101%);
}
.cpt-right {
  right: 0;
  transform: translateX(101%);
}
.cpt-seam { display: none; }

/* ============ RESPONSIVE ============ */

/* — laptop-narrow / iPad landscape — */
@media (max-width: 1180px) {
  .d-list { flex: 0 0 46%; padding-left: 44px; }
  .d-prev .d-door { left: 12px; }
}

/* — iPad portrait / small tablets — */
/* collapse the inline nav into the hamburger on laptops and smaller */
@media (max-width: 1536px) {
  .nav-link, .nav-phone, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 920px) {
  .herotext { max-width: min(520px, 58vw); }
  .d-body { flex-direction: column; align-items: stretch; gap: 2.6vh; }
  .d-list { flex: 0 0 auto; padding-left: 38px; }
  .d-row { padding: 1.15vh 0; }
  .d-meta { display: none; }
  .d-previews { order: -1; height: min(34vh, 300px); }
  .d-prev .d-door { left: 12px; bottom: 10px; width: clamp(72px, 11vw, 110px); }
  .pin { padding: 8vh 6vw 4vh; }
  .exittext.dark {
    max-width: min(440px, 48vw);
  }
}

@media (max-width: 920px) and (orientation: portrait) {
  /* the hero clip is shot wide for desktop; on a portrait screen we cover-crop
     it to the cabinet so it fills the frame instead of letterboxing to a strip */
  .layer {
    object-fit: cover;
    object-position: 75% 44%;
  }
  .stage.black .layer { background: var(--black); }

  /* a soft off-white scrim grounds the copy that now overlays the foot of the
     frame; it lifts on the dark beats so it never tints the black hand-off */
  .stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to top,
      var(--offwhite) 6%,
      rgba(242,242,240,0.94) 34%,
      rgba(242,242,240,0) 66%);
    transition: opacity 0.45s ease;
  }
  .stage.black::after { opacity: 0; }

  .herotext {
    left: 7vw;
    right: 7vw;
    top: auto;
    bottom: 9vh;
    max-width: none;
  }
  .eyebrow { letter-spacing: 0.24em; }
  .scrollcue { display: none; }
}

/* — phones (portrait) : video letterboxes on the off-white bg,
     text moves below the picture — */
@media (max-width: 700px) {
  #nav { padding: 16px 18px; }
  .nav-link { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 11px; }
  .brand { white-space: nowrap; }
  .brand-sub { display: none; }

  .layer {
    object-fit: cover;
    object-position: 75% 44%;
  }
  .stage.black .layer { background: var(--black); }

  .herotext {
    left: 6vw; right: 6vw;
    top: auto;
    bottom: 7vh;            /* copy overlays the foot of the cabinet on the scrim */
    max-width: none;
  }
  .herotext h1 { font-size: clamp(34px, 10.5vw, 48px); }
  .herotext .sub { font-size: 14px; line-height: 1.6; }
  .sub br { display: none; }
  .cta-row { gap: 12px; }
  .btn-dark { padding: 15px 26px; width: 100%; text-align: center; }
  .btn-ghost { padding-bottom: 4px; }
  .scrollcue { display: none; }

  .pin { padding: 7.2vh 5.5vw 3.4vh; }
  .d-head { margin-bottom: 2.2vh; }
  #d-title { font-size: clamp(30px, 8.8vw, 42px); line-height: 1.02; }
  .d-list { padding-left: 28px; }
  .d-row { padding: 0.78vh 0; gap: 12px; }
  .d-name { font-size: clamp(14px, 4.05vw, 17px); white-space: normal; }
  .d-num { font-size: 10px; }
  .d-square { width: 13px; height: 13px; left: 2px; }
  .d-previews { height: min(31vh, 220px); }
  .d-prev .d-door { width: clamp(64px, 17vw, 90px); }
}

@media (max-width: 920px) {
  .gf-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .exittext {
    left: 6vw;
    right: 6vw;
    top: auto;          /* phones keep the copy at the foot, below the cabinet band */
    bottom: 6vh;
    max-width: none;
  }
  .exittext.dark {
    top: auto;
    bottom: 7vh;
    transform: none;
    max-width: min(380px, 82vw);
  }
  .exittext h2 {
    font-size: clamp(34px, 10vw, 48px);
    margin-bottom: 14px;
  }
  .exittext .sub {
    font-size: 14px;
    line-height: 1.55;
    max-width: 32ch;
  }
  .exittext .cta-row {
    align-items: stretch;
    gap: 12px;
  }
  .exittext .btn-light,
  .exittext .btn-ghost-light {
    width: 100%;
    text-align: center;
  }
  #x-lineup img { object-fit: contain; }
  .granite-footer { background-position: center top; }
  .gf-inner { grid-template-columns: 1fr; gap: 30px; }
  .gf-socials { flex-wrap: wrap; }
}

/* — very short screens (landscape phones) — */
@media (max-height: 480px) {
  .herotext { top: 14vh; }
  .herotext h1 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 12px; }
  .sub { margin-bottom: 16px; }
  .pin { padding-top: 6vh; padding-bottom: 3vh; }
  .d-head { margin-bottom: 1.8vh; }
  .d-row { padding: 0.65vh 0; }
  .d-name { font-size: 14px; }
  .d-previews { height: 24vh; }
  .exittext h2 { font-size: clamp(30px, 7vw, 44px); }
  .exittext .sub { margin-bottom: 14px; }
}
