@font-face {
  font-family: "MD Thermochrome";
  src: url("./assets/MDThermochrome-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MD Thermochrome";
  src: url("./assets/MDThermochrome-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --paper: #f2f0eb;
  --purple: #9900ff;
  --lilac: #cfafff;
  --pink: #fe3782;
  --acid: #96ff4b;
  --cyan: #22e4ff;
  --line: rgba(255, 255, 255, 0.34);
  --page-pad: clamp(1rem, 2vw, 2rem);
  --font-display: "MD Thermochrome", "Arial Narrow", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.15;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

body::after {
  position: fixed;
  z-index: 9998;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(circle at 12% 15%, transparent 0 2px, rgba(255, 255, 255, 0.25) 3px 4px),
    repeating-radial-gradient(circle at 82% 74%, transparent 0 3px, rgba(255, 255, 255, 0.16) 4px 5px);
  background-size: 7px 9px, 11px 13px;
  mix-blend-mode: soft-light;
}

button,
a,
input,
textarea {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
}

button:not(:disabled),
a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

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

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

[hidden] {
  display: none !important;
}

.sr-only {
  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: 10000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.75rem;
  transform: translateY(-180%);
  color: var(--black);
  background: var(--white);
  text-transform: uppercase;
}

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

.boot-status {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 1rem;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.boot-status > span {
  display: grid;
  width: 5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--lilac);
  font-size: 2rem;
  animation: spin 3s linear infinite;
}

.boot-status p,
.boot-status strong {
  margin: 0;
  text-transform: uppercase;
}

.boot-status p {
  max-width: min(34rem, calc(100vw - 2rem));
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  text-transform: none;
}

.boot-status--error > span {
  border-radius: 0;
  color: var(--pink);
  animation: none;
}

.boot-status button {
  margin-top: 1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid currentColor;
  text-transform: uppercase;
}

.boot-status button:hover {
  background: var(--purple);
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.85rem;
  pointer-events: none;
}

.site-header button {
  pointer-events: auto;
}

body[data-view="home"] .site-header {
  display: none;
}

body[data-view="home"]::after {
  display: none;
}

.mark-button,
.menu-button,
.pill-button {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid currentColor;
  border-radius: 0.3rem;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24);
  color: var(--white);
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
  backdrop-filter: blur(8px);
}

.mark-button {
  width: 2.35rem;
  font-size: 1.15rem;
}

.menu-button,
.pill-button {
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
}

.mark-button:hover,
.menu-button:hover,
.pill-button:hover {
  color: var(--white);
  background: var(--purple);
  transform: scale(1.04);
}

/* Splash */

.splash {
  position: fixed;
  z-index: 10000;
  inset: 0;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}

.splash__video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.splash__ascii {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 10px;
  letter-spacing: -1px;
  text-align: left;
  text-decoration: none;
  white-space: pre;
  pointer-events: none;
  user-select: none;
}

.splash__loading-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  background-color: #000;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 1;
  pointer-events: none;
  transition: opacity 600ms ease-in-out 400ms;
}

.splash.is-ready .splash__loading-grid {
  opacity: 0;
}

.splash__center {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
}

.splash__logo {
  width: auto;
  height: 200px;
  max-width: none;
}

.splash__progress {
  width: 196px;
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
}

.splash.is-ready .splash__progress {
  animation: splash-progress-ready 700ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.splash__prompt {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  left: 50%;
  margin: 0;
  padding: 4px 12px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 24px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease 400ms;
}

.splash.is-ready .splash__prompt {
  opacity: 1;
}

.splash__button {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: progress;
}

.splash.is-ready .splash__button {
  cursor: pointer;
}

.splash.is-leaving {
  animation: splash-leave 100ms ease-in-out forwards;
}

/* Main 3D room */

.home {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.home__canvas,
.home__canvas canvas {
  width: 100%;
  height: 100%;
}

.home__canvas canvas {
  cursor: grab;
  touch-action: none;
}

.home__canvas canvas:active {
  cursor: grabbing;
}

.home__shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 24% 76%, rgba(0, 0, 0, 0.4)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 35%);
}

.home__ticker {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
  animation: ticker-pulse 4s linear infinite;
}

.home__instructions {
  position: absolute;
  z-index: 5;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home__instructions::before {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.camera-switcher {
  position: absolute;
  z-index: 8;
  right: 1rem;
  bottom: 1rem;
  display: none;
  gap: 0.35rem;
}

.camera-switcher button {
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  backdrop-filter: blur(6px);
}

.camera-switcher button:hover,
.camera-switcher button.is-active {
  background: var(--purple);
}

.npc-chat {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease, scale 180ms ease;
}

.npc-chat:hover {
  scale: 1.05;
}

.vault-hotspot {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  width: clamp(3.4rem, 5vw, 4.5rem);
  height: clamp(4.2rem, 7vw, 6rem);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 120ms ease;
}

.vault-hotspot:focus-visible {
  outline: 1px solid #d2ff43;
  outline-offset: 0.25rem;
}

.npc__bubble {
  display: block;
  width: max-content;
  max-width: min(13rem, 45vw);
  padding: 0.45rem 0.65rem;
  border-radius: 0.2rem;
  background: rgba(0, 0, 0, 0.92);
  color: var(--white);
  font-size: clamp(0.72rem, 1vw, 1rem);
  text-transform: uppercase;
  white-space: nowrap;
}

.home-about {
  position: absolute;
  z-index: 8;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: background 180ms ease, transform 180ms ease;
}

.home-about:hover {
  background: var(--purple);
  transform: scale(1.04);
}

.home-fallback {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  overflow: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 5rem 1rem 6rem;
  background: url("./assets/images/floor.webp") center / cover;
}

.home-fallback__card {
  position: relative;
  display: grid;
  min-height: 31vh;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.65);
}

.home-fallback__card img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  transition: transform 300ms var(--ease);
}

.home-fallback__card span {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.home-fallback__card:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.home-loader {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 50%;
  display: grid;
  width: 9rem;
  height: 9rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.home-loader::before {
  position: absolute;
  inset: -1px;
  border: 2px solid transparent;
  border-top-color: var(--purple);
  border-radius: 50%;
  content: "";
  animation: spin 1s linear infinite;
}

/* Full-screen navigation */

.site-menu {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 0.85rem;
  background: var(--purple);
  color: var(--white);
  opacity: 0;
  transform: translateY(-2%);
  transition: opacity 280ms ease, transform 550ms var(--ease);
}

.site-menu.is-open {
  opacity: 1;
  transform: none;
}

.menu-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1px) 0 0 / 9px 9px,
    linear-gradient(115deg, transparent 20%, rgba(0, 0, 0, 0.12), transparent 75%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.menu-topline,
.menu-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-topline {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid currentColor;
}

.menu-topline button {
  text-transform: uppercase;
}

.menu-list {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 1rem 0;
  list-style: none;
  counter-reset: menu;
}

.menu-list li {
  counter-increment: menu;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.menu-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.12em 0;
  font-size: clamp(2.8rem, 7.2vh, 6.8rem);
  line-height: 0.82;
  text-transform: uppercase;
  transition: padding 260ms var(--ease), color 160ms ease, background 160ms ease;
}

.menu-list a::before {
  content: "0" counter(menu);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0;
}

.menu-list a::after {
  content: "↗";
  font-size: 0.45em;
}

.menu-list a:hover {
  padding-right: 0.15em;
  padding-left: 0.15em;
  background: var(--white);
  color: var(--black);
}

.menu-footer {
  padding-top: 0.75rem;
  border-top: 1px solid currentColor;
}

.menu-footer a:hover {
  text-decoration: underline;
}

/* Editorial pages */

.content-stage {
  min-height: 100svh;
  padding: 3.6rem 0 2rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.8)),
    url("./assets/images/floor.webp") center / cover fixed;
}

.content-panel {
  width: min(80vw, 1320px);
  min-height: calc(100svh - 5.6rem);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.25rem;
  background: var(--paper);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.55);
  color: var(--black);
}

.panel-bar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--black);
  background: rgba(242, 240, 235, 0.9);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.panel-bar button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid currentColor;
  text-transform: uppercase;
}

.panel-bar button:hover,
.text-link:hover {
  color: var(--purple);
}

.page-body {
  padding: var(--page-pad);
}

.page-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.display-title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.5rem, 8.5vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.78;
  text-transform: uppercase;
}

.body-large {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 4rem);
  line-height: 0.98;
}

.body-copy {
  max-width: 62ch;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.35;
}

.section-rule {
  margin: clamp(3rem, 7vw, 8rem) 0;
  border: 0;
  border-top: 1px solid var(--black);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee span {
  padding-right: 0.35em;
  font-size: clamp(4rem, 12vw, 14rem);
  line-height: 0.75;
  text-transform: uppercase;
  white-space: nowrap;
}

/* About */

.about-hero {
  display: grid;
  min-height: 76svh;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--black);
}

.about-hero__copy,
.about-hero__visual {
  padding: var(--page-pad);
}

.about-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-hero__visual {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-left: 1px solid var(--black);
  background: var(--purple);
}

.about-hero__visual img {
  position: absolute;
  width: min(70%, 500px);
  max-height: 78%;
  object-fit: contain;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
}

.about-hero__visual img:first-child {
  transform: translate(-15%, -7%) rotate(-5deg);
}

.about-hero__visual img:last-child {
  transform: translate(17%, 10%) rotate(5deg);
}

.about-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(2rem, 6vw, 7rem) var(--page-pad);
}

.about-copy-grid p {
  margin: 0;
}

.reel-button {
  position: relative;
  display: grid;
  min-height: min(70svh, 800px);
  overflow: hidden;
  place-items: center;
  background: #111;
  color: var(--white);
}

.reel-button video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  filter: saturate(0.7);
  transition: opacity 300ms ease, transform 700ms var(--ease);
}

.reel-button span {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(7rem, 14vw, 13rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--white);
  border-radius: 50%;
  font-size: clamp(1rem, 2vw, 2rem);
  text-transform: uppercase;
}

.reel-button:hover video {
  opacity: 0.85;
  transform: scale(1.025);
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--black);
}

.client-strip div {
  display: grid;
  min-height: 9rem;
  place-items: center;
  padding: 1.25rem;
  border-right: 1px solid var(--black);
}

.client-strip div:last-child {
  border-right: 0;
}

.client-strip img {
  width: 74%;
  max-height: 4rem;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: multiply;
}

.quote-block {
  padding: clamp(3rem, 8vw, 9rem) var(--page-pad);
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.quote-block blockquote {
  max-width: 22ch;
  margin: 0 auto 2rem;
  font-size: clamp(2.2rem, 5vw, 6rem);
  line-height: 0.95;
}

.quote-block cite {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal;
  text-transform: uppercase;
}

/* Team, archive, press, fun */

.listing-header {
  display: flex;
  min-height: 42svh;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--page-pad);
  border-bottom: 1px solid var(--black);
}

.listing-header p {
  max-width: 23rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--black);
  gap: 1px;
}

.team-card {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  background: var(--paper);
  color: var(--black);
}

.team-card:nth-child(4n + 1) {
  background: var(--lilac);
}

.team-card:nth-child(4n + 2) {
  background: var(--acid);
}

.team-card:nth-child(4n + 3) {
  background: var(--pink);
}

.team-card__media {
  position: absolute;
  inset: 1.5rem 1.5rem 4.5rem;
  display: grid;
  place-items: center;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1rem 1rem rgba(0, 0, 0, 0.2));
  transition: transform 450ms var(--ease);
}

.team-card:nth-child(3n + 2) img {
  transform: rotate(3deg);
}

.team-card:nth-child(3n) img {
  transform: rotate(-3deg);
}

.team-card:hover img {
  transform: translateY(-0.5rem) rotate(0deg) scale(1.04);
}

.team-card__meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  border-top: 1px solid var(--black);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.archive-grid,
.press-grid,
.fun-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--black);
  gap: 1px;
}

.archive-card,
.press-card,
.fun-card {
  position: relative;
  display: flex;
  min-height: 32rem;
  overflow: hidden;
  flex-direction: column;
  background: var(--paper);
  color: var(--black);
}

.archive-card:nth-child(5n + 2),
.press-card:nth-child(5n + 2),
.fun-card:nth-child(2) {
  background: var(--lilac);
}

.archive-card:nth-child(5n + 4),
.press-card:nth-child(5n + 4),
.fun-card:nth-child(3) {
  background: var(--acid);
}

.archive-card__media,
.press-card__media,
.fun-card__media {
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  padding: 1.5rem;
}

.archive-card img,
.press-card img,
.fun-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 450ms var(--ease), filter 300ms ease;
}

.press-card img {
  object-fit: cover;
}

.archive-card:hover img,
.press-card:hover img,
.fun-card:hover img {
  filter: contrast(1.08);
  transform: scale(1.035) rotate(-1deg);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border-top: 1px solid var(--black);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.fun-card {
  min-height: 70svh;
}

.fun-card .card-meta {
  font-size: 1rem;
}

.fun-card__arrow {
  font-size: 2rem;
}

/* Project detail */

.project-page {
  --accent: var(--purple);
}

.project-hero {
  display: grid;
  min-height: calc(100svh - 7rem);
  grid-template-columns: 1.05fr 0.95fr;
  border-bottom: 1px solid var(--black);
}

.project-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--page-pad);
}

.project-hero__title {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 8vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.77;
  text-transform: uppercase;
}

.project-hero__meta {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--black);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.project-hero__visual {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-left: 1px solid var(--black);
  background: var(--accent);
}

.project-hero__visual::before {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 50%;
  content: "";
  animation: spin 16s linear infinite;
}

.project-hero__visual img {
  position: relative;
  z-index: 1;
  width: 74%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 1.4rem 1.6rem rgba(0, 0, 0, 0.34));
  animation: float 5s ease-in-out infinite;
}

.project-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 8vw, 10rem);
  padding: clamp(3rem, 8vw, 9rem) var(--page-pad);
  border-bottom: 1px solid var(--black);
}

.project-intro h2,
.project-intro p {
  margin: 0;
}

.project-intro h2 {
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.project-intro p {
  font-size: clamp(1.8rem, 3.5vw, 4rem);
  line-height: 0.98;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
  gap: 1px;
}

.project-media {
  display: grid;
  min-height: min(70svh, 850px);
  overflow: hidden;
  place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
  background: var(--paper);
}

.project-media.wide {
  grid-column: 1 / -1;
}

.project-media.small {
  min-height: 45svh;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media.contain img,
.project-media.small img {
  object-fit: contain;
}

.project-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
  color: var(--white);
}

.project-pagination a {
  display: flex;
  min-height: 28rem;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--page-pad);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  transition: color 220ms ease, background 220ms ease;
}

.project-pagination a:last-child {
  border-right: 0;
  text-align: right;
}

.project-pagination a:hover {
  background: var(--purple);
}

.project-pagination small {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.project-pagination strong {
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 400;
  line-height: 0.84;
  text-transform: uppercase;
}

/* Service detail */

.service-page {
  --accent: var(--purple);
}

.service-hero {
  display: grid;
  min-height: calc(100svh - 7rem);
  grid-template-columns: 1.02fr 0.98fr;
  border-bottom: 1px solid var(--black);
}

.service-hero__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--page-pad);
}

.service-hero__title {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 7.6vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.78;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.service-hero__footer > p {
  max-width: 18ch;
  margin: 3rem 0;
  font-size: clamp(1.65rem, 3vw, 3.6rem);
  line-height: 0.98;
}

.service-hero__meta {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--black);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-hero__visual {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  border-left: 1px solid var(--black);
  background:
    linear-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    var(--accent);
  background-size: 2.5rem 2.5rem, 2.5rem 2.5rem, auto;
}

.service-hero__visual::after {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.25rem rgba(255, 255, 255, 0.08);
  content: "";
}

.service-hero__orbit {
  position: absolute;
  z-index: 1;
  width: 62%;
  aspect-ratio: 1;
  border: 1px dashed rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  animation: spin 18s linear infinite reverse;
}

.service-hero__visual img {
  position: relative;
  z-index: 2;
  width: 76%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 1.4rem 1.7rem rgba(0, 0, 0, 0.38));
  animation: float 5s ease-in-out infinite;
}

.service-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 9rem);
  padding: clamp(3rem, 7vw, 8rem) var(--page-pad);
  border-bottom: 1px solid var(--black);
}

.service-overview h2,
.service-overview p {
  margin: 0;
}

.service-overview h2 {
  max-width: 24ch;
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 400;
  line-height: 0.98;
}

.service-overview__body {
  max-width: 58ch;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.42;
}

.service-overview__body p + p {
  margin-top: 1.35em;
}

.service-includes {
  background: var(--black);
  color: var(--white);
}

.service-includes__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 6rem) var(--page-pad);
}

.service-includes__header p,
.service-includes__header h2 {
  margin: 0;
}

.service-includes__header h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-align: right;
  text-transform: uppercase;
}

.service-includes__grid {
  display: grid;
  margin: 0;
  padding: 1px 0 0;
  background: rgba(255, 255, 255, 0.55);
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.service-includes__grid li {
  display: flex;
  min-height: 24rem;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--page-pad);
  background: var(--black);
}

.service-includes__grid span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.service-includes__grid p {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.7rem);
  line-height: 0.92;
}

.service-standard {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(3rem, 7vw, 8rem) var(--page-pad);
  border-bottom: 1px solid var(--black);
  background: var(--accent);
}

.service-standard p {
  margin: 0;
}

.service-standard > p:last-child {
  max-width: 30ch;
  font-size: clamp(1.9rem, 4vw, 4.8rem);
  line-height: 0.98;
}

.service-cta {
  display: flex;
  min-height: 34rem;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(3rem, 7vw, 8rem) var(--page-pad);
}

.service-cta p,
.service-cta h2 {
  margin: 0;
}

.service-cta h2 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.82;
  text-transform: uppercase;
}

.service-cta a {
  display: grid;
  width: clamp(11rem, 17vw, 15rem);
  flex: 0 0 auto;
  aspect-ratio: 1;
  place-items: center;
  padding: 1.25rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease, transform 350ms var(--ease);
}

.service-cta a:hover {
  background: var(--accent);
  color: var(--black);
  transform: rotate(-5deg) scale(1.04);
}

.service-pagination strong {
  max-width: 10ch;
}

/* Viral Snake */

.snake-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 38%, rgba(123, 36, 238, 0.16), transparent 34rem),
    radial-gradient(circle, rgba(255, 255, 255, 0.15) 0.55px, transparent 0.7px) 0 0 / 11px 11px,
    #010102;
}

.snake-page .content-panel {
  background: transparent;
}

.snake-game {
  --snake-green: #d2ff43;
  --snake-purple: #8f44ff;
  --snake-pink: #ff4fcf;
  display: grid;
  width: min(47rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0 4rem;
  color: var(--snake-green);
  font-family: var(--font-mono);
}

.snake-game__header {
  text-align: center;
  text-transform: uppercase;
}

.snake-game__header p,
.snake-game__header span,
.snake-game__help {
  margin: 0;
  font-size: clamp(0.58rem, 1.3vw, 0.75rem);
  letter-spacing: 0.34em;
  opacity: 0.68;
}

.snake-game__header h1 {
  margin: 0.25rem 0 0.2rem;
  color: var(--snake-green);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.82;
  text-shadow:
    0 0 0.35rem rgba(210, 255, 67, 0.9),
    0 0 1.8rem rgba(143, 68, 255, 0.72);
}

.snake-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--snake-green);
  background: rgba(0, 10, 5, 0.68);
  box-shadow: inset 0 0 1.2rem rgba(143, 68, 255, 0.14);
  font-size: clamp(0.64rem, 1.6vw, 0.82rem);
  letter-spacing: 0.1em;
}

.snake-hud span:nth-child(2) {
  text-align: center;
}

.snake-hud span:last-child {
  text-align: right;
}

.snake-hud strong {
  color: #fff;
  font-weight: 400;
}

.snake-board {
  position: relative;
  margin-top: 0.8rem;
  border: 2px solid var(--snake-green);
  background: #020304;
  box-shadow:
    0 0 1.4rem rgba(210, 255, 67, 0.18),
    0 0 3rem rgba(143, 68, 255, 0.12),
    inset 0 0 2.5rem rgba(143, 68, 255, 0.08);
}

.snake-board::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.025) 3px 4px);
  content: "";
  pointer-events: none;
}

.snake-board canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  outline: none;
}

.snake-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: 2rem;
  background: rgba(0, 8, 4, 0.82);
  text-align: center;
  backdrop-filter: blur(2px);
}

.snake-overlay h2 {
  margin: 0;
  color: var(--snake-green);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 0.84;
  text-shadow: 0 0 1rem rgba(210, 255, 67, 0.8);
}

.snake-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.snake-overlay button {
  min-width: 8rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--snake-green);
  color: var(--snake-green);
  font: inherit;
  letter-spacing: 0.18em;
  box-shadow: 0 0 1rem rgba(210, 255, 67, 0.12);
}

.snake-overlay button:hover,
.snake-overlay button:focus-visible {
  background: var(--snake-green);
  color: #000;
}

.snake-controls {
  display: none;
  grid-template-columns: repeat(3, 3.25rem);
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

.snake-controls button {
  display: grid;
  min-height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(210, 255, 67, 0.72);
  color: var(--snake-green);
  font-size: 1.15rem;
}

.snake-controls button:first-child {
  grid-column: 2;
}

.snake-controls button:nth-child(2) {
  grid-column: 1;
}

.snake-game__help {
  margin-top: 1rem;
  text-align: center;
}

@media (hover: none), (max-width: 760px) {
  .snake-controls {
    display: grid;
  }

  .snake-game {
    padding-top: 2rem;
  }

  .snake-game__help {
    font-size: 0.55rem;
  }
}

/* Modal and transient UI */

.vault-modal {
  position: fixed;
  z-index: 920;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px) saturate(0.7);
  animation: fade-in 180ms ease both;
}

.vault-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vault-access {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(38rem, calc(100vw - 2rem));
  min-height: min(34rem, calc(100svh - 2rem));
  place-items: center;
  align-content: center;
  gap: 1.2rem;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 50% 45%, rgba(123, 36, 238, 0.28), transparent 38%),
    radial-gradient(circle, rgba(255, 255, 255, 0.26) 0.55px, transparent 0.65px) 0 0 / 10px 10px,
    #020202;
  color: var(--white);
  text-align: center;
  box-shadow: 0 0 0 1rem rgba(0, 0, 0, 0.38), 0 2rem 8rem rgba(0, 0, 0, 0.9);
  animation: chat-window-in 300ms var(--ease) both;
}

.vault-access::before,
.vault-access::after {
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-color: rgba(255, 255, 255, 0.7);
  content: "";
  pointer-events: none;
}

.vault-access::before {
  top: 1rem;
  left: 1rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

.vault-access::after {
  right: 1rem;
  bottom: 1rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.vault-access__eyebrow,
.vault-access__message {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vault-access__eyebrow {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
}

.vault-access h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.78;
  text-transform: uppercase;
  text-shadow: 0 0 1.25rem rgba(151, 64, 255, 0.72);
}

.vault-access__message {
  color: #d2ff43;
  font-size: clamp(0.8rem, 2.2vw, 1.15rem);
}

.vault-access__seal {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.vault-access__seal::before,
.vault-access__seal::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.vault-access__seal::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.vault-access__seal span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d2ff43;
  box-shadow: 0 0 0.7rem rgba(210, 255, 67, 0.9);
}

.vault-access__seal span:nth-child(1) { transform: translate(-50%, -2.6rem); }
.vault-access__seal span:nth-child(2) { transform: translate(2.15rem, -50%); }
.vault-access__seal span:nth-child(3) { transform: translate(-50%, 2.15rem); }
.vault-access__seal span:nth-child(4) { transform: translate(-2.6rem, -50%); }

.vault-access__pin {
  display: flex;
  gap: 0.55rem;
}

.vault-access__pin i {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.vault-access__close {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.vault-access__close:hover,
.vault-access__close:focus-visible {
  background: var(--white);
  color: var(--black);
}

.pointer-trail__glyph {
  position: fixed;
  z-index: 12000;
  width: 1em;
  height: 1em;
  color: var(--white);
  font-family: "Segoe UI Symbol", "Arial Unicode MS", var(--font-display);
  font-size: var(--trail-size, 18px);
  line-height: 1;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 0 0.28rem rgba(255, 255, 255, 0.36);
  transform-origin: center;
  animation: pointer-trail-pop 920ms cubic-bezier(0.16, 0.72, 0.3, 1) forwards;
}

.pointer-trail__glyph--swirl {
  font-weight: 700;
}

.chat-modal {
  position: fixed;
  z-index: 850;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: rgba(6, 2, 12, 0.62);
  backdrop-filter: blur(12px) saturate(0.78);
  animation: fade-in 220ms ease both;
}

.chat-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chat-window {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 0 1rem;
  background-color: #020202;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.36) 0.5px, transparent 0.6px);
  background-size: 10px 10px;
  color: var(--white);
  box-shadow: 0 2.5rem 8rem rgba(0, 0, 0, 0.78);
  animation: chat-window-in 360ms var(--ease) both;
}

.chat-window__chrome {
  position: absolute;
  z-index: 4;
  top: 2rem;
  right: 2rem;
  left: 2rem;
  display: flex;
  height: auto;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.chat-window__mark {
  display: block;
}

.chat-window__mark small {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.55vw, 0.68rem);
  letter-spacing: 0.04em;
}

.chat-window__content {
  position: relative;
  display: flex;
  width: 80%;
  height: calc(100% - 4rem);
  min-height: 0;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.chat-window__header {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 7.75rem;
  flex: 0 0 7.75rem;
  align-items: center;
  justify-content: flex-end;
}

.chat-window__header p {
  display: none;
}

.chat-window__close {
  position: absolute;
  top: 4rem;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  transition: transform 320ms var(--ease);
}

.chat-window__close:hover {
  transform: rotate(90deg);
}

.chat-window__close svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chat-window__close circle,
.chat-window__close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.chat-window__body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  align-items: stretch;
  margin: 1rem 0 0;
}

.chat-character {
  position: relative;
  display: flex;
  width: 30%;
  height: 100%;
  min-height: 0;
  flex: 0 0 30%;
  overflow: hidden;
  background: transparent;
}

.chat-character::after {
  content: none;
}

.chat-character img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: drop-shadow(0 1rem 1.4rem rgba(0, 0, 0, 0.42));
  animation: chat-character-float 5.5s ease-in-out infinite;
}

.chat-character p {
  position: absolute;
  z-index: 1;
  top: 25%;
  left: 0;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0.65rem 1rem;
  overflow: hidden;
  background: var(--purple);
  color: var(--white);
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-weight: 400;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.chat-panel {
  position: relative;
  display: flex;
  min-width: 0;
  width: 70%;
  height: 100%;
  min-height: 0;
  flex: 1 1 70%;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.08);
}

.chat-panel::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 4rem;
  display: grid;
  width: clamp(2rem, 2.4vw, 2.75rem);
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  color: rgba(255, 255, 255, 0.96);
  content: "SPECTRUM \2605  VIRAL";
  font-size: clamp(0.72rem, 0.9vw, 1rem);
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
}

.chat-messages {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: clamp(0.85rem, 1.4vw, 1.25rem);
  overflow-y: auto;
  padding: clamp(1rem, 1.65vw, 1.65rem) clamp(3.25rem, 4vw, 4.5rem) clamp(1rem, 1.65vw, 1.65rem) clamp(1rem, 1.65vw, 1.65rem);
  scrollbar-color: var(--white) var(--black);
  scrollbar-width: thin;
}

.chat-message {
  max-width: 70%;
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.chat-message--user {
  align-self: flex-start;
  color: var(--white);
}

.chat-message--assistant {
  align-self: flex-end;
  color: #a900ff;
  font-weight: 400;
}

.chat-message a,
.chat-window__footer a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.chat-message a:hover,
.chat-message a:focus-visible,
.chat-window__footer a:hover,
.chat-window__footer a:focus-visible {
  color: var(--white);
}

.chat-typing {
  display: flex;
  align-self: flex-end;
  gap: 0.3rem;
  align-items: center;
  padding: 0.5rem 0;
}

.chat-typing span {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--purple);
  animation: chat-dot 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 160ms;
}

.chat-typing span:nth-child(3) {
  animation-delay: 320ms;
}

.chat-form {
  display: flex;
  min-height: 4rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-top: 1px solid currentColor;
}

.chat-form input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0.65rem 0.5rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.05vw, 1.05rem);
  text-transform: uppercase;
}

.chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.chat-form button {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--black);
  font-size: 1.6rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.chat-form button:hover:not(:disabled) {
  background: var(--purple);
  transform: scale(1.05);
}

.chat-form :disabled {
  cursor: wait;
  opacity: 0.55;
}

.chat-window__footer {
  flex: 0 0 auto;
  margin: 2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  z-index: 800;
  inset: 0;
  display: grid;
  padding: clamp(1rem, 3vw, 3rem);
  place-items: center;
  background: rgba(0, 0, 0, 0.96);
  color: var(--white);
  animation: fade-in 240ms ease both;
}

.modal video {
  width: min(94vw, 1500px);
  max-height: 88svh;
  background: #111;
}

.modal__close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--white);
  background: var(--black);
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 900;
  bottom: 1rem;
  left: 50%;
  max-width: calc(100vw - 2rem);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--white);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: toast-in 2.8s var(--ease) both;
}

.error-page {
  display: grid;
  min-height: calc(100svh - 5.6rem);
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.error-page strong {
  display: block;
  font-size: clamp(6rem, 22vw, 20rem);
  font-weight: 400;
  line-height: 0.75;
}

/* Motion */

@keyframes splash-progress-ready {
  0% { transform: scaleX(0); opacity: 1; }
  57% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes splash-leave {
  to { opacity: 0; visibility: hidden; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(-0.6rem) rotate(-1deg); }
  50% { transform: translateY(0.7rem) rotate(1deg); }
}

@keyframes pulse-dot {
  50% { opacity: 0.28; transform: scale(0.7); }
}

@keyframes ticker-pulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes chat-window-in {
  from { opacity: 0; transform: translateY(1.25rem) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chat-character-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.55rem); }
}

@keyframes chat-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes pointer-trail-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--trail-start, 0deg)) scale(0.3);
  }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--trail-x, 0px)), calc(-50% + var(--trail-y, -20px))) rotate(var(--trail-end, 120deg)) scale(1.15);
  }
}

@keyframes toast-in {
  0% { opacity: 0; transform: translate(-50%, 1rem); }
  12%, 82% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

@media (max-width: 1050px) {
  .content-panel {
    width: calc(100vw - 2rem);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-card {
    min-height: 29rem;
  }

  .archive-grid,
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .chat-modal {
    padding: 1rem;
  }

  .chat-window__content {
    width: 100%;
  }

  .chat-character {
    display: none;
  }

  .chat-panel {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 1rem;
  }

  .chat-modal {
    padding: 1rem;
  }

  .chat-window {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 1rem;
  }

  .chat-window__chrome {
    display: none;
  }

  .chat-window__content {
    width: 100%;
    height: 100%;
    padding: 0;
  }

  .chat-window__header {
    min-height: 4rem;
    flex-basis: 4rem;
  }

  .chat-window__close {
    top: 1rem;
    width: 2rem;
    height: 2rem;
  }

  .chat-window__body {
    display: flex;
    margin-top: 1rem;
  }

  .chat-character {
    display: none;
  }

  .chat-panel {
    width: 100%;
    height: 100%;
    flex-basis: 100%;
  }

  .chat-panel::after {
    bottom: 3.75rem;
    width: 1.55rem;
    font-size: 0.85rem;
  }

  .chat-messages {
    padding: 1rem 2.75rem 1rem 1rem;
  }

  .chat-message {
    max-width: 82%;
    font-size: clamp(0.95rem, 4.2vw, 1.1rem);
    line-height: 1.2;
  }

  .chat-window__footer {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.58rem;
    line-height: 0.8rem;
  }

  .site-header {
    padding: 0.65rem;
  }

  .splash__prompt {
    bottom: 1rem;
  }

  .home__instructions {
    bottom: 3.6rem;
  }

  .camera-switcher {
    right: auto;
    bottom: 0.75rem;
    left: 0.75rem;
    display: flex;
  }

  .npc__bubble {
    font-size: 0.7rem;
  }

  .home-about {
    right: 0.75rem;
    bottom: 0.75rem;
    left: auto;
    font-size: 0.72rem;
  }

  .home-fallback {
    grid-template-columns: 1fr 1fr;
    padding-top: 4.5rem;
  }

  .home-fallback__card {
    min-height: 30vh;
  }

  .site-menu {
    padding: 0.65rem;
  }

  .menu-list a {
    font-size: clamp(2.4rem, 8.3vh, 5rem);
  }

  .menu-footer span {
    display: none;
  }

  .content-stage {
    padding: 0;
  }

  .content-panel {
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .panel-bar {
    padding-right: 3.8rem;
  }

  .display-title {
    font-size: clamp(3.5rem, 18vw, 7rem);
  }

  .listing-header {
    min-height: 35svh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1.5rem;
  }

  .about-hero,
  .project-hero,
  .project-intro,
  .service-hero,
  .service-overview,
  .service-standard {
    grid-template-columns: 1fr;
  }

  .about-hero__copy {
    min-height: 70svh;
  }

  .about-hero__visual,
  .project-hero__visual,
  .service-hero__visual {
    min-height: 72svh;
    border-top: 1px solid var(--black);
    border-left: 0;
  }

  .about-copy-grid {
    grid-template-columns: 1fr;
  }

  .client-strip {
    grid-template-columns: 1fr 1fr;
  }

  .client-strip div {
    min-height: 7rem;
    border-bottom: 1px solid var(--black);
  }

  .team-grid,
  .archive-grid,
  .press-grid,
  .fun-grid,
  .project-gallery,
  .project-pagination {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-card {
    min-height: 25rem;
  }

  .archive-card,
  .press-card {
    min-height: 72svh;
  }

  .fun-card {
    min-height: 80svh;
  }

  .project-hero__copy {
    min-height: 62svh;
  }

  .service-hero__copy {
    min-height: 72svh;
  }

  .project-hero__title,
  .service-hero__title {
    font-size: clamp(4rem, 18vw, 8rem);
  }

  .service-includes__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-includes__header h2 {
    text-align: left;
  }

  .service-includes__grid {
    grid-template-columns: 1fr;
  }

  .service-includes__grid li {
    min-height: 18rem;
  }

  .service-standard {
    gap: 1.5rem;
  }

  .service-cta {
    min-height: 42rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .project-media,
  .project-media.wide {
    grid-column: auto;
    min-height: 60svh;
  }

  .project-pagination a {
    min-height: 18rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }
}

@media (max-width: 480px) {
  .home-fallback {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 36rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
