/* Riyad M — dark grid, neon accent.
   Haoqi's grid and type, Felix's 3D object and CRT screens, Hon Tran's dot field,
   Dave's bold framed colour field, Jackie's notebook page and stamps. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin-wdth-wght.woff2") format("woff2");
}

@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/caveat-latin-wght.woff2") format("woff2");
}

:root {
  --bg: #07090c;
  --bg-2: #0c1016;
  --bg-3: #121821;
  --line: rgba(226, 232, 240, 0.09);
  --line-2: rgba(226, 232, 240, 0.2);
  --text: #e7ecf1;
  --muted: #929daa;
  --neon: #3dff94;
  --neon-ink: #03140a;
  --neon-soft: rgba(61, 255, 148, 0.12);
  --neon-glow: rgba(61, 255, 148, 0.45);
  --blue: #2b4cff;
  --crt: #1f3dff;
  --paper: #f2f2ee;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --m: clamp(16px, 3.9vw, 56px);
  --cell: clamp(10px, 1vw, 16px);
  --header: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Haoqi's arrow cursor, in neon */
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 2.5 24 10.6l-9.3 2.6-3.1 9.3z' fill='%233dff94' stroke='%2303140a' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto;
  --cursor-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 2.5 27 11.8l-10.6 3-3.6 10.6z' fill='%23e7ecf1' stroke='%2303140a' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='24' cy='24' r='5' fill='%233dff94' stroke='%2303140a' stroke-width='1.4'/%3E%3C/svg%3E") 3 2, pointer;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
  background: var(--bg);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  html.js body {
    cursor: var(--cursor);
  }

  html.js a,
  html.js button,
  html.js summary,
  html.js label {
    cursor: var(--cursor-link);
  }
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--neon);
  color: var(--neon-ink);
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

svg use {
  pointer-events: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.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;
  top: 12px;
  left: var(--m);
  z-index: 100;
  padding: 10px 14px;
  background: var(--neon);
  color: var(--neon-ink);
  font-family: var(--mono);
  transform: translateY(-200%);
}

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

.mono {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

.hand {
  font-family: var(--hand);
  font-weight: 600;
}

/* Haoqi's grid: lines behind everything, crosses where sections begin */

.grid-lines {
  position: fixed;
  inset: 0 var(--m);
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-right: 1px solid var(--line);
  pointer-events: none;
}

.grid-lines i {
  border-left: 1px solid var(--line);
}

.grid-lines i:nth-child(4) {
  display: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.cross {
  position: absolute;
  top: 0;
  left: calc(var(--m) - 6.5px);
  right: calc(var(--m) - 6.5px);
  height: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.cross::before {
  content: "";
  position: absolute;
  left: 6.5px;
  right: 6.5px;
  top: 0;
  border-top: 1px solid var(--line);
}

.cross i {
  position: relative;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
}

.cross i::before,
.cross i::after {
  content: "";
  position: absolute;
  background: var(--line-2);
}

.cross i::before {
  left: 0;
  right: 0;
  top: 6px;
  height: 1px;
}

.cross i::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1px;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-3 > * {
  padding-inline: var(--cell);
}

/* Shared pieces */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 240ms ease, background-color 200ms ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 240ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-neon {
  background: var(--neon);
  color: var(--neon-ink);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .btn-neon:hover {
    box-shadow: 0 0 0 4px var(--neon-soft), 0 0 32px var(--neon-glow);
  }

  .btn:hover svg {
    transform: translate(2px, -2px);
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 200ms ease, text-underline-offset 200ms var(--ease-out);
}

.text-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover {
    color: var(--neon);
    text-underline-offset: 7px;
  }
}

.label {
  color: var(--neon);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.label::before {
  content: "[ ";
}

.label::after {
  content: " ]";
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 var(--neon-glow);
  animation: pulse 2.4s ease-out infinite;
  vertical-align: 1px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--neon-glow); }
  70% { box-shadow: 0 0 0 8px rgba(61, 255, 148, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 255, 148, 0); }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header);
  padding-inline: calc(var(--m) + var(--cell));
  transition: background-color 300ms ease, backdrop-filter 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 12, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding-block: 8px;
  padding-left: 14px;
  color: var(--muted);
  transition: color 200ms ease;
}

.nav-link[aria-current="location"],
.nav-link:focus-visible {
  color: var(--text);
}

.nav-link::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  color: var(--neon);
  opacity: 0;
  transition: opacity 200ms ease;
}

.nav-link[aria-current="location"]::before {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--neon);
  }
}

.menu-toggle,
.menu-close {
  display: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}

.menu-toggle:active,
.menu-close:active {
  transform: scale(0.97);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 0 var(--m) max(24px, env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
}

.mobile-nav .menu-close {
  display: inline-flex;
  align-items: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding-block: 24px;
}

.mobile-nav-link {
  padding-block: 6px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(40px, 12vw, 64px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1.05;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-nav-link[aria-current="location"] {
  color: var(--neon);
}

.mobile-nav-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 100svh;
  padding: calc(var(--header) + 24px) var(--m) 20px;
  overflow: hidden;
  isolation: isolate;
}

.dot-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle, rgba(231, 236, 241, 0.16) 1px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.dot-field-lit {
  inset: auto;
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  background-image: radial-gradient(circle, var(--neon) 1.3px, transparent 2px);
  -webkit-mask-image: radial-gradient(circle 190px at center, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  mask-image: radial-gradient(circle 190px at center, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  will-change: translate;
}

.hero.has-pointer .dot-field-lit {
  opacity: 1;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(1100px, 120vw);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side at 62% 50%, rgba(43, 76, 255, 0.34), transparent 70%),
    radial-gradient(closest-side at 44% 58%, rgba(61, 255, 148, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-intro {
  position: relative;
  z-index: 2;
}

.hero-role {
  font-size: clamp(22px, 1.1rem + 0.7vw, 30px);
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.15;
  max-width: 16ch;
}

.hero-intro .mono {
  max-width: 44ch;
}

.hero-stage {
  position: absolute;
  inset: 12% 0 max(18%, calc(310px - 14%));
  z-index: 1;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-stage.is-ready .hero-canvas {
  opacity: 1;
}

.hero-fallback {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(420px, 70%);
  transform: translateX(-30%);
  filter: grayscale(1);
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-fallback {
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
}

.hero-stage.no-webgl .hero-fallback,
html.no-js .hero-fallback {
  opacity: 1;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  padding-bottom: 28px;
  pointer-events: none;
}

.hero-bottom > * {
  pointer-events: auto;
}

.hero-title {
  grid-column: 1 / 3;
  padding-inline: var(--cell);
  font-size: clamp(34px, 4.3vw, 64px);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .line > span {
  display: inline-block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 24px;
  padding-inline: var(--cell);
}

.hero-status {
  position: relative;
  z-index: 2;
  grid-row: 4;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-status > span {
  display: flex;
  align-items: center;
}

.coords {
  justify-content: center;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 300ms ease;
}

.hero.pointer-seen .coords {
  opacity: 1;
}

.status-right {
  justify-content: flex-end;
  gap: 10px;
}

.status-right svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

/* Stats */

.stats {
  position: relative;
  padding: clamp(40px, 6vw, 72px) var(--m);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding-inline: var(--cell);
}

.stats-grid dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.stats-grid dd {
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats-grid dd span {
  color: var(--neon);
}

/* Sections */

.section {
  position: relative;
  padding: clamp(48px, 7vw, 112px) var(--m);
}

.section-head {
  align-items: start;
  row-gap: 20px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head > .label {
  grid-column: 1;
  grid-row: 1 / 3;
}

.section-head > h2 {
  grid-column: 2 / 4;
}

.section-head > h2 + * {
  grid-column: 2 / 3;
}

.section-head h2 {
  font-size: clamp(26px, 0.9rem + 1.9vw, 44px);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.section-head > p:not(.label),
.section-head > div p {
  max-width: 46ch;
  color: var(--muted);
}

.section-head > div .text-link {
  margin-top: 12px;
}

/* platform research and the archive are chapters of Work, so their heads step down */
.platforms,
.archive {
  padding-top: clamp(32px, 4.5vw, 72px);
}

.platforms .section-head,
.archive .section-head {
  margin-bottom: clamp(28px, 3vw, 44px);
}

.platforms .section-head h2,
.archive .section-head h2 {
  font-size: clamp(22px, 0.8rem + 1.1vw, 30px);
}

/* Services: Haoqi rows on the grid */

.service {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  transition: background-color 300ms ease;
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service > * {
  padding-inline: var(--cell);
}

.service-index {
  grid-column: 1;
  grid-row: 1;
  color: var(--muted);
}

.service h3 {
  grid-column: 1;
  grid-row: 2;
  margin-top: 8px;
  font-size: clamp(22px, 1rem + 0.9vw, 30px);
  font-weight: 650;
  font-stretch: 105%;
  line-height: 1.1;
  transition: transform 300ms var(--ease-out), color 200ms ease;
}

.service > p:not(.service-index) {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 42ch;
}

.service ul {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--muted);
}

.service li::before {
  content: "→ ";
  color: var(--neon);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover {
    background: linear-gradient(90deg, var(--neon-soft), transparent 70%);
  }

  .service:hover h3 {
    color: var(--neon);
    transform: translateX(8px);
  }
}

/* Work: CRT screens, after Felix */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
  padding-inline: var(--cell);
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-2);
  padding: 12px;
  transition: border-color 300ms ease, transform 400ms var(--ease-out);
}

.crt {
  display: block;
  padding: 10px;
  border-radius: 16px;
  background: #15181d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -10px 24px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.crt-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 16 / 9;
  padding: clamp(14px, 2vw, 24px);
  border-radius: 10px;
  overflow: hidden;
  background: var(--crt);
  color: #f3f5ff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 60px rgba(0, 0, 30, 0.55);
}

.crt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.crt-top,
.crt-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.crt-bar {
  display: block;
  height: 12px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.crt-bar span {
  display: block;
  width: var(--fill);
  height: 100%;
  background: repeating-linear-gradient(90deg, #f3f5ff 0 7px, transparent 7px 10px);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1400ms var(--ease-out) 300ms;
}

.work-card.is-visible .crt-bar span,
html:not(.motion-on) .crt-bar span {
  transform: none;
}

.crt-count small {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.crt-count {
  font-family: var(--sans);
  font-size: clamp(44px, 1rem + 4vw, 84px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  letter-spacing: 0;
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px 12px 10px;
}

.work-body h3 {
  font-size: clamp(21px, 1rem + 0.6vw, 26px);
  font-weight: 650;
  font-stretch: 105%;
  line-height: 1.15;
}

.work-body h3 a {
  text-decoration: none;
}

.work-body > p:not(.mono) {
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover {
    border-color: rgba(61, 255, 148, 0.4);
    transform: translateY(-4px);
  }

  .work-card:hover .crt-screen {
    animation: flicker 600ms steps(2) 1;
  }

  .work-body h3 a:hover {
    color: var(--neon);
  }
}

@keyframes flicker {
  0% { filter: brightness(1.25) saturate(1.2); }
  50% { filter: brightness(0.85); }
  100% { filter: none; }
}

/* Platform research: chunky condensed names, after Dave */

/* each platform is one band on the three-column grid: name, then its projects */
.platform {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding-block: 40px 44px;
  border-top: 1px solid var(--line-2);
}

.platform:last-child {
  border-bottom: 1px solid var(--line-2);
}

.platform-head {
  grid-column: 1;
  padding-inline: var(--cell);
}

.platform-head h3 {
  font-size: clamp(52px, 1rem + 6vw, 112px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.9;
  text-transform: uppercase;
}

.platform-tinder .platform-head h3 {
  color: var(--neon);
}

.platform-head p {
  margin-top: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
}

.platform-project {
  display: grid;
  gap: 12px;
  padding-inline: var(--cell);
}

.platform-project:nth-child(2n) {
  grid-column: 2;
}

.platform-project:nth-child(2n + 1) {
  grid-column: 3;
}

.platform-project:nth-child(n + 4) {
  margin-top: 40px;
}

.platform-cat {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.platform-project h4 {
  font-size: 22px;
  font-weight: 650;
  font-stretch: 105%;
  line-height: 1.15;
}

.platform-project > p:not(.mono) {
  color: var(--muted);
}

.platform-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  color: var(--muted);
}

.platform-foot .text-link {
  color: var(--text);
}

.platform-project.is-url-target h4 {
  color: var(--neon);
}

/* Archive: Haoqi's project list */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-inline: var(--cell);
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.filter span {
  color: var(--muted);
}

.filter:active {
  transform: scale(0.97);
}

.filter[aria-pressed="true"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--neon-ink);
}

.filter[aria-pressed="true"] span {
  color: var(--neon-ink);
}

@media (hover: hover) and (pointer: fine) {
  .filter:hover:not([aria-pressed="true"]) {
    border-color: var(--neon);
    color: var(--neon);
  }
}

.rows {
  border-top: 1px solid var(--line);
}

.row {
  border-bottom: 1px solid var(--line);
}

.row[hidden] {
  display: none;
}

.row summary {
  display: grid;
  grid-template-columns: 60px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 70px 24px;
  align-items: center;
  gap: 16px;
  padding: 22px var(--cell);
  list-style: none;
  transition: background-color 200ms ease, color 200ms ease;
}

.row summary::-webkit-details-marker {
  display: none;
}

.row-index,
.row-cat,
.row-tech,
.row-stats {
  color: var(--muted);
  font-size: 13px;
}

.row-index {
  color: var(--muted);
}

.row-name {
  font-size: clamp(18px, 1rem + 0.4vw, 22px);
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.2;
}

.row-stats {
  text-align: right;
  white-space: nowrap;
}

.row-chevron {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 260ms var(--ease-out);
}

.row[open] .row-chevron {
  transform: rotate(180deg);
}

.row:not([open]) .row-detail {
  display: none;
}

.row-detail {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-left: calc(60px + 16px);
  padding: 0 var(--cell) 28px;
  animation: detail-in 300ms var(--ease-out);
}

.row-detail > p:first-child {
  color: var(--muted);
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(-6px); }
}

@media (hover: hover) and (pointer: fine) {
  .row summary:hover {
    background: var(--neon-soft);
  }

  .row summary:hover .row-name {
    color: var(--neon);
  }
}

/* Capabilities: tool stamps, after Jackie */

.stamps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(12px, 1.6vw, 22px);
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-inline: var(--cell);
}

.stamp {
  display: grid;
  place-items: center;
  min-width: 118px;
  height: 118px;
  padding: 7px;
  border-radius: 14px;
  background: var(--neon);
  color: var(--neon-ink);
  transform: rotate(var(--tilt));
  transition: transform 400ms var(--ease-out);
}

.stamp span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0 12px;
  border: 2px dashed rgba(3, 20, 10, 0.55);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}

.stamp:nth-child(3n + 2) {
  background: var(--blue);
  color: #fff;
}

.stamp:nth-child(3n + 2) span {
  border-color: rgba(255, 255, 255, 0.55);
}

.stamp:nth-child(3n) {
  background: var(--paper);
}

@media (hover: hover) and (pointer: fine) {
  .stamp:hover {
    transform: rotate(0deg) scale(1.06);
  }
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 48px;
}

.skill-group {
  padding-inline: var(--cell);
}

.skill-group h3 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skill-group li {
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, padding-left 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .skill-group li:hover {
    color: var(--neon);
  }
}

/* Experience */

.job {
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.job-time {
  color: var(--muted);
  text-transform: uppercase;
}

.job h3 {
  font-size: clamp(22px, 1rem + 0.8vw, 30px);
  font-weight: 650;
  font-stretch: 105%;
  line-height: 1.12;
}

.job-company {
  margin-top: 6px;
  color: var(--muted);
}

.job > p:last-child {
  color: var(--muted);
  max-width: 48ch;
}

.education {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.education h3 {
  color: var(--text);
  text-transform: uppercase;
  font-size: 13px;
}

.education-lead {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 600;
  font-stretch: 105%;
  line-height: 1.2;
  max-width: 20ch;
}

.education-entry h4 {
  font-size: 19px;
  font-weight: 600;
}

.education-entry p {
  margin-top: 4px;
  color: var(--muted);
}

/* About: the notebook page, after Jackie */

.notebook {
  padding: clamp(10px, 1.2vw, 16px);
  border-radius: clamp(22px, 3vw, 36px);
  background: var(--neon);
}

.notebook-page {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(24px, 5vw, 72px);
  border-radius: clamp(14px, 2vw, 24px);
  background-color: #0a0e13;
  background-image:
    linear-gradient(rgba(61, 255, 148, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 255, 148, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

.taped-photo {
  position: relative;
  padding: 14px 14px 18px;
  background: var(--paper);
  transform: rotate(-3deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  transition: transform 500ms var(--ease-out);
}

.taped-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 60% 30%;
}

.taped-photo figcaption {
  margin-top: 10px;
  color: #15171a;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.tape {
  position: absolute;
  top: -14px;
  width: 96px;
  height: 30px;
  background: rgba(242, 242, 238, 0.55);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.tape-left {
  left: -18px;
  transform: rotate(-32deg);
}

.tape-right {
  right: -18px;
  transform: rotate(28deg);
}

@media (hover: hover) and (pointer: fine) {
  .taped-photo:hover {
    transform: rotate(0deg) scale(1.02);
  }
}

.notebook-text {
  display: grid;
  gap: 18px;
}

.notebook-text h2 {
  font-size: clamp(26px, 0.9rem + 1.8vw, 42px);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.02;
  text-transform: uppercase;
}

.notebook-text > p:not(.label) {
  max-width: 62ch;
}

.notebook-text a {
  color: var(--neon);
  text-underline-offset: 4px;
}

.notebook-text h3.hand {
  margin-top: 8px;
  color: var(--neon);
  font-size: 40px;
  line-height: 1;
  transform: rotate(-2deg);
  transform-origin: left;
}

.checklist {
  display: grid;
  gap: 6px;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: 18px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 12.8c2 1.4 3.6 3.4 5 5.6 2.8-5.6 6.6-10.4 12-14' fill='none' stroke='%233dff94' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Contact: a bold blue field in a black frame, after Dave */

.contact {
  position: relative;
  padding: clamp(24px, 4vw, 56px) var(--m) clamp(40px, 5vw, 72px);
}

.contact-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: min(92svh, 900px);
  border: clamp(8px, 0.9vw, 12px) solid #000;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
}

.contact-field::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -18%;
  width: 70%;
  aspect-ratio: 2.4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: -120px 260px 0 rgba(255, 255, 255, 0.06), -40px 520px 0 rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.contact-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(28px, 5vw, 72px);
}

.contact-copy .label {
  color: #fff;
}

.contact-copy h2 {
  font-size: clamp(38px, 0.8rem + 3.6vw, 76px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.92;
  text-transform: uppercase;
  max-width: 18ch;
}

.contact-copy > p:not(.label) {
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.86);
}

.contact-availability {
  color: #fff !important;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.contact-telegram {
  position: relative;
  grid-column: 1 / -1;
}

.contact-list > li:nth-child(3) {
  order: 1;
  grid-column: 1 / -1;
}

.note {
  position: absolute;
  right: 12px;
  top: -34px;
  color: #fff;
  font-size: 26px;
  transform: rotate(-4deg);
}

.contact-item {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  background: #05060a;
  color: #fff;
  text-decoration: none;
  transition: transform 200ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}

.contact-item .mono {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-transform: uppercase;
}

.contact-item strong {
  font-size: clamp(19px, 1rem + 0.6vw, 26px);
  font-weight: 700;
  font-stretch: 100%;
  line-height: 1.15;
}

.contact-item em {
  font-style: normal;
  color: var(--neon);
}

.contact-primary {
  background: var(--neon);
  color: var(--neon-ink);
}

.contact-primary .mono,
.contact-primary em {
  color: rgba(3, 20, 10, 0.72);
}

.break {
  overflow-wrap: anywhere;
}

.contact-item:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .contact-item:hover {
    transform: translateY(-3px);
    background: #fff;
    color: #05060a;
  }

  .contact-item:hover .mono {
    color: rgba(5, 6, 10, 0.6);
  }

  .contact-primary:hover {
    background: #fff;
  }
}

.contact-portrait {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-right: -6%;
}

.contact-portrait img {
  width: 100%;
  filter: grayscale(1) contrast(1.08);
  transform: translate3d(0, var(--lift, 0px), 0);
  will-change: transform;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 28px;
  margin-top: 28px;
  padding-inline: var(--cell);
}

.socials a {
  padding-block: 10px;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .socials a:hover {
    color: var(--neon);
  }
}

/* Footer */

.site-footer {
  padding: 20px var(--m) calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.to-top {
  justify-self: end;
  padding-block: 8px;
  text-decoration: none;
}

/* Motion */

html.motion-on [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

html.motion-on [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

/* revealed elements keep their own transitions alongside the reveal */
html.motion-on .work-card {
  transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out), border-color 300ms ease, transform 400ms var(--ease-out);
}

html.motion-on .stamp {
  transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out), transform 400ms var(--ease-out);
}

html.motion-on .service {
  transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out), background-color 300ms ease;
}
html.motion-on .hero-title .line > span {
  transform: translate3d(0, 110%, 0);
  transition: transform 800ms var(--ease-out);
}

html.motion-on .hero-title .line:nth-child(2) > span { transition-delay: 90ms; }
html.motion-on .hero-title .line:nth-child(3) > span { transition-delay: 180ms; }

html.motion-on .hero.is-ready .hero-title .line > span {
  transform: none;
}

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

  .contact-portrait img {
    transform: none;
  }
}

/* Small desktops: the third column is ~390px, keep both hero actions on one line */

@media (max-width: 85rem) and (min-width: 57.51rem) {
  .hero-actions {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .hero-actions .btn {
    padding-inline: 18px;
  }

  .hero-actions .text-link {
    font-size: 14px;
  }
}

/* Tablet */

@media (max-width: 64rem) {
  .nav {
    gap: 10px;
  }

  .row summary {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 0.8fr) 60px 24px;
  }

  .row-tech {
    display: none;
  }

  .row-detail {
    margin-left: 0;
  }
}

@media (max-width: 57.5rem) {
  :root {
    --header: 64px;
  }

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

  .grid-lines i:nth-child(n + 2) {
    display: none;
  }

  .cross i:nth-child(2),
  .cross i:nth-child(3) {
    visibility: hidden;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }

  .cols-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-intro {
    gap: 12px;
  }

  .hero-intro p:last-child {
    display: none;
  }

  .section-head > .label,
  .section-head > h2,
  .section-head > h2 + * {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-stage {
    position: relative;
    inset: auto;
    height: min(44svh, 400px);
    margin-inline: calc(var(--m) * -1);
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 8px;
  }

  .hero-title {
    grid-column: 1;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    white-space: nowrap;
  }

  .coords {
    display: none !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .section-head {
    gap: 16px;
  }

  .service {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }

  .service-index,
  .service h3,
  .service > p:not(.service-index),
  .service ul {
    grid-column: 1;
    grid-row: auto;
  }

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

  .platform {
    grid-template-columns: 1fr;
    padding-block: 32px 0;
  }

  .platform-head {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-2);
  }

  .platform-project,
  .platform-project:nth-child(n) {
    grid-column: 1;
    margin-top: 0;
    padding-block: 26px;
    border-bottom: 1px solid var(--line);
  }

  .platform-project:last-child {
    border-bottom: 0;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job {
    gap: 10px;
  }

  .education {
    gap: 20px;
  }

  .notebook-page {
    grid-template-columns: 1fr;
  }

  .taped-photo {
    max-width: 340px;
    margin: 10px auto 0;
  }

  .contact-field {
    grid-template-columns: 1fr;
  }

  .contact-field::before {
    display: none;
  }

  .contact-portrait {
    width: min(420px, 90%);
    margin: -10px auto 0;
  }

  .site-footer {
    gap: 6px;
  }

  .site-footer p:nth-child(2) {
    text-align: left;
  }

  .to-top {
    justify-self: start;
  }
}

/* Tablet portrait: use the width instead of stretching the phone layout */

@media (min-width: 40.01rem) and (max-width: 57.5rem) {
  .hero-intro {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  .hero-title {
    font-size: 5.4vw;
  }

  .service {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    column-gap: 24px;
  }

  .service-index,
  .service h3 {
    grid-column: 1;
  }

  .service > p:not(.service-index) {
    grid-column: 2;
    grid-row: 1;
  }

  .service ul {
    grid-column: 2;
    grid-row: 2;
  }

  .stamps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .stamp {
    min-width: 0;
    height: auto;
    aspect-ratio: 1;
  }
}

/* Landscape phones: put the 3D phone beside the headline so the first screen holds both */

@media (max-width: 57.5rem) and (orientation: landscape) and (max-height: 540px) {
  .hero {
    display: grid;
    min-height: auto;
    padding-top: calc(var(--header) + 14px);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
      "intro stage"
      "title stage"
      "actions stage"
      "status status";
    align-content: start;
    column-gap: 24px;
    row-gap: 12px;
  }

  .hero-intro {
    grid-area: intro;
    gap: 8px;
  }

  .hero-role {
    font-size: 17px;
    max-width: none;
  }

  .hero-intro .mono {
    display: none;
  }

  .hero-bottom {
    display: contents;
  }

  .hero-title {
    grid-area: title;
    font-size: 23px;
    font-stretch: 78%;
    line-height: 0.98;
  }

  .hero-actions {
    grid-area: actions;
  }

  .hero-stage {
    grid-area: stage;
    align-self: stretch;
    height: auto;
    min-height: 220px;
    margin: 0;
  }

  .hero-status {
    grid-area: status;
    margin-top: 6px;
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 16px;
  }

  /* hero: the headline leads, and the whole first screen fits one phone screen */
  .hero {
    gap: 16px;
  }

  .hero-role {
    font-size: 18px;
    max-width: none;
  }

  .hero-stage {
    height: min(40svh, 330px);
  }

  .hero-bottom {
    gap: 18px;
  }

  .hero-title {
    font-size: clamp(29px, 8.2vw, 38px);
    font-stretch: 86%;
    letter-spacing: -0.01em;
  }

  .section-head h2,
  .notebook-text h2 {
    font-size: 22px;
    font-stretch: 85%;
  }

  .contact-copy h2 {
    font-size: clamp(34px, 9.6vw, 44px);
  }

  .hero-intro .mono {
    font-size: 13px;
  }

  .row summary {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .row-cat,
  .row-stats {
    display: none;
  }

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

  /* a clean 3 × 2 sheet of stamps instead of 3 + 2 + 1 */
  .stamps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .stamp {
    min-width: 0;
    height: auto;
    aspect-ratio: 1;
  }

  .stamp span {
    font-size: 16px;
  }

  /* skills and tech tags read as inline lists on a phone, not rows of boxes */
  .skill-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
  }

  .skill-group li {
    padding: 0;
    border: 0;
  }

  .skill-group li:not(:last-child)::after,
  .work-card .chips li:not(:last-child)::after,
  .platform-project .chips li:not(:last-child)::after,
  .row-detail .chips li:not(:last-child)::after {
    content: " · ";
    color: var(--muted);
    white-space: pre;
  }

  .work-card .chips,
  .platform-project .chips,
  .row-detail .chips {
    display: block;
    line-height: 1.6;
  }

  .work-card .chips li,
  .platform-project .chips li,
  .row-detail .chips li {
    display: inline;
    padding: 0;
    border: 0;
  }

  .socials {
    gap: 0 22px;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-footer p:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .to-top {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .contact-item .break {
    font-size: 16px;
    letter-spacing: -0.01em;
  }

  .hero-status {
    letter-spacing: 0;
  }

  .status-right svg {
    display: none;
  }

  .stats-grid dd {
    font-size: 32px;
  }

  .note {
    font-size: 22px;
    top: -30px;
  }
}
