:root {
  --void: #050505;
  --spine: #090909;
  --border: #1a1a1a;
  --text-main: #d4d4d8;
  --text-bright: #ffffff;
  --text-meta: #7a7a83;
  --grid: rgba(255, 255, 255, 0.035);
  --signal: #b8ff3c;
  --font-display: Georgia, "Times New Roman", serif;
  --font-system: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --mx: 50%;
  --my: 50%;
  --video-shift-x: 0px;
  --video-shift-y: 0px;
  --video-rotate-x: 0deg;
  --video-rotate-y: 0deg;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  height: 100vh;
  overflow: hidden;
  background-color: var(--void);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--text-main);
  font-family: var(--font-system);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at 50% 50%, transparent 0, rgba(0, 0, 0, 0.64) 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.ui-layer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 360px;
  height: 100vh;
}

.spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 52px 0;
  border-right: 1px solid var(--border);
  background: var(--spine);
}

.mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--text-meta);
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: 22px;
  cursor: default;
  transition: 0.35s;
}

.mark:hover {
  border-color: var(--text-bright);
  background: var(--text-bright);
  color: var(--void);
}

.spine-year,
.spine-brand {
  color: var(--text-meta);
  font-size: 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.main-stage {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: center;
  padding: 84px;
  isolation: isolate;
  perspective: 1200px;
}

.ascii-background,
.ascii-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ascii-background {
  z-index: 0;
  overflow: hidden;
  background: #000000;
  transform: scale(1.02);
}

.ascii-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.34));
}

.ascii-background .asciify-video-widget {
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0.9;
  transition: opacity 180ms ease-out;
}

.ascii-background .asciify-video-canvas,
.ascii-background .asciify-video-pre {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  filter: brightness(1.7) contrast(1.45) saturate(1.35);
  transform: translate3d(var(--video-shift-x), var(--video-shift-y), 0) rotateX(var(--video-rotate-x)) rotateY(var(--video-rotate-y)) scale(1.08);
  transform-origin: center center;
  transition: transform 180ms ease-out, filter 180ms ease-out;
  will-change: transform;
}

.main-stage:hover .ascii-background .asciify-video-widget {
  opacity: 0.96;
}

.top-meta {
  position: absolute;
  z-index: 2;
  top: 54px;
  left: 84px;
  right: 84px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.meta-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
}

.nav-link {
  color: var(--text-bright);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 0.55;
}

.meta-coords,
.data-label,
.pt-desc,
.demo-kicker {
  color: var(--text-meta);
}

.meta-coords {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.data-label,
.pt-desc,
.micro-button,
.demo-kicker {
  font-size: 10px;
  letter-spacing: 0.06em;
}

.title-group {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.demo-kicker {
  margin-bottom: 20px;
  color: var(--signal);
}

.display-title {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: 118px;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
}

.subtitle {
  max-width: 560px;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
}

.data-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto;
  padding: 52px 34px;
  border-left: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
}

.data-block {
  margin-bottom: 44px;
}

.data-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.data-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.data-value {
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.9;
}

.portfolio-grid {
  display: grid;
  gap: 12px;
}

.portfolio-item {
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
}

.portfolio-item:hover,
.portfolio-item:focus-visible,
.portfolio-item.active {
  border-color: var(--text-bright);
  background: var(--text-bright);
  color: var(--void);
  outline: none;
}

.pt-title {
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: 21px;
}

.portfolio-item:hover .pt-title,
.portfolio-item:hover .pt-desc,
.portfolio-item:focus-visible .pt-title,
.portfolio-item:focus-visible .pt-desc,
.portfolio-item.active .pt-title,
.portfolio-item.active .pt-desc {
  color: var(--void);
}

.micro-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-bright);
}

.micro-button::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.readout {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(184, 255, 60, 0.72);
}

@media (max-width: 1180px) {
  .display-title {
    font-size: 92px;
  }
}

@media (max-width: 980px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .ui-layer {
    grid-template-columns: 64px 1fr;
    grid-template-rows: minmax(540px, 70vh) auto;
    height: auto;
    min-height: 100vh;
  }

  .data-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .main-stage {
    padding: 96px 34px 50px;
  }

  .top-meta {
    top: 34px;
    right: 34px;
    left: 34px;
  }

  .display-title {
    font-size: 78px;
  }
}

@media (max-width: 680px) {
  .ui-layer {
    display: block;
  }

  .spine {
    height: 72px;
    flex-direction: row;
    padding: 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .spine-brand {
    writing-mode: initial;
    transform: none;
  }

  .spine-year {
    display: none;
  }

  .main-stage {
    min-height: 560px;
  }

  .top-meta {
    position: static;
    display: grid;
    margin-bottom: 80px;
  }

  .data-panel {
    padding: 34px 22px;
  }

  .subtitle {
    font-size: 15px;
  }

  .display-title {
    font-size: 54px;
  }
}