/* AURA HACKER — SPECTRUM ENGINE design system.
   The accent color of every UI element is var(--spec): the true RGB of the
   monochromator's current wavelength, written live by spectrum.js. Drag the
   slider and the whole instrument re-tints. Chrome stays near-black —
   dispersed light owns the page. */
/* Bank Gothic — the brand display face (self-hosted, like everything else) */
@font-face {
  font-family: 'Bank Gothic';
  src: url('../fonts/BankGothicLtBTLight.woff') format('woff');
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: 'Bank Gothic';
  src: url('../fonts/BankGothicMediumBT.woff') format('woff');
  font-weight: 400 600; font-display: swap;
}
@font-face {
  font-family: 'Bank Gothic';
  src: url('../fonts/BankGothicBold.woff') format('woff');
  font-weight: 700 900; font-display: swap;
}

:root {
  --bg: #060609;
  --display: 'Bank Gothic', 'Segoe UI', Arial, sans-serif;
  --ink: #e9e7e2;
  --mut: #7e7b74;
  --spec: rgb(57,255,20);
  --spec-soft: rgba(57,255,20,.34);
  --line: #1d1d24;
  --mono: "Consolas", "SFMono-Regular", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.6 "Segoe UI", Arial, sans-serif; overflow-x: hidden; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

/* ---- boot veil ---- */
#boot {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease .1s;
}
#boot.done { opacity: 0; pointer-events: none; }
#boot-inner { text-align: center; }
#boot-title {
  font-family: var(--display);
  font-weight: 700; font-size: 44px; letter-spacing: .14em; opacity: 0;
  animation: bootin 1.1s cubic-bezier(.16,1,.3,1) .15s forwards;
}
#boot-title b { color: var(--spec); font-weight: 800; }
#boot-line {
  font-family: var(--mono); font-size: 12px; letter-spacing: .4em;
  color: var(--spec); margin-top: 18px; opacity: 0;
  animation: bootin .8s ease .5s forwards;
}
#boot-spectrum {
  width: 300px; max-width: 64vw; height: 3px; margin: 26px auto 0;
  background: linear-gradient(90deg,
    #000 0%, #2800a0 4%, #4400ff 12%, #0078ff 24%, #00d8c8 34%,
    #18e000 46%, #b8f000 58%, #ffc800 68%, #ff6400 78%, #e80000 90%, #000 100%);
  opacity: 0; animation: bootin .9s ease .8s forwards;
}
#boot-c { animation: led .7s infinite; }
@keyframes bootin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes led { 50% { opacity: .35; } }

/* ---- brand lockup: Aura Hacker, a product of Aimed Research LLC ---- */
#brand {
  position: fixed; top: 14px; left: 18px; z-index: 50;
  text-decoration: none; line-height: 1.25;
}
#brand .bword {
  display: block; font-family: var(--display);
  font-weight: 700; font-size: 19px; letter-spacing: .12em;
  color: var(--ink); text-shadow: 0 1px 8px rgba(0,0,0,.9);
}
#brand .bword b { color: var(--spec); font-weight: 800; }
#brand .bof {
  display: block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .18em; color: var(--mut); margin-top: 3px;
  transition: color .3s;
}
#brand:hover .bof { color: var(--spec); }

/* ---- HUD: the six axes ---- */
#hud {
  animation: bootin .9s ease 2.4s backwards;
  position: fixed; top: 14px; right: 16px; z-index: 50;
  font-family: var(--mono); font-size: 14px; color: var(--mut);
  text-align: right; pointer-events: none; line-height: 1.7;
}
#hud b { color: var(--spec); font-weight: normal; }
#hud .ax { letter-spacing: .1em; }

/* ---- THE MONOCHROMATOR bar ---- */
#monobar {
  animation: clockin .9s cubic-bezier(.16,1,.3,1) 2.1s backwards;
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 50; display: flex; align-items: center; gap: 12px;
  background: rgba(8,8,12,.84); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 20px;
  font-family: var(--mono); font-size: 15px; color: var(--ink);
  box-shadow: 0 6px 30px rgba(0,0,0,.6);
}
@keyframes clockin { from { opacity: 0; transform: translateX(-50%) translateY(26px); }
  to { opacity: 1; transform: translateX(-50%); } }
#mono-led {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--spec); box-shadow: 0 0 12px var(--spec);
}
#mono-label { letter-spacing: .18em; color: var(--mut); }
/* the slider track IS the visible spectrum; the thumb is an exit slit */
#mono {
  -webkit-appearance: none; appearance: none;
  width: 310px; height: 18px; background: transparent; cursor: ew-resize;
}
#mono::-webkit-slider-runnable-track {
  height: 10px; border-radius: 4px; border: 1px solid #26262e;
  background: linear-gradient(90deg,
    #1a0030 0%, #4400ff 10%, #0078ff 22%, #00d8c8 32%,
    #18e000 44%, #b8f000 56%, #ffc800 66%, #ff6400 76%, #e80000 88%, #300000 100%);
}
#mono::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 9px; height: 28px; margin-top: -10px; border-radius: 2px;
  background: #fff; border: 1px solid #000;
  box-shadow: 0 0 10px #fff, 0 0 22px var(--spec);
}
#mono::-moz-range-track {
  height: 10px; border-radius: 4px; border: 1px solid #26262e;
  background: linear-gradient(90deg,
    #1a0030 0%, #4400ff 10%, #0078ff 22%, #00d8c8 32%,
    #18e000 44%, #b8f000 56%, #ffc800 66%, #ff6400 76%, #e80000 88%, #300000 100%);
}
#mono::-moz-range-thumb {
  width: 9px; height: 28px; border-radius: 2px;
  background: #fff; border: 1px solid #000;
  box-shadow: 0 0 10px #fff, 0 0 22px var(--spec);
}
#mono-readout { min-width: 98px; text-align: right; color: var(--spec); }
#mono-line {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 14px; letter-spacing: .12em;
  color: var(--spec); opacity: 0; transition: opacity .5s;
  text-shadow: 0 0 12px var(--spec);
}
#mono-line.hit { opacity: 1; animation: lineflash .9s; }
@keyframes lineflash {
  0% { transform: translateX(-50%) scale(1.5); filter: brightness(3); }
  100% { transform: translateX(-50%) scale(1); filter: none; }
}

/* ---- content panels ---- */
#content { position: relative; z-index: 10; }
.panel {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 12vh 8vw; position: relative;
  pointer-events: none;
}
.panel a, .panel button, .panel input, .panel select, .panel label { pointer-events: auto; }
.big {
  font-family: var(--display);
  font-size: 10.5vw; line-height: .96; margin: 0; letter-spacing: .01em;
  color: var(--ink); font-weight: 700;
  text-shadow: 0 2px 30px rgba(0,0,0,.7);
  will-change: transform;
}
.kicker {
  font-family: var(--mono); color: var(--spec); letter-spacing: .35em;
  font-size: 13px; margin-top: 3vh;
}
.hint { color: var(--mut); font-family: var(--mono); font-size: 12px; }
.panel h2 { font-family: var(--display); font-size: 4.2vw; margin: 0 0 2vh 0;
  color: var(--ink); letter-spacing: .01em; font-weight: 700; }
.panel h2 i { color: var(--spec); font-style: normal; }
.panel p { max-width: 560px; color: var(--ink); }
.panel p.mut { color: var(--mut); }

/* glass cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1020px; }
.card {
  display: block; padding: 22px 18px; border-radius: 10px;
  background: rgba(13,13,18,.55); border: 1px solid var(--line);
  backdrop-filter: blur(6px); text-decoration: none; color: var(--ink);
  transition: transform .35s cubic-bezier(.16,1,.3,1),
              border-color .35s, background .35s, filter .9s ease;
}
.card b { display: block; color: var(--spec); font-family: var(--mono);
  letter-spacing: .12em; font-size: 13px; }
.card i { display: block; color: var(--mut); font-style: normal; font-size: 13px; margin-top: 8px; }
.card:hover {
  transform: translateY(-6px) rotateX(6deg);
  border-color: var(--spec); background: rgba(16,16,24,.75);
}

/* page-transition spectral sweep veil */
#sweep {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background: var(--spec); opacity: 0;
}
#sweep.go { animation: sweepgo .62s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes sweepgo {
  0% { opacity: 0; } 35% { opacity: .85; } 100% { opacity: 1; }
}

/* footer attribution (subpages) — white + larger (CEO 2026-06-14) */
.attrib {
  font-family: var(--mono); font-size: 15px; color: var(--ink);
  letter-spacing: .08em;
}

/* the finale block reads at body size (CEO 2026-06-12) */
#s-finale .kicker { font-size: 16px; }
#s-finale .card b { font-size: 16px; }
#s-finale .card i { font-size: 15px; }
#s-finale .attrib { font-size: 16px; }
.attrib a { color: var(--spec); text-decoration: none; }
.attrib a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .big { font-size: 16vw; }
  .panel h2 { font-size: 8vw; }
  .cards { grid-template-columns: 1fr; }
  #mono { width: 150px; }
  #hud { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #monobar { animation: none; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

/* faint instrument scanline veil */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px,
    transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* entrance choreography */
.panel > * { opacity: 0; transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.panel.inview > * { opacity: 1; transform: none; }
.panel.inview > *:nth-child(2) { transition-delay: .12s; }
.panel.inview > *:nth-child(3) { transition-delay: .24s; }
.card { opacity: 0; transform: translateY(30px) scale(.86);
  transition: opacity .55s cubic-bezier(.16,1,.3,1),
              transform .65s cubic-bezier(.34,1.56,.64,1),
              border-color .35s, background .35s, filter .9s ease;
  filter: brightness(2.4) blur(2px); }
.panel.inview .card { opacity: 1; transform: none; filter: none; }
.panel.inview .card:nth-child(1) { transition-delay: .05s; }
.panel.inview .card:nth-child(2) { transition-delay: .12s; }
.panel.inview .card:nth-child(3) { transition-delay: .19s; }
.panel.inview .card:nth-child(4) { transition-delay: .26s; }
.panel.inview .card:nth-child(5) { transition-delay: .33s; }
.panel.inview .card:nth-child(6) { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .panel > *, .card { opacity: 1 !important; transform: none !important; transition: none !important; }
}
