/* Glass Mind loop: the sheet stays still; a detached mirror turns, then opens as the board. */
.greet-mark--loop {
  --cycle-accent: #2f7286;
  --cycle-accent-rgb: 47, 114, 134;
  --cycle-progress: 0.08;
  --cycle-x: 75%;
  --cycle-y: 22%;
  width: min(43rem, 100%);
  max-width: 100%;
  overflow: visible;
  /* Crop window of the drawn portrait frame, used only by the detached mirror. */
  --mirror-cx: 0.505;
  --mirror-cy: 0.484;
  --mirror-w: 0.234;
  --mirror-h: 0.378;
  --detached-w: 8.9rem;
  --detached-h: 11rem;
  --board-panel-h: 18rem;
  --mirror-inset-x: 4.5%;
  --mirror-inset-y: 3.6%;
  --sheet-turn: 1.08s;
}

/* The original illustration is the single hero surface. The editorial copy
   gets its own column so it never washes out the drawing underneath. */
.greet.greet--overlay {
  grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(1.4rem, 3.5vw, 4rem);
  align-items: start;
  max-width: 110rem;
  padding-inline: clamp(1rem, 3vw, 3rem);
}

.greet--overlay .greet-copy {
  grid-area: auto;
  z-index: 2;
  align-self: center;
  justify-self: stretch;
  width: auto;
  max-width: 31rem;
  margin: 0;
  padding: 1.35rem 1.65rem 1.5rem;
  border-left: 3px solid rgba(160, 76, 56, .56);
  background: transparent;
  text-shadow: none;
}

.greet--overlay .greet-mark--loop {
  grid-area: auto;
  z-index: 1;
  justify-self: center;
  width: 100%;
}

.glass-instrument__plate {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 3;
  --hero-image-opacity: .8;
  overflow: hidden;
  border-radius: 5px;
  background: #f4efe1;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 1.4rem 3rem rgba(50,34,18,.18);
}

.glass-instrument__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(68,62,52,.16);
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255,255,255,.2), transparent 38%, rgba(84,65,39,.03));
}

.glass-instrument__sheet {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.glass-instrument__sidecar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: var(--detached-h);
  margin-top: .85rem;
  overflow: visible;
}
.glass-instrument__sidecar[data-mirror-stage="open"] {
  min-height: calc(min(100%, 32rem) * 355 / 439);
}

.glass-instrument__scaffold {
  position: relative;
  width: var(--detached-w);
  height: var(--detached-h);
  overflow: visible;
}

.glass-instrument__sidecar[data-mirror-stage="open"] .glass-instrument__scaffold {
  width: min(100%, 32rem);
  height: calc(min(100%, 32rem) * 355 / 439);
}

.glass-instrument__mirror-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  transform-origin: center center;
  transition: transform var(--sheet-turn, 1.08s) cubic-bezier(.2,.78,.18,1);
  filter: saturate(.64) contrast(.92) brightness(1.02);
  mix-blend-mode: multiply;
}
.glass-instrument__mirror-art--dark { display: none; }
.glass-instrument__sidecar[data-mirror-stage="turning"] .glass-instrument__mirror-art,
.glass-instrument__sidecar[data-mirror-stage="open"] .glass-instrument__mirror-art {
  transform: rotate(-90deg);
}
.glass-instrument__sidecar[data-mirror-stage="open"] .glass-instrument__mirror-art {
  inset: auto;
  width: calc(min(100%, 32rem) * 355 / 439);
  height: min(100%, 32rem);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.glass-instrument__plate > img,
.glass-instrument__sheet > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  opacity: .8;
  filter: saturate(.64) contrast(.92) brightness(1.02);
  mix-blend-mode: multiply;
}
.glass-instrument__sheet > img {
  position: absolute;
  inset: 0;
  height: 100%;
}

/* The paper enters as one image assembled from its own pixels. The layer is
   purely a rendering treatment: once the pieces meet, the original drawing
   remains the single source of truth beneath the interactive mirror. */
.glass-instrument__plate[data-puzzle-ready="true"] > img,
.glass-instrument__plate[data-puzzle-ready="true"] .glass-instrument__sheet > img {
  opacity: 0 !important;
}

.glass-instrument__plate[data-puzzle-complete="true"] > img,
.glass-instrument__plate[data-puzzle-complete="true"] .glass-instrument__sheet > img {
  opacity: var(--hero-image-opacity) !important;
  transition: opacity .52s ease;
}

.glass-instrument__puzzle {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.glass-instrument__puzzle-tile {
  position: absolute;
  left: calc(var(--puzzle-col) * 25%);
  top: calc(var(--puzzle-row) * 33.333333%);
  width: 25.1%;
  height: 33.5%;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: 400% 300%;
  background-position: var(--puzzle-x) var(--puzzle-y);
  filter: saturate(.64) contrast(.92) brightness(1.02);
  mix-blend-mode: multiply;
  opacity: 0;
  transform: translate3d(var(--puzzle-from-x), var(--puzzle-from-y), 0) rotate(var(--puzzle-from-rotate)) scale(.9);
  transform-origin: center;
}

.glass-instrument__plate[data-puzzle-ready="true"] .glass-instrument__puzzle {
  opacity: 1;
}

.glass-instrument__plate[data-puzzle-complete="true"] .glass-instrument__puzzle {
  opacity: 0;
}

.glass-instrument__plate[data-puzzle-running="true"] .glass-instrument__puzzle-tile {
  animation: glass-puzzle-piece-in .92s cubic-bezier(.2,.78,.18,1) var(--puzzle-delay) both;
}

@keyframes glass-puzzle-piece-in {
  0% {
    opacity: 0;
    transform: translate3d(var(--puzzle-from-x), var(--puzzle-from-y), 0) rotate(var(--puzzle-from-rotate)) scale(.9);
    box-shadow: 0 0 1.8rem rgba(53,39,22,.24);
  }
  62% {
    opacity: .98;
    transform: translate3d(-1%, 1%, 0) rotate(calc(var(--puzzle-from-rotate) * -.12)) scale(1.015);
    box-shadow: 0 0 .9rem rgba(53,39,22,.14);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    box-shadow: 0 0 0 rgba(53,39,22,0);
  }
}

.glass-instrument__objects {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}

.glass-object {
  position: absolute;
  box-sizing: border-box;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  overflow: visible;
  width: 18%;
  height: 17%;
  opacity: .78;
  filter: none;
  mix-blend-mode: normal;
  transform: scale(.98);
  transform-origin: center;
  transition: opacity .48s ease, filter .48s ease, transform .62s cubic-bezier(.2,.75,.2,1), box-shadow .48s ease;
}

.glass-object img {
  display: none !important;
}

/* Hit areas sit over the clean sheet's symbols; the sheet itself carries no UI labels. */
.glass-object--boundary { top: 3%; left: 40%; width: 15%; height: 16%; }
.glass-object--boundary img { top: -14%; left: -2%; }
.glass-object--observe { top: 9%; left: 73%; width: 15%; height: 14%; }
.glass-object--observe img { top: -7%; left: -19%; }
.glass-object--model { top: 34%; left: 74%; width: 15%; height: 16%; }
.glass-object--model img { top: -4%; left: -9%; }
.glass-object--remember { top: 67%; left: 74%; width: 15%; height: 16%; }
.glass-object--remember img { top: -4%; left: -3%; }
.glass-object--reflect { top: 76%; left: 42%; width: 15%; height: 15%; }
.glass-object--reflect img { top: -7%; left: -7%; }
.glass-object--select { top: 75%; left: 17%; width: 15%; height: 15%; }
.glass-object--select img { top: -8%; left: -3%; }
.glass-object--act { top: 47%; left: 6%; width: 14%; height: 17%; }
.glass-object--act img { top: -5%; left: -8%; }
.glass-object--afterstate { top: 11%; left: 14%; width: 17%; height: 17%; }
.glass-object--afterstate img { top: -4%; left: -5%; }

.glass-object__label {
  position: absolute;
  top: calc(100% + .3rem);
  left: 50%;
  display: block;
  color: rgba(59,55,47,.6);
  font: 500 clamp(.38rem,.65vw,.52rem)/1 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
  transform: translateX(-50%);
  transition: color .45s ease, opacity .45s ease, transform .55s ease;
}

.glass-object__label { display: none; }

.glass-object { pointer-events: auto; cursor: pointer; }

.glass-object[data-cycle-active="true"] {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

.glass-object[data-cycle-active="true"] img {
  display: none !important;
}

.glass-object[data-cycle-active="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .56rem;
  height: .56rem;
  border: 1px solid rgba(var(--cycle-accent-rgb),.5);
  border-radius: 50%;
  opacity: .72;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%,-50%);
}

.glass-object[data-cycle-active="true"] .glass-object__label {
  color: var(--cycle-accent);
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 0 .7rem rgba(var(--cycle-accent-rgb),.2);
  transform: translateX(-50%) translateY(-.12rem);
}

.glass-object:hover .glass-object__label,
.glass-object:focus-visible .glass-object__label {
  color: var(--cycle-accent);
}

.glass-object:focus-visible {
  outline: 2px solid var(--cycle-accent);
  outline-offset: 3px;
}

@keyframes glass-object-awake {
  0%, 100% { transform: scale(1.06) translateY(0); }
  50% { transform: scale(1.1) translateY(-1.4%); }
}

.glass-instrument__trace {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
}

.glass-instrument__trace ellipse {
  fill: none;
  stroke: var(--cycle-accent);
  stroke-width: .18;
  stroke-linecap: round;
  stroke-dasharray: var(--cycle-progress) 1;
  opacity: .3;
  filter: drop-shadow(0 0 .7px rgba(var(--cycle-accent-rgb),.55));
  transition: stroke-dasharray .8s cubic-bezier(.2,.7,.2,1), stroke .45s ease;
}

.glass-instrument__pointer {
  position: absolute;
  z-index: 5;
  left: var(--cycle-x);
  top: var(--cycle-y);
  width: .64rem;
  height: .64rem;
  border: 1px solid rgba(255,252,239,.95);
  border-radius: 50%;
  background: var(--cycle-accent);
  box-shadow: 0 0 0 .2rem rgba(var(--cycle-accent-rgb),.14), 0 0 .9rem rgba(var(--cycle-accent-rgb),.55);
  transform: translate(-50%,-50%);
  transition: left .7s cubic-bezier(.2,.75,.2,1), top .7s cubic-bezier(.2,.75,.2,1), background .45s ease;
}

.glass-instrument__pointer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.1rem;
  height: 1px;
  opacity: .3;
  background: linear-gradient(90deg, var(--cycle-accent), transparent);
  transform: rotate(22deg);
  transform-origin: left;
}

.glass-instrument__symbol-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.glass-instrument__symbol-cache img {
  display: block;
  width: 1px;
  height: 1px;
}

/* Display lives in the prop's inner glass. The prop rotates; the set does not. */
.glass-instrument__field {
  position: absolute;
  left: var(--mirror-inset-x);
  top: var(--mirror-inset-y);
  right: var(--mirror-inset-x);
  bottom: var(--mirror-inset-y);
  z-index: 3;
  box-sizing: border-box;
  width: auto;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  isolation: isolate;
  padding: .55rem .6rem;
  border: 0;
  border-radius: 2px;
  color: #f3edde;
  background-color: #172126;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), transparent 42%),
    repeating-linear-gradient(171deg, rgba(255,255,255,.018) 0 1px, transparent 1px 13px),
    #172126;
  box-shadow: inset 0 0 1.1rem rgba(0,0,0,.26);
  text-align: left;
  transform: none;
  opacity: 0;
  pointer-events: none;
  --glass-mirror-background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(214,229,228,.2) 46%, rgba(105,135,145,.24)), linear-gradient(90deg, rgba(255,255,255,.38), transparent 42%, rgba(37,71,82,.1)), #172126;
  --glass-board-background: linear-gradient(145deg, rgba(255,255,255,.07), transparent 42%), repeating-linear-gradient(171deg, rgba(255,255,255,.018) 0 1px, transparent 1px 13px), #172126;
}

.glass-instrument__field[data-board-mode="mirror"] > * {
  opacity: 0;
  pointer-events: none;
}

.glass-instrument__sidecar[data-mirror-stage="open"] .glass-instrument__field[data-board-mode="board"] {
  display: grid;
  grid-template-columns: minmax(4.2rem, 22%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  column-gap: .55rem;
  padding: .7rem .75rem .6rem;
  opacity: 1;
  pointer-events: auto;
  animation: glass-board-unfold .45s cubic-bezier(.2,.78,.18,1) both;
}

.glass-instrument__field[data-board-mode="board"] > * {
  animation: glass-board-content-in .45s cubic-bezier(.2,.75,.2,1) .08s both;
}

@keyframes glass-board-unfold {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glass-board-content-in {
  from { opacity: 0; transform: translateZ(1px) scale(.96); }
  to { opacity: 1; transform: translateZ(1px) scale(1); }
}

.glass-instrument__field::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--cycle-progress) * 100%);
  height: 3px;
  background: var(--cycle-accent);
  transition: width .75s ease, background .45s ease;
}

.glass-instrument__board-art {
  position: relative;
  flex: 0 0 22%;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(243,237,222,.24);
  background: #172126;
}

.glass-instrument__field[data-board-mode="board"] .glass-instrument__board-art {
  grid-column: 1;
  grid-row: 1;
  flex: none;
  height: 100%;
  padding-right: .42rem;
  border-right: 1px solid rgba(243,237,222,.24);
  border-bottom: 0;
}

.glass-instrument__field[data-board-mode="board"] .glass-instrument__board-art img {
  opacity: .2;
}

.glass-instrument__board-lanes {
  position: absolute;
  inset: .25rem .35rem .25rem 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.glass-instrument__board-lanes span {
  color: rgba(243,237,222,.7);
  font: 600 clamp(.32rem,.6vw,.48rem)/1.15 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.glass-instrument__board-lanes span + span {
  padding-top: .28rem;
  border-top: 1px solid rgba(243,237,222,.18);
}

.glass-instrument__board-art img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  opacity: .94;
  filter: saturate(.78) contrast(.96) brightness(.92);
}

.glass-instrument__board-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(12,19,22,.18), transparent 35%, rgba(12,19,22,.22));
}

.glass-instrument__reflection {
  position: absolute;
  top: 3.5%;
  right: 4%;
  z-index: 2;
  width: 16%;
  height: 22%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--cycle-accent-rgb),.5);
  border-bottom: 1px solid rgba(243,237,222,.24);
  background: rgba(var(--cycle-accent-rgb),.08);
  box-shadow: 0 0 .8rem rgba(var(--cycle-accent-rgb),.18);
  opacity: .92;
  transition: border-color .45s ease, background .45s ease, opacity .45s ease, box-shadow .45s ease;
}

.glass-instrument__field[data-board-mode="board"] .glass-instrument__reflection {
  top: 16%;
  right: auto;
  left: 1.2%;
  width: 18%;
  height: 26%;
}

.glass-instrument__reflection img {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: .05rem .2rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
  object-position: center;
  opacity: .94;
  filter: invert(.86) sepia(.12) saturate(.55) brightness(1.18) contrast(1.08);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2,.75,.2,1), filter .55s ease;
}

@keyframes glass-reflection-arrive {
  0% { opacity: 0; transform: scale(.82) translateY(10%); filter: invert(.86) sepia(.12) saturate(.3) brightness(1.1) blur(2px); }
  100% { opacity: .94; transform: scale(1) translateY(0); filter: invert(.86) sepia(.12) saturate(.55) brightness(1.18) contrast(1.08); }
}

.glass-reflection-arrive .glass-instrument__reflection img { animation: glass-reflection-arrive .72s cubic-bezier(.2,.75,.2,1); }
.glass-instrument__reflection span {
  position: absolute;
  right: .1rem;
  bottom: .22rem;
  color: var(--cycle-accent);
  font: 500 clamp(.32rem,.62vw,.46rem)/1 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.glass-instrument__board-copy {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: .18rem;
  flex: 1 1 auto;
}

.glass-instrument__field[data-board-mode="board"] .glass-instrument__board-copy {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  padding-left: .05rem;
}

.glass-instrument__phase-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem;
  min-width: 0;
}

.glass-instrument__phase-meta > span,
.glass-instrument__board-copy > small {
  color: #bcb3a3;
  font: 500 clamp(.35rem,.65vw,.48rem)/1.25 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.glass-instrument__phase-meta > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cycle-accent);
  font: 600 clamp(.5rem,1vw,.78rem)/1.1 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow: 0 0 .55rem rgba(var(--cycle-accent-rgb),.3);
  transition: color .45s ease;
}

.glass-instrument__board-copy > p {
  min-height: 0;
  margin: 0;
  color: #f3edde;
  font: clamp(.55rem,.9vw,.74rem)/1.18 Georgia, "Times New Roman", serif;
}

.glass-instrument__field[data-board-mode="board"] .glass-instrument__board-copy > p {
  display: flex;
  align-items: center;
  padding: .36rem 0 .28rem;
  border-top: 1px solid rgba(243,237,222,.18);
}

.glass-instrument__field[data-board-mode="board"] .glass-instrument__board-copy > small {
  padding: .28rem 0;
  border-top: 1px solid rgba(243,237,222,.18);
}

.glass-instrument__nla {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding: .3rem .42rem .34rem;
  border: 0;
  border-left: 2px solid var(--cycle-accent);
  background: rgba(4,9,12,.42);
  box-shadow: inset 0 0 1rem rgba(0,0,0,.12);
  transition: border-color .45s ease, background .45s ease;
}

.glass-instrument__field[data-board-mode="board"] .glass-instrument__nla {
  margin-top: 0;
  padding: .36rem 0 0;
  border-top: 2px solid var(--cycle-accent);
  border-left: 0;
  background: rgba(4,9,12,.28);
}
.glass-instrument__nla-kicker {
  display: block;
  color: var(--cycle-accent);
  font: 600 clamp(.34rem,.58vw,.46rem)/1.15 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.glass-instrument__nla p {
  flex: 1 1 auto;
  max-height: 3.1em;
  overflow: hidden;
  margin: .34rem 0 0;
  color: #f0e8d7;
  font: clamp(.52rem,.8vw,.68rem)/1.2 Georgia, "Times New Roman", serif;
}
.glass-instrument__chalk-letter {
  color: var(--chalk-color, #f0e8d7);
  text-shadow: 0 0 .28rem rgba(240,232,215,.16);
}

.glass-instrument__details-trigger {
  flex: 0 0 auto;
  display: block;
  margin-top: .28rem;
  padding: 0;
  border: 0;
  color: rgba(245,237,220,.72);
  background: transparent;
  font: 500 clamp(.3rem,.52vw,.4rem)/1.1 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}
.glass-instrument__details-trigger:hover,
.glass-instrument__details-trigger:focus-visible { color: var(--cycle-accent); }

.glass-instrument__details {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: auto;
  padding: 7% 8%;
  border: 1px solid var(--cycle-accent);
  color: #f3edde;
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), transparent 44%),
    #11191e;
  box-shadow: inset 0 0 1.5rem rgba(0,0,0,.28), 0 0 .9rem rgba(var(--cycle-accent-rgb),.16);
}
.glass-instrument__details[hidden] { display: none; }
.glass-instrument__details-kicker {
  color: var(--cycle-accent);
  font: 600 clamp(.38rem,.7vw,.54rem)/1.15 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.glass-instrument__details > strong {
  margin-top: .35rem;
  color: var(--cycle-accent);
  font: 600 clamp(.82rem,1.7vw,1.25rem)/1.05 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.glass-instrument__details > p {
  margin: .55rem 0 0;
  color: #f3edde;
  font: clamp(.78rem,1.35vw,1.05rem)/1.22 Georgia, "Times New Roman", serif;
}
.glass-instrument__details > small {
  margin-top: .55rem;
  color: #bcb3a3;
  font: 500 clamp(.42rem,.76vw,.58rem)/1.2 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.glass-instrument__details .glass-instrument__details-nla {
  margin-top: .8rem;
  padding: .65rem .7rem;
  border-left: 3px solid var(--cycle-accent);
  color: #f0e8d7;
  background: rgba(4,9,12,.6);
  font: clamp(.72rem,1.2vw,.96rem)/1.25 Georgia, "Times New Roman", serif;
}
.glass-instrument__details-close {
  align-self: flex-start;
  margin-top: auto;
  padding: .42rem .55rem;
  border: 1px solid rgba(245,237,220,.28);
  border-radius: 99px;
  color: #f0e8d7;
  background: transparent;
  font: 500 clamp(.34rem,.6vw,.46rem)/1 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.glass-instrument__details-close:hover,
.glass-instrument__details-close:focus-visible { border-color: var(--cycle-accent); color: var(--cycle-accent); }

.glass-instrument__statusbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .7rem;
  padding: .42rem .58rem;
  border-top: 1px solid rgba(70,65,58,.18);
  border-bottom: 1px solid rgba(70,65,58,.14);
  color: #746d61;
  font: 500 clamp(.42rem,.72vw,.56rem)/1.2 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.glass-instrument__statusbar strong { color: var(--cycle-accent); font-weight: 600; white-space: nowrap; }

.glass-instrument__timebar {
  height: 3px;
  margin-top: .38rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(70,65,58,.14);
}
.glass-instrument__timebar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--cycle-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: background .45s ease;
}

.glass-instrument__console { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .7rem; align-items: center; margin-top: .62rem; }
.glass-instrument__rail { position: relative; display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: .18rem; }
.glass-instrument__rail::before { content: ""; position: absolute; top: 50%; right: .42rem; left: .42rem; height: 1px; background: rgba(70,65,58,.18); }
.glass-instrument__rail button { position: relative; z-index: 1; min-width: 0; min-height: 1.85rem; padding: 0; border: 0; color: #787166; background: transparent; cursor: pointer; }
.glass-instrument__rail button::before { content: ""; position: absolute; top: 50%; left: 50%; width: .42rem; height: .42rem; border: 1px solid rgba(70,65,58,.45); border-radius: 50%; background: #efe9da; transform: translate(-50%,-50%); transition: width .25s ease,height .25s ease,border-color .25s ease,background .25s ease; }
.glass-instrument__rail button span { position: absolute; top: 1.38rem; left: 50%; font: .42rem/1 "IBM Plex Mono", Menlo, monospace; transform: translateX(-50%); }
.glass-instrument__rail button[aria-current="step"]::before { width: .72rem; height: .72rem; border-color: var(--cycle-accent); background: var(--cycle-accent); box-shadow: 0 0 0 .18rem rgba(var(--cycle-accent-rgb),.12); }
.glass-instrument__rail button:hover::before,.glass-instrument__rail button:focus-visible::before { border-color: var(--cycle-accent); }
.glass-instrument__rail button:focus-visible,.glass-instrument__actions button:focus-visible { outline: 2px solid var(--cycle-accent); outline-offset: 2px; }
.glass-instrument__actions { display: flex; gap: .32rem; }
.glass-instrument__actions button { min-height: 2rem; padding: .4rem .56rem; border: 1px solid rgba(70,65,58,.24); border-radius: 99px; color: #625c53; background: rgba(247,242,232,.66); font: .46rem/1.1 "IBM Plex Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.glass-instrument__actions button:hover { border-color: rgba(var(--cycle-accent-rgb),.5); color: var(--cycle-accent); }

body[data-loop-returned="true"] .glass-instrument__trace ellipse { stroke-dasharray: .86 .035 .035 .07; }
body[data-loop-returned="true"] .glass-instrument__field { box-shadow: 0 .6rem 1.5rem rgba(28,23,17,.3),0 0 0 5px rgba(238,230,211,.28),inset 0 0 1.4rem rgba(var(--cycle-accent-rgb),.2); }

html[data-theme="dark"] .glass-instrument__plate { --hero-image-opacity: .86; }
html[data-theme="dark"] .glass-instrument__plate {
  background: #0b1115;
  box-shadow: 0 1px 0 rgba(229,240,238,.12) inset, 0 1.4rem 3rem rgba(0,0,0,.42);
}
html[data-theme="dark"] .glass-instrument__plate > img,
html[data-theme="dark"] .glass-instrument__sheet > img,
html[data-theme="dark"] .glass-instrument__puzzle-tile {
  opacity: .86;
  filter: grayscale(1) invert(.88) contrast(.94) brightness(.82);
  mix-blend-mode: normal;
}
html[data-theme="dark"] .glass-instrument__mirror-art--light { display: none; }
html[data-theme="dark"] .glass-instrument__mirror-art--dark {
  display: block;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}
html[data-theme="dark"] .glass-instrument__sidecar .glass-instrument__field {
  --glass-mirror-background: linear-gradient(145deg, rgba(255,255,255,.48), transparent 44%), #f1ecdf;
  --glass-board-background: linear-gradient(145deg, rgba(255,255,255,.48), transparent 42%), repeating-linear-gradient(171deg, rgba(72,61,47,.055) 0 1px, transparent 1px 13px), #f1ecdf;
  color: #28231e;
  border-color: rgba(77,67,53,.7);
  background-color: #f1ecdf;
  background:
    linear-gradient(145deg, rgba(255,255,255,.48), transparent 42%),
    repeating-linear-gradient(171deg, rgba(72,61,47,.055) 0 1px, transparent 1px 13px),
    #f1ecdf;
  box-shadow: inset 0 0 1.1rem rgba(73,60,41,.12);
}
html[data-theme="dark"] .glass-instrument__field[data-board-mode="mirror"] {
  color: transparent;
}
html[data-theme="dark"] .glass-object { opacity: .82; }
html[data-theme="dark"] .glass-object img,
html[data-theme="dark"] .glass-object[data-cycle-active="true"] img {
  display: none !important;
}
html[data-theme="dark"] .glass-instrument__field[data-board-mode="board"] .glass-instrument__board-art {
  border-right-color: rgba(77,67,53,.28);
  background: #f1ecdf;
}
html[data-theme="dark"] .glass-instrument__field[data-board-mode="board"] .glass-instrument__board-art img {
  opacity: .3;
  filter: grayscale(.7) invert(.92) sepia(.12) saturate(.48) contrast(.96) brightness(1.06);
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .glass-instrument__board-art::after {
  background: linear-gradient(90deg, rgba(247,243,232,.16), transparent 35%, rgba(76,62,43,.1));
}
html[data-theme="dark"] .glass-instrument__board-lanes span { color: rgba(45,39,32,.72); }
html[data-theme="dark"] .glass-instrument__board-lanes span + span { border-top-color: rgba(77,67,53,.2); }
html[data-theme="dark"] .glass-instrument__field[data-board-mode="board"] .glass-instrument__reflection {
  border-color: rgba(var(--cycle-accent-rgb),.52);
  background: rgba(var(--cycle-accent-rgb),.08);
}
html[data-theme="dark"] .glass-instrument__reflection img {
  opacity: .82;
  filter: sepia(.12) saturate(.5) contrast(1.04) brightness(.68);
}
html[data-theme="dark"] .glass-instrument__board-copy > p { color: #28231e; }
html[data-theme="dark"] .glass-instrument__phase-meta > span,
html[data-theme="dark"] .glass-instrument__board-copy > small { color: #756b5e; }
html[data-theme="dark"] .glass-instrument__field[data-board-mode="board"] .glass-instrument__board-copy > p,
html[data-theme="dark"] .glass-instrument__field[data-board-mode="board"] .glass-instrument__board-copy > small { border-top-color: rgba(77,67,53,.2); }
html[data-theme="dark"] .glass-instrument__field[data-board-mode="board"] .glass-instrument__nla {
  background: rgba(255,252,244,.62);
}
html[data-theme="dark"] .glass-instrument__nla p { color: #28231e; }
html[data-theme="dark"] .glass-instrument__chalk-letter {
  color: #2f2a24;
  text-shadow: none;
}
html[data-theme="dark"] .glass-instrument__chalk-letter:nth-child(6n + 2) { color: #276b79; }
html[data-theme="dark"] .glass-instrument__chalk-letter:nth-child(6n + 3) { color: #8a611a; }
html[data-theme="dark"] .glass-instrument__chalk-letter:nth-child(6n + 4) { color: #655081; }
html[data-theme="dark"] .glass-instrument__chalk-letter:nth-child(6n + 5) { color: #8f4a3b; }
html[data-theme="dark"] .glass-instrument__chalk-letter:nth-child(6n) { color: #3f6f5b; }
html[data-theme="dark"] .glass-instrument__details {
  color: #28231e;
  background:
    linear-gradient(145deg, rgba(255,255,255,.48), transparent 44%),
    #f1ecdf;
  box-shadow: inset 0 0 1.5rem rgba(73,60,41,.12), 0 0 .9rem rgba(var(--cycle-accent-rgb),.16);
}
html[data-theme="dark"] .glass-instrument__details > p { color: #28231e; }
html[data-theme="dark"] .glass-instrument__details > small { color: #756b5e; }
html[data-theme="dark"] .glass-instrument__details .glass-instrument__details-nla {
  color: #28231e;
  background: rgba(255,252,244,.72);
}
html[data-theme="dark"] .glass-instrument__details-close {
  color: #4d4337;
  border-color: rgba(77,67,53,.32);
}
html[data-theme="dark"] .glass-instrument__statusbar { border-color: rgba(238,229,214,.2); color: #a9a396; }
html[data-theme="dark"] .glass-instrument__timebar { background: rgba(238,229,214,.16); }
html[data-theme="dark"] .glass-instrument__rail::before { background: rgba(238,229,214,.19); }
html[data-theme="dark"] .glass-instrument__rail button { color: #aba397; }
html[data-theme="dark"] .glass-instrument__rail button::before { border-color: rgba(238,229,214,.45); background: #11171c; }
html[data-theme="dark"] .glass-instrument__actions button { color: #c9c1b4; border-color: rgba(238,229,214,.22); background: rgba(17,23,28,.76); }

@media (max-width: 820px) {
  .greet.greet--overlay {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: auto;
    padding-inline: .8rem;
  }
  .greet--overlay .greet-copy {
    order: 1;
    width: min(28rem, 72%);
    margin: 0 auto;
    padding: 1rem 1.1rem 1.15rem;
  }
  .greet--overlay .greet-mark--loop {
    order: 2;
    width: min(42rem, 100%);
    margin-inline: auto;
  }
  .greet-mark--loop { --detached-w: 7.2rem; --detached-h: 8.9rem; }
  .glass-instrument__board-copy > p { font-size: clamp(.62rem,1.65vw,.78rem); }
}

@media (max-width: 520px) {
  .greet--overlay .greet-copy {
    width: 100%;
    margin: 0;
    padding: .9rem 1rem 1rem;
    background: linear-gradient(90deg, rgba(247,243,234,.95), rgba(247,243,234,.8));
  }
  .greet-mark--loop { width: min(40rem, 100%); }
  .greet-mark--loop { --detached-w: 6.4rem; --detached-h: 7.9rem; }
  .glass-instrument__field { padding-inline: 5%; }
  .glass-object { opacity: .58; }
  .glass-object[data-cycle-active="true"] { opacity: .98; }
  .glass-instrument__reflection { top: 3.5%; right: 4%; width: 17%; height: 21%; }
  .glass-instrument__board-art { flex-basis: 20%; }
  .glass-instrument__board-copy > small { letter-spacing: .03em; }
  .glass-instrument__console { grid-template-columns: 1fr; }
  .glass-instrument__statusbar { align-items: flex-start; flex-direction: column; gap: .18rem; }
  .glass-instrument__nla p { max-height: 3.54em; font-size: .82rem; line-height: 1.18; }
  .glass-instrument__details-trigger { font-size: .5rem; }
  .glass-instrument__details { padding: 8% 7%; }
  .glass-instrument__details > p { font-size: .78rem; }
  .glass-instrument__details .glass-instrument__details-nla { font-size: .72rem; }
  .glass-instrument__actions { justify-content: center; }
  .glass-instrument__actions button { min-height: 2.45rem; padding-inline: .82rem; }
  .greet-copy .greet-more { display: flex; flex-wrap: wrap; gap: .25rem .65rem; align-items: center; }
  .greet-copy .greet-more > span { display: none; }
  .greet-copy .greet-more a { min-height: 2.25rem; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-instrument__sheet,
  .glass-instrument__field,
  .glass-instrument__mirror-art { transition: none !important; }
  .glass-instrument__trace ellipse,.glass-instrument__pointer,.glass-instrument__field,.glass-instrument__field::before,.glass-object,.glass-instrument__reflection img { transition: none; }
  .glass-instrument__sidecar[data-mirror-stage="open"] .glass-instrument__field[data-board-mode="board"],
  .glass-instrument__field[data-board-mode="board"] > * { animation: none; }
  .glass-object[data-cycle-active="true"],.glass-reflection-arrive .glass-instrument__reflection img { animation: none; }
  .glass-instrument__puzzle { opacity: 1; transition: none; }
  .glass-instrument__puzzle-tile { animation: none !important; opacity: 1; transform: none; box-shadow: none; }
}
