/* The threshold: two real patterns, one perceived surface. */
body { cursor: auto; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.scene--entry { min-height: 100svh; padding: 64px 7vw 90px; }
.threshold { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 5vw; align-items: center; }
.threshold > .kicker { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-bottom: 64px; font-size: .875rem; color: #dacbdc; }
.threshold__edition { color: #a99fc0; letter-spacing: .08em; text-transform: none; }
.threshold__title { grid-column: 1; margin-bottom: 24px; font-size: clamp(3.3rem, 6.5vw, 7rem); letter-spacing: -.055em; line-height: 1.02; }
.threshold__title em { color: #e9ba8a; font-weight: 320; }
.threshold__intro { grid-column: 1; margin: 0; color: #b9afc6; font-size: 1.125rem; line-height: 1.75; }
.threshold .returning-note { grid-column: 1 / -1; }
.perception { grid-column: 2; grid-row: 2 / span 4; min-width: 0; width: 100%; }
.perception__field { --shift: 32px; --angle: 3.84deg; position: relative; aspect-ratio: 1; overflow: hidden; isolation: isolate; border-radius: 50%; background: #100c19; border: 1px solid #ffffff20; cursor: crosshair; touch-action: pan-y; }
.perception__field::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 85px 25px #0b0a10; border-radius: inherit; }
.perception__layer { position: absolute; inset: -20%; border-radius: 50%; background: repeating-radial-gradient(ellipse at center, transparent 0 8px, #c6b5e999 9px 10px, transparent 11px 17px); transition: opacity .6s, clip-path .8s, background-color .8s; }
.perception__layer--two { background: repeating-radial-gradient(ellipse at center, transparent 0 8px, #edba8499 9px 10px, transparent 11px 17px); transform: translateX(var(--shift)) rotate(var(--angle)) scaleX(.91); mix-blend-mode: screen; }
.perception__hidden { position: absolute; inset: 16% 12% 26%; z-index: 2; display: flex; align-items: center; justify-content: center; margin: 0; text-align: center; font: italic 1.05rem/1.55 var(--serif); color: #fff3e2; text-shadow: 0 2px 14px #000000b3; opacity: 0; transition: opacity 1.1s ease .35s; }
.is-separated .perception__hidden { opacity: 1; }
.perception__cross { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #ffe6c6; font: 1.5rem var(--mono); }
.perception__coordinate { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); font: .875rem var(--mono); letter-spacing: .2em; color: #e7d5c1; }
.is-separated .perception__layer--one { clip-path: inset(0 50% 0 0); }
.is-separated .perception__layer--two { clip-path: inset(0 0 0 50%); transform: none; }
.is-separated .perception__cross { border-left: 1px solid #e9ba8a55; left: 50%; }
.perception__controls { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 20px; margin-top: 26px; }
.perception__controls label { grid-column: 1 / -1; color: #b9afc6; font: .875rem var(--mono); }
.perception__controls input { width: 100%; min-width: 0; height: 44px; accent-color: #e9ba8a; cursor: ew-resize; }
.perception__controls button { min-height: 48px; border-bottom: 1px solid #e9ba8a77; padding: 8px 0; color: #f0d0ad; font-size: .875rem; text-align: left; }
.perception__controls button span { margin-left: 10px; }
.perception__note { min-height: 3.5em; color: #b9afc6; font-size: .875rem; line-height: 1.6; margin: 14px 0 0; }
.threshold__continue { grid-column: 1; display: inline-flex; justify-self: start; align-items: center; gap: 35px; min-height: 48px; color: #f0d0ad; text-decoration: none; border-bottom: 1px solid #e9ba8a66; margin-top: 42px; font-size: 1rem; }
.threshold__continue span { font-size: 1.4rem; }
.threshold__footnote { grid-column: 1; max-width: 30ch; color: #aaa0b9; font-size: .875rem; line-height: 1.7; margin-top: 22px; }
.audio-toggle { min-height: 44px; font-size: .875rem; bottom: max(16px, env(safe-area-inset-bottom)); }
.map-toggle { width: 44px; height: 44px; bottom: max(16px, env(safe-area-inset-bottom)); }
.word-cloud span { cursor: pointer; padding: 12px 4px; }
.word-cloud span.is-questioned { color: #f0d0ad !important; text-decoration: line-through; text-decoration-color: #f0d0ad88; }
.shadow-response { min-height: 3.4em; color: #f0d0ad; font: italic 1.125rem/1.7 var(--serif); }
.scene--wall .scintillating-grid { opacity: .19; }
.scene:not(.scene--entry) .scene-inner { max-width: 720px; }
.body-text { line-height: 1.85; }
.term, .choice-demo__options button, .asch-demo__followup button { min-height: 44px; }
.choice-demo__options button, .asch-demo__followup button, .release-form__row button { font-size: .875rem; }
.map-node__label { font-size: .875rem; }
.discovery-toggle { display: none; }
.asch-demo__reference { padding: 10px 12px; border: 1px solid transparent; }
.asch-demo__ref-label { order: 2; margin-left: auto; }
.asch-demo__ref-line { flex: 0 0 64%; }
/* Text remains available if the animation CDN is unavailable. */
body.animations-unavailable .reveal-line, body.animations-unavailable .reveal-lines .word,
body.animations-unavailable .word-cloud span { opacity: 1; transform: none; filter: none; }
@media (max-width: 760px), (hover: none) {
  .scene--entry { padding: 34px 7vw 100px; }
  .threshold { grid-template-columns: 1fr; }
  .threshold > .kicker { margin-bottom: 38px; font-size: .8125rem; letter-spacing: .14em; gap: 20px; }
  .threshold__edition { max-width: 16ch; text-align: right; line-height: 1.5; }
  .threshold__title { font-size: clamp(2.9rem, 11.8vw, 5.5rem); margin-bottom: 18px; }
  .threshold__intro { font-size: 1rem; }
  .perception { grid-column: 1; grid-row: auto; margin-top: 28px; max-width: 500px; justify-self: center; }
  .perception__field { width: min(100%, 46svh); margin: auto; }
  .perception__controls { gap: 4px 16px; margin-top: 18px; }
  .perception__controls button { max-width: 17ch; line-height: 1.5; }
  .threshold__continue { margin-top: 12px; }
  .threshold__footnote { max-width: 100%; margin-top: 18px; }
  .scene:not(.scene--entry) { padding: 80px 7vw 100px; min-height: 100svh; }
  .word-cloud { height: auto; min-height: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 20px; }
  .word-cloud span { position: relative; left: auto; top: auto; white-space: normal; padding: 12px 14px; border: 1px solid #ffffff24; border-radius: 2px; font-size: 1rem; }
  .asch-demo, .choice-demo, .afterimage-demo { padding: 22px 18px; }
  .map-overlay__panel { max-height: 85svh; overflow-y: auto; }
  .map-wheel { width: 100%; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0; }
  .map-wheel__ring { display: none; }
  .map-node { position: static; width: auto; min-height: 52px; transform: none !important; border: 1px solid #ffffff26; padding: 10px; }
  .map-node__label { font-size: .875rem; }
  .scene { flex-direction: column; justify-content: center; }
  .scene-inner { flex: 0 0 auto; }
  .hidden-layer { display: none; }
  .discovery-toggle { display: block; grid-column: 1 / -1; justify-self: start; min-height: 48px; margin-top: 24px; padding: 8px 0; font: .875rem var(--mono); color: #e9ba8a; border-bottom: 1px dotted currentColor; }
  .discoveries-open .hidden-layer { display: grid; gap: 22px; position: relative; inset: auto; order: 2; width: 100%; max-width: 720px; margin-top: 26px; padding: 24px 18px; border-left: 1px solid #e9ba8a66; background: #100c19d9; overflow: visible; }
  .discoveries-open .hidden-fragment { position: static; max-width: 100%; opacity: 1 !important; filter: none !important; transform: none; font-size: .9375rem; color: #d4c2dd; text-align: left; pointer-events: auto; }
  .discoveries-open button.hidden-fragment { min-height: 48px; color: #f0d0ad; }
  .discoveries-open .hidden-fragment::before, .discoveries-open .hidden-fragment::after { display: none; }
  body[data-theme="light"] .discovery-toggle { color: #754320; }
  .idle-whisper { bottom: 80px; background: #100c19eb; padding: 12px; border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .reveal-line, .reveal-lines .word, .word-cloud span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .flash-overlay, .shockwave-ring, .sparkle { display: none !important; }
}
