@charset "UTF-8";

:root {
  color-scheme: dark;
  --paper: #eafff9;
  --ink: #060b11;
  --accent: 118 255 207;
  --shadow: 38 143 190;
  --edge: rgb(var(--accent) / .19);
  --sans: "Avenir Next", "Bahnschrift", "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

:root[data-spectrum="solar"] { --accent: 255 200 110; --shadow: 238 58 45; }
:root[data-spectrum="phosphor"] { --accent: 227 162 255; --shadow: 75 60 210; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); }
body { margin: 0; color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 5px; }
::selection { background: rgb(var(--accent)); color: var(--ink); }

.composition {
  position: relative;
  isolation: isolate;
  min-height: 750px;
  min-height: max(750px, 100svh);
  display: grid;
  grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
  overflow: clip;
  background: linear-gradient(122deg, #071214 0%, var(--ink) 36%, #030609 100%);
}

.composition::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, #64e6dd05 3px 4px);
  pointer-events: none;
}

.masthead, .dock {
  position: relative;
  z-index: 2;
  min-height: clamp(74px, 10vh, 100px);
  margin-inline: clamp(27px, 5.75vw, 110px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead { border-bottom: 1px solid var(--edge); }
.dock { border-top: 1px solid var(--edge); }

.signature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .34em;
  font-size: .94rem;
  font-weight: 700;
  white-space: nowrap;
}

.monogram {
  position: relative;
  width: 34px;
  height: 30px;
  background: linear-gradient(40deg, rgb(var(--accent)), #dafcf4);
  clip-path: polygon(0 100%, 20% 100%, 45% 55%, 57% 77%, 50% 89%, 100% 89%, 53% 1%);
}

.monogram::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #071012;
  clip-path: polygon(33% 53%, 58% 59%, 73% 84%, 38% 83%);
}

.motion, .spectrum {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #b2c7c7;
  font-size: .81rem;
  letter-spacing: .08em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .24s, color .24s, border-color .24s;
}

.motion { border-color: #8fdabb3d; }
.motion:hover, .spectrum:hover { background: rgb(var(--accent) / .1); color: var(--paper); }
.motion-icon { width: 8px; height: 10px; border-inline: 2px solid rgb(var(--accent)); }
.motion[aria-pressed="true"] .motion-icon { border: 0; background: rgb(var(--accent)); clip-path: polygon(0 0, 100% 50%, 0 100%); }

.exhibit {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  margin-inline: clamp(27px, 5.75vw, 110px);
}

.intro { position: relative; z-index: 1; width: min(46%, 520px); pointer-events: none; padding-block: 38px; }
.intro a { pointer-events: auto; }

.eyebrow, .dock-label {
  margin: 0;
  color: rgb(var(--accent));
  font-size: .79rem;
  font-weight: 600;
  letter-spacing: .25em;
}

h1 {
  margin: .16em 0 .18em -.046em;
  color: var(--paper);
  font: 800 clamp(5.5rem, 11.4vw, 13rem) / .72 var(--sans);
  letter-spacing: -.103em;
  text-shadow: 0 5px 45px #04221eba;
}

h1 > span { display: block; }
h1 > span + span { margin-top: .07em; }
.period { color: rgb(var(--accent)); text-shadow: 0 0 32px rgb(var(--accent) / .42); }

.description {
  max-width: 27ch;
  margin: 0;
  color: #afc3c4;
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.91;
  letter-spacing: .055em;
}

.jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  min-height: 38px;
  color: var(--paper);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--accent) / .48);
  transition: color .2s, border-color .2s;
}

.jump:hover { color: rgb(var(--accent)); border-color: rgb(var(--accent)); }
.cross { position: relative; width: 11px; height: 11px; color: rgb(var(--accent)); }
.cross::before, .cross::after { content: ""; position: absolute; width: 100%; height: 1px; top: 50%; background: currentColor; }
.cross::after { transform: rotate(90deg); }

.art {
  position: absolute;
  width: 83%;
  inset: 0 -5% 0 auto;
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.field, .afterglow, canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.field, .afterglow { pointer-events: none; }

.field {
  background:
    radial-gradient(ellipse at 58% 46%, rgb(var(--shadow) / .19), transparent 58%),
    repeating-linear-gradient(90deg, #6dfdeb09 0 1px, transparent 1px 7.2%),
    repeating-linear-gradient(0deg, #6dfdeb09 0 1px, transparent 1px 10.7%);
  mask-image: radial-gradient(ellipse at 55% 50%, #000 20%, transparent 73%);
}

.afterglow {
  display: none;
  inset: 12% 8% 12% 18%;
  width: auto;
  height: auto;
  background: radial-gradient(ellipse at 50% 50%, transparent 33%, rgb(var(--accent) / .7) 49%, rgb(var(--shadow) / .28) 50%, transparent 65%);
  filter: blur(14px);
  transform: rotate(-24deg) scaleY(.6);
}

html:not(.live) .afterglow { display: block; }
canvas { display: block; touch-action: pan-y; cursor: grab; outline-offset: -6px; }
canvas:active { cursor: grabbing; }

.viewfinder, .stage-axis { position: absolute; pointer-events: none; }
.viewfinder { inset: 8.5% 6% 8.5% 17%; color: rgb(var(--accent) / .34); }
.viewfinder::before, .viewfinder::after { content: ""; position: absolute; width: 27px; height: 27px; }
.viewfinder::before { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.viewfinder::after { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }

.stage-axis { right: 5.8%; top: 12%; display: flex; gap: 5px; align-items: flex-start; }
.stage-axis i { display: block; width: 1px; height: 6px; background: rgb(var(--accent) / .48); }
.stage-axis i:nth-child(3) { height: 12px; }

figcaption {
  position: absolute;
  right: calc(6% + 12px);
  bottom: 9.8%;
  color: #94afb2;
  font-size: .78rem;
  letter-spacing: .13em;
  pointer-events: none;
}

.dock-label { display: flex; align-items: center; gap: 11px; color: #b5c9c9; }
.payload { width: 18px; height: 8px; background: repeating-linear-gradient(105deg, rgb(var(--accent)) 0 1px, transparent 1px 4px); }
.spectra { display: flex; align-items: center; gap: 5px; }
.spectrum[aria-pressed="true"] { background: rgb(var(--accent) / .11); border-color: rgb(var(--accent) / .34); color: var(--paper); }
.spectrum i { width: 7px; height: 7px; border-radius: 50%; background: var(--chip); box-shadow: 0 0 11px var(--chip); }
.spectrum[data-palette="glacial"] { --chip: #74ecc1; }
.spectrum[data-palette="solar"] { --chip: #ffc670; }
.spectrum[data-palette="phosphor"] { --chip: #dfa7ff; }

.live .intro { animation: reveal .85s cubic-bezier(.21,.65,.27,1) both; }
.live .art { animation: appear 1.14s ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 1700px) {
  .art { width: 79%; }
}

@media (max-width: 760px) {
  .composition { min-height: 100svh; }
  .masthead, .dock, .exhibit { margin-inline: 22px; }
  .masthead { min-height: 66px; }
  .exhibit { display: block; min-height: 0; }
  .intro { width: 100%; padding: 38px 0 0; }
  h1 { font-size: clamp(4.15rem, 16.5vw, 7.5rem); letter-spacing: -.087em; }
  h1 > span { display: inline; }
  .eyebrow, figcaption { font-size: .74rem; }
  .description { max-width: 30ch; font-size: .88rem; }
  .jump { display: none; }
  .art { position: relative; width: calc(100% + 28px); min-height: 310px; height: 60vh; max-height: 520px; inset: auto; margin-top: -22px; margin-inline: -14px; }
  .viewfinder { inset: 8.5% 8% 8.5% 8%; }
  .stage-axis { right: 8%; }
  figcaption { right: calc(8% + 12px); }
  .dock { min-height: 70px; }
  .motion, .spectrum { min-height: 40px; font-size: .76rem; padding: 0 10px; }
  .spectra { gap: 3px; }
  .dock-label { gap: 7px; }
}

@media (max-width: 350px) {
  h1 { font-size: 18vw; }
  .composition > * { margin-inline: 16px; }
  .spectrum { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
