/* The typography frames a metal object in a pale engineering studio. */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  background: #FAF7F2;
}
.hero-word {
  z-index: 3;
  font-size: 8.87vw;
}
.word-two {
  font-size: 10.8vw;
}
.drawing-ribbon {
  background: transparent;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  pointer-events: none;
}

.hero-bottom {
  bottom: 9%;
  z-index: 6;
}
.hero-bottom p {
  max-width: 260px;
}
.hero-bottom .journey-play {
  margin-left: 20%;
  font-size: 10px;
  background: #FAF7F2bf;
}
.hero-corner {
  color: #565852 !important;
  bottom: 22px;
  font-size: 8px;
}
.hero-corner button:last-child {
  letter-spacing: 0.035em;
}
.hero-corner button:hover {
  color: var(--action);
}
.turbine-name {
  position: absolute;
  right: var(--pad);
  top: 44%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 3;
  pointer-events: none;
}
.turbine-name span {
  font: 7px monospace;
  letter-spacing: 0.12em;
  color: #7e7f7c;
}
.turbine-name strong {
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.turbine-name i {
  font: 8px monospace;
  color: #727370;
}
.turbine-caption {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 17%;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  max-width: 800px;
}
.turbine-caption > span {
  font: 9px monospace;
  letter-spacing: 0.15em;
  color: var(--action);
}
.turbine-caption h2 {
  font-size: clamp(42px, 5.4vw, 90px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.97;
  margin: 22px 0 15px;
}
.turbine-caption p {
  font:
    12px/1.5 "Inter",
    Arial,
    sans-serif;
  color: #696a67;
  max-width: 340px;
}
.turbine-stops {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 9%;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  border-top: 1px solid #34353226;
  padding-top: 16px;
}
.turbine-stops button {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  font-size: 10px;
  color: #727370;
  background: #FAF7F2cc;
}
.turbine-stops b {
  font: 8px monospace;
  color: #90918e;
}
.turbine-stops button[aria-current="true"] {
  color: var(--action);
}
.turbine-stops button[aria-current="true"] b {
  color: var(--action);
}
.turbine-stops button[aria-current="true"]:before {
  content: "";
  height: 2px;
  width: 35px;
  background: var(--action);
  position: absolute;
  left: 0;
  top: -18px;
}
.journey-meter {
  color: var(--action);
  right: var(--pad);
  top: 24%;
  flex-direction: column;
  gap: 10px;
}
.journey-meter i {
  height: 120px;
  width: 1px;
  background: #14131233;
}
.journey-meter i:before {
  width: 1px;
  height: var(--journey, 0%);
  background: var(--action);
}
.model-info {
  max-width: none;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  padding: clamp(40px, 8vh, 110px) clamp(25px, 12vw, 180px);
  border: 0;
  margin: 0;
  background: var(--paper);
  overflow: auto;
}
.model-info .dialog-close {
  position: absolute;
  right: 35px;
  top: 35px;
  margin: 0;
}
.model-info h2 {
  font-size: clamp(38px, 5vw, 76px);
  letter-spacing: -0.06em;
}
.model-info p {
  max-width: 820px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.65;
  margin: 20px 0;
}
.model-info .small-note {
  font-size: 12px;
  color: #6f706d;
}
.model-info .text-link {
  display: block;
  width: fit-content;
  margin-top: 22px;
}
.motion-reduced .turbine-stops,
.motion-reduced .turbine-caption,
.motion-reduced .journey-meter {
  display: none;
}
.motion-reduced .turbine-name {
  top: 48%;
}
.scene-unavailable .journey-play,
.scene-unavailable .turbine-stops {
  display: none;
}
@media (max-width: 1100px) {
  .hero-word {
    font-size: 8.8vw;
  }
  .word-two {
    font-size: 10.8vw;
  }
  .hero-bottom .journey-play {
    margin-left: 3%;
  }
  .turbine-name {
    top: 40%;
  }
  .turbine-stops {
    gap: 10px;
  }
  .turbine-stops button {
    font-size: 9px;
    gap: 7px;
  }
}
@media (max-width: 700px) {
  .hero {
    min-height: 690px;
    max-height: none;
    height: 100vh;
    height: 100svh;
  }
  .hero-overline {
    top: 100px;
  }
  .word-two {
    font-size: 10.8vw;
  }
  .turbine-name {
    top: 38%;
    left: var(--pad);
    right: auto;
    gap: 6px;
  }
  .turbine-name strong {
    font-size: 18px;
  }
  .turbine-name span {
    font-size: 6px;
  }
  .turbine-name i {
    font-size: 7px;
  }
  .hero-bottom {
    bottom: 12%;
    display: block;
  }
  .hero-bottom p {
    font-size: 11px;
    line-height: 1.6;
    margin: 0 0 18px;
  }
  .hero-bottom .journey-play {
    display: flex;
    margin: 0;
    width: fit-content;
    font-size: 9px;
    padding: 12px 0;
    gap: 30px;
  }
  .hero-scroll {
    position: absolute;
    right: 0;
    bottom: 5px;
  }
  .hero-scroll b {
    width: 45px;
    height: 45px;
  }
  .hero-corner {
    bottom: 25px;
    font-size: 6px;
    align-items: center;
  }
  .hero-corner button:last-child {
    max-width: 165px;
    text-align: right;
    line-height: 1.5;
  }
  .turbine-caption {
    top: 17%;
    max-width: 85%;
  }
  .turbine-caption > span {
    font-size: 8px;
  }
  .turbine-caption h2 {
    font-size: 41px;
    margin: 18px 0 12px;
    max-width: 330px;
  }
  .turbine-caption p {
    font-size: 11px;
    max-width: 240px;
  }
  .journey-meter {
    top: 44%;
    right: 20px;
  }
  .journey-meter i {
    height: 80px;
  }
  .turbine-stops {
    bottom: 11%;
    gap: 6px;
    flex-wrap: wrap;
  }
  .turbine-stops button {
    font-size: 9px;
    padding: 8px 3px;
    gap: 6px;
  }
  .turbine-stops button span {
    display: none;
  }
  .turbine-stops button[aria-current="true"] span {
    display: inline;
  }
  .turbine-stops button[aria-current="true"]:before {
    top: -18px;
  }
  .model-info .dialog-close {
    right: 22px;
    top: 24px;
  }
  .model-info h2 {
    margin-top: 55px;
  }
  .model-info p {
    font-size: 13px;
  }
  .model-info .small-note {
    font-size: 11px;
  }
  .model-info .text-link {
    font-size: 10px;
  }
}

/* Keep chapter typography legible while the camera crosses the assembly. */
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--scene-close, 0);
  background: linear-gradient(
    180deg,
    #FAF7F2 7%,
    #FAF7F2db 16%,
    #FAF7F200 35%,
    #FAF7F200 81%,
    #FAF7F2ed 96%
  );
}
.turbine-stops button {
  background: transparent;
  min-height: 28px;
}
.turbine-stops button:hover {
  color: var(--action);
}

.turbine-caption {
  top: 16%;
  max-width: 580px;
}
.turbine-caption h2 {
  font-size: clamp(38px, 4.6vw, 68px);
  margin: 15px 0 11px;
}
.turbine-caption p {
  max-width: 350px;
}
.turbine-name {
  right: var(--pad);
  top: 42%;
}
@media (max-width: 700px) {
  .turbine-caption {
    top: 16%;
    max-width: 85%;
  }
  .turbine-caption h2 {
    font-size: 34px;
  }
  .turbine-caption p {
    font-size: 10px;
    max-width: 230px;
  }
  .hero:after {
    background: linear-gradient(
      180deg,
      #FAF7F2 10%,
      #FAF7F2e0 22%,
      #FAF7F200 40%,
      #FAF7F200 75%,
      #FAF7F2e0 90%
    );
  }
}

.turbine-caption h2 {
  font-size: clamp(36px, 4.1vw, 60px);
}
.turbine-caption p {
  color: #4b4c49;
}
.hero:after {
  background: linear-gradient(
    180deg,
    #FAF7F2 8%,
    #FAF7F2ef 25%,
    #FAF7F200 42%,
    #FAF7F200 78%,
    #FAF7F2f2 95%
  );
}
@media (max-width: 700px) {
  .hero {
    min-height: 560px;
  }
  .turbine-caption h2 {
    font-size: 32px;
  }
  .turbine-caption p {
    font-size: 10px;
  }
}

.hero[data-chapter="1"] .turbine-caption {
  max-width: 320px;
}
.hero[data-chapter="1"] .turbine-caption h2 {
  max-width: 315px;
}
.hero[data-chapter="1"] .turbine-caption p {
  max-width: 240px;
}
@media (max-width: 700px) {
  .hero[data-chapter="1"] .turbine-caption {
    max-width: 85%;
  }
  .hero[data-chapter="1"] .turbine-caption h2 {
    max-width: none;
  }
}
.turbine-caption p {
  display: none;
}

.motion-reduced .turbine-name {
  display: none;
}
.flight-controls {
  position: absolute;
  bottom: 27px;
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.hero.is-exploring .flight-controls {
  opacity: 1;
  visibility: visible;
}
.flight-controls button,
.flight-controls a {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 42px;
  padding: 11px 17px;
  border: 1px solid #b0b1ae;
  background: #FAF7F2e8;
  backdrop-filter: blur(10px);
  font-size: 11px;
  white-space: nowrap;
}
.flight-controls button:hover {
  border-color: var(--action);
  color: var(--action);
}
.flight-controls button:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 4px;
}
.motion-reduced .flight-controls,
.scene-unavailable .flight-controls {
  display: none;
}
@media (max-width: 700px) {
  .flight-controls {
    bottom: 65px;
  }
  .flight-controls button {
    font-size: 11px;
    min-height: 44px;
  }
}

/* Native sticky avoids fixed/transform handoffs at fast scroll reversals. */
.hero-track {
  position: relative;
}
.motion-enabled .hero-track {
  height: 550vh;
  height: 550svh;
}
.motion-enabled .hero-track > .hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  max-height: none;
}
@media (max-width: 700px) {
  .motion-enabled .hero-track {
    height: 450vh;
    height: 450svh;
  }
}
.hero.is-exploring:after {
  background: linear-gradient(
    180deg,
    #FAF7F2 0%,
    #FAF7F200 13%,
    #FAF7F200 94%,
    #FAF7F270 100%
  );
}
.hero.is-exploring .turbine-caption h2 {
  text-shadow:
    0 1px 18px #FAF7F2,
    0 0 8px #FAF7F2;
}

html.motion-enabled,
html.flight-playing {
  scroll-behavior: auto;
}
#scan-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: #FAF7F2;
}
.scene-video #scan-scene {
  display: none;
}
@media (max-width: 700px) {
  #play-journey,
  #motion-toggle {
    min-height: 44px;
  }
  .hero-corner {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .flight-controls {
    bottom: calc(65px + env(safe-area-inset-bottom));
  }
}

/* System reduction stops automatic motion; an explicit play request remains available. */
.motion-reduced #play-journey {
  display: inline-flex;
}
