.astroy-3d {
  --astroy-ink: #1d211d;
  --astroy-muted: #61675f;
  --astroy-surface: #f1f0ea;
  --astroy-line: rgba(29, 33, 29, 0.16);
  --astroy-accent: #355d49;
  --astroy-tech-rgb: 53, 93, 73;
  --astroy-transition-intensity: 0;
  grid-column: 1 / -1;
  width: min(100%, 1440px);
  margin: clamp(42px, 7vw, 96px) auto;
  color: var(--astroy-ink);
  contain: layout style;
}

.astroy-3d[data-story-technology='aerated'] {
  --astroy-tech-rgb: 67, 121, 101;
}

.astroy-3d[data-story-technology='frame'] {
  --astroy-tech-rgb: 179, 121, 57;
}

.astroy-3d[data-story-technology='ceramic'] {
  --astroy-tech-rgb: 190, 83, 48;
}

.astroy-3d[data-story-technology='timber'] {
  --astroy-tech-rgb: 167, 112, 55;
}

.astroy-3d[data-story-technology='pir'] {
  --astroy-tech-rgb: 63, 127, 137;
}

.astroy-3d *,
.astroy-3d *::before,
.astroy-3d *::after {
  box-sizing: border-box;
}

.astroy-3d__intro {
  max-width: 760px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.astroy-3d__eyebrow {
  margin: 0 0 12px;
  color: var(--astroy-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.astroy-3d__intro h2 {
  margin: 0;
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.astroy-3d__intro > p:last-of-type {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--astroy-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.astroy-3d__skip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--astroy-accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.astroy-3d__skip:hover {
  color: var(--astroy-ink);
}

.astroy-3d__skip:focus-visible {
  outline: 2px solid var(--astroy-accent);
  outline-offset: 4px;
}

.astroy-3d__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 4.5vw, 76px);
  align-items: center;
}

.astroy-3d__story-track {
  position: relative;
  min-width: 0;
}

@media (min-width: 861px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .astroy-3d.has-story-chapters .astroy-3d__story-track {
    min-height: clamp(4200px, 620vh, 6200px);
  }

  .astroy-3d.has-story-chapters .astroy-3d__story-track > .astroy-3d__layout {
    position: sticky;
    z-index: 1;
    top: clamp(72px, 9vh, 112px);
    min-height: min(760px, calc(100vh - clamp(96px, 13vh, 142px)));
  }
}

.astroy-3d__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: clamp(18px, 2.2vw, 32px);
  border: 1px solid rgba(23, 37, 31, 0.11);
  background:
    radial-gradient(ellipse at 48% 73%, rgba(7, 19, 15, 0.2) 0%, rgba(7, 19, 15, 0.09) 24%, transparent 47%),
    radial-gradient(circle at 46% 46%, rgba(var(--astroy-tech-rgb), 0.17) 0%, rgba(var(--astroy-tech-rgb), 0.06) 34%, transparent 64%),
    linear-gradient(180deg, #e9ede7 0%, #f8f5ed 68%, #dfe4dd 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.7),
    inset 0 -30px 70px rgba(7, 19, 15, 0.055),
    0 28px 70px rgba(7, 19, 15, 0.08);
  isolation: isolate;
  transition: border-color 420ms ease, box-shadow 420ms ease;
}

.astroy-3d__stage::before,
.astroy-3d__stage::after {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  content: '';
  opacity: 0;
}

.astroy-3d__stage::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 18%, transparent 77%, rgba(7, 19, 15, 0.08)),
    radial-gradient(ellipse at 48% 52%, transparent 42%, rgba(7, 19, 15, 0.085) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  transition: opacity 420ms ease;
}

.astroy-3d__stage::after {
  top: 5%;
  bottom: 5%;
  left: var(--astroy-tech-scan, 0%);
  width: clamp(86px, 17%, 172px);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--astroy-tech-rgb), 0.04) 22%,
    rgba(var(--astroy-tech-rgb), 0.34) 46%,
    rgba(255, 255, 255, 0.96) 49.5%,
    rgba(var(--astroy-tech-rgb), 0.74) 50%,
    rgba(var(--astroy-tech-rgb), 0.09) 73%,
    transparent
  );
  filter: drop-shadow(0 0 18px rgba(var(--astroy-tech-rgb), 0.46));
  transform: translateX(-50%) skewX(-3deg);
  transition: opacity 180ms ease;
}

.astroy-3d.is-ready .astroy-3d__stage::before {
  opacity: 0.52;
}

.astroy-3d.is-ready.is-story-active .astroy-3d__stage::before {
  opacity: 0.9;
}

.astroy-3d.is-ready.is-tech-transition .astroy-3d__stage::after {
  opacity: 1;
}

.astroy-3d.is-tech-transition .astroy-3d__stage {
  border-color: rgba(var(--astroy-tech-rgb), 0.38);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.82),
    inset 0 -30px 80px rgba(var(--astroy-tech-rgb), 0.1),
    0 28px 82px rgba(var(--astroy-tech-rgb), 0.17);
}

.astroy-3d__poster,
.astroy-3d__canvas,
.astroy-3d__canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.astroy-3d__poster {
  z-index: 1;
  object-fit: cover;
  opacity: 1;
  transition: opacity 280ms ease;
}

.astroy-3d__canvas {
  z-index: 2;
  opacity: 0;
  transition: opacity 280ms ease;
  isolation: isolate;
}

.astroy-3d__canvas::before,
.astroy-3d__canvas::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: '';
}

.astroy-3d__canvas::before {
  right: 2%;
  bottom: -16%;
  left: 2%;
  height: 54%;
  background:
    repeating-linear-gradient(90deg, rgba(var(--astroy-tech-rgb), 0.12) 0 1px, transparent 1px 9%),
    repeating-linear-gradient(0deg, rgba(var(--astroy-tech-rgb), 0.1) 0 1px, transparent 1px 18%);
  opacity: 0.48;
  transform: perspective(560px) rotateX(68deg);
  transform-origin: center bottom;
  -webkit-mask-image: radial-gradient(ellipse at 50% 74%, #000 0%, rgba(0, 0, 0, 0.72) 36%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 74%, #000 0%, rgba(0, 0, 0, 0.72) 36%, transparent 72%);
}

.astroy-3d__canvas::after {
  right: 12%;
  bottom: 7%;
  left: 12%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(7, 19, 15, 0.24), rgba(var(--astroy-tech-rgb), 0.08) 46%, transparent 72%);
  filter: blur(10px);
  opacity: 0.76;
  transform: scaleX(0.86);
  transition: opacity 240ms ease, transform 420ms ease;
}

.astroy-3d.is-tech-transition .astroy-3d__canvas::after {
  opacity: 1;
  transform: scaleX(1.02);
}

.astroy-3d.is-ready .astroy-3d__canvas {
  opacity: 1;
}

.astroy-3d.is-ready .astroy-3d__poster {
  opacity: 0;
  pointer-events: none;
}

.astroy-3d__canvas canvas {
  z-index: 1;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.astroy-3d__canvas canvas:active {
  cursor: grabbing;
}

.astroy-3d__progress {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(20, 24, 21, 0.76);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.astroy-3d__progress[hidden] {
  display: none;
}

.astroy-3d__progress-bar {
  display: block;
  overflow: hidden;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.astroy-3d__progress-bar::after {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: #fff;
  content: '';
  transition: width 180ms ease;
}

.astroy-3d__notice {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: none;
  margin: 0;
  color: rgba(29, 33, 29, 0.72);
  font-size: 13px;
}

.astroy-3d[data-state='fallback'] .astroy-3d__notice {
  display: block;
}

.astroy-3d__enable {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 33, 29, 0.88);
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.astroy-3d__enable[hidden] {
  display: none;
}

.astroy-3d__hint {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  display: none;
  margin: 0;
  color: rgba(29, 33, 29, 0.62);
  font-size: 12px;
  pointer-events: none;
}

.astroy-3d__story-meter {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: auto auto minmax(72px, 128px);
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(var(--astroy-tech-rgb), 0.58);
  border-radius: 999px;
  background: rgba(12, 24, 19, 0.82);
  color: #fff;
  box-shadow: 0 12px 34px rgba(20, 28, 23, 0.2), 0 0 22px rgba(var(--astroy-tech-rgb), 0.12);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 360ms ease 180ms, transform 360ms ease 180ms;
  pointer-events: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.astroy-3d.is-ready .astroy-3d__story-meter {
  opacity: 1;
  transform: translateY(0);
}

.astroy-3d__story-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.astroy-3d__story-phase {
  min-width: 108px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.astroy-3d__story-rail {
  position: relative;
  display: block;
  overflow: hidden;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.astroy-3d__story-rail::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--astroy-tech-rgb), 0.92), #fff);
  content: '';
  transform: scaleX(var(--astroy-scroll-progress, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.astroy-3d.is-story-paused .astroy-3d__story-meter {
  border-color: rgba(185, 219, 200, 0.58);
}

.astroy-3d.is-ready .astroy-3d__hint {
  display: block;
}

.astroy-3d__content {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(350px, 1fr);
  align-self: stretch;
  min-width: 0;
  padding: clamp(26px, 4vw, 54px) 0;
}

.astroy-3d__chapter-progress {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 clamp(28px, 5vh, 58px);
}

.astroy-3d__chapter-progress::before {
  margin-right: 5px;
  color: var(--astroy-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  content: 'Технологии';
}

.astroy-3d__chapter-dot {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: color-mix(in srgb, var(--astroy-muted) 56%, transparent);
  transition: width 320ms ease, border-color 320ms ease, background-color 320ms ease;
}

.astroy-3d__chapter-dot.is-past {
  background: color-mix(in srgb, var(--astroy-accent) 42%, transparent);
}

.astroy-3d__chapter-dot.is-active {
  width: 28px;
  border-radius: 999px;
  border-color: var(--astroy-accent);
  background: var(--astroy-accent);
}

.astroy-3d.has-story-chapters .astroy-3d__panels {
  position: relative;
  min-height: 350px;
  padding: 0;
}

.astroy-3d.has-story-chapters .astroy-3d__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: var(--astroy-panel-factor, 0);
  transform: translate3d(0, var(--astroy-panel-offset, 24px), 0);
  pointer-events: none;
  will-change: opacity, transform;
}

.astroy-3d.has-story-chapters .astroy-3d__panel.is-active {
  pointer-events: auto;
}

.astroy-3d__panel-kicker {
  margin: 0 0 16px;
  color: var(--astroy-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.astroy-3d__panel-index {
  display: inline-block;
  min-width: 52px;
  color: var(--astroy-ink);
  font-variant-numeric: tabular-nums;
}

.astroy-3d__panel-proof {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--astroy-muted);
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
}

.astroy-3d__panel-proof li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.astroy-3d__panel-proof li::before {
  width: 16px;
  height: 1px;
  background: var(--astroy-accent);
  content: '';
}

.astroy-3d__model-note {
  max-width: 860px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--astroy-line);
  color: var(--astroy-muted);
  font-size: 12px;
  line-height: 1.55;
}

.astroy-3d__panel .astroy-3d__panel-limit {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--astroy-line);
  color: var(--astroy-muted);
  font-size: 13px;
  line-height: 1.5;
}

.astroy-3d__panel-limit strong {
  color: var(--astroy-ink);
}

.astroy-3d__cta {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  align-self: flex-start;
  min-height: 50px;
  margin-top: 30px;
  padding: 0 22px;
  border: 1px solid var(--astroy-ink);
  border-radius: 999px;
  background: var(--astroy-ink);
  color: var(--astroy-surface);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.astroy-3d__cta::after {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  content: '↗';
}

.astroy-3d__cta:hover {
  background: transparent;
  color: var(--astroy-ink);
  transform: translateY(-2px);
}

.astroy-3d__cta:focus-visible {
  outline: 2px solid var(--astroy-accent);
  outline-offset: 4px;
}

.astroy-3d__sr-only {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.astroy-3d__tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--astroy-line);
}

.astroy-3d__tab {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 14px 34px 14px 0;
  border: 0;
  border-bottom: 1px solid var(--astroy-line);
  background: transparent;
  color: var(--astroy-muted);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, padding-left 180ms ease;
}

.astroy-3d__tab::after {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: '';
  opacity: 0;
  transform: translate(-6px, -50%) rotate(45deg);
  transition: opacity 180ms ease, transform 180ms ease;
}

.astroy-3d__tab[aria-selected='true'] {
  padding-left: 12px;
  color: var(--astroy-ink);
  font-weight: 650;
}

.astroy-3d__tab[aria-selected='true']::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--astroy-accent);
  content: '';
}

.astroy-3d__tab[aria-selected='true']::after {
  opacity: 1;
  transform: translate(0, -50%) rotate(45deg);
}

.astroy-3d__tab:focus-visible,
.astroy-3d__enable:focus-visible {
  outline: 2px solid var(--astroy-accent);
  outline-offset: 3px;
}

.astroy-3d__panels {
  padding-top: 28px;
}

.astroy-3d__panel[hidden] {
  display: none;
}

.astroy-3d__panel h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.astroy-3d__panel p {
  margin: 0;
  color: var(--astroy-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .astroy-3d {
    /* The page section already supplies its mobile gutter.  Repeating a
       second 12 px inset made the 3D stage unnecessarily small on iPhone. */
    width: min(100%, 720px);
  }

  .astroy-3d__layout {
    grid-template-columns: 1fr;
  }

  .astroy-3d.has-story-chapters .astroy-3d__story-track {
    min-height: 500vh;
    min-height: 500svh;
  }

  .astroy-3d.has-story-chapters .astroy-3d__story-track > .astroy-3d__layout {
    position: sticky;
    top: calc(72px + env(safe-area-inset-top));
    display: grid;
    grid-template-rows: minmax(0, 54%) minmax(0, 46%);
    gap: 0;
    height: calc(100vh - 80px - env(safe-area-inset-top));
    height: calc(100svh - 80px - env(safe-area-inset-top));
    min-height: 0;
    padding-top: 0;
  }

  .astroy-3d__stage {
    aspect-ratio: 4 / 3;
  }

  .astroy-3d.has-story-chapters .astroy-3d__stage {
    height: 100%;
    aspect-ratio: auto;
  }

  .astroy-3d.has-story-chapters .astroy-3d__content {
    grid-template-rows: auto minmax(0, 1fr);
    padding: 14px 14px 6px;
  }

  .astroy-3d.has-story-chapters .astroy-3d__chapter-progress {
    margin-bottom: 4px;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panels {
    min-height: 0;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel {
    justify-content: flex-start;
    padding-top: 12px;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel h3 {
    margin-bottom: 6px;
    font-size: clamp(23px, 5.4vw, 31px);
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel > p:not(.astroy-3d__panel-kicker) {
    font-size: 14px;
    line-height: 1.45;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel-proof {
    display: none;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel-limit {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 12px;
    line-height: 1.4;
  }

  .astroy-3d.has-story-chapters .astroy-3d__cta {
    min-height: 44px;
    margin-top: 14px;
    padding-inline: 17px;
    font-size: 12px;
  }

  .astroy-3d__tabs {
    flex-direction: row;
    gap: 22px;
    overflow-x: auto;
    border-top: 0;
    border-bottom: 1px solid var(--astroy-line);
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .astroy-3d__tabs::-webkit-scrollbar {
    display: none;
  }

  .astroy-3d__tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 48px;
    padding: 12px 0;
    border-bottom: 0;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .astroy-3d__tab[aria-selected='true'] {
    padding-left: 0;
  }

  .astroy-3d__tab[aria-selected='true']::before {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 2px;
  }

  .astroy-3d__tab::after {
    display: none;
  }

  .astroy-3d__panels {
    padding-top: 20px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .astroy-3d__canvas::before {
    opacity: 0.28;
  }

  .astroy-3d__canvas::after {
    filter: none;
    opacity: 0.58;
  }

  .astroy-3d__story-meter {
    background: rgba(12, 24, 19, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .astroy-3d__stage::after {
    display: block;
    width: clamp(42px, 10%, 72px);
    filter: none;
  }

  .astroy-3d.is-ready.is-tech-transition .astroy-3d__stage::after {
    opacity: 0.55;
  }

  .astroy-3d.is-ready.is-story-active .astroy-3d__stage::before {
    opacity: 0.62;
  }
}

@media (max-width: 520px) {
  .astroy-3d__stage {
    aspect-ratio: 4 / 5;
  }

  .astroy-3d.has-story-chapters .astroy-3d__story-track > .astroy-3d__layout {
    grid-template-rows: minmax(0, 51%) minmax(0, 49%);
  }

  .astroy-3d__story-meter {
    top: 12px;
    right: 12px;
    left: 12px;
    grid-template-columns: auto minmax(54px, 1fr);
    padding: 9px 11px;
  }

  .astroy-3d__story-label {
    display: none;
  }

  .astroy-3d__story-phase {
    min-width: 0;
  }

  .astroy-3d__hint {
    display: none !important;
  }
}

@media (max-width: 860px) and (max-height: 640px) and (prefers-reduced-motion: no-preference) {
  .astroy-3d.has-story-chapters .astroy-3d__story-track {
    min-height: 560vh;
    min-height: 560svh;
  }

  .astroy-3d.has-story-chapters .astroy-3d__story-track > .astroy-3d__layout {
    top: calc(72px + env(safe-area-inset-top));
    grid-template-rows: minmax(180px, 43%) minmax(0, 57%);
    height: calc(100vh - 80px - env(safe-area-inset-top));
    height: calc(100svh - 80px - env(safe-area-inset-top));
    min-height: 0;
  }

  .astroy-3d.has-story-chapters .astroy-3d__content {
    padding: 8px 12px 4px;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel {
    padding-top: 6px;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel-kicker {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel h3 {
    margin-bottom: 4px;
    font-size: clamp(20px, 5vw, 25px);
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel > p:not(.astroy-3d__panel-kicker) {
    font-size: 12px;
    line-height: 1.35;
  }

  .astroy-3d.has-story-chapters .astroy-3d__cta {
    min-height: 40px;
    margin-top: 8px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .astroy-3d__hint,
  .astroy-3d__story-label {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .astroy-3d *,
  .astroy-3d *::before,
  .astroy-3d *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .astroy-3d__stage::before,
  .astroy-3d__stage::after,
  .astroy-3d__canvas::before,
  .astroy-3d__story-meter {
    display: none !important;
  }

  .astroy-3d__canvas::after {
    filter: none;
    opacity: 0.54;
    transform: none;
  }

  /* A static architectural frame is the intentional reduced-motion fallback.
     It avoids presenting an unassembled intermediate WebGL state. */
  .astroy-3d.is-ready .astroy-3d__canvas {
    opacity: 0 !important;
    pointer-events: none;
  }

  .astroy-3d.is-ready .astroy-3d__poster {
    opacity: 1 !important;
  }

  .astroy-3d__story-track {
    min-height: 0 !important;
  }

  .astroy-3d__story-track > .astroy-3d__layout {
    position: static !important;
    align-items: start;
  }

  .astroy-3d.has-story-chapters .astroy-3d__stage {
    position: sticky;
    top: clamp(72px, 9vh, 112px);
  }

  .astroy-3d.has-story-chapters .astroy-3d__content,
  .astroy-3d.has-story-chapters .astroy-3d__panels {
    display: grid;
    gap: 18px;
    min-height: 0;
  }

  .astroy-3d.has-story-chapters .astroy-3d__chapter-progress {
    display: none;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel {
    position: static;
    display: block;
    padding: 22px 0;
    border-top: 1px solid var(--astroy-line);
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }

  .astroy-3d.has-story-chapters .astroy-3d__panel[aria-hidden='true'] {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .astroy-3d.has-story-chapters .astroy-3d__story-track > .astroy-3d__layout {
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: auto auto !important;
  }

  .astroy-3d.has-story-chapters .astroy-3d__stage {
    /* Keep the absolute poster/canvas scoped to the stage while disabling the
       sticky story in the reduced-motion layout. */
    position: relative;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  .astroy-3d.has-story-chapters .astroy-3d__content {
    grid-template-rows: auto auto !important;
  }
}

@media (forced-colors: active) {
  .astroy-3d__tab[aria-selected='true']::before {
    background: CanvasText;
  }
}

/* Selector presentation: the model is controlled explicitly and never tied
   to document scroll. The same SSR panels remain readable without JS. */
.astroy-3d--selector {
  contain: layout style paint;
}

.astroy-3d--selector .astroy-3d__story-track,
.astroy-3d--selector .astroy-3d__layout {
  min-height: 0;
}

.astroy-3d--selector .astroy-3d__content {
  grid-template-rows: auto minmax(320px, 1fr);
}

.astroy-3d--selector .astroy-3d__panels {
  min-height: 320px;
  padding-top: clamp(22px, 3vw, 38px);
}

.astroy-3d--selector .astroy-3d__panel {
  animation: astroy-selector-panel-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.astroy-3d--selector .astroy-3d__hint {
  display: block;
}

@keyframes astroy-selector-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .astroy-3d--selector .astroy-3d__panel {
    animation: none;
  }
}
