:root {
  --paper: #050607;
  --column: #050705;
  --surface: #0b0d0a;
  --ink: #f7f4e8;
  --muted: #b8bab2;
  --tag-muted: #b4b5ae;
  --green: #00ff66;
  --selected: #1b360e;
  --line: #1a1b19;
  --mono: "Intel One Mono", ui-monospace, monospace;
  --display: "IBM Plex Mono", ui-monospace, monospace;
  --sans: Inter, system-ui, sans-serif;
  --frame-pad: 32px;
}

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

html {
  min-height: 100%;
  scroll-behavior: auto;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body.is-booting {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 229, 89, 0.18) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.16;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--green);
}

a:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 3px;
}

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

.page {
  background: var(--paper);
}

.frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  grid-template-areas:
    "left feature"
    "cue cue";
  column-gap: clamp(24px, 2vw, 48px);
  width: 100%;
  min-height: 100dvh;
  margin-inline: auto;
  padding: clamp(24px, 2.2vw, 72px);
  background: transparent;
}

.frame.is-pinned {
  position: sticky;
  top: 0;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 420ms ease;
}

.boot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 229, 89, 0.18) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.16;
}

.boot.is-done {
  opacity: 0;
  pointer-events: none;
}

.boot__panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 48px));
}

.boot__label,
.boot__value {
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boot__label {
  margin-bottom: 12px;
}

.boot__track {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--green);
  background: var(--surface);
}

.boot__fill {
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
}

.boot__value {
  margin-top: 12px;
  text-align: right;
}

.left {
  grid-area: left;
}

.viewer {
  display: contents;
}

.viewer-anchor,
.runway {
  display: none;
}

.feature {
  grid-area: feature;
}

.cue {
  grid-area: cue;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 52px;
  min-width: 0;
  align-self: start;
  background: var(--column);
}

.identity {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
}

.identity__author {
  display: flex;
  gap: 14px;
  align-items: center;
}

.portrait {
  flex: none;
  width: 52px;
  height: 64px;
  overflow: hidden;
  border-radius: 4px;
  transition: width 220ms ease, height 220ms ease;
}

.portrait:hover {
  width: 96px;
  height: 118px;
}

.portrait img {
  display: block;
  width: 100%;
  height: calc(100% / 0.8705);
  object-fit: cover;
  object-position: center top;
}

.identity__name {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}

.identity__role,
.identity__spec,
.contacts,
.index__head,
.index__cols,
.index__year,
.index__cat,
.index__note,
.feature__head,
.feature__num,
.feature__sub,
.tag,
.placeholder,
.cue {
  font-family: var(--mono);
  font-weight: 400;
}

.identity__role {
  margin: 4px 0 0;
  color: var(--green);
  font-size: 12px;
  line-height: 16px;
}

.identity__spec {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.contacts {
  display: flex;
  gap: 16px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--green);
  color: var(--green);
  font-size: 11px;
  line-height: 15px;
}

.contacts a {
  color: var(--green);
}

.index {
  min-width: 0;
}

.index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 24px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 11px;
  line-height: 16px;
  text-transform: uppercase;
}

.index__count,
.feature__count,
.index__year,
.index__cat,
.index__note,
.feature__num,
.feature__sub,
.tag,
.placeholder {
  color: var(--muted);
}

.index__cols,
.index__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 88px;
  column-gap: 8px;
  align-items: start;
}

.index__cols {
  padding: 8px 24px;
  border-bottom: 1px solid var(--green);
  font-size: 9px;
  line-height: 14px;
  text-transform: uppercase;
}

.index__cols span:last-child,
.index__cat {
  text-align: right;
}

.index__window {
  overflow: hidden;
}

.index__track {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index__row {
  position: relative;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.index__row::before,
.index__row::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.index__row::before {
  inset: 0;
  opacity: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 255, 102, 0.22) 2px 3px
  );
}

.index__row::after {
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 255, 102, 0.8);
  opacity: 0;
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.45);
}

.index__row.is-active {
  background: var(--selected);
  border-bottom-color: var(--green);
  box-shadow: inset 3px 0 0 var(--green);
}

.index__year,
.index__cat {
  font-size: 11px;
  line-height: 16px;
}

.index__year {
  line-height: 20px;
}

.index__name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.index__row.is-active .index__name {
  color: var(--ink);
  font-weight: 500;
}

.index__row.is-active .index__year {
  color: var(--green);
}

.index__row[data-index] {
  cursor: pointer;
}

.index__go {
  display: none;
  color: var(--green);
}

.index__row:hover .index__rest,
.index__row:focus-visible .index__rest {
  display: none;
}

.index__row:hover .index__go,
.index__row:focus-visible .index__go {
  display: inline;
}

.index__row:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: -1px;
}

.index__row:hover::before,
.index__row:focus-visible::before {
  opacity: 0.7;
  animation: row-static 140ms steps(2, end) infinite;
}

.index__row:hover::after,
.index__row:focus-visible::after {
  opacity: 0.9;
  animation: row-tracking 380ms steps(4, end) infinite;
}

.index__row:hover .index__name,
.index__row:focus-visible .index__name {
  animation: row-tear 260ms steps(2, end) 1;
}

@keyframes row-static {
  0% {
    transform: translateY(0);
    opacity: 0.25;
  }

  50% {
    transform: translateY(-2px);
    opacity: 0.75;
  }

  100% {
    transform: translateY(1px);
    opacity: 0.35;
  }
}

@keyframes row-tracking {
  0% {
    top: 18%;
  }

  25% {
    top: 72%;
  }

  50% {
    top: 36%;
  }

  75% {
    top: 84%;
  }

  100% {
    top: 22%;
  }
}

@keyframes row-tear {
  0%,
  100% {
    transform: translateX(0);
    text-shadow: none;
  }

  35% {
    transform: translateX(1px);
    text-shadow: -1px 0 rgba(0, 255, 102, 0.85);
  }

  70% {
    transform: translateX(-1px);
    text-shadow: 1px 0 rgba(0, 255, 102, 0.55);
  }
}

.index__more {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index__more .index__row {
  cursor: default;
}

.index__row--nda {
  padding-top: 5px;
  padding-bottom: 5px;
}

.index__row--nda .index__year,
.index__row--nda .index__cat,
.index__row--nda .index__name {
  font-size: 10px;
  line-height: 14px;
}

.index__note {
  margin: 0;
  padding: 8px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  align-self: start;
}

.feature.is-sticky {
  position: sticky;
  top: var(--frame-pad);
}

.feature__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
  margin: 0;
  font-size: 11px;
  line-height: 16px;
}

.feature__label,
.feature__count {
  margin: 0;
}

.feature__label {
  color: var(--green);
  text-transform: uppercase;
}

.feature__frame {
  position: relative;
  width: 100%;
  height: clamp(360px, calc(100dvh - 280px), 860px);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--green);
  background: #000000;
}

.feature__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  transition: opacity 320ms ease;
}

.feature__slide:has(img),
.feature__slide:has(video) {
  padding: 0;
}

.feature__slide.is-active {
  opacity: 1;
}

.feature__slide .media {
  transform: translate3d(0, calc((1 - var(--reveal, 1)) * 12px), 0)
    scale(calc(1 + (1 - var(--reveal, 1)) * 0.035));
  transform-origin: center center;
}

.feature__slide img.media,
.feature__slide video.media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.placeholder {
  max-width: 320px;
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.feature__copy {
  display: grid;
}

.feature__caption {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  visibility: hidden;
}

.feature__caption.is-active {
  visibility: visible;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  font-size: 11px;
  line-height: 16px;
}

.tag--emph {
  border-color: var(--green);
  color: var(--green);
}

.tag:not(.tag--emph) {
  color: var(--tag-muted);
}

.feature__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.feature__title {
  margin: 0;
  min-height: 29px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 29px;
}

.feature__num {
  flex: none;
  color: var(--green);
  font-size: 11px;
  line-height: 20px;
}

.feature__sub {
  margin: 0;
  font-size: 11px;
  line-height: 17px;
}

.cue {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--green);
  color: var(--ink);
  font-size: 11px;
  line-height: 16px;
}

.cue__mobile {
  display: none;
}

.sparkles {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (min-width: 1920px) {
  .frame {
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot,
  .feature__slide,
  .portrait {
    transition: none;
  }

  .feature__slide .media {
    transform: none;
  }

  .sparkles {
    display: none;
  }

  .index__row:hover::before,
  .index__row:focus-visible::before,
  .index__row:hover::after,
  .index__row:focus-visible::after,
  .index__row:hover .index__name,
  .index__row:focus-visible .index__name {
    animation: none;
  }
}

@media (max-width: 900px) {
  :root {
    --frame-pad: 20px;
  }

  .frame,
  .frame.is-pinned {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .left {
    margin-bottom: 24px;
  }

  .viewer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: flex-start;
    background: var(--paper);
  }

  .viewer.is-sticky {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .viewer-anchor {
    display: block;
    height: 0;
  }

  .runway {
    display: block;
    height: 0;
  }

  .left {
    gap: 24px;
  }

  .identity {
    gap: 16px;
    padding: 20px;
  }

  .identity__author {
    gap: 16px;
  }

  .portrait {
    width: 56px;
    height: 70px;
  }

  .identity__role {
    margin-top: 6px;
  }

  .contacts {
    justify-content: space-between;
    gap: 12px;
  }

  .index__head {
    height: auto;
    padding: 10px 0;
  }

  .index__cols {
    padding: 6px 12px;
  }

  .index__row {
    padding: 14px 12px;
  }

  .index__row--nda {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .index__note {
    padding: 8px 0;
  }

  .feature,
  .feature.is-sticky,
  .feature.is-static {
    position: static;
    background: transparent;
  }

  .feature__frame {
    height: min(350px, 46vh);
    min-height: 180px;
  }

  .feature__title {
    font-size: 22px;
    line-height: 28px;
  }

  .cue {
    margin-top: 8px;
    padding-top: 14px;
  }

  .cue__desktop {
    display: none;
  }

  .cue__mobile {
    display: inline;
  }
}

@media (max-width: 900px) and (max-height: 740px) {
  .identity {
    gap: 12px;
    padding: 16px;
  }

  .index__row {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .feature__frame {
    height: min(240px, 34vh);
    min-height: 140px;
  }

  .feature__title {
    font-size: 20px;
    line-height: 26px;
  }
}
