:root {
  --glyph-ink: #edf0e7;
  --glyph-muted: #b7c5c1;
  --glyph-gold: #e7bd77;
  --glyph-violet: #9c8bff;
  --glyph-night: #080914;
}

* { box-sizing: border-box; }

.glyph-archive-page {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--glyph-ink);
  background:
    radial-gradient(circle at 50% 40%, rgba(108, 86, 207, 0.18), transparent 25rem),
    radial-gradient(circle at 90% 92%, rgba(226, 179, 105, 0.1), transparent 27rem),
    var(--glyph-night);
  font-family: "Manrope", sans-serif;
}

.glyph-archive-shell { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.5rem) 0 4rem; }
.glyph-archive-header,
.glyph-archive-footer { display: flex; justify-content: space-between; gap: 1rem; color: rgba(215, 224, 222, 0.58); font: 0.68rem/1.3 "Manrope", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.glyph-archive-header a,
.glyph-archive-footer a { color: var(--glyph-gold); text-decoration: none; }
.glyph-archive-header a:hover,
.glyph-archive-header a:focus-visible,
.glyph-archive-footer a:hover,
.glyph-archive-footer a:focus-visible { color: #e6ddff; }

.glyph-archive-intro { max-width: 46rem; margin: clamp(3rem, 8vh, 7rem) 0 2.5rem; }
.glyph-kicker { margin: 0; color: var(--glyph-gold); font: 0.68rem/1.3 "Manrope", sans-serif; letter-spacing: 0.15em; text-transform: uppercase; }
.glyph-archive-intro h1 { margin: 0.45rem 0 0.8rem; background: linear-gradient(110deg, #f8f2d8, #c0b9ff 57%, #e1b466); background-clip: text; color: transparent; font: 500 clamp(3.2rem, 10vw, 8rem)/0.88 "Cinzel", Georgia, serif; letter-spacing: -0.07em; }
.glyph-archive-intro > p:last-child { color: var(--glyph-muted); font: 1.05rem/1.65 Georgia, serif; }

.glyph-instrument { position: relative; isolation: isolate; min-height: min(66svh, 680px); overflow: hidden; border: 1px solid rgba(172, 159, 255, 0.42); border-radius: 2rem; background: linear-gradient(145deg, rgba(28, 24, 67, 0.94), rgba(7, 12, 27, 0.97)); box-shadow: inset 0 0 7rem rgba(148, 129, 255, 0.14), 0 2rem 7rem rgba(0, 0, 0, 0.48); }
.glyph-instrument__field,
.glyph-instrument__rings,
.glyph-instrument__contours,
.glyph-instrument__substrate,
.glyph-instrument__glyph,
.glyph-instrument__grain { position: absolute; inset: 0; pointer-events: none; }
.glyph-instrument__field { background: radial-gradient(circle at 50% 50%, rgba(195, 176, 255, 0.45), rgba(77, 65, 156, 0.14) 25%, transparent 58%); transition: background 600ms ease, filter 600ms ease; }
.glyph-instrument__rings i { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(217, 210, 255, 0.22); border-radius: 50%; transform: translate(-50%, -50%); animation: glyph-ring 9s linear infinite; }
.glyph-instrument__rings i:nth-child(1) { width: 21rem; aspect-ratio: 1; }
.glyph-instrument__rings i:nth-child(2) { width: 34rem; aspect-ratio: 1; animation-direction: reverse; animation-duration: 14s; }
.glyph-instrument__rings i:nth-child(3) { width: 47rem; aspect-ratio: 1; animation-duration: 20s; }
.glyph-instrument__contours { opacity: 0.6; transition: opacity 600ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1); }
.glyph-instrument__contours i { position: absolute; width: 9rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(213, 203, 255, 0.46), transparent); box-shadow: 0 0 1.4rem rgba(166, 147, 255, 0.34); transition: opacity 500ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1); }
.glyph-instrument__contours i:nth-child(1) { top: 28%; left: 31%; transform: rotate(20deg); }
.glyph-instrument__contours i:nth-child(2) { top: 39%; right: 18%; width: 12rem; transform: rotate(-32deg); }
.glyph-instrument__contours i:nth-child(3) { bottom: 25%; left: 40%; width: 11rem; transform: rotate(11deg); }
.glyph-instrument__substrate { opacity: 0; transition: opacity 650ms ease; }
.glyph-instrument__substrate i { position: absolute; bottom: -3rem; width: 23rem; height: 13rem; border: 1px solid rgba(202, 190, 113, 0.44); border-bottom: 0; border-radius: 50% 50% 0 0; transform: rotate(-13deg); box-shadow: 0 -0.5rem 2rem rgba(103, 138, 82, 0.14); }
.glyph-instrument__substrate i:nth-child(1) { left: -3rem; }
.glyph-instrument__substrate i:nth-child(2) { bottom: 3rem; left: 26%; width: 17rem; height: 8rem; transform: rotate(18deg); }
.glyph-instrument__substrate i:nth-child(3) { right: -5rem; transform: rotate(10deg); }
.glyph-instrument__glyph { top: 50%; left: 50%; width: 13rem; height: 13rem; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(238, 222, 155, 0.65); box-shadow: 0 0 3rem rgba(173, 149, 255, 0.62), inset 0 0 2rem rgba(248, 217, 143, 0.14); transition: transform 650ms cubic-bezier(.2, .8, .2, 1), border-color 500ms ease; }
.glyph-instrument__glyph i { position: absolute; background: linear-gradient(90deg, transparent, rgba(239, 226, 185, 0.88), transparent); }
.glyph-instrument__glyph i:nth-child(1),
.glyph-instrument__glyph i:nth-child(2) { top: 50%; left: -20%; width: 140%; height: 1px; }
.glyph-instrument__glyph i:nth-child(2) { transform: rotate(90deg); }
.glyph-instrument__glyph i:nth-child(3) { top: 18%; left: 50%; width: 1px; height: 64%; transform: rotate(-45deg); }
.glyph-instrument__glyph i:nth-child(4) { top: 18%; left: 50%; width: 1px; height: 64%; transform: rotate(45deg); }
.glyph-instrument__grain { opacity: 0.22; background-image: radial-gradient(rgba(240, 233, 255, 0.5) 0.55px, transparent 0.8px); background-size: 4px 4px; mix-blend-mode: soft-light; }
.glyph-instrument > p { position: absolute; top: clamp(1.5rem, 5vw, 3rem); left: clamp(1.5rem, 5vw, 3rem); max-width: 19rem; color: rgba(224, 231, 234, 0.72); font: italic 1rem/1.5 Georgia, serif; }
.glyph-instrument > .glyph-instrument__lens { top: auto; right: clamp(1.5rem, 5vw, 3rem); bottom: clamp(1.5rem, 5vw, 3rem); left: auto; width: min(22rem, 48%); color: rgba(237, 240, 231, 0.7); font-size: 0.9rem; text-align: right; transition: color 400ms ease, opacity 400ms ease; }

.glyph-choices { position: absolute; inset: 0; z-index: 1; }
.glyph-choices button { position: absolute; width: 2.8rem; height: 2.8rem; padding: 0; border: 1px solid rgba(199, 186, 255, 0.34); border-radius: 50%; color: rgba(235, 239, 233, 0.84); cursor: pointer; background: radial-gradient(circle, rgba(214, 203, 255, 0.18), rgba(8, 11, 31, 0.1) 65%); box-shadow: 0 0 1.2rem rgba(166, 147, 255, 0.22); font: 600 0.65rem/1 "Manrope", sans-serif; letter-spacing: 0.08em; transition: width 260ms ease, border-color 180ms ease, border-radius 260ms ease, box-shadow 180ms ease, opacity 260ms ease; }
.glyph-choices button span { color: var(--glyph-gold); }
.glyph-choices button strong { display: none; margin-left: 0.7rem; font: 600 0.66rem/1 "Manrope", sans-serif; letter-spacing: 0.09em; text-transform: uppercase; }
.glyph-choices button[data-glyph-id="glyph_fog"] { top: 24%; left: 18%; }
.glyph-choices button[data-glyph-id="glyph_expand"] { top: 19%; right: 20%; }
.glyph-choices button[data-glyph-id="glyph_collapse"] { bottom: 23%; left: 24%; }
.glyph-choices button[data-glyph-id="glyph_soil"] { right: 18%; bottom: 18%; }
.glyph-choices button:hover,
.glyph-choices button:focus-visible { width: 8rem; border-color: rgba(231, 189, 119, 0.9); border-radius: 2rem; outline: none; box-shadow: 0 0 2rem rgba(231, 189, 119, 0.5); }
.glyph-choices button:hover strong,
.glyph-choices button:focus-visible strong,
.glyph-choices button.is-revealed strong { display: inline; }
.glyph-choices button.is-revealed { width: 8rem; border-color: rgba(231, 189, 119, 0.7); border-radius: 2rem; background: rgba(74, 58, 143, 0.68); }
.glyph-choices button:hover,
.glyph-choices button:focus-visible,
.glyph-choices button[aria-pressed="true"] { border-color: rgba(231, 189, 119, 0.9); outline: none; background: rgba(96, 79, 177, 0.82); box-shadow: 0 0 2.5rem rgba(231, 189, 119, 0.5); }

.glyph-reading { position: relative; width: min(46rem, 92%); margin: clamp(-1.5rem, -3vw, -2.5rem) 0 0 auto; padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid rgba(190, 177, 255, 0.38); border-radius: 1rem; background: linear-gradient(135deg, rgba(33, 28, 78, 0.94), rgba(7, 12, 27, 0.97)); box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.34); }
.glyph-reading h2 { margin: 0.45rem 0 0.6rem; font: 500 clamp(1.8rem, 4vw, 3.2rem)/1 "Cinzel", Georgia, serif; }
.glyph-reading > p:not(.glyph-kicker) { color: var(--glyph-muted); font: 1rem/1.65 Georgia, serif; }
.glyph-reading__rule { margin: 1.1rem 0 0; border-left: 1px solid rgba(231, 189, 119, 0.55); padding-left: 0.8rem; color: rgba(237, 240, 231, 0.8) !important; font-size: 0.9rem !important; }
.glyph-reading dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0 0; }
.glyph-reading dl div { border-top: 1px solid rgba(190, 177, 255, 0.25); padding-top: 0.75rem; }
.glyph-reading dt { color: var(--glyph-gold); font: 700 0.58rem/1 "Manrope", sans-serif; letter-spacing: 0.13em; text-transform: uppercase; }
.glyph-reading dd { margin: 0.5rem 0 0; color: var(--glyph-ink); font: 0.82rem/1.4 Georgia, serif; }
.glyph-reading__open { display: inline-block; margin-top: 1.5rem; border-bottom: 1px solid rgba(231, 189, 119, 0.7); color: var(--glyph-gold); font: 700 0.66rem/1.3 "Manrope", sans-serif; letter-spacing: 0.12em; padding-bottom: 0.32rem; text-decoration: none; text-transform: uppercase; }
.glyph-reading__open:hover,
.glyph-reading__open:focus-visible { color: #e6ddff; outline: none; }
.glyph-reading__discovery { margin: 1rem 0 0; color: rgba(215, 224, 222, 0.56); font: 0.68rem/1.5 "Manrope", sans-serif !important; letter-spacing: 0.08em; text-transform: uppercase; }
.glyph-archive-footer { flex-wrap: wrap; margin-top: 3rem; }
.glyph-archive-footer p { width: 100%; color: rgba(215, 224, 222, 0.44); font-size: 0.62rem; }

.glyph-instrument[data-glyph-state="fog"] .glyph-instrument__field { background: radial-gradient(circle at 30% 59%, rgba(201, 218, 228, 0.28), rgba(115, 116, 164, 0.13) 27%, transparent 65%); filter: saturate(0.7) blur(0.25px); }
.glyph-instrument[data-glyph-state="fog"] .glyph-instrument__rings { opacity: 0.2; filter: blur(1.4px); }
.glyph-instrument[data-glyph-state="fog"] .glyph-instrument__contours { opacity: 0.23; filter: blur(0.8px); }
.glyph-instrument[data-glyph-state="fog"] .glyph-choices button:not(.is-revealed):not([aria-pressed="true"]) { opacity: 0.38; }
.glyph-instrument[data-glyph-state="fog"] .glyph-instrument__glyph { border-color: rgba(217, 229, 224, 0.88); box-shadow: 0 0 2rem rgba(195, 220, 224, 0.42), inset 0 0 2rem rgba(190, 210, 218, 0.1); }
.glyph-instrument[data-glyph-state="fog"] .glyph-instrument__lens { color: rgba(225, 238, 239, 0.82); }
.glyph-instrument[data-glyph-state="expand"] .glyph-instrument__field { background: radial-gradient(circle at 50% 50%, rgba(143, 225, 196, 0.6), rgba(94, 125, 232, 0.2) 32%, transparent 70%); }
.glyph-instrument[data-glyph-state="expand"] .glyph-instrument__glyph { transform: translate(-50%, -50%) rotate(0deg) scale(1.35); border-color: rgba(153, 249, 202, 0.85); }
.glyph-instrument[data-glyph-state="expand"] .glyph-instrument__rings { transform: scale(1.16); }
.glyph-instrument[data-glyph-state="expand"] .glyph-instrument__contours { opacity: 0.94; transform: scale(1.16); }
.glyph-instrument[data-glyph-state="expand"] .glyph-instrument__contours i { box-shadow: 0 0 2rem rgba(153, 249, 202, 0.44); }
.glyph-instrument[data-glyph-state="collapse"] .glyph-instrument__field { background: radial-gradient(circle at 50% 50%, rgba(230, 170, 114, 0.5), rgba(81, 26, 71, 0.3) 24%, transparent 48%); filter: contrast(1.3); }
.glyph-instrument[data-glyph-state="collapse"] .glyph-instrument__glyph { transform: translate(-50%, -50%) rotate(45deg) scale(0.52); border-color: rgba(247, 171, 120, 0.9); }
.glyph-instrument[data-glyph-state="collapse"] .glyph-instrument__rings { opacity: 0.4; transform: scale(0.64); }
.glyph-instrument[data-glyph-state="collapse"] .glyph-instrument__contours { opacity: 0.12; transform: scale(0.72); }
.glyph-instrument[data-glyph-state="collapse"] .glyph-instrument__grain { opacity: 0.06; }
.glyph-instrument[data-glyph-state="soil"] .glyph-instrument__field { background: radial-gradient(circle at 50% 50%, rgba(196, 169, 97, 0.45), rgba(66, 104, 67, 0.28) 31%, transparent 65%); }
.glyph-instrument[data-glyph-state="soil"] .glyph-instrument__glyph { transform: translate(-50%, -50%) rotate(135deg) scale(0.9); border-color: rgba(224, 203, 121, 0.88); }
.glyph-instrument[data-glyph-state="soil"] .glyph-instrument__substrate { opacity: 1; }
.glyph-instrument[data-glyph-state="soil"] .glyph-instrument__contours { opacity: 0.28; }
.glyph-instrument[data-glyph-state="soil"] .glyph-instrument__grain { opacity: 0.1; }

@keyframes glyph-ring { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .glyph-instrument__rings i { animation: none; } .glyph-instrument *, .glyph-instrument *::before, .glyph-instrument *::after { transition-duration: 0.01ms !important; } }
@media (max-width: 680px) { .glyph-instrument { min-height: 40rem; } .glyph-choices button[data-glyph-id="glyph_fog"] { top: 29%; left: 10%; } .glyph-choices button[data-glyph-id="glyph_expand"] { top: 22%; right: 10%; } .glyph-choices button[data-glyph-id="glyph_collapse"] { bottom: 27%; left: 12%; } .glyph-choices button[data-glyph-id="glyph_soil"] { right: 10%; bottom: 18%; } .glyph-instrument > .glyph-instrument__lens { width: min(19rem, 74%); } .glyph-reading { width: 100%; } .glyph-reading dl { grid-template-columns: 1fr; } }
