/* Scene styling; common frame and typography are owned by hero-layout.css. */
.copy > span {
  color: #695873;
}
.copy em {
  font-style: normal;
  color: rgb(120, 59, 223);
}
.copy p {
  color: #695873;
}
.copy > a {
  font-weight: 600;
}
.book-area {
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 18px 24px;
}
.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  transform: rotateX(12deg) rotateY(-14deg) rotateZ(-3deg);
  transform-style: preserve-3d;
  box-shadow: rgb(232, 224, 237) 0px 7px, rgb(222, 211, 232) 0px 12px, rgb(109, 61, 176) 0px 17px, rgba(52, 22, 91, 0.15) 0px 35px 45px;
  min-height: 290px;
  width: 100%;
  height: max(clamp(290px, 23.1vw, 350px), var(--book-content-height, 0px));
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  align-self: center;
  border-radius: 6px 14px 14px 6px;
}
.left-page {
  position: relative;
  padding: 27px;
  border-radius: 6px 0px 0px 6px;
  background: linear-gradient(90deg, rgb(240, 230, 251) 88%, rgb(213, 198, 230)) transparent;
}
.right-page {
  position: relative;
  transform-origin: left center;
  padding: 27px;
  border-radius: 0px 12px 12px 0px;
  background: linear-gradient(90deg, rgb(229, 220, 234), rgb(255, 255, 255) 13%) transparent;
}
.book small {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgb(140, 114, 164);
}
.book h2 {
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 42px 0px 22px 0px;
}
.book p {
  font-size: 14px;
  line-height: 1.7;
  color: rgb(140, 126, 150);
}
.book span {
  display: block;
  margin-top: 30px;
  font-size: 10px;
  color: rgb(135, 77, 224);
}
.orb {
  width: 140px;
  height: 140px;
  background-image: repeating-radial-gradient(at 35% 30%, transparent 0px, transparent 7px, rgba(156, 114, 216, 0.2) 8px, rgba(156, 114, 216, 0.2) 9px), radial-gradient(circle at 30% 25%, rgb(255, 255, 255), rgb(181, 147, 226) 65%, rgb(117, 69, 173));
  background-position-x: initial, initial;
  background-position-y: initial, initial;
  background-size: initial, initial;
  background-repeat: initial, initial;
  background-attachment: initial, initial;
  background-origin: initial, initial;
  background-clip: initial, initial;
  background-color: initial;
  box-shadow: rgba(142, 103, 182, 0.17) 15px 20px 30px;
  margin: 32px auto;
  border-radius: 50%;
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  gap: 24px;
}
.controls button {
  width: 40px;
  height: 40px;
  color: rgb(120, 69, 188);
  cursor: pointer;
  border-radius: 50%;
  background: none white;
  border: 1px solid rgb(217, 201, 237);
}
.controls span {
  font-style: normal;
  font-variant-ligatures: normal;
  font-feature-settings: normal;
  font-weight: normal;
  font-size: 11px;
  line-height: normal;
  font-family: monospace;
  color: #695873;
}
.turn {
  animation: turn 0.55s ease 0s 1 normal none;
  animation-play-state: running;
}
.desk-area {
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 30px 0px 30px;
}
.plane {
  position: relative;
  height: clamp(280px, 23.75vw, 360px);
  transform: rotateX(22deg) rotateZ(-7deg);
  background-image: linear-gradient(rgba(203, 180, 227, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(203, 180, 227, 0.16) 1px, transparent 1px);
  background-position-x: initial, initial;
  background-position-y: initial, initial;
  background-repeat: initial, initial;
  background-attachment: initial, initial;
  background-origin: initial, initial;
  background-clip: initial, initial;
  background-color: initial;
  background-size: 28px 28px;
  box-shadow: rgb(232, 225, 238) 0px 15px 0px, rgba(96, 64, 128, 0.075) 0px 30px 45px;
  width: 100%;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  align-self: center;
  margin: 0px;
  border-radius: 28px;
  border: 1px solid rgb(224, 213, 237);
}
.node {
  position: absolute;
  width: 43%;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: rgb(225, 212, 239) 0px 7px 0px, rgba(76, 32, 99, 0.125) 0px 20px 25px;
  cursor: pointer;
  color: rgb(55, 39, 71);
  transition-behavior: normal, normal;
  transition-duration: 0.25s, 0.25s;
  transition-timing-function: ease, ease;
  transition-delay: 0s, 0s;
  transition-property: transform, box-shadow;
  padding: 20px;
  border-radius: 14px;
  background: none rgb(255, 252, 255);
  border: 1px solid rgb(218, 201, 237);
}
.node[aria-pressed="true"] {
  transform: translateY(-12px);
  box-shadow: rgb(179, 150, 218) 0px 8px 0px, rgba(112, 56, 174, 0.19) 0px 25px 35px;
  border-color: rgb(166, 123, 224);
}
.node small {
  font-style: normal;
  font-variant-ligatures: normal;
  font-feature-settings: normal;
  font-weight: normal;
  font-size: 8px;
  line-height: normal;
  font-family: monospace;
  letter-spacing: 0.07em;
  color: #695873;
}
.node strong {
  font-size: 15px;
  margin: 12px 0px 0px 0px;
}
.terminal {
  left: 5%;
  top: 35px;
}
.terminal code {
  font-style: normal;
  font-variant-ligatures: normal;
  font-feature-settings: normal;
  font-weight: normal;
  font-size: 11px;
  line-height: 1.9;
  font-family: monospace;
  color: rgb(212, 181, 255);
  margin-top: 12px;
  padding: 13px;
  border-radius: 7px;
  background: none rgb(41, 35, 52);
}
.terminal b {
  color: rgb(180, 160, 239);
}
.server {
  right: 5%;
  top: 20px;
}
.server i {
  font-style: normal;
  font-variant-ligatures: normal;
  font-feature-settings: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: normal;
  font-family: monospace;
  color: rgb(149, 102, 204);
  margin-top: 8px;
  padding: 5px;
  border-radius: 4px;
  background: none rgb(238, 231, 245);
}
.ai {
  right: 22%;
  bottom: 18px;
  width: 39%;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.chip {
  font-size: 24px;
  color: #6936ab;
  padding: 12px;
  border-radius: 9px;
  background: none rgb(238, 227, 255);
  border: 2px solid rgb(170, 128, 219);
}
.ai small {
  width: 100%;
}
.ai strong {
  font-size: 12px;
  max-width: 10ch;
}
.wire {
  position: absolute;
  left: 25%;
  top: 120px;
  width: 50%;
  height: 140px;
  border-radius: 20px;
  border: 2px dashed rgb(180, 154, 203);
}
.caption {
  text-align: center;
  margin-top: 40px;
  min-height: 50px;
}
.caption strong {
  font-size: 15px;
}
.caption p {
  font-size: 12px;
  color: #695873;
  margin-top: 6px;
}
.book .left-page {
  box-sizing: border-box;
  min-width: 0px;
  padding: 28px;
}
.book .right-page {
  box-sizing: border-box;
  min-width: 0px;
  padding: 28px;
}
.book-plate {
  width: 140px;
  height: 140px;
  margin: 32px auto;
}

@media (min-width: 901px) {
  .node strong {
    font-size: clamp(13px, 1.2vw, 18px);
  }
  .terminal code {
    font-size: clamp(10px, 0.9vw, 13px);
  }
  .node small {
    font-size: 9px;
  }
  .ai strong {
    font-size: 14px;
  }
  .chip {
    font-size: 30px;
  }
  .book span {
    margin-top: 28px;
  }
  .book-area .controls {
    margin-top: 44px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .book .left-page {
    padding: 16px;
  }
  .book .right-page {
    padding: 16px;
  }
  .book h2 {
    font-size: 24px;
    margin: 28px 0px 14px 0px;
  }
  .book p {
    font-size: 12px;
  }
  .book span {
    margin-top: 20px;
  }
  .orb {
    width: 105px;
    height: 105px;
    margin: 24px auto;
  }
  .book-plate {
    width: 105px;
    height: 105px;
    margin: 24px auto;
  }
  .node {
    padding: 13px;
  }
  .terminal code {
    font-size: 10px;
    padding: 9px;
  }
  .ai {
    gap: 10px;
  }
  .ai strong {
    font-size: 11px;
  }
  .chip {
    font-size: 22px;
    padding: 10px;
  }
}

@media (max-width: 900px) {
  .desk-area {
    padding: 15px 8px 0px 8px;
  }
  .plane {
    height: 245px;
    transform: rotateX(14deg) rotateZ(-3deg);
    border-radius: 18px;
  }
  .caption {
    margin-top: 30px;
    min-height: 45px;
  }
  .caption strong {
    font-size: 12px;
  }
  .caption p {
    font-size: 10px;
  }
  .node {
    padding: 12px;
    border-radius: 10px;
  }
  .node strong {
    font-size: 12px;
    margin-top: 8px;
  }
  .node small {
    font-size: 6px;
  }
  .terminal {
    top: 20px;
  }
  .server {
    top: 10px;
  }
  .terminal code {
    font-size: 9px;
    margin-top: 7px;
    padding: 8px;
  }
  .server i {
    font-size: 11px;
    margin-top: 5px;
    padding: 4px;
  }
  .ai {
    bottom: 12px;
    width: 42%;
    right: 20%;
    gap: 8px;
  }
  .ai strong {
    font-size: 10px;
  }
  .chip {
    font-size: 20px;
    padding: 8px;
  }
  .wire {
    top: 80px;
    height: 120px;
  }
  .book-area {
    padding: 18px 12px 8px 12px;
  }
  .book {
    height: max(250px, var(--book-content-height, 0px));
    min-height: 250px;
    transform: rotateX(8deg) rotateY(-8deg) rotateZ(-2deg);
  }
  .book .left-page {
    padding: 15px;
  }
  .book .right-page {
    padding: 15px;
  }
  .book small {
    font-size: 7px;
    letter-spacing: 0.08em;
  }
  .book h2 {
    font-size: 22px;
    margin: 22px 0px 10px 0px;
  }
  .book p {
    font-size: 11px;
    line-height: 1.65;
  }
  .book span {
    font-size: 9px;
    margin-top: 14px;
  }
  .orb {
    width: 85px;
    height: 85px;
    margin: 22px auto;
  }
  .book-plate {
    width: 85px;
    height: 85px;
    margin: 22px auto;
  }
  .controls {
    margin-top: 34px;
    gap: 20px;
  }
  .controls button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .book h2 {
    font-size: 18px;
    margin-top: 18px;
  }
  .book p {
    font-size: 10px;
  }
  .book .left-page {
    padding: 12px;
  }
  .book .right-page {
    padding: 12px;
  }
  .orb {
    width: 70px;
    height: 70px;
  }
  .book-plate {
    width: 70px;
    height: 70px;
  }
  .node {
    padding: 9px;
  }
  .terminal code {
    font-size: 8px;
  }
  .node strong {
    font-size: 10px;
  }
  .ai strong {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .turn {
    animation: none;
    animation-play-state: running;
  }
  .node {
    transition-behavior: normal;
    transition-duration: 0s;
    transition-timing-function: ease;
    transition-delay: 0s;
    transition-property: none;
  }
}
@keyframes turn { 
  0% { transform: rotateY(0deg); }
  45% { transform: rotateY(-75deg); }
  100% { transform: rotateY(0deg); }
}
