:root {
  --top-bar: clamp(65px, 10vh, 91px);
  --bottom-bar: clamp(57px, 9.7vh, 84px);
  --archive-paper: #ede4d5;
  --archive-rule: rgb(91 74 55 / 27%);
}

.archive {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  color: #302921;
  background: var(--archive-paper);
}
.archive::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: url("assets/paper-grain.png");
  opacity: .48;
  mix-blend-mode: multiply;
  pointer-events: none;
  content: "";
}
[data-phase="shore"] {
  color: #302921;
  --ink: #302921;
  --soft-ink: #5f5346;
  --faint-ink: #655849;
  --rule: var(--archive-rule);
}
[data-phase="shore"][data-archive-view="shore"] {
  color: #fbf5e9;
  --ink: #fbf5e9;
  --soft-ink: #f5edde;
  --faint-ink: #f1e7d7;
  --rule: rgb(251 245 233 / 38%);
}
[data-view="shore"] { color: #fbf5e9; background: #312922; }
[data-view="shore"]::before { display: none; }
[data-view="shore"][data-arriving="true"] { animation: shore-arrive 750ms ease both; }
@keyframes shore-arrive { from { opacity: 0; } to { opacity: 1; } }

.archive h1:focus, .reflection h1:focus { outline: 0; }
.archive-title, .reflection h1, .narrative-question > h1 {
  margin: 0;
  font-family: var(--site-font);
  font-size: clamp(41px, 5.25vw, 82px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}
.archive-chapter {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 15px;
  font: 400 .81rem/1.3 var(--site-font);
  letter-spacing: .115em;
  text-transform: uppercase;
}
.archive-chapter span { width: 17px; height: 1px; background: currentColor; opacity: .6; }
.archive-action, .archive-nav-link, .zoom-button {
  min-height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.archive-action, .archive-nav-link {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgb(99 78 53 / 50%);
  font-size: .89rem;
}
.archive-action:hover, .archive-nav-link:hover { text-decoration-color: currentColor; }
.archive-nav {
  display: flex;
  gap: clamp(12px, 2.4vw, 35px);
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
}
.archive-nav-link { font-size: .8rem; text-decoration-color: currentColor; }

.shore-landscape, .shore-window { position: absolute; inset: 0; }
.shore-landscape {
  background: #342e29 url("assets/archive/beach.webp") center / cover;
  filter: brightness(.55) blur(17px);
  transform: scale(1.05);
}
.shore-window { cursor: grab; overflow: hidden; touch-action: none; }
.is-dragging { cursor: grabbing !important; }
.shore-window:focus-visible { outline: 1px dashed #fff6e7; outline-offset: -6px; }
.beach-plate {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 16 / 9;
}
.beach-photo, .beach-video { display: block; width: 100%; height: 100%; object-fit: fill; }
.beach-video { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.beach-video.is-playing { opacity: 1; }
.shore-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shore-backdrop :is(.beach-photo, .beach-video) {
  /* Source plate crop registered to the upper-right framing in Stone shore.png. */
  position: absolute;
  inset: 0 auto auto -57.48%;
  width: 157.48%;
  height: 157.48%;
}
.beach-stone {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}
button.beach-stone { -webkit-touch-callout: none; user-select: none; }
button.beach-stone::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotate(var(--angle, 0deg));
  content: "";
}
.beach-stone img {
  display: block;
  width: 100%;
  pointer-events: none;
  filter: drop-shadow(7px 3px 4px rgb(19 14 10 / 45%));
  transition: transform 270ms ease, filter 270ms ease;
}
button.beach-stone img { transform: rotate(var(--angle, 0deg)); }
button.beach-stone:focus-visible, button.beach-stone.is-previewed { z-index: 1; }
button.beach-stone:focus-visible img {
  transform: translateY(-3px) rotate(calc(var(--angle, 0deg) - 1deg));
  filter: drop-shadow(9px 6px 7px rgb(19 14 10 / 54%)) brightness(1.10);
}
.beach-stone span {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  padding: 5px 8px;
  color: #342a20;
  background: #f1e7d5;
  font: .79rem var(--site-font);
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}
.beach-stone:focus-visible span, .beach-stone.is-previewed span { opacity: 1; }
.beach-stone.is-previewed span { top: 50%; transform: translate(-50%, -50%); }
@media (any-hover: hover) {
  .shore-window:not(.is-dragging) button.beach-stone:hover { z-index: 1; }
  .shore-window:not(.is-dragging) button.beach-stone:hover img {
    transform: translateY(-3px) rotate(calc(var(--angle, 0deg) - 1deg));
    filter: drop-shadow(9px 6px 7px rgb(19 14 10 / 54%)) brightness(1.10);
  }
  .shore-window:not(.is-dragging) .beach-stone:hover span { opacity: 1; }
}
@media (pointer: coarse) {
  button.beach-stone::before { min-width: 44px; min-height: 44px; }
}
@media (max-aspect-ratio: 1679/1000) {
  .shore-backdrop { mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); }
}
@media (min-aspect-ratio: 2241/1000) {
  .shore-backdrop { mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
}
[data-view="shore"]::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgb(21 17 14 / 60%), transparent 34%, transparent 70%, rgb(21 17 14 / 68%));
  pointer-events: none;
  content: "";
}
.shore-copy, .shore-controls { position: absolute; z-index: 2; }
.shore-copy {
  top: calc(var(--top-bar) + clamp(14px, 3vh, 33px));
  left: max(var(--gutter), 33%);
  text-shadow: 0 1px 10px rgb(26 19 13 / 70%);
  pointer-events: none;
}
.shore-copy .archive-title { font-size: clamp(42px, 4.6vw, 73px); }
.shore-copy > p:last-child { margin: 12px 0 0; font-size: .93rem; }
.shore-controls {
  right: var(--gutter);
  bottom: calc(var(--bottom-bar) + 12px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .82rem;
}
.shore-zoom { display: flex; gap: 3px; }
.zoom-button {
  width: 40px;
  font: 1.22rem var(--site-font);
  border: 1px solid var(--archive-rule);
}
.zoom-button:disabled { cursor: default; opacity: .55; }
.shore-controls .zoom-button { border-color: rgb(251 245 233 / 47%); background: rgb(27 21 16 / 54%); }
.shore-index { position: relative; }
.shore-index summary { padding: 9px 0; cursor: pointer; }
.shore-list {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-width: 228px;
  gap: 3px 16px;
  padding: 12px 15px;
  background: #efe5d4;
  color: #302921;
}
.shore-list button { font: .83rem var(--site-font); text-align: left; }

.scene-heading {
  position: absolute;
  z-index: 2;
  top: calc(var(--top-bar) + clamp(14px, 3vh, 34px));
  left: var(--gutter);
  max-width: calc(100% - var(--gutter) * 2);
}
.specimen-id {
  margin: 0;
  font: 400 clamp(1.15rem, 2.1vw, 2rem)/1.2 var(--site-font);
  letter-spacing: .085em;
  text-transform: uppercase;
}
[data-archive-view="specimen"], [data-archive-view="modes"] {
  --gutter: clamp(20px, 3.7vw, 76px);
  --top-bar: clamp(51px, 6.8dvh, 72px);
  --bottom-bar: clamp(49px, 6.25dvh, 66px);
  --archive-paper: #efe1cb;
}

:is([data-view="specimen"], [data-view="modes"])::before { content: none; }
[data-archive-view="specimen"] .masthead { height: var(--top-bar); }
[data-archive-view="specimen"] .wordmark { font-size: clamp(15px, 1.2vw, 20px); letter-spacing: .04em; }
[data-archive-view="specimen"] .sound { font-size: clamp(13px, 1.02vw, 17px); }
[data-archive-view="specimen"] .waveform { order: 1; }
[data-archive-view="modes"] .masthead,
:is([data-archive-view="specimen"], [data-archive-view="modes"]) .progress { display: none; }
:is([data-archive-view="specimen"], [data-archive-view="modes"]) .colophon {
  height: var(--bottom-bar);
  font-size: clamp(12px, .96vw, 16px);
}
:is([data-archive-view="specimen"], [data-archive-view="modes"]) .archive-nav {
  justify-content: flex-start;
  margin: 0;
}
:is([data-archive-view="specimen"], [data-archive-view="modes"]) .archive-nav-link {
  color: inherit;
  font-size: inherit;
  text-decoration-color: transparent;
}
:is([data-archive-view="specimen"], [data-archive-view="modes"]) .archive-nav-link:hover {
  text-decoration-color: currentColor;
}

.specimen-layout {
  position: absolute;
  inset: var(--top-bar) 0 var(--bottom-bar);
  display: grid;
  grid-template-columns: 48.3% minmax(0, 1fr);
  overflow: auto;
}
.specimen-sheet, .modes-layout {
  background:
    url("assets/paper-grain.png") repeat,
    radial-gradient(ellipse at 47% 33%, #f5e9d5, #ead9c0);
  background-blend-mode: multiply;
}
.specimen-sheet {
  min-width: 0;
  min-height: 550px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.35dvh, 18px);
  padding: clamp(15px, 2.3dvh, 25px) var(--gutter) clamp(17px, 2.7dvh, 28px);
}
.specimen-sheet .specimen-id, .modes-layout .specimen-id {
  font-size: clamp(28px, 2.45vw, 41px);
  line-height: 1.08;
  letter-spacing: .045em;
}
.field-note-label {
  margin: 0 0 clamp(6px, 1dvh, 11px);
  font-size: clamp(12px, .94vw, 16px);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.field-note {
  margin: clamp(11px, 1.65dvh, 18px) 0 0;
  max-width: 58ch;
  color: #30271e;
  font-size: clamp(16px, 1.36vw, 23px);
  line-height: 1.26;
  white-space: pre-line;
}
.specimen-shore {
  position: relative;
  overflow: hidden;
  container-type: size;
  background: #403429 url("assets/archive/beach.webp") 54% center / cover;
}
.specimen-shore .beach-plate {
  width: min(max(100cqw, 105cqh), 105cqw, 110.25cqh);
  aspect-ratio: 1.05;
}
.specimen-shore .beach-photo { object-fit: cover; object-position: 54% 50%; }
.specimen-shore .beach-stone { cursor: default; }
.stone-absence img { visibility: hidden; }
.stone-absence::after {
  position: absolute;
  inset: 0;
  background: #fff;
  mask: var(--mask) center / 100% 100% no-repeat;
  content: "";
}
.specimen-open {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 6px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.specimen-image {
  display: block;
  max-width: 96%;
  max-height: min(100%, 43dvh);
  transition: transform 420ms cubic-bezier(.2,.65,.3,1);
}
.specimen-open:hover .specimen-image, .specimen-open:focus-visible .specimen-image {
  transform: perspective(920px) rotateY(8deg) rotateZ(-3deg) scale(1.027);
}
.specimen-image.is-extracting { visibility: hidden; }
.stone-in-flight {
  position: fixed;
  z-index: 9;
  transform-origin: left top;
  pointer-events: none;
}
.specimen-record { align-self: end; }
.specimen-record h2 {
  margin: 0 0 .45em;
  padding-bottom: .42em;
  border-bottom: 1px solid var(--archive-rule);
  font-size: clamp(14px, 1.01vw, 17px);
  text-transform: uppercase;
}
:is(.specimen-record, .mode-record) .archive-pairs {
  font-size: clamp(13px, 1.02vw, 17px);
  line-height: 1.28;
}
:is(.specimen-record, .mode-record) .archive-pairs div {
  grid-template-columns: minmax(8ch, 29%) minmax(0, 1fr);
  padding: 4px 0;
}
.specimen-listen {
  min-height: 42px;
  margin-top: clamp(8px, 1.7dvh, 19px);
  color: #30271e;
  font-size: clamp(15px, 1.06vw, 18px);
  text-decoration-color: currentColor;
}

.modes-layout { position: absolute; inset: 0; }
.modes-layout .scene-heading { top: 6.25%; }
.modes-layout::before {
  position: absolute;
  top: 82%;
  left: 50%;
  width: min(33%, 560px);
  height: 8%;
  background: radial-gradient(ellipse, rgb(62 44 27 / 18%), transparent 68%);
  content: "";
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.modes-specimen {
  position: absolute;
  top: 49.5%;
  left: 50%;
  max-width: 41%;
  max-height: 64%;
  transform: translate(-50%, -50%);
}
.mode-option {
  position: absolute;
  z-index: 2;
  top: 38.2%;
  display: grid;
  justify-items: center;
  width: 16%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}
.mode-option:disabled { opacity: .56; cursor: default; }
.mode-observe { left: 5.8%; }
.mode-connect { right: 5.8%; }
.mode-icon {
  position: relative;
  display: grid;
  place-items: start center;
  height: clamp(52px, 9.8dvh, 104px);
  width: 100%;
}
.mode-plug {
  --tip-width: clamp(13px, 1.65vw, 31px);
  --shell-width: clamp(39px, 6.4vw, 113px);
  --shell-height: clamp(21px, 4.55dvh, 48px);
  --collar-width: clamp(6px, .94vw, 16px);
  position: absolute;
  top: 65%;
  left: -23%;
  right: -36.25%;
  height: var(--shell-height);
  transform: translateY(-50%);
  color: #675846;
}
.mode-plug i {
  position: absolute;
  display: block;
  top: 50%;
  transform: translateY(-50%);
  border: 1.3px solid currentColor;
}
.mode-plug i:nth-child(1) {
  left: 0;
  width: var(--tip-width);
  height: 72%;
  border-radius: 20% 0 0 20%;
  border-right: 0;
}
.mode-plug i:nth-child(2) {
  left: var(--tip-width);
  width: var(--shell-width);
  height: 100%;
  border-radius: 9% 18% 18% 9% / 25% 50% 50% 25%;
}
.mode-plug i:nth-child(3) {
  left: calc(var(--tip-width) + var(--shell-width));
  width: var(--collar-width);
  height: 36%;
  border-left: 0;
  border-radius: 0 2px 2px 0;
}
.mode-plug i:nth-child(4) {
  left: calc(var(--tip-width) + var(--shell-width) + var(--collar-width));
  right: 0;
  height: 18%;
  border-inline: 0;
}
.observe-symbol {
  display: block;
  position: relative;
  width: clamp(40px, 8.3dvh, 83px);
  aspect-ratio: 1;
  border: 1.25px solid currentColor;
  border-radius: 50%;
  color: #625446;
}
.observe-symbol i {
  position: absolute;
  inset: 26%;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-45deg);
}
.observe-symbol i + i { transform: rotate(135deg); }
.observe-symbol i::after {
  position: absolute;
  right: -4px;
  top: 44%;
  width: 6px;
  height: 6px;
  transform: rotate(50deg);
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}
.mode-name {
  width: min(100%, 7.6em);
  padding: .17em 0 .54em;
  border-bottom: 1px solid var(--archive-rule);
  font-size: clamp(16px, 1.63vw, 27px);
  line-height: 1.1;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.mode-option:hover .mode-name { border-color: currentColor; }
.mode-caption {
  max-width: 18ch;
  margin-top: .97em;
  font-size: clamp(13px, 1.16vw, 19px);
  line-height: 1.36;
}
.mode-record {
  position: absolute;
  z-index: 2;
  bottom: 9.5%;
  right: var(--gutter);
  width: min(26.5%, 440px);
}
.observe-controls > button { letter-spacing: .11em; text-transform: uppercase; }
.archive-pairs { margin: 0; font: .79rem/1.35 var(--site-font); }
.archive-pairs div { display: grid; grid-template-columns: minmax(9ch, .7fr) 1.45fr; gap: 8px 12px; padding: 3px 0; }
.archive-pairs dt { letter-spacing: .04em; text-transform: uppercase; }
.archive-pairs dd { margin: 0; }

.observe-field {
  position: absolute;
  inset: calc(var(--top-bar) + 85px) 0 calc(var(--bottom-bar) + 68px);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.observe-image { max-width: 62%; max-height: 84%; width: auto; height: auto; pointer-events: none; }
.observe-controls, .experiment-note {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--bottom-bar) + 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 44px);
  font-size: .89rem;
}
.observe-controls p, .experiment-note p { margin: 0; }
[data-view="observe"], [data-view="connect"], [data-view="failed"], [data-view="successful"] {
  background: radial-gradient(ellipse at 49% 42%, #f4ecdf, #eadcc8);
}

.connect-field { position: absolute; inset: 22% 0 16%; touch-action: none; }
.connect-object {
  position: absolute;
  top: 52%;
  left: 48%;
  width: min(29vw, 42vh, 440px);
  transform: translate(-50%, -50%);
}
.connect-object img { display: block; width: 100%; pointer-events: none; }
.contact-point {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff3d7;
  transform: translate(-50%, -50%);
  cursor: crosshair;
}
.contact-point::before {
  position: absolute;
  inset: 14px;
  border: 1px solid #fff3d7;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(31 23 16 / 52%);
  content: "";
}
.contact-point span {
  position: absolute;
  top: 100%;
  left: 50%;
  padding: 3px 6px;
  background: #f3ebdc;
  color: #352a20;
  transform: translateX(-50%);
  white-space: nowrap;
  font: .78rem var(--site-font);
  opacity: 0;
  pointer-events: none;
}
.contact-point:hover span, .contact-point.is-near span, .contact-point:focus-visible span { opacity: 1; }
.contact-point.is-near::before { inset: 10px; background: rgb(255 240 213 / 55%); }
.probe-canvas, .result-probe { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.probe-handle {
  position: absolute;
  z-index: 4;
  height: 48px;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: grab;
  touch-action: none;
}
.experiment-note { text-align: center; }

.experiment-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(88%, 720px);
  transform: translate(-50%, -50%);
  text-align: center;
}
.result-copy { top: 65%; }
.result-copy h1 {
  margin: 0;
  font: 400 clamp(1.1rem, 2.6vw, 2.05rem) var(--site-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.result-copy p { margin: 15px 0 3px; }
.result-object { position: absolute; inset: 24% 0 auto; height: 25%; }
.result-object img {
  position: absolute;
  top: 50%;
  left: 51%;
  max-width: min(20%, 210px);
  max-height: 97%;
  transform: translate(-50%, -50%);
}
.experiment-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 26px; margin-top: 10px; }
.experiment-actions .archive-action { font-size: .87rem; }
.tentacles {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: .76;
  pointer-events: none;
}
.intrusion-question { width: min(72%, 640px); }
.intrusion-question::before {
  position: absolute;
  z-index: -1;
  inset: -35% -14%;
  background: radial-gradient(ellipse, var(--archive-paper) 24%, transparent 69%);
  content: "";
  pointer-events: none;
}
.narrative-question > h1 { font-size: clamp(36px, 4.25vw, 67px); }

.listening-sheet { position: absolute; z-index: 2; inset: 36% var(--gutter) var(--bottom-bar); }
.wave-stage { position: relative; width: 100%; height: clamp(115px, 30vh, 290px); }
.recorded-wave { display: block; width: 100%; height: 100%; }
.wave-seek { position: absolute; inset: 25% 0; width: 100%; height: 50%; margin: 0; opacity: 0; cursor: ew-resize; }
.wave-stage:focus-within { outline: 1px solid var(--archive-rule); outline-offset: 3px; }
.media-controls { display: flex; align-items: center; justify-content: center; gap: 18px; font: .82rem var(--site-font); }
.media-play { min-width: 44px; }
.media-status { margin: 4px 0 0; text-align: center; font-size: .85rem; color: #6c4b3a; }
.choice-sheet { top: 53%; display: flex; flex-direction: column; align-items: center; }
.choice-sheet .wave-stage { order: -1; height: clamp(83px, 18vh, 165px); margin: 0 0 8px; }
.listening-choices { display: grid; width: min(85%, 295px); margin: 16px auto 0; }
.listening-choices button {
  text-align: left;
  text-decoration: none;
  border-bottom: 1px solid var(--archive-rule);
  font: .91rem var(--site-font);
}
.listening-choices button:hover { background: rgb(123 94 63 / 9%); }

.reveal-layout {
  position: absolute;
  z-index: 2;
  inset: calc(var(--top-bar) + 13px) var(--gutter) calc(var(--bottom-bar) + 12px);
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr);
  gap: clamp(23px, 4vw, 74px);
  align-items: center;
  overflow: auto;
}
.reveal-film video { display: block; width: 100%; max-height: 52vh; background: #372c21; object-fit: contain; }
.reveal-sound-type { margin: 11px 0 0; font: .9rem/1.4 var(--site-font); }
.reveal-answer { margin: 0 0 12px; font: clamp(1rem, 1.45vw, 1.35rem)/1.4 var(--site-font); }
.reveal-line {
  margin: 0 0 clamp(18px, 3.5vh, 32px);
  font: 400 clamp(1.45rem, 2.8vw, 3rem)/1.19 var(--site-font);
  text-wrap: pretty;
}
.reveal-actions {
  display: grid;
  justify-items: start;
  gap: 3px;
}
.reveal-continue { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; }
.reveal-continue-label { text-decoration: underline rgb(99 78 53 / 50%); text-underline-offset: 5px; }
.reveal-continue:hover .reveal-continue-label { text-decoration-color: currentColor; }
.next-cue:not(.reveal-continue),
.reveal-continue.next-cue .reveal-continue-label,
[data-chimera-stage="enter"] #sound:not(:disabled) #sound-label {
  color: #241d16;
  animation: cue-text-fade 1.55s ease-in-out infinite;
}
.next-cue:not(.reveal-continue) { text-decoration-color: rgb(99 78 53 / 50%); }
@keyframes cue-text-fade {
  0%, 100% { color: #241d16; }
  50% { color: rgb(36 29 22 / 24%); }
}
.next-cue:focus-visible, [data-chimera-stage="enter"] #sound:focus-visible { outline: none; }
.next-cue:focus-visible:not(.reveal-continue),
.reveal-continue.next-cue:focus-visible .reveal-continue-label,
[data-chimera-stage="enter"] #sound:focus-visible #sound-label {
  text-decoration: underline 2px #4d3829;
  text-underline-offset: 5px;
}
@media (prefers-reduced-motion: reduce) {
  .next-cue:not(.reveal-continue),
  .reveal-continue.next-cue .reveal-continue-label,
  [data-chimera-stage="enter"] #sound:not(:disabled) #sound-label {
    text-decoration: underline 2px #4d3829;
    text-underline-offset: 5px;
  }
}

.chimera-space { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.chimera-space .chapter { position: absolute; top: clamp(22px, 3.4vh, 39px); left: var(--gutter); margin: 0; }
[data-phase="chimera"] .paper { background: #f6f3eb; }
[data-phase="chimera"] .paper::before { opacity: .27; }
[data-phase="chimera"] .masthead { border: 0; justify-content: flex-end; pointer-events: none; }
[data-phase="chimera"] .masthead .sound { pointer-events: auto; }
[data-phase="chimera"] .masthead .wordmark, [data-phase="chimera"] .colophon { display: none; }
[data-phase="chimera"] #field { opacity: 0; }
[data-phase="chimera"]:is([data-chimera-stage="revealing"], [data-chimera-stage="found"]) #field {
  opacity: 1;
  transition: opacity 420ms ease;
}
.chimera-explore, .chimera-point, .chimera-found button { pointer-events: auto; }
.chimera-explore {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
}
.chimera-explore:focus-visible { outline-offset: -6px; }
.chimera-search {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(.92rem, 1.2vw, 1.2rem);
  animation: chimera-prompt 1250ms ease both;
}
@keyframes chimera-prompt { from { opacity: 0; } to { opacity: 1; } }
.chimera-point {
  position: absolute;
  right: max(19px, 12%);
  bottom: max(26px, 17%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  animation: chimera-prompt 740ms ease both;
}
.chimera-point::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67594b;
  box-shadow: 0 0 0 3px rgb(103 89 75 / 12%);
  content: "";
}
.chimera-point:hover::before, .chimera-point:focus-visible::before { background: #29231c; }
@media (prefers-reduced-motion: reduce) {
  [data-phase="chimera"]:is([data-chimera-stage="revealing"], [data-chimera-stage="found"]) #field {
    transition: opacity 260ms ease !important;
  }
}
.chimera-found {
  position: absolute;
  top: 65%;
  left: 50%;
  width: min(89%, 1080px);
  text-align: center;
  transform: translateX(-50%);
  animation: chimera-prompt 500ms ease both;
}
.chimera-found p { margin: 0 0 clamp(18px, 4.4vh, 48px); font-size: clamp(20px, 2vw, 33px); line-height: 1.23; }
.chimera-found button { font-size: clamp(15px, 1.25vw, 21px); }
.chimera-found p:focus { outline: 0; }

.reflection { position: absolute; z-index: 2; inset: 0; text-align: center; pointer-events: none; }
.reflection h1 {
  position: absolute;
  top: max(19%, calc(var(--top-bar) + 23px));
  left: 50%;
  width: min(87%, 780px);
  transform: translateX(-50%);
  font-size: clamp(36px, 4.5vw, 69px);
}
.reflection-actions {
  position: absolute;
  top: 77%;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 30px;
}
.reflection-actions button { pointer-events: auto; }
.specimen-reflection[data-phase="reflection"] .paper { background: #f6f3eb; }
.specimen-reflection[data-phase="reflection"] .paper::before { opacity: .27; }
.specimen-reflection .reflection h1 {
  top: max(14%, calc(var(--top-bar) + 10px));
  width: min(88%, 920px);
  font-size: clamp(21px, 2.7vw, 44px);
  line-height: 1.3;
  text-wrap: balance;
}
.specimen-reflection .reflection-actions { top: 82%; }

@media (max-width: 900px) {
  .archive-nav, .colophon { gap: 9px; }
  [data-phase="shore"] .headphones { display: none; }

}
@media (max-width: 719px) {
  .specimen-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
  }
  .specimen-sheet { min-height: 0; grid-template-rows: auto minmax(200px, 42dvh) auto; }
  .specimen-shore { aspect-ratio: 1.05; }
  .modes-layout {
    inset: 0 0 var(--bottom-bar);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(156px, 1fr) auto auto;
    align-items: center;
    gap: 10px 14px;
    padding: 18px var(--gutter);
    overflow: auto;
  }
  .modes-layout::before { content: none; }
  .modes-layout .scene-heading { position: static; grid-column: 1 / -1; grid-row: 1; }
  .modes-specimen {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: 72%;
    height: 100%;
    max-width: 100%;
    max-height: min(34vh, 290px);
    object-fit: contain;
    transform: none;
  }
  .mode-option { position: static; grid-row: 3; align-self: start; width: 100%; }
  .mode-observe { grid-column: 1; }
  .mode-connect { grid-column: 2; }
  .mode-record { position: static; grid-column: 1 / -1; grid-row: 4; width: 100%; margin: 10px 0 4px; }
  .mode-icon { height: 51px; }
  .observe-symbol { width: 40px; }
  .mode-plug { top: 45%; left: 1%; right: 3%; }
  .archive-pairs { font-size: .72rem; }
  .archive-pairs div { gap: 5px; grid-template-columns: minmax(8ch, .67fr) 1.35fr; }
  .shore-copy { left: var(--gutter); }
  .shore-copy > p:last-child { max-width: 27ch; }
  .reveal-layout { grid-template-columns: 1fr; align-content: start; }
  .reveal-film { margin-top: 12px; }
  .reveal-copy { padding-bottom: 10px; }
  .connect-object { width: min(51vw, 39vh); }
  .result-object img { max-width: min(30%, 190px); }
}
@media (max-width: 520px) {
  [data-phase="shore"] .colophon { justify-content: center; }
  [data-phase="shore"] .progress { display: none; }
  .archive-nav { gap: 8px 22px; }
  .archive-nav-link { font-size: .76rem; }
  .scene-heading { top: calc(var(--top-bar) + 13px); }
  .archive-chapter { margin-bottom: 10px; }
  .observe-controls { flex-wrap: wrap; gap: 5px 15px; }
  .observe-controls p { width: 100%; text-align: center; }
  .choice-sheet .wave-stage { height: 86px; }
  .reflection h1 { font-size: clamp(32px, 8vw, 50px); }
}
@media (max-height: 600px) and (min-width: 720px) {
  .archive-pairs { font-size: .72rem; }
  .archive-pairs div { padding: 1px 0; }
}
