:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --ink: oklch(0.135 0.012 275);
  --muted: oklch(0.42 0.018 275);
  --soft: oklch(0.965 0.006 275);
  --surface: oklch(0.985 0.002 275);
  --line: oklch(0.86 0.006 275);
  --primary: oklch(0.36 0.19 268);
  --primary-dark: oklch(0.24 0.12 268);
  --accent: oklch(0.78 0.12 194);
  --accent-dark: oklch(0.34 0.085 194);
  --white-alpha: oklch(1 0 0 / 0.9);
  --shadow-soft: 0 8px 12px oklch(0.22 0.02 275 / 0.12);
  --max: 1140px;
  --pad: clamp(18px, 3.4vw, 46px);
  --nav-height: 48px;

  /* ── Spacing scale ── */
  --gap-inner:   clamp(12px, 1.5vw, 16px);   /* dense grids: metrics, tabs, swatches    */
  --gap-mid:     clamp(16px, 2vw, 24px);     /* content grids: 2-up media, spec cards   */
  --gap-outer:   clamp(26px, 3.5vw, 44px);   /* feature layouts: splits, sticky stories */
  --card-pad:    clamp(18px, 2.5vw, 30px);   /* internal padding for all cards / panels */
  --heading-gap: clamp(26px, 4vw, 48px);     /* space below section headings            */
  font-family:
    "Avenir Next",
    Avenir,
    "Century Gothic",
    Futura,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.motion-paused *,
body.motion-paused *::before,
body.motion-paused *::after {
  animation-play-state: paused !important;
  transition-duration: 0.001ms !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--primary-dark);
  color: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1), visibility 420ms linear;
  will-change: opacity;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: min(64vw, 460px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(18px, 3vw, 28px);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 420ms ease;
}

.loader.is-hidden .loader-mark {
  opacity: 0;
  transform: translateY(-10px);
}

.loader-mark span {
  display: block;
  text-align: center;
  font-size: clamp(3.4rem, 10vw, 7.8rem);
  font-weight: 750;
  line-height: 0.86;
  letter-spacing: 0;
}

.loader-mark i {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  animation: loader-line 980ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

@keyframes loader-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.site-header {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--nav-height);
  padding: 4px;
  border-radius: 8px;
  background: var(--white-alpha);
  box-shadow: var(--shadow-soft);
}

.brand-link,
.nav-menu a,
.nav-toggle {
  min-height: 40px;
  border-radius: 6px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  font-weight: 720;
}

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  background: var(--soft);
  color: var(--primary);
}

.nav-menu .nav-cta {
  color: var(--bg);
  background: var(--ink);
}

.nav-menu .nav-cta:hover,
.nav-menu .nav-cta.is-active {
  background: var(--primary);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  grid-template-columns: 18px auto;
  grid-template-rows: repeat(3, 4px);
  align-items: center;
  column-gap: 8px;
  border: 0;
  color: var(--ink);
  background: transparent;
  padding: 0 10px;
}

.nav-toggle span {
  grid-column: 1;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle b {
  grid-column: 2;
  grid-row: 1 / 4;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
  padding: min(18vh, 140px) var(--pad) 72px;
  background: var(--soft);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      oklch(1 0 0 / 0.94) 0%,
      oklch(1 0 0 / 0.74) 34%,
      oklch(1 0 0 / 0.06) 74%
    );
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-drift 12s ease-out both;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

.hero-copy {
  width: min(760px, 100%);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.hero-label,
.section-heading p,
.split-heading p:first-child,
.story-stack article > p:first-child,
.power-layout > div > p:first-child,
.spec-detail > p {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 720;
}

.hero h1 {
  margin: 0;
  font-size: clamp(5rem, 17vw, 13rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy > p:not(.hero-label) {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.5vw, 1.8rem);
  line-height: 1.22;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions a,
.door-buttons button,
.spec-tabs button,
.segmented-control button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.hero-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 680;
}

.hero-actions a + a {
  background: var(--bg);
  color: var(--ink);
}

.hero-actions a:hover,
.door-buttons button:hover,
.spec-tabs button:hover,
.segmented-control button:hover {
  transform: translateY(-1px);
}


.hero-peek {
  position: absolute;
  right: var(--pad);
  bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-pad {
  padding: clamp(56px, 7.2vw, 104px) var(--pad);
}

.section-heading,
.split-heading,
.context-grid,
.power-layout,
.door-grid,
.spec-layout,
.common-specs,
.closing-layout,
.free-door-diagram {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: var(--heading-gap);
}

h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  max-width: 980px;
  font-size: clamp(2.6rem, 7vw, 6rem);
}

h3 {
  font-size: clamp(1.55rem, 3.4vw, 3rem);
}

p {
  text-wrap: pretty;
}

.context-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1.2fr);
  gap: var(--gap-mid);
  align-items: stretch;
}

.context-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 420px;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.context-copy p {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finish-panel .media-frame,
.door-main,
.door-selector .media-frame,
.free-door-diagram .media-frame,
.power-media {
  display: grid;
  place-items: center;
  background: var(--bg);
}

.finish-panel .media-frame img,
.door-main img,
.door-selector .media-frame img,
.free-door-diagram .media-frame img,
.power-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-frame-large {
  min-height: 420px;
}

.context-grid .media-frame:last-child {
  grid-column: 2;
  min-height: 300px;
}

.context-heading {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin-bottom: 0;
  padding: clamp(10px, 2.4vw, 28px) 0 clamp(4px, 1vw, 12px);
}

.context-heading h2 {
  max-width: 7.2ch;
  font-size: clamp(3rem, 5.8vw, 6.2rem);
  line-height: 0.92;
}

.context-heading p {
  margin-bottom: clamp(8px, 1.4vw, 14px);
}

.system-section {
  padding: 0 var(--pad);
  background: var(--ink);
  color: var(--bg);
}

.sticky-story {
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.8fr);
  gap: var(--gap-outer);
}

.sticky-media {
  position: sticky;
  top: 86px;
  height: calc(100svh - 104px);
  margin: 0;
  display: flex;
  align-items: center;
}

.sticky-media img {
  width: 100%;
  max-height: 82svh;
  object-fit: contain;
}

.story-stack {
  padding: 22svh 0;
  display: grid;
  gap: 22svh;
}

.story-stack article {
  max-width: 560px;
}

.story-stack p {
  color: oklch(0.86 0.02 275);
}

.story-stack article > p:first-child {
  color: var(--accent);
}

.story-stack h2 {
  font-size: clamp(2.4rem, 5.5vw, 5.4rem);
}

.story-stack h3 {
  margin-bottom: 20px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.62fr);
  gap: var(--gap-outer);
  align-items: end;
  margin-bottom: var(--heading-gap);
}

.split-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.segmented-control {
  width: min(var(--max), 100%);
  margin: 0 auto var(--gap-mid);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-control button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--soft);
}

.segmented-control button[aria-selected="true"] {
  color: var(--bg);
  background: var(--primary);
}

.finish-panels {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.finish-panel {
  display: none;
  grid-template-columns: minmax(260px, 0.38fr) minmax(320px, 1fr);
  gap: var(--gap-mid);
  align-items: start;
}

.finish-panel.is-active {
  display: grid;
}

.finish-copy {
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.finish-copy p {
  color: var(--muted);
}

.finish-panel .media-frame {
  min-height: 0;
  aspect-ratio: 2.65 / 1;
}

.finish-panel[data-finish-panel="interior"] .media-frame,
.finish-panel[data-finish-panel="swatches"] .swatch-grid {
  aspect-ratio: 2.45 / 1;
}

.swatch-grid {
  max-height: 680px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.swatch-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.door-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.04fr) minmax(360px, 0.96fr);
  gap: var(--gap-outer);
  align-items: start;
}

.free-door-section .section-heading h2 {
  max-width: 900px;
  font-size: clamp(2.35rem, 5.8vw, 5.2rem);
}

.door-main {
  min-height: 0;
  aspect-ratio: 2.18 / 1;
}

.door-copy {
  color: var(--muted);
}

.door-copy > p {
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.door-selector {
  margin-top: var(--card-pad);
  display: grid;
  gap: var(--gap-inner);
}

.door-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.door-buttons button,
.spec-tabs button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--soft);
}

.door-buttons button.is-active,
.spec-tabs button.is-active {
  color: var(--bg);
  background: var(--ink);
}

.door-selector figcaption {
  padding: 10px 12px;
  color: var(--muted);
}

.free-door-diagram {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: var(--gap-mid);
  margin-top: var(--gap-mid);
}

.power-section {
  background: var(--soft);
}

.power-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 1fr);
  gap: var(--gap-outer);
  align-items: center;
}

.power-layout h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.08;
  margin-bottom: var(--gap-inner);
}

.power-layout p {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.check-list {
  display: grid;
  gap: var(--gap-inner);
  margin: var(--card-pad) 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--primary);
}

.power-media {
  min-height: 0;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
}

.performance-section {
  display: grid;
  grid-template-columns: minmax(340px, 1.12fr) minmax(300px, 0.88fr);
  min-height: 86svh;
  background: var(--primary-dark);
  color: var(--bg);
}

.performance-image {
  min-height: 520px;
}

.performance-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.performance-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
}

.performance-content h2 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

.metrics-grid {
  display: grid;
  gap: var(--gap-inner);
  margin-top: var(--card-pad);
}

.metrics-grid article {
  padding: var(--card-pad);
  border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: 8px;
}

.metrics-grid span {
  display: block;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 760;
  line-height: 0.92;
}

.metrics-grid p {
  margin: var(--gap-inner) 0 0;
  color: oklch(0.88 0.01 275);
}

.cluster-scroll {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(300px, 0.72fr);
  gap: var(--gap-mid);
  align-items: start;
}

.cluster-media {
  position: sticky;
  top: 92px;
  margin: 0;
  height: calc(100svh - 120px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.cluster-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cluster-cards {
  display: grid;
  gap: var(--gap-inner);
}

.cluster-cards article {
  min-height: 42svh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 180ms ease, background 180ms ease;
}

.cluster-cards article.is-active {
  border-color: var(--primary);
  background: var(--soft);
}

.cluster-cards p {
  color: var(--muted);
}

.spec-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: var(--gap-inner);
}

.spec-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
}

.spec-tabs button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.spec-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(280px, 1fr);
  gap: var(--gap-mid);
  padding: var(--gap-mid);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-visual {
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: 6px;
  background: var(--soft);
}

.spec-visual img {
  max-height: 390px;
  object-fit: contain;
}

.spec-detail {
  align-self: center;
}

.spec-detail h3 {
  margin-bottom: 22px;
}

.spec-detail dl {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(160px, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.spec-detail dt {
  color: var(--muted);
}

.spec-detail dd {
  margin: 0;
  font-weight: 680;
}

.common-specs {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.common-specs h3 {
  margin-bottom: 22px;
}

.common-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 20px;
}

.common-grid p {
  margin: 0;
  color: var(--muted);
}

.common-grid b {
  color: var(--ink);
}

.closing-section {
  background: var(--soft);
}

.closing-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: stretch;
}

.closing-media {
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.closing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.closing-copy > p:first-child {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 720;
}

.closing-copy > p:not(:first-child) {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px var(--pad);
  color: var(--bg);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
}


/* ── Slide-faithful chapters from the CUBE product deck ───────── */
.finish-quote-section {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7.5vw, 108px) var(--pad) clamp(54px, 6.5vw, 94px);
  background: var(--bg);
}

.finish-quote-layout,
.finish-chapter,
.furniture-layout,
.door-stage,
.performance-layout {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.finish-quote-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 1fr);
  gap: var(--gap-outer);
  align-items: center;
  min-height: min(700px, 78svh);
}

.finish-quote-layout blockquote {
  margin: 0;
  max-width: 13.4ch;
  font-size: clamp(2.75rem, 5.15vw, 5.05rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.finish-quote-media,
.furniture-depth,
.furniture-product-line,
.finish-runner,
.interior-board,
.setup-strip,
.performance-media {
  margin: 0;
}

.finish-quote-media {
  display: grid;
  place-items: center;
  min-height: clamp(360px, 46vw, 620px);
}

.finish-quote-media img {
  width: min(100%, 560px);
  filter: drop-shadow(0 18px 22px oklch(0.18 0.02 275 / 0.12));
  animation: product-float 7s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.finishes-section {
  overflow: hidden;
  background: var(--bg);
}

.finish-chapter + .finish-chapter {
  margin-top: clamp(68px, 8.5vw, 118px);
}

.finish-chapter > h2 {
  margin: 0 0 clamp(14px, 2.2vw, 26px);
  text-align: center;
  font-size: clamp(3.35rem, 6.4vw, 5.2rem);
  font-weight: 800;
  line-height: 0.9;
}

.finish-runner {
  overflow: visible;
}

.finish-runner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  animation: finish-breathe 9s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.exterior-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 1440px);
  margin: 8px auto 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.32rem);
  line-height: 1.05;
}

.exterior-labels span {
  text-align: center;
}

.space-copy {
  width: min(1120px, 100%);
  margin: clamp(36px, 4.8vw, 68px) auto 0;
}

.space-copy h3 {
  max-width: 1120px;
  font-size: clamp(2rem, 3.65vw, 3.45rem);
  font-weight: 400;
  line-height: 1.05;
}

.space-copy h3 strong {
  font-weight: 820;
}

.space-copy p {
  margin: clamp(10px, 1.4vw, 16px) 0 0;
  max-width: 1050px;
  font-size: clamp(1.08rem, 1.55vw, 1.65rem);
  line-height: 1.16;
  color: var(--ink);
}

.interior-showcase {
  display: grid;
  gap: clamp(18px, 3vw, 36px);
}

.interior-board {
  overflow: visible;
}

.interior-board img {
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: finish-breathe 10s cubic-bezier(0.22, 1, 0.36, 1) 400ms infinite alternate;
}

.interior-showcase .swatch-grid {
  max-height: none;
  aspect-ratio: auto;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: clamp(6px, 1vw, 10px);
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.interior-showcase .swatch-grid img {
  border-radius: 3px;
  transition: transform 180ms ease, filter 180ms ease;
}

.interior-showcase .swatch-grid img:hover {
  transform: translateY(-3px) scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.furniture-integration-section {
  overflow: hidden;
  background: var(--bg);
}

.furniture-layout {
  width: min(1360px, 100%);
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(380px, 1fr);
  gap: clamp(24px, 3.6vw, 58px);
  align-items: center;
}

.furniture-depth {
  min-height: clamp(430px, 48vw, 660px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.furniture-depth img {
  width: min(104%, 780px);
  max-width: none;
  object-fit: contain;
  object-position: left center;
  animation: depth-drift 13s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.integration-copy > p {
  margin: 0;
  max-width: 960px;
  font-size: clamp(1.38rem, 2.35vw, 2.45rem);
  line-height: 1.12;
  font-weight: 400;
}

.furniture-product-line {
  margin: clamp(20px, 2.8vw, 38px) 0;
}

.furniture-product-line img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.integration-copy h2 {
  margin: 0 0 clamp(14px, 2vw, 24px);
  font-size: clamp(1.8rem, 3.2vw, 3.35rem);
  font-weight: 400;
  line-height: 1.05;
}

.integration-copy h2 strong {
  font-weight: 850;
}

.integration-lines {
  display: grid;
  gap: 4px;
}

.integration-lines p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.35vw, 1.3rem);
  line-height: 1.2;
}

.door-stage {
  width: min(1420px, 100%);
}

.setup-strip {
  overflow: hidden;
  border-bottom: 2px dashed var(--ink);
}

.setup-strip img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  animation: setup-glide 12s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.door-note {
  margin: clamp(18px, 2vw, 26px) 0 0;
  text-align: center;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
}

.door-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 32vw, 420px);
  margin: clamp(18px, 4vw, 54px) 0 clamp(12px, 2vw, 28px);
}

.door-orbit::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 7%;
  top: 45%;
  height: clamp(80px, 12vw, 150px);
  border-top: 4px solid transparent;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(90deg, oklch(0.58 0.2 38), var(--primary), oklch(0.65 0.01 275)) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  transform: rotate(-9deg);
  animation: orbit-draw 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.door-core {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.door-core figcaption {
  color: var(--muted);
  font-size: clamp(0.92rem, 1.2vw, 1.15rem);
}

.door-core img {
  width: min(220px, 28vw);
  filter: drop-shadow(0 14px 18px oklch(0.18 0.02 275 / 0.14));
}

.door-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: clamp(10px, 1.5vw, 20px);
  align-items: end;
}

.door-gallery figure {
  margin: 0;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.door-gallery figure.is-active {
  transform: translateY(-8px);
  filter: drop-shadow(0 14px 12px oklch(0.18 0.02 275 / 0.12));
}

.door-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.door-gallery figcaption {
  margin-top: 8px;
  font-size: clamp(0.88rem, 1vw, 1.05rem);
  line-height: 1.1;
}

.door-gallery figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.86em;
}

.door-stage .door-selector {
  width: min(780px, 100%);
  margin: clamp(26px, 3.5vw, 46px) auto 0;
}

.performance-section {
  display: block;
  min-height: auto;
  background: var(--bg);
  color: var(--ink);
}

.performance-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.86fr);
  gap: var(--gap-outer);
  align-items: center;
}

.performance-media {
  display: grid;
  place-items: center;
}

.performance-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: product-float 8s cubic-bezier(0.22, 1, 0.36, 1) 200ms infinite alternate;
}

.performance-board {
  display: grid;
  gap: clamp(34px, 4.4vw, 58px);
  align-content: center;
}

.performance-board article {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.performance-board h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  font-weight: 850;
  line-height: 0.98;
}

.metric-value {
  display: flex;
  align-items: baseline;
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: clamp(3.8rem, 6.6vw, 6.6rem);
  font-weight: 400;
  line-height: 0.78;
}

.metric-value small {
  margin-left: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.35vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
}

.performance-board article > p:not(.metric-value) {
  margin: 0;
  max-width: 34ch;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.2vw, 1.32rem);
  font-weight: 620;
  line-height: 1.14;
}

@keyframes product-float {
  from { transform: translateY(10px) scale(0.992); }
  to { transform: translateY(-10px) scale(1.008); }
}

@keyframes finish-breathe {
  from { transform: translateY(8px) scale(0.995); }
  to { transform: translateY(-6px) scale(1.012); }
}

@keyframes depth-drift {
  from { transform: translateX(-18px) scale(1.01); }
  to { transform: translateX(10px) scale(1.03); }
}

@keyframes setup-glide {
  from { transform: translateX(-10px) scale(1.006); }
  to { transform: translateX(10px) scale(1.01); }
}

@keyframes orbit-draw {
  from { clip-path: inset(0 100% 0 0); opacity: 0.2; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@media (max-width: 920px) {
  .site-header {
    inset: 10px 10px auto;
  }

  .nav-shell {
    width: min(100%, 560px);
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav-menu {
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    justify-content: center;
  }

  .hero {
    min-height: 88svh;
    padding-top: 136px;
  }

  .hero::after {
    background: linear-gradient(0deg, oklch(1 0 0 / 0.95), oklch(1 0 0 / 0.28));
  }

  .hero-media {
    object-position: 55% center;
  }

  .motion-toggle {
    top: 92px;
    right: 16px;
  }

  .context-grid,
  .sticky-story,
  .split-heading,
  .finish-panel,
  .door-grid,
  .power-layout,
  .performance-section,
  .cluster-scroll,
  .spec-layout,
  .spec-card,
  .closing-layout,
  .finish-quote-layout,
  .furniture-layout,
  .performance-layout {
    grid-template-columns: 1fr;
  }

  .context-grid .media-frame:last-child,
  .context-heading {
    grid-column: auto;
    grid-row: auto;
  }

  .context-heading {
    order: -1;
  }

  .sticky-media,
  .cluster-media {
    position: relative;
    top: auto;
    height: auto;
  }

  .sticky-media {
    padding-top: 68px;
  }

  .story-stack {
    padding: 0 0 76px;
    gap: 64px;
  }

  .door-main,
  .power-media,
  .media-frame-large {
    min-height: 300px;
  }

  .performance-image {
    min-height: 360px;
  }

  .finish-quote-layout {
    min-height: auto;
  }

  .finish-quote-media {
    min-height: 360px;
  }

  .furniture-depth {
    min-height: 360px;
  }

  .furniture-depth img {
    width: 100%;
  }

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

  .performance-media {
    order: -1;
  }

  .closing-media {
    min-height: 360px;
  }

  .cluster-media img {
    aspect-ratio: 4 / 3;
  }

  .cluster-cards article {
    min-height: auto;
  }

  .spec-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .spec-tabs button {
    width: auto;
    min-width: max-content;
  }
}

@media (max-width: 560px) {
  :root {
    --pad: 16px;
  }

  .brand-link {
    max-width: calc(100% - 106px);
  }

  .brand-link span:last-child,
  .nav-toggle b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 27vw, 7.2rem);
  }

  h2 {
    font-size: clamp(2.35rem, 13vw, 4.4rem);
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .free-door-diagram,
  .common-grid,
  .door-gallery,
  .exterior-labels {
    grid-template-columns: 1fr;
  }

  .exterior-labels span {
    text-align: left;
  }

  .finish-quote-layout blockquote {
    font-size: clamp(2.6rem, 15vw, 4.8rem);
  }

  .door-core img {
    width: min(220px, 55vw);
  }

  .door-stage .door-selector {
    display: none;
  }

  .spec-detail dl {
    grid-template-columns: 1fr;
  }

  .spec-detail dt {
    margin-top: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ================================================================
   INTERACTIONS — cursor, spotlight, scroll reveals, parallax
   ================================================================ */

/* ── Scroll progress bar ──────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9998;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* ── Spotlight overlay (large radial glow) ───────────────────── */
.cursor-spotlight {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: background 0.08s ease;
}

/* ── Custom cursor (hover-capable, fine pointer only) ────────── */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    will-change: transform;
  }

  /* Dot — snappy, matches brand ink */
  .cursor-dot {
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    background: var(--ink);
    transition:
      width   0.22s cubic-bezier(0.23, 1, 0.32, 1),
      height  0.22s cubic-bezier(0.23, 1, 0.32, 1),
      margin  0.22s cubic-bezier(0.23, 1, 0.32, 1),
      background 0.22s ease,
      opacity 0.28s ease;
  }

  /* Ring — lags behind via RAF inertia in JS */
  .cursor-ring {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1.5px solid oklch(0.36 0.19 268 / 0.45);
    transition:
      width   0.38s cubic-bezier(0.23, 1, 0.32, 1),
      height  0.38s cubic-bezier(0.23, 1, 0.32, 1),
      margin  0.38s cubic-bezier(0.23, 1, 0.32, 1),
      border-color 0.28s ease,
      opacity 0.28s ease;
  }

  /* Hover state — expand ring, accent dot */
  .cursor-dot.is-hover {
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background: var(--accent-dark);
  }

  .cursor-ring.is-hover {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-color: var(--accent);
    opacity: 0.7;
  }

  /* Click state — compress dot, shrink ring inward */
  .cursor-dot.is-click {
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
  }

  .cursor-ring.is-click {
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-color: var(--primary);
  }
}


/* ── Scroll-driven reveals ────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   0.78s cubic-bezier(0.22, 1, 0.36, 1)
              calc(var(--reveal-i, 0) * 80ms),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1)
              calc(var(--reveal-i, 0) * 80ms);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure content in dark sections reads through the reveal */
.system-section .reveal-on-scroll,
.performance-section .reveal-on-scroll {
  opacity: 0; /* still hidden until revealed */
}

/* ── Story-stack active article highlight ─────────────────────── */
.story-stack article {
  transition:
    opacity  0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-stack article:not(.is-story-active) {
  opacity: 0.38;
  transform: translateX(-6px);
}

.story-stack article.is-story-active {
  opacity: 1;
  transform: translateX(0);
}

/* ── Media frame image entrance ───────────────────────────────── */
.media-frame {
  overflow: hidden; /* already set, ensuring clip for scale */
}

.media-frame img {
  transition:
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.65s ease;
}

.media-frame:not(.is-in-view) img {
  transform: scale(1.04);
  opacity: 0.6;
}

.media-frame.is-in-view img {
  transform: scale(1);
  opacity: 1;
}

/* Preserve existing object-fit overrides */
.finish-panel .media-frame img,
.door-main img,
.door-selector .media-frame img,
.free-door-diagram .media-frame img,
.power-media img {
  object-fit: contain;
}

/* ── Reduced-motion: disable everything added above ──────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .story-stack article:not(.is-story-active) {
    opacity: 1 !important;
    transform: none !important;
  }

  .media-frame:not(.is-in-view) img {
    transform: none !important;
    opacity: 1 !important;
  }

  .cursor-dot,
  .cursor-ring,
  .cursor-spotlight {
    display: none !important;
  }

  * { cursor: auto !important; }

  .scroll-progress-bar {
    transition: none !important;
  }

  .finish-quote-media img,
  .finish-runner img,
  .interior-board img,
  .furniture-depth img,
  .setup-strip img,
  .performance-media img {
    animation: none !important;
    transform: none !important;
  }
}

