.detail-picture {
  height: auto;
  aspect-ratio: 16 / 9;
}
.product-card .product-picture {
  height: auto;
  aspect-ratio: 16 / 9;
}
@media (max-width: 360px) {
  .cinematic-intro {
    top: 90px;
    bottom: 65px;
  }
  .craft-copy h2 {
    font-size: 36px;
  }
}
.craft-photo {
  background-image: url("/assets/craft.webp");
  background-size: cover;
  background-position: center;
}
@media (max-width: 700px) {
  .header .header-cta {
    display: none;
  }
  .header .menu-toggle {
    margin-left: auto;
  }
  .assembly .assembly-stage {
    width: 100%;
  }
}
.assembly {
  height: 250svh;
  position: relative;
  border-top: 1px solid var(--line);
}
.assembly-sticky {
  height: 100svh;
  min-height: 680px;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 32% 68%;
  align-items: center;
  padding: 60px var(--gutter);
  overflow: hidden;
}
.assembly-copy {
  position: relative;
  z-index: 2;
}
.assembly-copy h2 {
  font-size: clamp(36px, 3.4vw, 58px);
  line-height: 1.06;
}
.assembly-copy > p:not(.eyebrow) {
  font-size: 12px;
  margin-top: 25px;
}
.assembly-steps {
  list-style: none;
  padding: 0;
  margin: 35px 0 40px;
  max-width: 260px;
}
.assembly-steps li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.3s;
}
.assembly-steps span {
  font-size: 9px;
  margin-right: 28px;
}
.assembly-steps .active {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.assembly-steps .active span {
  background: var(--accent);
  border-radius: 50%;
  padding: 7px;
  margin-left: -7px;
  margin-right: 21px;
}
.assembly-copy .scroll-cue {
  font-size: 10px !important;
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--muted);
}
.scroll-cue span {
  font-size: 20px;
}
.assembly-stage {
  height: 76svh;
  max-height: 900px;
  min-height: 500px;
  position: relative;
  width: 100%;
}
.assembly-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.assembly-caption {
  position: absolute;
  bottom: 25px;
  left: 20%;
  right: 0;
  text-align: center;
  font-size: 8px;
  color: var(--muted);
  line-height: 1.5;
}
.assembly-progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 35px;
  height: 2px;
  background: var(--line);
}
.assembly-progress span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
}
.assembly-fallback {
  margin-top: 150px;
  text-align: center;
  font-size: 14px;
}
[data-theme="b"] .assembly-copy h2 {
  font-size: clamp(45px, 5vw, 80px);
  font-weight: 400;
}
@media (max-width: 1000px) {
  .assembly-sticky {
    grid-template-columns: 34% 66%;
    padding: 45px var(--gutter);
  }
  .assembly-copy h2 {
    font-size: 43px;
  }
  .assembly-steps {
    max-width: 210px;
  }
  .assembly-stage {
    min-height: 450px;
  }
  .assembly-caption {
    left: 0;
    font-size: 7px;
  }
}
@media (max-width: 700px) {
  .assembly {
    height: 230svh;
  }
  .assembly-sticky {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 35px var(--gutter) 25px;
    min-height: 620px;
  }
  .assembly-copy h2 {
    font-size: 40px;
  }
  .assembly-copy .eyebrow {
    font-size: 8px;
    margin-bottom: 15px;
  }
  .assembly-copy > p:not(.eyebrow) {
    font-size: 10px;
    margin: 12px 0 15px;
  }
  .assembly-steps {
    display: flex;
    max-width: none;
    gap: 15px;
    margin: 0;
    justify-content: space-between;
  }
  .assembly-steps li {
    font-size: 9px;
    padding: 11px 0;
    white-space: nowrap;
  }
  .assembly-steps span {
    font-size: 7px;
    display: block;
    margin: 0 0 6px;
  }
  .assembly-steps .active span {
    background: transparent;
    padding: 0;
    margin: 0 0 6px;
  }
  .assembly-copy .scroll-cue {
    display: none;
  }
  .assembly-stage {
    height: 54svh;
    min-height: 320px;
    max-height: 600px;
    margin-left: -6vw;
    width: 100vw;
  }
  .assembly-caption {
    bottom: 0;
    font-size: 7px;
    left: 6vw;
    right: 6vw;
  }
  .assembly-progress {
    bottom: 25px;
  }
  [data-theme="b"] .assembly-copy h2 {
    font-size: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .assembly {
    height: auto;
  }
  .assembly-sticky {
    position: relative;
    min-height: 650px;
  }
  .hero-image.active {
    transform: none;
  }
  .scroll-cue {
    display: none !important;
  }
}
@media (max-width: 700px) {
  .header .menu-toggle {
    width: 40px;
    height: 44px;
  }
  .menu-toggle > span {
    left: 8px;
    right: 8px;
    top: 17px;
  }
  .menu-toggle > span + span {
    top: 24px;
  }
  .menu-toggle[aria-expanded="true"] > span,
  .menu-toggle[aria-expanded="true"] > span + span {
    top: 21px;
  }
}
.assembly-art {
  position: absolute;
  left: 0;
  right: 0;
  top: 47%;
  aspect-ratio: 1.5;
  transform: translateY(-50%);
  --deck-y: 6%;
  --structure-y: -6%;
  --structure-opacity: 0;
  --roof-y: -12%;
  --roof-opacity: 0;
  --layers-opacity: 0;
  --foundation-opacity: 0;
  --complete-opacity: 1;
}
.assembly-layer {
  position: absolute;
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
/* Complementary regions from ONE assembled plate; all transforms end at zero. */
.foundation-plate {
  /* Fill only the hidden floor footprint; preserve the original visible rim. */
  clip-path: polygon(9.5% 58.4%, 34.1% 43.36%, 89.3% 64.1%, 71.6% 80.5%);
  transform: translateY(var(--deck-y));
  opacity: var(--foundation-opacity);
}
.foundation-layer {
  clip-path: polygon(0% 58.4%, 9.5% 58.4%, 71.6% 80.5%, 89.3% 64.1%, 100% 64.1%, 100% 100%, 0% 100%);
  transform: translateY(var(--deck-y));
  opacity: var(--layers-opacity);
}
.structure-layer {
  clip-path: polygon(0% 35.15%, 1.3% 35.15%, 4% 35.55%, 7% 36.45%, 10.42% 38.48%, 14.5% 38.05%, 20% 38.8%, 27% 40.1%, 34% 42.1%, 42.32% 44.1%, 47% 44%, 54% 45.3%, 62% 47.7%, 70% 50.5%, 80.2% 52.6%, 84% 49.5%, 90% 46.5%, 96.5% 46%, 98.8% 46%, 100% 46%, 100% 64.1%, 89.3% 64.1%, 71.6% 80.5%, 9.5% 58.4%, 0% 58.4%);
  transform: translateY(var(--structure-y));
  opacity: var(--structure-opacity);
}
.roof-layer {
  clip-path: polygon(0% 0%, 100% 0%, 100% 46%, 98.8% 46%, 96.5% 46%, 90% 46.5%, 84% 49.5%, 80.2% 52.6%, 70% 50.5%, 62% 47.7%, 54% 45.3%, 47% 44%, 42.32% 44.1%, 34% 42.1%, 27% 40.1%, 20% 38.8%, 14.5% 38.05%, 10.42% 38.48%, 7% 36.45%, 4% 35.55%, 1.3% 35.15%, 0% 35.15%);
  transform: translateY(var(--roof-y));
  opacity: var(--roof-opacity);
}
.assembled-layer {
  opacity: var(--complete-opacity);
}
.assembly-component {
  display: none;
}
.assembly-reference {
  display: none;
}
[data-theme="a"] .assembly-reference {
  display: inline;
}
[data-theme="a"] .assembly-reference a {
  color: var(--ink);
  text-underline-offset: 3px;
}
[data-theme="a"] .assembly-art {
  --base-opacity: 0;
  --suite-opacity: 0;
  --canopy-opacity: 0;
  --canopy-y: 0%;
  --finish-opacity: 1;
}
[data-theme="a"] .assembly-layer {
  display: none;
}
[data-theme="a"] .assembled-layer {
  display: block;
  opacity: var(--finish-opacity);
}
[data-theme="a"] .assembly-component {
  display: block;
  position: absolute;
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
  pointer-events: none;
}
[data-theme="a"] .assembly-base {
  opacity: var(--base-opacity);
}
[data-theme="a"] .assembly-suite {
  opacity: var(--suite-opacity);
}
[data-theme="a"] .assembly-canopy {
  opacity: var(--canopy-opacity);
  transform: translateY(var(--canopy-y));
}
@media (max-width: 700px) {
  .assembly-art {
    top: 43%;
    left: 0;
    right: 0;
  }
  .assembly .assembly-caption {
    bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .assembly-layer {
    will-change: auto;
  }
}
