:root {
  color-scheme: dark;
  --navy: #090e1b;
  --pale: #eef3f9;
  --muted: #adbacc;
  --signal: #fbc09f;
  --cyan: #9de5f5;
  --line: #677e95;
  --gutter: clamp(20px, 4.25vw, 80px);
  font-family: Arial, sans-serif;
  color: var(--pale);
  background: var(--navy);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ffe0a0; outline-offset: 5px; }
.chamber {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: min-content min-content 1fr min-content;
  align-items: start;
  min-height: clamp(700px, 100svh, 1100px);
  padding: clamp(18px, 3.05vw, 50px) var(--gutter) clamp(20px, 4.2vh, 50px);
  background: #080f1f;
}
.portrait, .stage-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.portrait { object-fit: cover; object-position: 50% 53%; transition: filter 520ms ease; }
.stage-wash {
  z-index: -1;
  background:
    linear-gradient(0deg, #090e1b 0%, transparent 27%),
    linear-gradient(180deg, #070d19dd, #080f1f21 30%, transparent 48%),
    linear-gradient(90deg, #070e1c99, transparent 36%, transparent 68%, #070e1c40);
}
.stage-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1;
}
.ticker, .material {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: .085em;
  color: var(--signal);
  font-size: clamp(.82rem, 1.04vw, 1.08rem);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: .3em;
  font-weight: 700;
}
.text-link:hover { color: var(--signal); }
h1 {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: .08em;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(2rem, 11.8vw, 14.2rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.085em;
  padding-right: .08em;
  overflow-wrap: anywhere;
  color: #eaf1fe;
  text-shadow: 0 3px 26px #040a1a88;
  pointer-events: none;
}
.attitude, .material {
  align-self: end;
  margin-bottom: clamp(28px, 7vh, 80px);
}
.attitude {
  font-size: clamp(1.4rem, 4.3vw, 4.7rem);
  font-weight: 750;
  line-height: .95;
  letter-spacing: -.065em;
  text-shadow: 0 2px 15px #000;
}
.material { justify-self: end; text-shadow: 0 2px 7px #000; }
#lamp-state { display: inline-block; font-weight: bold; }
.console {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(210px, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 8px;
  background: #101a2df2;
  border: 1px solid #7b99af;
  border-radius: 9px;
  box-shadow: inset 0 1px #c4def564, 0 18px 55px #06081160;
}
.destinations, .contract, .lamp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.service, #light, #copy {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid #586c82;
  border-radius: 5px;
  text-decoration: none;
  color: var(--pale);
  background: linear-gradient(155deg, #263d53, #172337 72%);
  font-weight: bold;
  white-space: nowrap;
}
.service:hover, #light:hover, #copy:hover { background: #314d67; border-color: #b0d9ee; }
.service:active, #light:active, #copy:active { background: #101a29; }
.service:first-child { color: #e5fff9; border-color: #80bdbd; }
.service img { flex: none; }
.contract {
  position: relative;
  padding: 5px 12px;
  border: 1px solid #374a64;
  border-radius: 5px;
  background: #080f1e;
  justify-content: space-between;
}
.contract-value { display: grid; min-width: 0; gap: 3px; }
#ca-label { color: var(--muted); font-size: .82rem; }
#ca {
  color: var(--cyan);
  font-size: .97rem;
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ca.manual-copy { white-space: normal; overflow-wrap: anywhere; }
#copy { min-height: 44px; padding: 6px 10px; color: var(--cyan); }
#copy-status:not(:empty) {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  padding: .52rem .7rem;
  color: #09101d;
  background: #d0f7ff;
  border-radius: 4px;
  font-weight: bold;
  font-size: .86rem;
}
.lamp { justify-content: space-between; }
.lamp-led {
  width: 14px;
  height: 14px;
  margin: 0 7px;
  flex: none;
  border: 2px solid #fff0d8;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}
#light { color: var(--signal); background: #291e25; border-color: #98694f; }
#light:hover { background: #462a30; }
#light:active { background: #19151d; }
.cobalt { --signal: #a9dcff; }
.cobalt .portrait, .cobalt .reflection img {
  filter: grayscale(.78) sepia(.58) hue-rotate(168deg) saturate(1.75);
}
.cobalt #light { background: #1a2c4a; border-color: #78b6e8; }
.cobalt #light:hover { background: #284969; }
.cobalt #light:active { background: #172841; }
.cobalt .lamp-led { border-color: #dcf4ff; }
.afterimage {
  position: relative;
  isolation: isolate;
  padding: clamp(55px, 8vw, 138px) var(--gutter) clamp(54px, 7vw, 120px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto repeat(3, minmax(32px, 5.25vw)) auto;
  gap: 0 clamp(6px, 1.4vw, 26px);
  background: linear-gradient(126deg, #1168ae -22%, #104082 48%, #131d50 106%);
  border-top: 1px solid #7bc4fa;
}
.afterimage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 68%;
  left: 5%;
  width: 63%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9939566 56%, #fcb89588);
  box-shadow: 0 0 24px #e5a3a24d;
  transform: rotate(-12deg);
  pointer-events: none;
}
.afterimage-copy { grid-row: 1; grid-column: 8 / -1; padding-bottom: 2rem; }
.afterimage h2 {
  font-size: clamp(3rem, 6.2vw, 7.5rem);
  letter-spacing: -.087em;
  line-height: .87;
  font-weight: 800;
  margin-bottom: 1.3rem;
}
.afterimage h2 em { font-style: normal; color: #ffbd99; }
.afterimage p { font-size: clamp(1rem, 1.38vw, 1.32rem); line-height: 1.55; max-width: 26ch; }
.workbench {
  grid-column: 1 / 8;
  grid-row: 1 / 5;
  align-self: start;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 92%);
  background: #10193d;
}
.afterimage img { display: block; width: 100%; height: auto; }
.reflection {
  grid-column: 7 / 13;
  grid-row: 3 / 6;
  z-index: 1;
  width: 84%;
  justify-self: end;
  align-self: start;
  margin-right: 10%;
}
.reflection img { transition: filter 520ms ease; border: 1px solid #8cc5e49c; }
figcaption { margin-top: .8rem; font-size: .98rem; color: #e1f4ff; min-height: 2.7rem; line-height: 1.45; }
.practical {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: clamp(24px, 5vw, 76px) var(--gutter);
  border-top: 1px solid #809cb3;
}
details { max-width: 47rem; }
summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: .35em .58em;
  border: 1px solid #5e7793;
  border-radius: 5px;
  font-size: clamp(1.25rem, 2vw, 2.2rem);
  font-weight: 750;
  background: #111d31;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:hover { border-color: var(--signal); }
.toggle-mark { display: grid; place-items: center; width: 1em; height: 1em; color: var(--signal); }
.toggle-mark::before, .toggle-mark::after { content: ""; grid-area: 1/1; background: currentColor; width: .66em; height: 2px; }
.toggle-mark::after { rotate: 90deg; }
details[open] .toggle-mark::after { visibility: hidden; }
ol { line-height: 1.55; padding-left: 1.7em; }
li + li { margin-top: .65em; }
li a { color: var(--cyan); }
footer .text-link { padding-inline: 3px; }
@media (max-width: 760px) {
  :root { --gutter: max(15px, 4vw); }
  .chamber {
    min-height: clamp(645px, 94svh, 890px);
    padding-top: 12px;
    padding-bottom: 20px;
  }
  .portrait { object-position: 50% 50%; }
  .stage-wash {
    background: linear-gradient(0deg, #090e1b 1%, #090e1bcc 16%, transparent 43%),
      linear-gradient(180deg, #080e1ccf, #080e1c10 28%, transparent 45%);
  }
  h1 { font-size: clamp(2.7rem, 13vw, 6rem); padding-top: .12em; }
  .attitude, .material { margin-bottom: 18px; }
  .attitude { font-size: clamp(1.35rem, 6.25vw, 2.6rem); }
  .console { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .destinations { grid-area: 1 / 1; gap: 5px; }
  .service, #light { min-height: 45px; padding: 5px 9px; gap: 4px; font-size: .91rem; }
  .service img { width: 20px; height: 20px; }
  .contract { grid-area: 2 / 1 / 3 / -1; min-height: 50px; }
  .lamp { grid-area: 1 / 2; gap: 5px; }
  .lamp-led { width: 11px; height: 11px; margin: 0 1px; }
  .afterimage { grid-template-rows: auto auto auto; }
  .afterimage::before { display: none; }
  .afterimage-copy { grid-column: 2 / -1; margin-bottom: 12px; padding-bottom: 1.25rem; }
  .afterimage h2 { margin-bottom: .75rem; }
  .workbench { grid-row: 2; grid-column: 1 / 12; }
  .reflection { grid-row: 3; grid-column: 4 / -1; margin: -10% 0 0; width: 100%; }
  .practical { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait, .reflection img { transition: none; }
}

