/* ==========================================================================
   DELEN HOUSE — Cinematic Product Launch Stylesheet
   Dark architectural obsidian · High contrast · Single vivid accent (#FF5A1F)
   ========================================================================== */

:root {
  --bg: #090b0e;
  --bg-alt: #0e1218;
  --surface: #131820;
  --surface-2: #19202b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f4f6f8;
  --text-2: #b4becb;
  --text-3: #8593a6;

  --accent: #ff5a1f;
  --accent-bright: #ff7744;
  --accent-ink: #090b0e;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --accent-glow: rgba(255, 90, 31, 0.28);

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container-max: 1280px;
  --header-h: 68px;

  /* 3D container geometry (scales fluidly from 390px phone to 1440px desktop) */
  --cw: clamp(208px, 25vw, 356px);
  --ch: calc(var(--cw) * 0.55);
  --cd: calc(var(--cw) * 0.48);
  --hx: calc(var(--cw) * 0.5);
  --hy: calc(var(--ch) * 0.5);
  --hz: calc(var(--cd) * 0.5);
  --frame-t: clamp(8px, 0.85vw, 12px);

  /* 3D animation parameters driven by scroll or stage buttons (0..1) */
  --cam-rx: -18deg;
  --cam-ry: -28deg;
  --cam-scale: 0.96;
  --tilt-x: 0deg;
  --tilt-y: 0deg;

  --base-off: 0px;
  --col-off: 0px;
  --col-op: 1;
  --back-off: 140px;
  --back-op: 0;
  --side-off: 150px;
  --side-op: 0;
  --roof-off: 140px;
  --roof-op: 0;
  --front-off: 140px;
  --front-op: 0;
  --door-open: 0;
  --interior-op: 0.08;
  --caption-op: 0;

  /* Frame finish colours (overridden by [data-colour]) */
  --steel: #2e3642;
  --steel-hi: #4b5668;
  --steel-lo: #1b2028;
}

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

[hidden] {
  display: none !important;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(255, 90, 31, 0.08), transparent 62%),
    var(--bg);
  color: var(--text);
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

/* Visually hidden utility (accessible skip link & screen reader announcements) */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

:where(a:any-link, button, select, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Scroll Progress Indicator (Native CSS Scroll-Driven + JS Fallback)
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-progress {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }

    .scroll-progress {
      animation: grow-progress auto linear;
      animation-timeline: scroll();
    }
  }
}

/* ==========================================================================
   Layout & Header
   ========================================================================== */
.container {
  width: min(var(--container-max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(9, 11, 14, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.primary-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-block-size: 40px;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  min-inline-size: 42px;
  min-block-size: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 220ms ease,
    transform 160ms ease;
}

.btn-sm {
  min-block-size: 38px;
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
}

.btn-full {
  width: 100%;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.4), 0 8px 24px -10px rgba(255, 90, 31, 0.55);
}

.btn-accent:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 28px rgba(255, 90, 31, 0.36);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 22px rgba(255, 90, 31, 0.16);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Hero: Pinned Scroll Sequence + 3D Container Assembly
   ========================================================================== */
.hero-runway {
  position: relative;
  min-height: 280svh;
  border-bottom: 1px solid var(--border);
}

.hero-sticky {
  position: sticky;
  top: var(--header-h);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: 1.5rem 2rem;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.7vw, 4.1rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.4rem;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--text-2);
  max-width: 48ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-anchors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 0.85rem;
}

.anchor-cell {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(19, 24, 32, 0.88);
  border: 1px solid var(--border);
}

.anchor-cell dt {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-bottom: 0.15rem;
}

.anchor-cell dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.anchor-cell strong {
  color: var(--text);
  font-weight: 700;
}

.hero-vat-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-3);
}

.hero-vat-note a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-vat-note a:hover {
  color: var(--accent-bright);
}

/* --- 3D Stage Card --- */
.hero-stage-wrap {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 520px;
}

.stage-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 90, 31, 0.12), transparent 58%),
    linear-gradient(180deg, #121720 0%, #0b0e13 100%);
  padding: 1rem;
  box-shadow: 0 32px 72px -32px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

/* Powder-coated frame colour themes from catalogue.json */
.stage-frame[data-colour="anthracite"] {
  --steel: #2e3642;
  --steel-hi: #4b5668;
  --steel-lo: #1a1f27;
}
.stage-frame[data-colour="white"] {
  --steel: #dfe4ec;
  --steel-hi: #ffffff;
  --steel-lo: #a9b4c4;
}
.stage-frame[data-colour="black"] {
  --steel: #15181e;
  --steel-hi: #303744;
  --steel-lo: #08090c;
}
.stage-frame[data-colour="blue"] {
  --steel: #1f6feb;
  --steel-hi: #58a6ff;
  --steel-lo: #11449a;
}
.stage-frame[data-colour="grey"] {
  --steel: #7d8896;
  --steel-hi: #a4b0bf;
  --steel-lo: #4f5864;
}
.stage-frame[data-colour="red"] {
  --steel: #c9372c;
  --steel-hi: #eb5e55;
  --steel-lo: #821d16;
}
.stage-frame[data-colour="yellow"] {
  --steel: #e3a008;
  --steel-hi: #f8c648;
  --steel-lo: #9c6b00;
}

.stage-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.76rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.stage-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-bright);
  white-space: nowrap;
}

.stage-viewport {
  position: relative;
  height: clamp(248px, 34vw, 370px);
  display: grid;
  place-items: center;
  perspective: 1150px;
  perspective-origin: 50% 48%;
  user-select: none;
}

.stage-grid-floor {
  position: absolute;
  width: calc(var(--cw) * 1.48);
  height: calc(var(--cd) * 1.65);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid rgba(255, 90, 31, 0.24);
  transform:
    rotateX(calc(var(--cam-rx) + var(--tilt-x)))
    rotateY(calc(var(--cam-ry) + var(--tilt-y)))
    translate3d(0, calc(var(--hy) + 26px), 0)
    rotateX(90deg);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 45%, transparent 100%);
  pointer-events: none;
}

.container-rig {
  position: relative;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  transform:
    scale(var(--cam-scale))
    rotateX(calc(var(--cam-rx) + var(--tilt-x)))
    rotateY(calc(var(--cam-ry) + var(--tilt-y)));
  will-change: transform;
}

.container-3d {
  position: relative;
  transform-style: preserve-3d;
}

.c-part {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* 1. Base grid & plywood/PVC floor */
.c-base {
  width: var(--cw);
  height: var(--cd);
  margin-left: calc(var(--cw) * -0.5);
  margin-top: calc(var(--cd) * -0.5);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.07) 0 2px,
      transparent 2px 34px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0 2px,
      transparent 2px 34px
    ),
    linear-gradient(135deg, #272d36, #181d24);
  border: 4px solid var(--steel);
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.65);
  transform: translate3d(0, calc(var(--hy) + var(--base-off)), 0) rotateX(90deg);
}

.base-grid {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 90, 31, 0.28);
}

.base-rim {
  position: absolute;
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
}

.base-rim-front {
  left: -4px;
  right: -4px;
  bottom: -4px;
  height: var(--frame-t);
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
}

.base-rim-back {
  left: -4px;
  right: -4px;
  top: -4px;
  height: var(--frame-t);
  transform-origin: 50% 0%;
  transform: rotateX(90deg);
}

.base-rim-left {
  top: -4px;
  bottom: -4px;
  left: -4px;
  width: var(--frame-t);
  transform-origin: 0% 50%;
  transform: rotateY(90deg);
}

.base-rim-right {
  top: -4px;
  bottom: -4px;
  right: -4px;
  width: var(--frame-t);
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
}

/* 2. Four 15x15 cm corner columns (dual-plane crossed steel prism) */
.c-col {
  width: var(--frame-t);
  height: var(--ch);
  margin-left: calc(var(--frame-t) * -0.5);
  margin-top: calc(var(--ch) * -0.5);
  background: linear-gradient(90deg, var(--steel-lo), var(--steel-hi) 45%, var(--steel));
  opacity: var(--col-op);
}

.c-col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--steel), var(--steel-hi) 50%, var(--steel-lo));
  transform: rotateY(90deg);
}

.c-col-fl {
  transform: translate3d(
    calc(var(--hx) * -1 + var(--frame-t) * 0.5),
    calc(var(--col-off) * -1),
    calc(var(--hz) - var(--frame-t) * 0.5)
  );
}
.c-col-fr {
  transform: translate3d(
    calc(var(--hx) - var(--frame-t) * 0.5),
    calc(var(--col-off) * -1),
    calc(var(--hz) - var(--frame-t) * 0.5)
  );
}
.c-col-bl {
  transform: translate3d(
    calc(var(--hx) * -1 + var(--frame-t) * 0.5),
    calc(var(--col-off) * -1),
    calc(var(--hz) * -1 + var(--frame-t) * 0.5)
  );
}
.c-col-br {
  transform: translate3d(
    calc(var(--hx) - var(--frame-t) * 0.5),
    calc(var(--col-off) * -1),
    calc(var(--hz) * -1 + var(--frame-t) * 0.5)
  );
}

/* Shared polyurethane sandwich panel texture */
.panel-ribs {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(15, 20, 28, 0.14) 0 1px,
      transparent 1px 42px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(15, 20, 28, 0.05) 0 1px,
      transparent 1px 10px
    ),
    linear-gradient(180deg, #eff2f6 0%, #d4dbe4 100%);
  border: 2px solid var(--steel);
}

/* 3. Back wall + Real Interior Photo Reveal */
.c-wall-back {
  width: var(--cw);
  height: var(--ch);
  margin-left: calc(var(--cw) * -0.5);
  margin-top: calc(var(--ch) * -0.5);
  opacity: var(--back-op);
  transform: translate3d(0, 0, calc(var(--hz) * -1 - var(--back-off)));
}

.interior-reveal {
  position: absolute;
  inset: 3px;
  margin: 0;
  overflow: hidden;
  background: #121720;
  opacity: var(--interior-op);
  transform: translateZ(2px);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

.interior-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.interior-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #f4f6f8;
  background: linear-gradient(0deg, rgba(9, 11, 14, 0.9) 0%, rgba(9, 11, 14, 0) 100%);
  opacity: var(--caption-op);
}

/* 4. Side walls */
.c-wall-left,
.c-wall-right {
  width: var(--cd);
  height: var(--ch);
  margin-left: calc(var(--cd) * -0.5);
  margin-top: calc(var(--ch) * -0.5);
  opacity: var(--side-op);
}

.c-wall-left {
  transform: translate3d(calc(var(--hx) * -1 - var(--side-off)), 0, 0) rotateY(-90deg);
}

.c-wall-right {
  transform: translate3d(calc(var(--hx) + var(--side-off)), 0, 0) rotateY(90deg);
}

.c-wall-left .panel-ribs,
.c-wall-right .panel-ribs {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(15, 20, 28, 0.16) 0 1px,
      transparent 1px 36px
    ),
    linear-gradient(180deg, #dde3ec 0%, #bcc6d3 100%);
}

.side-window {
  position: absolute;
  top: 24%;
  left: 28%;
  width: 44%;
  height: 46%;
  border: 3px solid #f7f9fc;
  background: linear-gradient(135deg, #25364a 0%, #101924 60%, #1e2d3f 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* 5. Roof slab with lifting lugs and fascia trim */
.c-roof {
  width: calc(var(--cw) + 2px);
  height: calc(var(--cd) + 2px);
  margin-left: calc((var(--cw) + 2px) * -0.5);
  margin-top: calc((var(--cd) + 2px) * -0.5);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 2px,
      transparent 2px 18px
    ),
    linear-gradient(180deg, var(--steel-hi), var(--steel));
  border: 3px solid var(--steel-lo);
  opacity: var(--roof-op);
  transform: translate3d(0, calc(var(--hy) * -1 - var(--roof-off)), 0) rotateX(90deg);
}

.roof-lug {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--steel-lo);
  transform: translateZ(4px);
}
.lug-1 { top: 8px; left: 8px; }
.lug-2 { top: 8px; right: 8px; }
.lug-3 { bottom: 8px; left: 8px; }
.lug-4 { bottom: 8px; right: 8px; }

.roof-fascia {
  position: absolute;
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
}

.roof-fascia-front {
  left: -3px;
  right: -3px;
  bottom: -3px;
  height: var(--frame-t);
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
}

.roof-fascia-left {
  top: -3px;
  bottom: -3px;
  left: -3px;
  width: var(--frame-t);
  transform-origin: 0% 50%;
  transform: rotateY(90deg);
}

.roof-fascia-right {
  top: -3px;
  bottom: -3px;
  right: -3px;
  width: var(--frame-t);
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
}

/* 6. Front hinged wall halves (assemble, then swing open to reveal interior photo) */
.c-front-left,
.c-front-right {
  width: calc(var(--cw) * 0.5);
  height: var(--ch);
  margin-top: calc(var(--ch) * -0.5);
  opacity: var(--front-op);
}

.c-front-left {
  margin-left: calc(var(--cw) * -0.5);
  transform-origin: 0% 50%;
  transform:
    translate3d(0, 0, calc(var(--hz) + var(--front-off)))
    rotateY(calc(var(--door-open) * -108deg));
}

.c-front-right {
  margin-left: 0;
  transform-origin: 100% 50%;
  transform:
    translate3d(0, 0, calc(var(--hz) + var(--front-off)))
    rotateY(calc(var(--door-open) * 108deg));
}

.front-frame-bar {
  position: absolute;
  inset: 0;
  border-top: var(--frame-t) solid var(--steel);
  border-bottom: calc(var(--frame-t) * 0.85) solid var(--steel);
  pointer-events: none;
}

.pvc-window {
  position: absolute;
  top: 23%;
  left: 20%;
  width: 56%;
  height: 48%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  background: #f4f6f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.pvc-window-sm {
  left: 49%;
  width: 40%;
}

.pvc-pane {
  background: linear-gradient(145deg, #324a64 0%, #14202d 55%, #24384e 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.entrance-door {
  position: absolute;
  top: 19%;
  left: 8%;
  width: 34%;
  height: 75%;
  background: linear-gradient(180deg, #f3f6fa 0%, #d9e0e8 100%);
  border: 3px solid #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 20, 28, 0.25);
}

.door-handle {
  position: absolute;
  top: 52%;
  right: 12%;
  width: 9px;
  height: 3px;
  border-radius: 2px;
  background: #222933;
}

/* Smooth transition only when user clicks stage buttons directly */
.stage-frame.is-snapping .container-rig,
.stage-frame.is-snapping .stage-grid-floor,
.stage-frame.is-snapping .c-part,
.stage-frame.is-snapping .interior-reveal,
.stage-frame.is-snapping .interior-caption {
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

/* Stage HUD below 3D viewport */
.stage-hud {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stage-spec {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-2);
  min-height: 2.5em;
}

.stage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stage-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stage-pill {
  min-block-size: 36px;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.stage-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.stage-pill.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.colour-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.colour-label {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-right: 0.2rem;
}

.swatch {
  position: relative;
  min-inline-size: 24px;
  min-block-size: 24px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.swatch[data-colour="anthracite"] { background: #38414e; }
.swatch[data-colour="white"] { background: #eef2f6; }
.swatch[data-colour="black"] { background: #14171c; }
.swatch[data-colour="blue"] { background: #2677f2; }
.swatch[data-colour="grey"] { background: #8a95a3; }
.swatch[data-colour="red"] { background: #d13d32; }
.swatch[data-colour="yellow"] { background: #e8a712; }

.swatch:hover {
  transform: scale(1.12);
}

.swatch.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* ==========================================================================
   Shared Sections
   ========================================================================== */
.section {
  padding-block: clamp(3.75rem, 7vw, 6.25rem);
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.section-intro {
  margin: 0;
  color: var(--text-2);
  max-width: 48ch;
  font-size: 0.98rem;
}

/* ==========================================================================
   Product Lines Grid (Spotlight Glow Cards)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 240ms ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 90, 31, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.product-card:hover {
  border-color: rgba(255, 90, 31, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.85), 0 0 24px -10px var(--accent-glow);
}

.product-card:hover::before {
  opacity: 1;
}

.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0e13;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(9, 11, 14, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
}

.product-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  gap: 0.8rem;
}

.product-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-title-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.product-price strong {
  font-size: 1.08rem;
  color: var(--accent-bright);
}

.product-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-chips li {
  padding: 0.24rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-2);
}

.card-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-block-size: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.card-action:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

/* ==========================================================================
   Interactive Price Picker (catalogue.json + Branded Select Styling)
   ========================================================================== */
.picker-shell {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  overflow: hidden;
}

.picker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 14, 0.45);
}

.picker-tab {
  min-block-size: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.picker-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.picker-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.picker-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.picker-controls {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.picker-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-2);
}

.control-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.field-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Branded Select Styling with progressive appearance: base-select */
.brand-select {
  width: 100%;
  min-block-size: 44px;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.brand-select:hover {
  border-color: rgba(255, 90, 31, 0.55);
}

.brand-select option {
  background-color: #131820;
  color: #f4f6f8;
}

@supports (appearance: base-select) {
  .brand-select,
  .brand-select::picker(select) {
    appearance: base-select;
  }

  .brand-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand-select::picker-icon {
    color: var(--accent-bright);
  }

  .brand-select::picker(select) {
    background-color: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.35rem;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.7);
  }

  .brand-select option {
    padding: 0.55rem 0.7rem;
    border-radius: 4px;
    color: var(--text);
    background-color: transparent;
    cursor: pointer;
  }

  .brand-select option:hover,
  .brand-select option:checked {
    background-color: var(--accent-soft);
    color: var(--text);
  }

  .brand-select option::checkmark {
    color: var(--accent-bright);
  }
}

.size-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.size-meta,
.area-readout {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

.size-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 0.5rem;
}

.size-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-block-size: 56px;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.size-chip:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.size-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 18px -6px var(--accent-glow);
}

.size-chip-dim {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.size-chip-sub {
  font-size: 0.75rem;
  color: var(--text-3);
}

.size-chip.is-active .size-chip-sub {
  color: var(--text-2);
}

.size-chip-promo {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.range-input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  min-block-size: 32px;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  cursor: pointer;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.toggle-text span {
  font-size: 0.8rem;
  color: var(--text-3);
}

.picker-inclusions {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.picker-inclusions h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
}

.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-2);
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-bright);
}

.picker-extra-note {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent);
  font-size: 0.82rem;
  color: var(--text-2);
}

/* Summary Column */
.picker-summary {
  padding: 1.35rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #10151d 0%, #0b0e13 100%);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.summary-price-box {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 90, 31, 0.35);
  background: radial-gradient(circle at 90% 10%, rgba(255, 90, 31, 0.14), rgba(19, 24, 32, 0.8) 65%);
}

.summary-kicker {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 0.25rem;
}

.summary-dims {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.price-display {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.price-old {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-3);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.price-current {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.price-sub {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-3);
}

.summary-plan {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-mat {
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: #f5f7fa;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
}

.plan-mat.is-photo {
  padding: 0;
  background: #0b0e13;
}

.plan-mat img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
}

.plan-mat.is-photo img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.summary-plan figcaption {
  font-size: 0.8rem;
  color: var(--text-3);
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.picker-error {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 90, 31, 0.5);
  background: rgba(255, 90, 31, 0.12);
  font-size: 0.84rem;
  color: var(--text);
}

/* ==========================================================================
   Story Since 2015 (Sticky Cross-Fade Chapters)
   ========================================================================== */
.story-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.story-sticky-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.story-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.story-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.story-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.1rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text);
  background: linear-gradient(0deg, rgba(9, 11, 14, 0.92) 0%, rgba(9, 11, 14, 0) 100%);
}

.story-chapters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter-trigger {
  width: 100%;
  text-align: left;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.chapter-trigger:hover {
  border-color: var(--border-strong);
}

.story-chapter.is-active .chapter-trigger {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.1), var(--surface) 58%);
  box-shadow: 0 0 28px -12px var(--accent-glow);
}

.chapter-year {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.chapter-trigger h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.chapter-trigger p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-2);
}

/* ==========================================================================
   Real Builds Gallery + Lightbox
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  min-block-size: 38px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--text-2);
}

.filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 200ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.gallery-card:hover {
  border-color: rgba(255, 90, 31, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -22px rgba(0, 0, 0, 0.9);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 0.95rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: linear-gradient(0deg, rgba(9, 11, 14, 0.92) 0%, rgba(9, 11, 14, 0.35) 60%, transparent 100%);
}

.gallery-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   How Buying Works + Service Rates Table
   ========================================================================== */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
}

.process-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
}

.process-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.process-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

.rates-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  overflow: hidden;
}

.rates-head {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.rates-head h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.rates-head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-3);
}

.table-scroll {
  overflow-x: auto;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rates-table th,
.rates-table td {
  padding: 0.85rem 1.35rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.rates-table thead th {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(9, 11, 14, 0.45);
}

.rates-table tbody th {
  font-weight: 500;
  color: var(--text);
}

.rates-table tbody td {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.rates-table tbody tr:last-child th,
.rates-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ==========================================================================
   Offices & Contact Dock
   ========================================================================== */
.contact-dock {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dock-primary,
.dock-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.dock-primary {
  justify-content: flex-start;
  text-decoration: none;
  border-color: rgba(255, 90, 31, 0.55);
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.18), var(--surface) 60%);
  transition: transform 180ms ease, box-shadow 200ms ease, border-color 180ms ease;
}

.dock-primary .dock-arrow {
  margin-left: auto;
}

.dock-primary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 32px -10px var(--accent-glow);
}

.dock-email-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.dock-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 90, 31, 0.14);
  color: var(--accent-bright);
  flex-shrink: 0;
}

.dock-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dock-label {
  font-size: 0.78rem;
  color: var(--text-3);
}

.dock-value {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.26rem);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.dock-arrow {
  color: var(--accent-bright);
  flex-shrink: 0;
}

.copy-btn {
  flex-shrink: 0;
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.office-card {
  padding: 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.office-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.office-card h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.office-address {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.office-directions {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

.office-links {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.office-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-block-size: 36px;
  font-size: 0.9rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 160ms ease;
}

.office-links a:hover {
  color: var(--accent-bright);
}

.office-links svg {
  color: var(--accent-bright);
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-block: 2rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer-brand strong {
  color: var(--text);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-meta a {
  text-decoration: none;
  color: var(--text-2);
}

.footer-meta a:hover {
  color: var(--accent-bright);
}

/* ==========================================================================
   Native Modal Dialogs (Lightbox & Mobile Nav)
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(5, 7, 10, 0.84);
  backdrop-filter: blur(8px);
}

.lightbox {
  max-width: min(1040px, calc(100vw - 1.5rem));
  width: 100%;
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox-surface {
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 2rem);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.lightbox-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.lightbox-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.lightbox-close {
  display: grid;
  place-items: center;
  min-inline-size: 40px;
  min-block-size: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.lightbox-figure {
  margin: 0;
  padding: 0.85rem;
  background: #080a0d;
  display: grid;
  place-items: center;
  overflow: auto;
  flex: 1;
}

.lightbox-figure img {
  max-height: 68svh;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.15rem;
  border-top: 1px solid var(--border);
}

.lightbox-count {
  font-family: var(--font-display);
  font-size: 0.84rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* Mobile Nav Dialog */
.mobile-nav {
  margin: 0 0 0 auto;
  width: min(320px, 88vw);
  height: 100svh;
  max-height: 100svh;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.mobile-nav[open] {
  display: flex;
}

.mobile-nav-surface {
  width: 100%;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-block-size: 46px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-list a:hover {
  background: var(--accent-soft);
}

.mobile-nav-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   Progressive Scroll-Driven Entry Reveal (never hides prices/contact!)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes subtle-rise {
      from {
        transform: translateY(20px) scale(0.985);
        opacity: 0.82;
      }
      to {
        transform: translateY(0) scale(1);
        opacity: 1;
      }
    }

    .product-card,
    .process-card,
    .office-card {
      animation: subtle-rise auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
  }
}

/* ==========================================================================
   Responsive Breakpoints (Mobile 390px -> Tablet -> Desktop 1440px)
   ========================================================================== */
@media (min-width: 640px) {
  .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-dock,
  .offices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .primary-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
    gap: 2.5rem;
  }

  .section-head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .picker-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  }

  .picker-summary {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .story-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }

  .story-media-col {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .story-chapters {
    gap: 1.5rem;
  }

  .chapter-trigger {
    padding: 1.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-wide {
    grid-column: span 2;
  }

  .gallery-wide .gallery-card {
    aspect-ratio: 16 / 9;
    height: 100%;
  }

  .process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }

  .header-actions .btn-ghost span {
    display: none;
  }

  .hero-runway {
    min-height: 220svh;
  }

  .stage-frame {
    padding: 0.75rem;
  }

  .stage-scroll-hint {
    display: none;
  }

  .stage-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .picker-controls,
  .picker-summary {
    padding: 1rem;
  }

  .dock-primary,
  .dock-email {
    padding: 0.95rem 1rem;
    flex-wrap: wrap;
  }
}

/* Touch devices: comfortably larger hit areas */
@media (pointer: coarse) {
  .swatch {
    min-inline-size: 30px;
    min-block-size: 30px;
  }

  .stage-pill {
    min-block-size: 40px;
  }
}

/* ==========================================================================
   Reduced Motion Preference (Respects User Comfort Completely)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-runway {
    min-height: auto;
  }

  .hero-sticky {
    position: static;
    min-height: auto;
    padding-block: 2.25rem;
  }

  .stage-scroll-hint {
    display: none;
  }

  /* Show assembled & opened container cleanly immediately */
  .stage-frame {
    --cam-rx: -6deg;
    --cam-ry: -4deg;
    --cam-scale: 0.96;
    --base-off: 0px;
    --col-off: 0px;
    --col-op: 1;
    --back-off: 0px;
    --back-op: 1;
    --side-off: 0px;
    --side-op: 1;
    --roof-off: 0px;
    --roof-op: 1;
    --front-off: 0px;
    --front-op: 1;
    --door-open: 1;
    --interior-op: 1;
    --caption-op: 1;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
