@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --black: #050606;
  --panel: #0d0b0b;
  --panel-red: #1b0909;
  --red: #d72821;
  --red-hot: #ff3d2e;
  --orange: #f28a24;
  --cream: #efece4;
  --green: #b9dfc6;
  --muted: #999690;
  --line: rgb(255 61 46 / 34%);
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --gutter: clamp(1rem, 3vw, 3.5rem);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

html {
  background: var(--black);
  color: var(--cream);
  scroll-behavior: smooth;
  scroll-padding-top: 4.2rem;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  font-family: var(--body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--red);
  color: white;
}

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

:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  background: var(--cream);
  color: var(--black);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.section-shell {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem var(--gutter);
  border-bottom: 1px solid var(--red);
  background: rgb(5 6 6 / 92%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--condensed);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  background: var(--red);
  color: white;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cohort {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.site-nav a {
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--red-hot);
}

.gate {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgb(123 7 9 / 24%), transparent 28%),
    #020303;
  transition:
    opacity 320ms ease,
    transform 520ms var(--ease),
    filter 520ms ease;
}

.gate__content {
  display: flex;
  width: min(80vw, 32rem);
  min-height: 35rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.gate__mark-video {
  position: relative;
  z-index: 2;
  width: min(54vw, 28rem);
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.12) saturate(1.2);
  transition:
    opacity 280ms ease,
    scale 520ms var(--ease),
    filter 520ms ease;
}

.gate__mark-fallback {
  position: absolute;
  z-index: 1;
  display: none;
  color: var(--cream);
  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  text-shadow:
    0 0 0.8rem rgb(255 51 37 / 70%),
    0 0 3rem rgb(160 8 10 / 55%);
}

.gate__mark-idle-scan {
  position: absolute;
  z-index: 2;
  top: 31%;
  left: 50%;
  width: min(31vw, 15rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 240 226 / 70%),
    transparent
  );
  box-shadow: 0 0 1rem rgb(255 57 41 / 42%);
  opacity: 0;
  pointer-events: none;
  translate: -50% 0;
}

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

.gate__button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  width: 13.5rem;
  height: 3.6rem;
  min-width: 13.5rem;
  min-height: 3.6rem;
  overflow: visible;
  align-items: center;
  justify-content: space-between;
  gap: 2.2rem;
  margin-top: -1.4rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--red-hot);
  background: rgb(38 3 4 / 78%);
  box-shadow:
    inset 0 0 1.4rem rgb(255 49 35 / 12%),
    0 0 2.5rem rgb(202 19 14 / 14%);
  color: var(--cream);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition:
    border-color 220ms ease,
    opacity 320ms ease,
    scale 420ms var(--ease),
    transform 140ms ease-out,
    background 180ms ease,
    box-shadow 180ms ease;
}

.gate__button:hover {
  background: var(--red);
  box-shadow:
    inset 0 0 1.4rem rgb(255 255 255 / 12%),
    0 0 3.6rem rgb(240 29 23 / 38%);
}

.gate__button-label,
.gate__button-arrow {
  position: relative;
  z-index: 2;
  transition:
    opacity 120ms ease,
    transform 220ms var(--ease);
}

.gate.is-launching .gate__mark-video {
  opacity: 0.72;
  scale: 0.985;
  filter: contrast(1.06) saturate(1.05);
}

.gate.mark-settled .gate__mark-video {
  animation: mark-idle-breathe 4.8s ease-in-out infinite;
}

.gate.mark-settled .gate__mark-idle-scan {
  animation: mark-idle-scan 4.8s var(--ease) infinite;
}

.gate.mark-settled.is-launching .gate__mark-video {
  animation: none;
}

.gate.is-launching .gate__mark-idle-scan {
  display: none;
}

.gate.is-launching .gate__button {
  border-color: rgb(255 61 46 / 36%);
  background: transparent;
  box-shadow: none;
  cursor: default;
  opacity: 0;
  scale: 0.94 1;
  transform: none !important;
}

.gate.is-launching .gate__button-label,
.gate.is-launching .gate__button-arrow {
  opacity: 0;
  transform: translateY(0.55rem);
}

.boot-screen {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  overflow: hidden;
  opacity: 0;
  background: #020202;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.boot-screen__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.boot-screen__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background:
    radial-gradient(circle at center, rgb(127 6 8 / 45%), transparent 40%),
    #020202;
}

.boot-screen__fallback span {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--red-hot);
  box-shadow: 0 0 1rem var(--red);
}

.js .console {
  display: none;
}

.js body.library-open .console {
  display: grid;
}

.js body.library-open .gate {
  display: none;
}

.js .console__frame {
  opacity: 0;
}

.is-booting .gate {
  opacity: 0;
  transform: scale(1.008);
  pointer-events: none;
}

.is-booting .boot-screen {
  display: block;
  opacity: 1;
}

.js body.library-open.is-booting .boot-screen {
  animation: boot-out 520ms var(--ease) forwards;
}

.gate.video-failed .gate__mark-video,
.gate.video-failed .boot-screen__video {
  display: none;
}

.gate.video-failed .gate__mark-fallback {
  display: block;
}

.console {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 2rem var(--gutter);
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgb(91 7 7 / 42%), transparent 42%),
    linear-gradient(180deg, #030404 0%, #0b0303 58%, #030404 100%);
}

.console::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgb(255 62 46 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 62 46 / 5%) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.console__ambient {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.console__motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.2) contrast(1.08);
}

.console__beam {
  position: absolute;
  width: 20%;
  height: 82%;
  background:
    linear-gradient(180deg, transparent, rgb(213 39 32 / 22%), transparent),
    repeating-linear-gradient(90deg, transparent 0 12px, rgb(255 61 46 / 16%) 12px 14px);
  filter: blur(18px);
  opacity: 0.8;
}

.console__beam--one {
  top: 5%;
  left: -4%;
  transform: rotate(-7deg);
}

.console__beam--two {
  right: -4%;
  bottom: 3%;
  transform: rotate(7deg);
}

.console__scan {
  position: absolute;
  top: -10%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-hot), transparent);
  box-shadow: 0 0 1.6rem var(--red);
  animation: scan 8s linear infinite;
}

.hex-field {
  position: absolute;
  z-index: -1;
  right: 50%;
  bottom: -5rem;
  display: grid;
  width: min(54rem, 88vw);
  transform: translateX(50%) rotate(-2deg);
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
  opacity: 0.34;
}

.hex-field span {
  aspect-ratio: 1.15;
  border: 1px solid var(--red);
  background:
    linear-gradient(135deg, transparent 48%, rgb(255 62 46 / 18%) 49% 51%, transparent 52%),
    rgb(43 4 5 / 72%);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.console__frame {
  position: relative;
  z-index: 2;
  width: min(82rem, 92vw);
  padding: clamp(1.3rem, 2.5vw, 2.5rem);
  border: 1px solid var(--red);
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 48%), rgb(255 61 46 / 9%), transparent 38%),
    linear-gradient(125deg, rgb(25 5 5 / 94%), rgb(7 8 8 / 96%) 58%),
    var(--panel);
  clip-path: polygon(1.4rem 0, calc(100% - 1.4rem) 0, 100% 1.4rem, 100% calc(100% - 1.4rem), calc(100% - 1.4rem) 100%, 1.4rem 100%, 0 calc(100% - 1.4rem), 0 1.4rem);
  box-shadow:
    0 0 0 1px rgb(255 61 46 / 14%),
    0 0 4rem rgb(214 41 32 / 18%),
    inset 0 0 4rem rgb(122 10 10 / 18%);
}

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

.console__frame::before {
  top: 0.8rem;
  right: 2.4rem;
  left: 2.4rem;
  height: 0.32rem;
  background: repeating-linear-gradient(
    135deg,
    var(--orange) 0 10px,
    #17110d 10px 20px
  );
  opacity: 0.7;
}

.console__frame::after {
  right: 1rem;
  bottom: 1rem;
  width: 4rem;
  height: 0.25rem;
  background: var(--red-hot);
  box-shadow: -72vw 0 0 var(--red-hot);
}

.console__header {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0 0.8rem;
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.console__watermark {
  position: absolute;
  z-index: 4;
  top: 1.3rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--red-hot);
}

.console__watermark span {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 0.8rem rgb(255 53, 40 / 56%);
}

.console__watermark small {
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.console__header span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.console__header i {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0.9rem rgb(185 223 198 / 70%);
}

.console__identity {
  padding: clamp(1rem, 2vw, 1.6rem) 0 clamp(1.4rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.console__identity > p {
  margin: 0 0 0.65rem;
  color: var(--red-hot);
  font-family: var(--condensed);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.console__identity h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.console__selector {
  padding-top: 1.2rem;
}

.console__selector > span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.project-tabs {
  display: none;
  margin-bottom: 0.8rem;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.js .project-tabs {
  display: grid;
}

.project-tab {
  display: grid;
  min-height: 4.1rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgb(255 61 46 / 24%);
  background: rgb(22 11 11 / 58%);
  color: var(--cream);
  cursor: pointer;
  text-align: left;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--ease);
}

.project-tab:hover,
.project-tab:focus-visible {
  border-color: var(--red-hot);
  background: rgb(82 11 11 / 48%);
  transform: translateY(-2px);
}

.project-tab.is-active {
  border-color: var(--red-hot);
  background:
    linear-gradient(90deg, rgb(213 39 32 / 36%), rgb(53 8 9 / 56%));
  box-shadow: inset 3px 0 0 var(--red-hot);
}

.project-tab__index {
  color: var(--red-hot);
  font-family: var(--condensed);
  font-size: 1.2rem;
  font-weight: 700;
}

.project-tab__name {
  font-family: var(--condensed);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.project-tab__type {
  color: var(--muted);
  font-size: 0.68rem;
}

.project-panels {
  position: relative;
}

.project-panel {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgb(52 7 8 / 72%), rgb(9 10 10 / 92%) 62%),
    var(--panel);
  overflow: hidden;
}

.js .project-panel:not(.is-active) {
  display: none;
}

.js .project-panel.is-active {
  animation: panel-in 420ms var(--ease) both;
}

.project-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.25rem;
  height: 100%;
  content: "";
  background: var(--red-hot);
  box-shadow: 0 0 1.4rem rgb(255 61 46 / 75%);
}

.project-panel::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  content: "";
  border-top: 1px solid var(--red);
  border-right: 1px solid var(--red);
}

.project-panel__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.project-panel__status .online {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.project-panel__status i {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--green);
}

.project-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}

.project-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--condensed);
  font-size: clamp(2.5rem, 4.6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.project-panel__subtitle {
  max-width: 36rem;
  margin: 0;
  color: #d8d9d4;
  font-size: 0.9rem;
}

.project-panel__facts {
  margin: 0;
}

.project-panel__facts > div {
  display: grid;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 3rem 1fr;
  gap: 0.7rem;
}

.project-panel__facts > div:first-child {
  border-top: 1px solid var(--line);
}

.project-panel__facts dt {
  color: var(--red-hot);
  font-size: 0.7rem;
}

.project-panel__facts dd {
  margin: 0;
  color: #c8cac4;
  font-size: 0.76rem;
}

.project-panel__link {
  display: flex;
  width: min(25rem, 100%);
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 0 0 auto;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--red-hot);
  background: var(--red);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease-out, background 180ms ease, color 180ms ease;
}

.project-panel__link:hover {
  background: var(--cream);
  color: var(--black);
}

.project-panel__link span:last-of-type {
  transition: transform 220ms var(--ease);
}

.project-panel__link:hover span:last-of-type {
  transform: translate(0.18rem, -0.18rem);
}

.console__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: var(--red-hot);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

.not-found {
  display: flex;
  min-height: 100svh;
  padding-top: 7rem;
  padding-bottom: 3rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.not-found__code {
  margin: 0;
  color: var(--red-hot);
  font-family: var(--condensed);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

.not-found h1 {
  max-width: 10ch;
  margin: 1rem 0;
  font-size: clamp(2.7rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.not-found > p:not(.not-found__code) {
  max-width: 30rem;
  margin: 0 0 2rem;
  color: var(--muted);
}

.primary-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 1rem;
  background: var(--red);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.js body.library-open .console__frame {
  animation: console-in 620ms var(--ease) both;
}

.js body.library-open .console__identity {
  animation: content-in 520ms 140ms var(--ease) both;
}

@keyframes console-in {
  from {
    opacity: 0;
    transform: scale(0.985);
    clip-path: polygon(50% 0, 50% 0, 100% 50%, 100% 50%, 50% 100%, 50% 100%, 0 50%, 0 50%);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: polygon(1.4rem 0, calc(100% - 1.4rem) 0, 100% 1.4rem, 100% calc(100% - 1.4rem), calc(100% - 1.4rem) 100%, 1.4rem 100%, 0 calc(100% - 1.4rem), 0 1.4rem);
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

@keyframes scan {
  from {
    transform: translateY(-10vh);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  to {
    transform: translateY(110vh);
    opacity: 0;
  }
}

@keyframes boot-out {
  from {
    opacity: 1;
  }
  to {
    visibility: hidden;
    opacity: 0;
  }
}

@keyframes mark-idle-breathe {
  0%,
  100% {
    opacity: 0.9;
    scale: 0.998;
    filter: contrast(1.1) saturate(1.08);
  }
  50% {
    opacity: 1;
    scale: 1.006;
    filter:
      contrast(1.14)
      saturate(1.16)
      drop-shadow(0 0 0.7rem rgb(226 30 24 / 24%));
  }
}

@keyframes mark-idle-scan {
  0%,
  58% {
    translate: -50% 0;
    opacity: 0;
  }
  64% {
    opacity: 0.52;
  }
  92% {
    translate: -50% 15rem;
    opacity: 0.18;
  }
  100% {
    translate: -50% 15rem;
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .console__frame {
    width: min(94vw, 52rem);
  }

  .project-panel__grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .project-panel__link {
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  .cohort {
    display: none;
  }

  .site-header {
    min-height: 3.7rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand__mark {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.62rem;
  }

  .site-nav a {
    font-size: 0.76rem;
  }

  .console {
    min-height: 100svh;
    padding-top: 5rem;
    padding-bottom: 1.4rem;
    align-items: start;
  }

  .console__frame {
    width: 100%;
    margin-top: 0.7rem;
    padding: 1.1rem;
    clip-path: polygon(0.8rem 0, calc(100% - 0.8rem) 0, 100% 0.8rem, 100% calc(100% - 0.8rem), calc(100% - 0.8rem) 100%, 0.8rem 100%, 0 calc(100% - 0.8rem), 0 0.8rem);
  }

  .console__frame::before {
    right: 1.2rem;
    left: 1.2rem;
  }

  .console__frame::after {
    box-shadow: -76vw 0 0 var(--red-hot);
  }

  .console__header {
    font-size: 0.67rem;
  }

  .console__identity {
    padding-block: 1.1rem 1.3rem;
  }

  .console__identity > p {
    font-size: 0.7rem;
  }

  .console__identity h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.3rem);
  }

  .project-tabs {
    gap: 0.45rem;
  }

  .project-tab {
    min-height: 3.4rem;
    padding: 0.55rem;
    grid-template-columns: 1.4rem 1fr;
  }

  .project-tab__index {
    font-size: 0.95rem;
  }

  .project-tab__name {
    font-size: 0.94rem;
  }

  .project-tab__type {
    display: none;
  }

  .project-panel {
    padding: 1rem;
  }

  .project-panel h2 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .project-panel__subtitle {
    font-size: 0.82rem;
  }

  .project-panel__link {
    width: 100%;
  }

  .console__footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.3rem 1rem;
  }

  .console__footer span:nth-child(2) {
    display: none;
  }

  .hex-field {
    width: 124vw;
    bottom: -4.8rem;
    opacity: 0.24;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .console__scan {
    display: none;
  }

  .console__motion {
    display: none;
  }

  .gate__mark-video {
    display: none;
  }

  .gate__mark-idle-scan {
    display: none;
  }

  .gate__mark-fallback {
    display: block;
  }

  .console__frame,
  .console__identity {
    animation: none !important;
    opacity: 1;
  }
}
