/* V6 polish: the approved comic world, with clearer diagrams and phone layouts. */
:root { --scene: #dceadd; --wire: #9bb5a5; }
.voice-theatre {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  align-items: center;
  gap: 42px;
  padding: 40px 0 32px;
}
.voice-theatre h3 { font-size: 17px; font-weight: 500; }
.voice-inputs, .voice-outputs { position: relative; text-align: center; }
.glasses-input { margin: 20px auto; }
.glasses-input > strong { font-size: 17px; font-weight: 500; display: block; }
.glasses-input > span { display: block; font-size: 12px; color: var(--muted); }
.input-glasses { width: 142px; height: 91px; margin: 0 auto 8px; position: relative; }
.input-glasses .icon { width: 142px; height: 91px; }
.mic-point { position: absolute; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; top: 29px; }
.mic-point:nth-child(2) { left: 32px; }
.mic-point:nth-child(3) { right: 32px; }
.mic-point:nth-child(4) { left: 68px; top: 43px; }
.other-inputs { display: flex; justify-content: space-around; gap: 12px; padding-top: 17px; border-top: 1px solid var(--line); }
.other-inputs > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.other-inputs .icon { width: 33px; height: 33px; }
.other-inputs span { font-size: 12px; white-space: nowrap; }
.wire { height: 1px; background: var(--wire); width: 34px; position: absolute; top: 50%; }
.input-wire { right: -38px; }
.output-wire { left: -38px; }
.wire i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #348464; position: absolute; top: -2px; animation: thread-travel 2.4s linear infinite; }
.workshop-heading { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 15px; }
.workshop-heading .icon { width: 30px; height: 30px; }
.workshop-heading strong { font-size: 20px; font-weight: 500; }
.processing-machine { border: 1.5px solid var(--ink); border-radius: 14px; background: var(--cream); padding: 13px 15px 15px; }
.machine-top { display: flex; gap: 5px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.machine-top > span { width: 4px; height: 4px; border-radius: 50%; background: #348464; }
.machine-top > span:nth-child(2) { background: #7fa78c; }
.machine-top > span:nth-child(3) { background: #b9cdb5; }
.machine-top p { margin-left: auto; font-size: 11px; color: var(--muted); }
.machine-flow { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 12px; align-items: center; padding-block: 23px; position: relative; }
.machine-flow::before { content: ''; position: absolute; left: 10%; right: 10%; height: 1px; background: var(--wire); top: 50%; }
.machine-input, .machine-output { display: grid; gap: 13px; position: relative; z-index: 1; }
.machine-input span, .machine-output span { display: block; text-align: center; font-size: 11px; line-height: 1.6; background: var(--cream); padding: 5px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.machine-core { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--scene); padding: 15px 4px; position: relative; border-radius: 8px; min-height: 112px; transition: background .4s; }
.machine-core strong { font-size: 12px; font-weight: 500; margin-top: 12px; }
.machine-core small { font-size: 11px; color: var(--muted); margin-top: 4px; white-space: normal; }
.core-signal, .answer-wave { display: flex; align-items: center; gap: 4px; height: 28px; }
.core-signal i, .answer-wave i { width: 3px; height: 10px; border-radius: 2px; background: #348464; animation: sound 1.1s ease-in-out infinite alternate; }
.core-signal i:nth-child(2n), .answer-wave i:nth-child(2n) { height: 20px; animation-delay: -.4s; }
.core-signal i:nth-child(3n), .answer-wave i:nth-child(3n) { height: 28px; animation-delay: -.8s; }
.machine-belt { height: 10px; overflow: hidden; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding-top: 7px; }
.machine-belt i { width: 19px; height: 3px; background: #79b595; animation: belt 2.4s linear infinite; }
.workshop-caption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.audio-answer { display: flex; justify-content: center; gap: 12px; align-items: center; margin-block: 25px 22px; }
.audio-answer > .icon { width: 44px; height: 50px; }
.audio-answer strong { font-size: 12px; font-weight: 500; display: block; margin-top: 6px; }
.hud-preview { display: flex; align-items: center; max-width: 252px; margin-inline: auto; position: relative; }
.hud-preview::before, .hud-preview::after { content: ''; width: 11px; height: 23px; border-top: 2px solid var(--ink); position: absolute; top: 0; }
.hud-preview::before { left: -7px; transform: rotate(30deg); }
.hud-preview::after { right: -7px; transform: rotate(-30deg); }
.hud-lens { height: 79px; flex: 1 1 0; min-width: 0; border: 2px solid var(--ink); border-radius: 10px 10px 22px 22px; background: #e0f2e4; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hud-lens strong { font: 500 22px/1.2 Outfit, sans-serif; }
.hud-lens > span { font-size: 11px; margin-top: 3px; }
.hud-bridge { width: 15px; height: 20px; border-top: 2px solid var(--ink); flex: none; }
.hud-graphic { flex-direction: row; align-items: end; gap: 5px; padding-bottom: 18px; }
.hud-graphic span { width: 14px; height: 18px; background: #89cda8; }
.hud-graphic span:nth-child(2) { height: 30px; }
.hud-graphic span:nth-child(3) { height: 43px; background: #3d8965; }
.hud-caption { font-size: 11px; color: var(--muted); margin-top: 13px; }
[data-auto-scene] [data-step] { transition: color .3s, background .3s; }
.voice-inputs.is-active .input-glasses, .voice-outputs.is-active .hud-preview { color: #267852; }
.machine-input.is-active span, .machine-output.is-active span { background: var(--mint); border-radius: 4px; }
.machine-core.is-active { background: var(--mint); }
.voice .voice-bottom { gap: 40px; }
.voice .voice-bottom > p > span { font-size: 13px; }
.memory-sources { gap: 10px; }
.memory-source { padding-block: 10px; border-radius: 12px; }
.memory-source.is-active { background: #dceadd; }
.memory-book { border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: none; }
.memory-book::before { border-color: var(--line); }
.memory-foot > p:last-child { text-align: left; }
.work { background: var(--scene); }
.work .section-heading { margin-bottom: 44px; }
.work-scene { max-width: none; }
.director { gap: 24px; }
.director img { width: 135px; }
.director-line { font-size: 22px; line-height: 1.6; border: 1.5px solid var(--ink); border-radius: 18px; padding: 17px 22px; background: var(--cream); position: relative; }
.director-line::before { content: ''; position: absolute; left: -9px; top: 45%; width: 14px; height: 14px; background: var(--cream); border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: skewY(-25deg); }
.director > div > span { margin: 10px 0 0 10px; }
.delegation-line { width: 78%; margin-top: 16px; height: 40px; }
.delegation-line span { background: var(--scene); }
.team-window { max-width: 960px; margin-inline: auto; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #83a88d transparent; padding-bottom: 12px; }
.team-window:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.team-strip { min-width: 620px; }
.team-strip img { width: 100%; }
.team-strip .team-names { font-size: 16px; margin-top: 12px; }
.team-controls { display: flex; align-items: center; justify-content: space-between; max-width: 960px; margin: 0 auto 14px; font-size: 12px; }
.team-controls > div { display: flex; gap: 10px; }
.team-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #95ae9b; border-radius: 50%; background: transparent; }
.team-controls button:hover:not(:disabled) { background: var(--mint); }
.team-controls .icon { width: 20px; height: 20px; }
.team-prev .icon { transform: rotate(180deg); }
.swipe-hint { display: none; color: var(--muted); }
.research { align-items: center; }
.research > div { display: flex; align-items: center; gap: 14px; }
.research .icon { width: 42px; height: 42px; flex: none; }
.research h3 { font-size: 14px; font-weight: 500; line-height: 1.6; }
.learn { display: block; padding-block: 105px; }
.learning-scene { display: grid; grid-template-columns: .85fr 1.7fr; align-items: center; column-gap: 65px; padding: 30px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.learning-art { text-align: center; }
.learning-art img { width: 225px; margin: auto; }
.learning-art > span { display: inline-block; font-size: 13px; margin-top: 10px; }
.learning-notes { display: flex; flex-direction: column; gap: 0; }
.learn-entry { display: flex; align-items: center; gap: 20px; padding: 21px 18px; border-bottom: 1px solid var(--line); }
.learn-entry:last-child { border-bottom: 0; }
.learn-entry.is-active > .icon { color: #267852; background: var(--mint); border-radius: 8px; }
.learn-entry .icon { width: 40px; height: 40px; flex: none; }
.learn-entry h3 { font-size: 19px; font-weight: 500; }
.learn-entry p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.improve-loop { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-top: 30px; margin-top: 25px; border-top: 1px solid var(--line); }
.improve-loop > strong { font-weight: 500; font-size: 16px; }
.improve-loop > div { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.improve-loop b { font-weight: 400; color: #5b8069; }
.closing { padding-top: 10px; }
.paused *::before, .paused *::after, .page-hidden *::before, .page-hidden *::after, .scene-off *::before, .scene-off *::after { animation-play-state: paused !important; }
html:not(.enhanced) *, html:not(.enhanced) *::before, html:not(.enhanced) *::after { animation: none !important; }
@keyframes thread-travel { from { left: 0; } to { left: 100%; } }
@keyframes belt { from { transform: translateX(-12px); } to { transform: translateX(12px); } }
@media (max-width: 1100px) {
  .voice-theatre { grid-template-columns: 1fr 1.45fr 1fr; gap: 25px; }
  .voice-theatre h3 { font-size: 15px; }
  .other-inputs { gap: 8px; }
  .other-inputs span { font-size: 11px; }
  .input-wire { right: -23px; width: 21px; }
  .output-wire { left: -23px; width: 21px; }
  .processing-machine { padding-inline: 10px; }
  .machine-flow { gap: 7px; }
  .machine-core small { font-size: 11px; white-space: normal; }
  .hud-lens { height: 70px; }
  .hud-graphic span { width: 10px; }
  .learning-scene { column-gap: 35px; }
  .learn-entry h3 { font-size: 18px; }
  .improve-loop > div { gap: 12px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .voice-theatre { grid-template-columns: 1fr 1.25fr; gap: 32px; }
  .voice-inputs { padding-inline: 15px; }
  .voice-outputs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 34px; padding-top: 22px; border-top: 1px solid var(--line); }
  .voice-outputs h3 { width: 100%; }
  .audio-answer { margin: 0; }
  .hud-preview { width: 230px; margin: 0; }
  .hud-caption { width: 100%; margin: 0; }
  .output-wire { display: none; }
  .improve-loop { flex-direction: column; align-items: start; gap: 14px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 118px; }
  .chapter { scroll-margin-top: -32px; }
  .section-heading > p { font-size: 14px; }
  .voice-theatre { display: flex; flex-direction: column; gap: 0; padding: 27px 0; }
  .voice-theatre > div { width: 100%; }
  .voice-theatre h3 { font-size: 18px; }
  .glasses-input { margin: 12px 0 20px; }
  .input-glasses { width: 148px; }
  .other-inputs { padding-top: 18px; max-width: 300px; margin: auto; }
  .other-inputs .icon { width: 35px; height: 35px; }
  .other-inputs span { font-size: 12px; }
  .wire { width: 1px; height: 30px; position: relative; top: auto; left: auto; right: auto; margin: 22px auto; }
  .wire i { top: 0; left: -2px; animation: thread-down 2.4s linear infinite; }
  .workshop-heading { margin-bottom: 12px; }
  .workshop-heading strong { font-size: 20px; }
  .processing-machine { max-width: 420px; margin-inline: auto; padding: 13px 12px 15px; }
  .machine-flow { gap: 10px; padding-block: 21px; }
  .machine-input span, .machine-output span { font-size: 12px; }
  .machine-core strong { font-size: 13px; }
  .machine-core small { font-size: 11px; white-space: normal; }
  .machine-core { padding-inline: 3px; min-height: 124px; }
  .workshop-caption { font-size: 13px; }
  .voice-outputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: center; }
  .voice-outputs h3, .voice-outputs .wire { grid-column: 1 / -1; }
  .voice-outputs .wire { margin-bottom: 20px; }
  .audio-answer { gap: 8px; margin: 24px 0 0; }
  .audio-answer > .icon { width: 35px; }
  .answer-wave { gap: 3px; }
  .answer-wave i { width: 2px; }
  .audio-answer strong { font-size: 11px; white-space: nowrap; }
  .hud-preview { width: 100%; max-width: none; margin-top: 24px; }
  .hud-lens { height: 61px; border-radius: 8px 8px 16px 16px; }
  .hud-lens strong { font-size: 18px; }
  .hud-lens > span { font-size: 11px; }
  .hud-bridge { width: 9px; }
  .hud-graphic { gap: 4px; padding-bottom: 12px; }
  .hud-graphic span { width: 8px; height: 12px; }
  .hud-graphic span:nth-child(2) { height: 23px; }
  .hud-graphic span:nth-child(3) { height: 32px; }
  .hud-caption { grid-column: 1 / -1; font-size: 12px; margin-top: 15px; }
  .voice .voice-bottom > p > span { font-size: 12px; }
  .memory-sources { gap: 12px 4px; }
  .memory-source { padding: 8px 1px; }
  .memory-source > span { font-size: 11px; }
  .memory-book { border-radius: 14px; }
  .profile-page { border-color: var(--line); }
  .work .section-heading { margin-bottom: 25px; }
  .director { gap: 12px; }
  .director img { width: 93px; }
  .director-line { font-size: 16px; padding: 13px 12px; line-height: 1.65; border-radius: 14px; }
  .director > div > span { font-size: 11px; margin-left: 0; }
  .delegation-line { margin-top: 20px; height: 25px; }
  .team-strip .team-names { font-size: 14px; }
  .swipe-hint { display: inline; }
  .team-controls { font-size: 11px; gap: 10px; }
  .research { margin-top: 28px; gap: 22px; }
  .research > p br { display: none; }
  .research > div { gap: 16px; }
  .research h3 { font-size: 14px; }
  .research span { font-size: 12px; }
  .learn { display: block; padding-block: 65px; }
  .learning-scene { display: flex; flex-direction: column; padding: 22px 0; gap: 20px; }
  .learning-art { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; }
  .learning-art img { width: 125px; margin: 0; }
  .learning-art > span { font-size: 14px; max-width: 10em; text-align: left; margin: 0; }
  .learning-notes { width: 100%; }
  .learn-entry { gap: 13px; padding: 17px 9px; }
  .learn-entry .icon { width: 32px; height: 32px; }
  .learn-entry h3 { font-size: 17px; }
  .learn-entry p { font-size: 12px; line-height: 1.9; margin-top: 5px; }
  .improve-loop { width: 100%; display: block; margin: 0; padding-top: 20px; }
  .improve-loop > strong { font-size: 15px; }
  .improve-loop > div { display: grid; grid-template-columns: 1fr 15px 1fr; gap: 14px 8px; margin-top: 20px; text-align: center; font-size: 13px; }
  .improve-loop b:nth-child(4) { display: none; }
  .closing { padding-top: 0; }
}
@keyframes thread-down { from { top: 0; } to { top: 100%; } }
.motion-label { display: none; }
.enhanced .motion-label { display: inline; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
