/* ==================================================================
   gokulsriram.com — flight deck
   ================================================================== */

:root {
  --void:      #06041a;
  --ink:       #0b0826;
  --hud:       #4de8ff;
  --hud-soft:  #58b6e0;
  --hud-dim:   #35509c;
  --amber:     #ffd24d;
  --magenta:   #ff4dd2;
  --warn:      #ff5c8a;
  --text:      #ccd8f0;
  --muted:     #8492b8;
  --faint:     #57638f;

  --line:      rgba(77, 232, 255, 0.24);
  --line-soft: rgba(77, 232, 255, 0.12);
  --glass:     rgba(10, 7, 34, 0.80);
  --glass-hi:  rgba(18, 14, 48, 0.86);

  --mono: 'Chakra Petch', ui-monospace, 'SF Mono', Menlo, monospace;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --notch: 16px;
  --gutter: clamp(14px, 2.2vw, 34px);
  --bar: 46px;
  --console: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
}

body { touch-action: manipulation; }

a { color: var(--hud); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(77, 232, 255, 0.28); color: #fff; }

/* ---------------------------------------------- scrollbars */
.scroller { scrollbar-width: thin; scrollbar-color: var(--hud-dim) transparent; }
.scroller::-webkit-scrollbar { width: 6px; height: 6px; }
.scroller::-webkit-scrollbar-track { background: transparent; }
.scroller::-webkit-scrollbar-thumb {
  background: var(--hud-dim);
  border-radius: 0;
}
.scroller::-webkit-scrollbar-thumb:hover { background: var(--hud-soft); }

/* ================================================== viewport */

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

/* Canopy glass: vignette, a faint curvature falloff, and a reflection
   streak so the WebGL reads as something seen *through* something. */
#canopy {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 45%,
      transparent 42%,
      rgba(12, 4, 40, 0.32) 74%,
      rgba(5, 2, 20, 0.86) 100%),
    linear-gradient(103deg,
      transparent 34%,
      rgba(160, 210, 255, 0.035) 45%,
      rgba(190, 150, 255, 0.070) 47.5%,
      transparent 56%);
}

/* Fine scanlines — barely there, but they sell the display. */
#canopy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(77, 232, 255, 0.035) 0 1px,
    transparent 1px 3px);
  opacity: 0.5;
  mix-blend-mode: screen;
}

/* Warp flash / speed vignette, driven from JS. */
#warpfx {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(60% 60% at 50% 50%,
      rgba(200, 240, 255, 0.12) 0%,
      transparent 55%),
    radial-gradient(120% 90% at 50% 50%,
      transparent 28%,
      rgba(139, 92, 255, 0.26) 72%,
      rgba(255, 77, 210, 0.20) 88%,
      rgba(14, 6, 46, 0.72) 100%);
}

/* ==================================================== chrome */

#chrome {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
#chrome > * { pointer-events: auto; }

/* --- shared HUD type ------------------------------------- */
.hud-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hud-soft);
}
.hud-value {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hud);
}

/* --- frame brackets -------------------------------------- */
#frame {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}
#frame svg { width: 100%; height: 100%; display: block; }
#frame path, #frame line { stroke: var(--hud); fill: none; }

/* --- top bar --------------------------------------------- */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(to bottom, rgba(4, 7, 13, 0.86), transparent);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
  padding: 6px 0;
}
.brand .mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--hud);
}
.brand .sep { color: var(--faint); font-size: 11px; }
.brand .who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.brand:hover .who { color: var(--text); }

#destination {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#destination .dot {
  width: 6px; height: 6px;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
  animation: blip 2.4s var(--ease) infinite;
  flex: none;
}
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
#destination .name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#status {
  display: flex;
  align-items: center;
  gap: 18px;
}
#status .stat { display: flex; align-items: baseline; gap: 6px; }
#status .stat .k { color: var(--faint); }
#status .stat .v { color: var(--hud-soft); }

/* --- side rails: telemetry ticks -------------------------- */
.rail {
  position: fixed;
  top: calc(var(--bar) + 26px);
  bottom: calc(var(--console) + 26px);
  width: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 9;
}
.rail.left  { left: calc(var(--gutter) - 14px); }
.rail.right { right: calc(var(--gutter) - 14px); }
.rail i {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--hud);
  opacity: 0.18;
  transform-origin: center;
}
.rail i:nth-child(4n + 1) { opacity: 0.42; }

/* --- bottom console: navigation --------------------------- */
#console {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--console);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  background: linear-gradient(to top, rgba(4, 7, 13, 0.92) 30%, transparent);
}

.route-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  flex: none;
  padding-right: 14px;
  align-self: center;
}

#nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
#nav::-webkit-scrollbar { display: none; }

.nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 18px;
  min-width: 108px;
  text-align: left;
  border-left: 1px solid var(--line-soft);
  transition: background 0.35s var(--ease);
  white-space: nowrap;
}
.nav-btn:last-child { border-right: 1px solid var(--line-soft); }
.nav-btn .idx {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--faint);
  transition: color 0.3s;
}
.nav-btn .lbl {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s, transform 0.35s var(--ease);
}
.nav-btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--hud);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-btn:hover { background: rgba(77, 232, 255, 0.05); }
.nav-btn:hover .lbl { color: var(--text); }
.nav-btn:hover .idx { color: var(--hud-soft); }
.nav-btn:hover::after { transform: scaleX(1); }

.nav-btn.is-active { background: rgba(77, 232, 255, 0.08); }
.nav-btn.is-active .lbl { color: var(--hud); }
.nav-btn.is-active .idx { color: var(--amber); }
.nav-btn.is-active::after { transform: scaleX(1); background: var(--amber); }

#console .socials {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-left: auto;
  padding-left: 20px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  color: var(--faint);
  transition: color 0.3s, background 0.3s;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn:hover { color: var(--hud); background: rgba(77, 232, 255, 0.07); }

/* ==================================================== panel */

#panel-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--bar) + 20px) var(--gutter) calc(var(--console) + 12px);
}

#panel {
  pointer-events: auto;
  width: min(50vw, 620px);
  max-height: 100%;
  display: none;
  flex-direction: column;
  position: relative;
  background: var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    var(--notch) 100%,
    0 calc(100% - var(--notch)));
}
#panel.is-open { display: flex; }
#panel > .inner {
  position: relative;
  margin: 1px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    var(--notch) 100%,
    0 calc(100% - var(--notch)));
}

/* --- panel header ---------------------------------------- */
.p-head {
  flex: none;
  padding: 18px 26px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(to bottom, rgba(77, 232, 255, 0.045), transparent);
}
.p-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.p-crumbs .crumb {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.3s;
}
.p-crumbs button.crumb:hover { color: var(--hud); }
.p-crumbs .arrow { color: var(--faint); font-size: 9px; }
.p-crumbs .crumb.now { color: var(--hud-soft); }

.p-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.005em;
  color: #eaf3fb;
  margin: 0;
}
.p-title .ch,
.p-title .w { display: inline-block; will-change: transform, opacity, filter; }
.p-sub {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* --- panel body ------------------------------------------ */
.p-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 26px 30px;
  -webkit-overflow-scrolling: touch;
  /* fades the last line so it reads as more below */
  mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent 100%);
}
.p-body > * { will-change: transform, opacity; }
.p-body p {
  margin: 0 0 1.05em;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}
.p-body p:last-child { margin-bottom: 0; }
.p-body a { border-bottom: 1px solid var(--line); transition: border-color 0.3s, color 0.3s; }
.p-body a:hover { color: #d8efff; border-bottom-color: var(--hud); }

/* section rule with a label */
.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 16px;
}
.rule:first-child { margin-top: 0; }
.rule .t {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
  flex: none;
}
.rule .l { flex: 1; height: 1px; background: var(--line-soft); }

/* hero imagery inside the panel */
.p-hero {
  position: relative;
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.p-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}
.p-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 7, 13, 0.55), transparent 55%);
  pointer-events: none;
}
.p-hero.portrait img { aspect-ratio: 4 / 5; object-position: center 18%; }

/* Portrait beside the vitals, rather than a full-bleed headshot. */
.intro {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}
.intro .p-hero { margin: 0; }
.intro .specs { margin: 0; grid-template-columns: 1fr; }
.intro .specs .cell { padding: 13px 14px; }

/* key/value spec grid */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin: 0 0 22px;
}
.specs .cell { background: var(--ink); padding: 12px 14px; }
.specs .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 4px;
}
.specs .v { font-size: 13px; color: var(--text); font-weight: 500; }

/* tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }

.chip-group { margin: 0 0 16px; }
.chip-group:last-of-type { margin-bottom: 4px; }
.chip-group .chip-k {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.chip-group .chips { margin-bottom: 0; }
.chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hud-soft);
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  background: rgba(77, 232, 255, 0.04);
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.meta-row .badge { margin-bottom: 0; }
.meta-when {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 4px 10px;
  border: 1px solid rgba(255, 180, 84, 0.32);
  background: rgba(255, 180, 84, 0.07);
  margin-bottom: 16px;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--amber);
  animation: blip 2s infinite;
}

/* --- action buttons -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud);
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: rgba(77, 232, 255, 0.05);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.btn:hover {
  background: rgba(77, 232, 255, 0.13);
  border-color: var(--hud);
  transform: translateX(3px);
}
.btn .ar { transition: transform 0.35s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn.amber { color: var(--amber); border-color: rgba(255, 180, 84, 0.3); background: rgba(255, 180, 84, 0.07); }
.btn.amber:hover { background: rgba(255, 180, 84, 0.16); border-color: var(--amber); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* --- target cards ---------------------------------------- */
.targets { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft); }
.target {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--ink);
  text-align: left;
  width: 100%;
  transition: background 0.35s var(--ease);
}
.target:hover { background: rgba(77, 232, 255, 0.07); }
.target .thumb {
  width: 96px; height: 64px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  position: relative;
}
.target .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08) brightness(0.85);
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.target:hover .thumb img { transform: scale(1.09); filter: saturate(1) brightness(1); }
.target .t-copy { display: block; min-width: 0; }
.target .t-name {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e6f1fa;
  margin-bottom: 3px;
}
.target .t-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.target .t-go {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--faint);
  transition: color 0.3s, transform 0.35s var(--ease);
  white-space: nowrap;
}
.target:hover .t-go { color: var(--amber); transform: translateX(4px); }

/* --- experience entries ---------------------------------- */
.role { margin-bottom: 34px; }
.role:last-child { margin-bottom: 0; }
.role-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.role-head .ph {
  width: 64px; height: 64px;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  filter: saturate(0.8);
}
.role-title {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: #e6f1fa;
  line-height: 1.25;
}
.role-org {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hud-soft);
  margin-top: 5px;
}
.role-where {
  font-size: 12px;
  color: var(--faint);
  margin-top: 3px;
}
.role { padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.role:last-child { border-bottom: 0; padding-bottom: 0; }

/* ============================================ music player */

.tabs { display: flex; gap: 1px; background: var(--line-soft); margin-bottom: 20px; }
.tab {
  flex: 1;
  padding: 11px 8px;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.3s, color 0.3s;
  border-bottom: 2px solid transparent;
}
.tab:hover { background: rgba(77, 232, 255, 0.06); color: var(--text); }
.tab.is-active { color: var(--hud); border-bottom-color: var(--magenta); background: rgba(77, 232, 255, 0.10); }

.deck {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(77, 232, 255, 0.03);
  margin-bottom: 18px;
}
.deck .art {
  width: 104px; height: 104px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  filter: saturate(0.85);
}
.deck .meta { min-width: 0; display: flex; flex-direction: column; }
.deck .now {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}
.deck .title {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: #e9f3fb;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deck .from { font-size: 12px; color: var(--muted); margin-top: 2px; }

#viz {
  width: 100%;
  height: 34px;
  display: block;
  margin: 10px 0 8px;
  opacity: 0.9;
}

.transport { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.tbtn {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.tbtn svg { width: 13px; height: 13px; fill: currentColor; }
.tbtn:hover { color: var(--hud); }
.tbtn.play {
  width: 38px; height: 38px;
  color: var(--void);
  background: var(--hud);
}
.tbtn.play svg { width: 14px; height: 14px; }
.tbtn.play:hover { background: #a8e2ff; color: var(--void); }
.time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-left: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.seek {
  position: relative;
  height: 3px;
  background: rgba(77, 232, 255, 0.14);
  cursor: pointer;
  margin: 12px 0 0;
}
.seek .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--hud); }
.seek .knob {
  position: absolute;
  top: 50%; left: 0;
  width: 9px; height: 9px;
  background: var(--hud);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s var(--ease);
  box-shadow: 0 0 10px rgba(77, 232, 255, 0.7);
}
.seek:hover .knob { transform: translate(-50%, -50%) scale(1); }

.tracklist { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft); }
.track {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  background: var(--ink);
  text-align: left;
  width: 100%;
  transition: background 0.28s;
}
.track:hover { background: rgba(77, 232, 255, 0.07); }
.track .n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.track .tt { font-size: 14px; color: var(--text); }
.track .dur {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.track.is-playing { background: rgba(77, 232, 255, 0.10); }
.track.is-playing .tt { color: var(--hud); }
.track.is-playing .n { color: var(--amber); }

/* animated equaliser bars on the playing row */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i {
  width: 2px;
  background: var(--amber);
  animation: eq 0.9s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 0.16s; }
.eq i:nth-child(3) { animation-delay: 0.32s; }
@keyframes eq {
  0%, 100% { height: 3px; }
  50%      { height: 11px; }
}

/* ================================================== contact */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-soft);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
  background: rgba(4, 8, 15, 0.75);
  border: 1px solid var(--line-soft);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--hud);
  background: rgba(10, 20, 34, 0.85);
}
.field textarea { min-height: 110px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

#form-msg {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-top: 12px;
  min-height: 16px;
}
#form-msg.err { color: var(--warn); }
#form-msg.ok  { color: #6ee7a8; }

/* ================================================ reticles */

#reticles {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}
.reticle {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.5s var(--ease);
}
.reticle.is-in { opacity: 1; }
.reticle .box {
  display: block;
  width: 68px; height: 68px;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.55s var(--ease);
}
.reticle.is-in .box { transform: scale(1); }
.reticle .box i {
  position: absolute;
  width: 13px; height: 13px;
  border: 1px solid var(--hud);
  opacity: 0.85;
}
.reticle .box i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.reticle .box i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.reticle .box i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.reticle .box i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.reticle .tag {
  position: absolute;
  left: calc(50% + 46px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding-left: 14px;
}
.reticle .tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 1px;
  background: var(--hud);
  opacity: 0.6;
}
.reticle .tag .n {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hud);
  display: block;
}
.reticle .tag .d {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.reticle.is-in:hover .box { transform: scale(1.14) rotate(45deg); }
.reticle:hover .box i { border-color: var(--amber); }
.reticle:hover .tag .n { color: var(--amber); }

/* =================================================== bridge */

#bridge-card {
  position: fixed;
  z-index: 18;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  max-width: min(46vw, 560px);
  pointer-events: none;
  display: none;
}
#bridge-card.is-open { display: block; }
#bridge-card .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#bridge-card .eyebrow::after { content: ''; flex: 1; height: 1px; background: rgba(255, 180, 84, 0.3); }
#bridge-card h1 {
  perspective: 900px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(46px, 8.4vw, 116px);
  line-height: 0.90;
  letter-spacing: -0.02em;
  margin: 0;
  color: #f0f7fd;
  text-shadow: 0 0 60px rgba(80, 160, 230, 0.28);
}
#bridge-card h1 .ch { display: inline-block; will-change: transform, opacity, filter; }
#bridge-card h1 .l2 { display: block; color: var(--hud); }
#bridge-card .lede {
  margin: 24px 0 0;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.68;
  color: var(--muted);
  max-width: 46ch;
}
#bridge-card .cue {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}
#bridge-card .cue .k {
  border: 1px solid var(--line-soft);
  padding: 3px 8px;
  color: var(--hud-soft);
}

/* ============================================ boot sequence */

#boot {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  cursor: pointer;
}
#boot.gone { display: none; }
/* --- the premise, stated up front ------------------------ */
#boot .brief {
  text-align: center;
  max-width: min(560px, 84vw);
  margin-bottom: 4px;
}
#boot .brief .tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
#boot .brief h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #f0f7fd;
  margin: 0 0 14px;
  text-shadow: 0 0 46px rgba(80, 160, 230, 0.30);
}
#boot .brief p {
  margin: 0;
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.65;
  color: var(--muted);
}

#boot .ring { width: 78px; height: 78px; }
#boot .ring circle { fill: none; stroke-width: 1.2; }
#boot .lines {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud-soft);
  min-width: min(340px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#boot .lines .ln { display: flex; justify-content: space-between; gap: 20px; opacity: 0; }
#boot .lines .ln .ok { color: var(--amber); }
#boot .bar {
  width: min(340px, 78vw);
  height: 2px;
  background: rgba(77, 232, 255, 0.14);
  position: relative;
}
#boot .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--hud); }
/* --- scroll to enter ------------------------------------- */
.enter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  padding: 6px 18px;
}
.enter.is-live { pointer-events: auto; }
.enter .lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--hud-soft);
  transition: color 0.3s;
}
.enter:hover .lbl { color: var(--hud); }

.enter .track {
  position: relative;
  display: block;
  width: 1px;
  height: 54px;
  background: rgba(77, 232, 255, 0.16);
  overflow: hidden;
}
.enter .track i {
  position: absolute;
  inset: 0 0 auto 0;
  display: block;
  height: 0%;
  background: linear-gradient(to bottom, var(--hud), var(--magenta));
  box-shadow: 0 0 8px rgba(77, 232, 255, 0.7);
}

.enter .chev {
  display: block;
  width: 22px;
  height: 13px;
  color: var(--hud);
  animation: chev 1.9s var(--ease) infinite;
}
.enter .chev svg { width: 100%; height: 100%; display: block; }
@keyframes chev {
  0%, 100% { transform: translateY(-3px); opacity: 0.45; }
  50%      { transform: translateY(3px);  opacity: 1; }
}

/* the canopy shutter that lifts to reveal the view */
.shutter {
  position: fixed;
  left: 0; right: 0;
  z-index: 55;
  background: var(--void);
  pointer-events: none;
}
.shutter.top { top: 0; height: 50%; border-bottom: 1px solid var(--line); }
.shutter.bot { bottom: 0; height: 50%; border-top: 1px solid var(--line); }
.shutter::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
}
.shutter.top::after { bottom: 0; background: linear-gradient(to top, rgba(77,232,255,0.10), transparent); }
.shutter.bot::after { top: 0; background: linear-gradient(to bottom, rgba(77,232,255,0.10), transparent); }

/* ================================================ utilities */

.hidden { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================== responsive */

@media (max-width: 1100px) {
  #panel { width: min(58vw, 560px); }
  #bridge-card { max-width: 56vw; }
}

@media (max-width: 860px) {
  :root { --console: 74px; --notch: 12px; }

  #status .stat.hide-sm { display: none; }

  #panel-layer {
    align-items: flex-end;
    padding: 0;
  }
  #panel {
    width: 100%;
    max-height: 68vh;
    margin-bottom: var(--console);
    clip-path: polygon(0 var(--notch), var(--notch) 0, 100% 0, 100% 100%, 0 100%);
  }
  #panel > .inner {
    clip-path: polygon(0 var(--notch), var(--notch) 0, 100% 0, 100% 100%, 0 100%);
  }
  .p-head { padding: 14px 18px 12px; }
  .p-body { padding: 18px 18px 26px; }

  .rail { display: none; }

  #bridge-card {
    left: var(--gutter);
    right: var(--gutter);
    max-width: none;
    top: auto;
    bottom: calc(var(--console) + 26px);
    transform: none;
  }
  #bridge-card h1 { font-size: clamp(40px, 13vw, 76px); }
  #bridge-card .lede { font-size: 14px; max-width: none; }

  .route-tag { display: none; }
  .nav-btn { min-width: 92px; padding: 9px 13px; }
  .nav-btn .lbl { font-size: 11px; }
  #console .socials { display: none; }

  .intro { grid-template-columns: 132px 1fr; gap: 12px; }
  .deck { grid-template-columns: 76px 1fr; gap: 12px; }
  .deck .art { width: 76px; height: 76px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .target { grid-template-columns: 72px 1fr; }
  .target .thumb { width: 72px; height: 54px; }
  .target .t-go { display: none; }
}

@media (max-width: 520px) {
  .specs { grid-template-columns: 1fr 1fr; }
  #topbar #destination .name { font-size: 10px; }
  .brand .who { display: none; }
}

/* ------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  #destination .dot,
  .badge::before,
  .enter .chev,
  .eq i { animation: none !important; }
  #canopy::after { display: none; }
  * { transition-duration: 0.01ms !important; }
}
