/* ==========================================================================
   RiJoLabs — style.css
   01 Tokens · 02 Base · 03 Background · 04 Components · 05 Nav
   06 Hero & marquee · 07 About · 08 Overview · 09 Project template
   10 Flow & code panel · 11 Roommates deep-dive · 12 Vision · 13 Contact
   14 Mockups · 15 Motion preferences
   ========================================================================== */

/* 01 — TOKENS ------------------------------------------------------------ */
:root {
  --bg: #0A0A0D;
  --surface: #121218;
  --surface-2: #1A1A22;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.15);
  --text: #F5F5F7;
  --muted: #9CA0AB;
  --dim: #747884;

  --lime: #D4FF3A;
  --lime-rgb: 212, 255, 58;
  --blue: #5B8CFF;
  --coral: #FF7A59;
  --green: #3DDC97;
  --amber: #FFC53D;
  --red: #FF5A5F;

  --accent: var(--lime);
  --accent-rgb: var(--lime-rgb);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 48px);
  --container: 1240px;
  --r-lg: 24px;
  --r-md: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.project--blue  { --accent: var(--blue);  --accent-rgb: 91, 140, 255; }
.project--coral { --accent: var(--coral); --accent-rgb: 255, 122, 89; }
.project--green { --accent: var(--green); --accent-rgb: 61, 220, 151; }
.project--amber { --accent: var(--amber); --accent-rgb: 255, 197, 61; }

/* 02 — BASE -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--lime); color: #0A0A0D; }

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

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--lime);
  color: #0A0A0D;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section { position: relative; padding-block: clamp(4.5rem, 11vw, 9rem); }

/* 03 — BACKGROUND TEXTURE ------------------------------------------------ */
.bg-grid, .bg-noise, .cursor-glow { position: fixed; pointer-events: none; }

.bg-grid {
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 100% 75% at 50% 0%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 75% at 50% 0%, #000 25%, transparent 100%);
}

.bg-noise {
  inset: -120px;
  z-index: -2;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.cursor-glow {
  top: 0; left: 0;
  z-index: -1;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--lime-rgb), 0.07), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s;
  will-change: transform;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-40px, 30px); }
  40%  { transform: translate(30px, -50px); }
  60%  { transform: translate(-60px, -20px); }
  80%  { transform: translate(50px, 40px); }
  100% { transform: translate(0, 0); }
}

@media (hover: hover) and (pointer: fine) {
  .bg-noise { animation: grain 1.4s steps(5) infinite; }
  .cursor-glow.is-on { opacity: 1; }
}

/* 04 — COMPONENTS -------------------------------------------------------- */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent { color: var(--accent); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6.2vw, 4.75rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38em;
}

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn--primary { background: var(--lime); color: #0A0A0D; }
.btn--primary:hover { background: #E2FF70; }
.btn--ghost { border-color: var(--border-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn--sm { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
.btn--xl {
  min-height: 68px;
  padding: 1rem 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.97); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text);
}

/* Card with cursor spotlight (desktop only, driven by --mx / --my) */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  isolation: isolate;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.11), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .spot:hover::after { opacity: 1; }
  .spot:hover { border-color: rgba(var(--accent-rgb), 0.28); }
}
.spot { transition: border-color 0.3s; }

/* Scroll reveal — content stays visible without JS */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 75ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* 05 — NAV --------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 13, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.3s;
}
.nav.is-scrolled::before { opacity: 1; }
body.menu-open .nav::before { opacity: 0; }

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  min-height: 44px;
  padding-block: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}
.wordmark span {
  margin-left: 1px;
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--lime);
}

.nav__links { display: none; align-items: center; gap: 0.25rem; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav__link.is-active::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 0.5rem; }
.nav__cta { display: none; }

.nav__toggle {
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 1rem) max(var(--gutter), env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: rgba(10, 10, 13, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s; }
.mobile-menu__links { display: grid; gap: 0.25rem; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 60ms + 80ms);
}
.mobile-menu__foot { color: var(--muted); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .mobile-menu { display: none; }
}

/* 06 — HERO & MARQUEE ---------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 1.5rem);
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
  overflow: hidden;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -15%;
  z-index: -1;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--lime-rgb), 0.09), transparent 65%);
  pointer-events: none;
}

.hero__label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.hero__label::before { content: ""; width: 28px; height: 1px; background: var(--lime); }

.hero__title {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, min(9vw, 14.5vh), 8.5rem);
  font-size: clamp(2.75rem, min(9vw, 14.5svh), 8.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.04em 0.14em 0;
  margin: -0.06em -0.04em -0.14em 0;
}
.hero__title .w > span {
  display: inline-block;
  animation: wordUp 0.65s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms + 60ms);
}
@keyframes wordUp {
  from { transform: translateY(105%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes fadeUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.hero__sub {
  max-width: 34em;
  margin-top: clamp(1.25rem, 3vh, 2rem);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
  animation: fadeUp 0.55s var(--ease) 0.5s both;
}
.hero__sub strong { color: var(--text); font-weight: 500; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
  animation: fadeUp 0.55s var(--ease) 0.62s both;
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.55s var(--ease) 0.68s both;
}
.hero__facts { color: var(--text); }
.hero__facts i { font-style: normal; color: var(--lime); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.scroll-cue__line {
  position: relative;
  width: 1px; height: 32px;
  background: var(--border-2);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  animation: cue 2s var(--ease) infinite;
}
@media (max-width: 479px) { .scroll-cue { display: none; } }
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(18, 18, 24, 0.6);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.75rem;
  padding: 1rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--muted);
}
.marquee__group i { font-style: normal; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 07 — ABOUT ------------------------------------------------------------- */
.about__grid { display: grid; gap: 1rem; }

.team-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
html.js .team-photo.reveal { transform: scale(0.96); transition-duration: 1.1s; }
html.js .team-photo.reveal.is-in { transform: none; }
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.team-photo.is-loaded img { opacity: 1; }
.team-photo.is-missing img { display: none; }

.team-photo__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background:
    radial-gradient(circle at 28% 38%, rgba(var(--lime-rgb), 0.1), transparent 45%),
    radial-gradient(circle at 74% 62%, rgba(255, 255, 255, 0.05), transparent 45%),
    var(--surface);
}
.team-photo__ph::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.team-photo.is-loaded .team-photo__ph { visibility: hidden; }
.team-photo__initials {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 11rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.team-photo__initials span:first-child { color: var(--text); }
.team-photo__initials span:last-child { color: transparent; -webkit-text-stroke: 1.5px var(--lime); }
.team-photo__initials i { width: 1px; height: 0.7em; background: var(--border-2); }

.people { display: grid; gap: 1rem; }
.person { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.5rem; }
.person__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.person__bio { color: var(--muted); }
.person .btn { margin-top: auto; }
.person__bio + .btn { margin-top: 0.6rem; }

.about__line {
  max-width: 24em;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2.125rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .team-photo { aspect-ratio: auto; min-height: 480px; height: 100%; }
  .person { padding: 1.75rem; flex: 1; }
  .people { grid-template-rows: 1fr 1fr; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .people { grid-template-columns: 1fr 1fr; }
  .team-photo { aspect-ratio: 16 / 10; }
}

/* 08 — PROJECTS OVERVIEW (BENTO) ---------------------------------------- */
.bento { display: grid; gap: 1rem; }
.bento-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 300px;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  text-decoration: none;
  overflow: hidden;
}
.bento-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.bento-card__viz {
  display: flex;
  align-items: flex-end;
  flex: 1;
  min-height: 96px;
  color: var(--accent);
}
.bento-card__viz svg { width: 100%; max-width: 340px; height: auto; overflow: visible; }
.bento-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.bento-card__line { margin-top: 0.4rem; color: var(--muted); }
.bento-card__go {
  position: absolute;
  right: 1.5rem; bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--text);
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.bento-card__text { padding-right: 3.25rem; }
@media (hover: hover) and (pointer: fine) {
  .bento-card:hover .bento-card__go { background: var(--accent); border-color: var(--accent); color: #0A0A0D; transform: translateY(3px); }
}

.viz-bars { display: flex; align-items: flex-end; gap: 8px; width: 100%; max-width: 300px; height: 96px; }
.viz-bars i {
  flex: 1;
  height: calc(var(--h) * 1%);
  border-radius: 6px 6px 2px 2px;
  background: rgba(var(--accent-rgb), 0.22);
}
.viz-bars i:last-child { background: var(--accent); }

.viz-rank { display: grid; gap: 9px; width: 100%; max-width: 300px; }
.viz-rank div { display: flex; align-items: center; gap: 10px; }
.viz-rank b { width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.28); }
.viz-rank i { height: 12px; width: calc(var(--w) * 1%); border-radius: 6px; background: rgba(var(--accent-rgb), 0.22); }
.viz-rank div:first-child b, .viz-rank div:first-child i { background: var(--accent); }
.viz-rank em {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}

@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento-card:nth-child(1), .bento-card:nth-child(4) { grid-column: span 7; }
  .bento-card:nth-child(2), .bento-card:nth-child(3) { grid-column: span 5; }
  .bento-card { min-height: 340px; padding: 1.75rem; }
}

/* 09 — PROJECT TEMPLATE -------------------------------------------------- */
.project {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 9rem);
  border-top: 1px solid var(--border);
  overflow: hidden;
  overflow: clip;
}
.project__bignum {
  position: absolute;
  top: clamp(1rem, 4vw, 3rem);
  right: -0.04em;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(11rem, 34vw, 30rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.16);
  pointer-events: none;
  user-select: none;
}
.project--flip .project__bignum { right: auto; left: -0.04em; }

.project__grid { display: grid; gap: 2.5rem; }
.project__head { display: grid; justify-items: start; gap: 1rem; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.project__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.project__oneliner {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.project__note { font-size: 0.9375rem; color: var(--muted); }
.project__note b { color: var(--text); font-weight: 500; }

.project__visual { display: grid; justify-items: center; gap: 1rem; min-width: 0; }
.project__body { display: grid; gap: 2rem; min-width: 0; }

.block { display: grid; gap: 0.6rem; }
.block p { font-size: 1.0625rem; color: #D5D7DE; max-width: 36em; }

.features { display: grid; gap: 0.8rem; }
.features li { position: relative; padding-left: 1.75rem; color: #D5D7DE; }
.features li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.5em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.demo-tag { color: var(--dim); }

@media (min-width: 960px) {
  .project__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head visual" "body visual";
    column-gap: clamp(2.5rem, 6vw, 5.5rem);
    row-gap: 2.75rem;
    align-items: start;
  }
  .project--flip .project__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas: "visual head" "visual body";
  }
  .project__head { grid-area: head; }
  .project__body { grid-area: body; }
  .project__visual { grid-area: visual; position: sticky; top: calc(var(--nav-h) + 2rem); }
}

.subsection { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.subsection__head { display: grid; gap: 0.6rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

/* 10 — FLOW DIAGRAM & CODE PANEL ---------------------------------------- */
.flow { position: relative; }
.flow__rail {
  position: absolute;
  left: 13px; top: 8px; bottom: 8px;
  width: 21px;
  overflow: hidden;
}
.flow__rail::before {
  content: "";
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border-2);
}
.flow__dot { position: absolute; inset: 0; animation: flowY 6s linear infinite; }
.flow__dot::before {
  content: "";
  position: absolute;
  left: 6px; top: -9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(var(--accent-rgb), 0.7);
}
@keyframes flowY { from { transform: translateY(0); } to { transform: translateY(calc(100% + 9px)); } }
@keyframes flowX { from { transform: translateX(0); } to { transform: translateX(calc(100% + 9px)); } }

.flow__list { position: relative; display: grid; gap: 1.75rem; }
.flow__node {
  position: relative;
  margin-left: 48px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.flow__node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.22), inset 0 0 18px rgba(var(--accent-rgb), 0.08);
  opacity: 0;
  animation: flowNode 6s linear infinite;
  animation-delay: calc(var(--i) * 1.5s + 0.35s);
  pointer-events: none;
}
@keyframes flowNode {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  22%, 100% { opacity: 0; }
}
.flow__step { display: block; margin-bottom: 0.3rem; color: var(--accent); }
.flow__name { font-weight: 600; line-height: 1.3; }
.flow__desc { margin-top: 0.25rem; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }

@media (min-width: 900px) {
  .flow__rail { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 21px; margin-top: -10px; }
  .flow__rail::before { left: 0; right: 0; top: 10px; bottom: auto; width: auto; height: 1px; }
  .flow__dot { animation-name: flowX; }
  .flow__dot::before { left: -9px; top: 6px; }
  .flow__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  .flow__node { margin-left: 0; }
}

.hood { margin-top: 1.5rem; overflow: hidden; }
.hood__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 60px;
  padding: 0.9rem 1.25rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.hood__toggle-text { display: grid; gap: 0.15rem; }
.hood__toggle-text b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.hood__toggle-text span { font-size: 0.9375rem; color: var(--muted); }

.plus {
  position: relative;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}
.plus::after { transform: rotate(90deg); }
[aria-expanded="true"] > .plus::after { transform: rotate(0deg); }

/* Accessible collapse (grid rows trick) */
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.collapse > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s 0.55s; }
.collapse.is-open { grid-template-rows: 1fr; }
.collapse.is-open > div { visibility: visible; transition: visibility 0s; }

.code { border-top: 1px solid var(--border); background: #0C0C10; }
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.6rem 0.4rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.code__copy {
  min-width: 76px;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.code__copy:hover { border-color: var(--accent); }
.code__copy.is-done { border-color: var(--accent); color: var(--accent); }
.code pre {
  margin: 0;
  padding: 1rem 0;
  overflow-x: auto;
  counter-reset: ln;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  white-space: normal;
  color: #C9CCD4;
  -webkit-overflow-scrolling: touch;
}
.code code { display: block; width: max-content; min-width: 100%; font: inherit; }
.code .ln { display: block; min-height: 1.75em; padding-right: 1.25rem; white-space: pre; }
.code .ln::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 2.75rem;
  margin-right: 1rem;
  text-align: right;
  color: #5F636F;
  -webkit-user-select: none;
  user-select: none;
}
.tk-k { color: #8FB4FF; }
.tk-s { color: var(--green); }
.tk-r { color: var(--amber); }
.tk-c { color: #7D828F; font-style: italic; }
.tk-f { color: #F5F5F7; }
.hood__foot { padding: 1rem 1.25rem; border-top: 1px solid var(--border); font-size: 0.9375rem; color: var(--muted); }

/* 11 — ROOMMATES DEEP-DIVE ---------------------------------------------- */
.rm-quote {
  position: relative;
  max-width: 17em;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.micro-quote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.familiar { display: grid; gap: 1rem; }
.familiar__card { display: grid; align-content: start; gap: 0.6rem; padding: 1.5rem; }
.familiar__card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.familiar__card p { color: var(--muted); }
@media (min-width: 760px) { .familiar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* How it works — numbered timeline, line fills on scroll (--p: 0 → 1) */
.steps-wrap { position: relative; }
.steps__rail {
  position: absolute;
  left: 19px; top: 20px; bottom: 20px;
  width: 2px;
  background: var(--border-2);
}
.steps__fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(var(--p, 0));
  transform-origin: 50% 0;
}
.steps { position: relative; display: grid; gap: 2rem; }
.step { position: relative; padding-left: 62px; min-height: 40px; }
.step__n {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}
.step h4 {
  padding-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.step p { margin-top: 0.5rem; color: var(--muted); }
@media (min-width: 900px) {
  .steps__rail { left: 20px; right: 12%; top: 19px; bottom: auto; width: auto; height: 2px; }
  .steps__fill { transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .step { padding-left: 0; padding-top: 60px; }
}

/* Tabs */
.tabs__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.tabs__tab {
  min-height: 46px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 15px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { background: var(--accent); color: #17100D; font-weight: 600; }
.tabs__panel { margin-top: 1.75rem; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-entering { animation: fadeUp 0.5s var(--ease) both; }
.tabs__intro { max-width: 36em; margin-bottom: 1.5rem; font-size: 1.0625rem; color: #D5D7DE; }
@media (min-width: 680px) {
  .tabs__list { display: inline-flex; }
  .tabs__tab { padding-inline: 1.35rem; }
}

.feat-grid { display: grid; gap: 1rem; }
.feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-content: start; gap: 0.5rem 1rem; padding: 1.25rem; }
.feat__icon { width: 40px; height: 40px; color: var(--accent); }
.feat h4 { align-self: center; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.feat p { grid-column: 1 / -1; font-size: 0.9688rem; line-height: 1.55; color: var(--muted); }
.feat .micro-quote { grid-column: 1 / -1; margin-bottom: 0.35rem; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feat { grid-template-columns: 1fr; padding: 1.5rem; }
  .feat:nth-child(3), .feat:nth-child(4), .feat:nth-child(7), .feat:nth-child(8) { grid-column: span 2; }
}

.games { display: grid; gap: 1rem; }
.game { overflow: hidden; }
.game__art { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--border); }
.game__art svg { width: 100%; height: 100%; }
.game__text { display: grid; gap: 0.4rem; padding: 1.25rem; }
.game__text h4 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.game__text p { color: var(--muted); }
.games__goal { margin-top: 1.5rem; color: var(--accent); }
@media (min-width: 760px) { .games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Comparison table — stacked cards on mobile, real table from 720px */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare tbody, .compare tr, .compare th, .compare td { display: block; }
.compare tr {
  margin-bottom: 0.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.compare tbody th {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
}
.compare td { padding: 0.5rem 0; color: var(--muted); }
.compare td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.compare td.is-us { color: var(--text); }
.compare td.is-us::before { color: var(--accent); }
@media (min-width: 720px) {
  .compare { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
  .compare thead { position: static; width: auto; height: auto; clip: auto; display: table-header-group; }
  .compare tbody { display: table-row-group; }
  .compare tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .compare th, .compare td { display: table-cell; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
  .compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
  .compare thead th {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .compare tbody th { width: 18%; margin: 0; font-size: 1.125rem; }
  .compare td { width: 41%; }
  .compare td::before { display: none; }
  .compare .is-us { background: rgba(var(--accent-rgb), 0.07); border-left: 1px solid rgba(var(--accent-rgb), 0.3); }
  .compare thead th.is-us { color: var(--accent); }
}

.roadmap { position: relative; display: grid; gap: 1rem; }
.phase { display: grid; gap: 0.6rem; padding: 1.25rem 1.4rem; }
.phase__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.phase h4 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.phase p { color: var(--muted); max-width: 46em; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.badge--now { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.badge--now::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
.badge--next { color: var(--text); }
.phase--now { border-color: rgba(var(--accent-rgb), 0.4); }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.7); opacity: 0.35; }
}
.roadmap__market { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; }
@media (min-width: 900px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.number { display: grid; gap: 0.35rem; padding: 1.4rem 1.25rem; box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.number__val {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6.5vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.number__label { font-size: 0.9375rem; line-height: 1.3; color: var(--muted); }
@media (min-width: 640px) { .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .numbers { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.principles li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.principles li:first-child { border-top: 1px solid var(--border); }
.principles li::before { content: "✦"; flex-shrink: 0; font-size: 0.5em; color: var(--accent); transform: translateY(-0.25em); }

.built { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); }
.built p { max-width: 44em; font-size: 1.0625rem; color: #D5D7DE; }

/* 12 — VISION / COMING SOON --------------------------------------------- */
.vm { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.vm__block { display: grid; gap: 1.1rem; justify-items: start; }
.vm__text {
  max-width: 22em;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}
.vm__text em { font-style: normal; }
html.js .vm__text .wd { color: var(--dim); transition: color 0.45s; }
html.js .vm__text .wd.is-lit { color: var(--text); }
html.js .vm__text em .wd.is-lit { color: var(--lime); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  cursor: pointer;
}
.more .plus { width: 28px; height: 28px; }
.vm__long { max-width: 44em; padding-top: 0.5rem; font-size: 1.0625rem; color: var(--muted); }

.pillars { display: grid; gap: 1rem; margin-top: clamp(3.5rem, 8vw, 6rem); }
.pillar { display: grid; align-content: start; gap: 0.6rem; padding: 1.5rem; }
.pillar h3 { font-family: var(--font-display); font-size: 1.625rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }
.pillar p { color: var(--muted); }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.lab { margin-top: clamp(3.5rem, 8vw, 6rem); }
.lab__grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.locked {
  position: relative;
  min-height: 220px;
  padding: 1.5rem;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.locked__ghost { display: grid; gap: 0.8rem; -webkit-filter: blur(7px); filter: blur(7px); opacity: 0.55; }
.locked__ghost i { display: block; height: 14px; border-radius: 7px; background: var(--surface-2); }
.locked__ghost i:first-child { width: 55%; height: 34px; background: #2A2A36; }
.locked__ghost i:nth-child(2) { width: 85%; }
.locked__ghost i:nth-child(3) { width: 70%; }
.locked__ghost i:nth-child(4) { width: 40%; height: 28px; border-radius: 14px; }
.locked__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--text);
}
.locked__label svg { width: 28px; height: 28px; color: var(--lime); }
.locked::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-120%);
  animation: shimmer 4.5s ease-in-out infinite;
}
.locked:nth-child(2)::after { animation-delay: 1.2s; }
@keyframes shimmer {
  0%, 35% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}
@media (min-width: 700px) { .lab__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 13 — CONTACT & FOOTER -------------------------------------------------- */
.contact { border-top: 1px solid var(--border); padding-bottom: clamp(3rem, 7vw, 5rem); }
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 12.5vw, 10.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.contact__actions { display: grid; gap: 0.75rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.contact__email { display: inline-block; margin-top: 1.5rem; font-size: 1.125rem; }
.contact__event { margin-top: 1.75rem; font-size: 1.125rem; color: var(--muted); }
@media (min-width: 700px) { .contact__actions { display: flex; flex-wrap: wrap; } }

.footer { border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer__top { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer__top:hover { color: var(--lime); }

/* 14 — MOCKUPS ----------------------------------------------------------- */
/* All mockup sizes are in em: the frame scales with its own font-size */
.project__visual { perspective: 1200px; }

.phone {
  position: relative;
  width: 18.75em;
  aspect-ratio: 300 / 620;
  padding: 0.6em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3em;
  background: #1A1A21;
  box-shadow: 0 0 6em -2em rgba(var(--accent-rgb), 0.45);
  font-size: min(16px, 4.05vw);
  line-height: 1.3;
  transition: transform 0.5s var(--ease);
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 2.45em;
  background: #0D0D12;
  overflow: hidden;
}
.phone__island {
  position: absolute;
  top: 0.6em; left: 50%;
  z-index: 5;
  width: 5.2em; height: 1.45em;
  margin-left: -2.6em;
  border-radius: 1em;
  background: #000;
}
.phone__status {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  padding: 1.15em 2.2em 0.6em;
  font-size: 0.7em;
  font-weight: 600;
}
.phone__shot { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; object-fit: cover; }

/* 14.1 Mediometro */
.mm { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 0.6em 1.1em 1.1em; }
.mm__label { font-family: var(--font-mono); font-size: 0.62em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mm__avg {
  margin-top: 0.06em;
  font-family: var(--font-display);
  font-size: 3.7em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.mm__avg small { margin-left: 0.25em; font-family: var(--font-mono); font-size: 0.26em; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.mm__sub { font-size: 0.7em; color: var(--muted); }
.mm__chart { display: flex; flex-shrink: 0; align-items: flex-end; gap: 0.35em; height: 3.6em; margin: 0.9em 0 0.7em; }
.mm__chart i {
  flex: 1;
  height: 100%;
  border-radius: 0.3em 0.3em 0.1em 0.1em;
  background: var(--accent);
  opacity: 0.32;
  transform: scaleY(var(--v, 0.06));
  transform-origin: 50% 100%;
  transition: transform 0.7s var(--ease), opacity 0.5s;
}
.mm__chart i.is-last { opacity: 1; }
.mm__chart i.is-empty { opacity: 0.14; transform: scaleY(0.06); }
.mm__listwrap { flex: 1; min-height: 0; overflow: hidden; }
.mm__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7em;
  height: 3.3em;
  border-bottom: 1px solid var(--border);
  font-size: 0.78em;
}
.mm__row span { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm__row em { font-family: var(--font-mono); font-size: 0.82em; font-style: normal; color: var(--muted); }
.mm__row b {
  display: grid;
  place-items: center;
  width: 2.3em; height: 1.8em;
  border-radius: 0.5em;
  background: rgba(var(--accent-rgb), 0.16);
  font-family: var(--font-mono);
  font-weight: 500;
  color: #A9C2FF;
}
.mm__row.is-new { animation: mmIn 0.6s var(--ease) both; }
.mm__row.is-new b { background: var(--accent); color: #0A0A0D; }
@keyframes mmIn { from { opacity: 0; transform: translateX(-0.8em); } }
.mm__proj {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  margin-top: 0.7em;
  padding: 0.85em 1em;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 1.1em;
  background: rgba(var(--accent-rgb), 0.12);
  font-size: 0.72em;
  line-height: 1.25;
}
.mm__proj b { font-family: var(--font-mono); font-size: 1.4em; font-weight: 500; color: #A9C2FF; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 14.2 Roommates */
.rm__screens { position: relative; flex: 1; min-height: 0; }
.rm__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  padding: 0.5em 0.9em 0.7em;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0.8em);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
}
.rm__screen.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rm__title { font-family: var(--font-display); font-size: 1.35em; font-weight: 700; letter-spacing: -0.03em; }
.rm__h { margin-top: 0.25em; font-family: var(--font-mono); font-size: 0.56em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.rm__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-shrink: 0;
  padding: 0.3em 0.5em 0.75em;
  border-top: 1px solid var(--border);
  background: #111117;
}
.rm__tabs button {
  display: grid;
  justify-items: center;
  gap: 0.25em;
  padding: 0.6em 0 0.3em;
  border: 0;
  background: none;
  font-size: 0.58em;
  font-weight: 500;
  color: #8B8F9A;
  cursor: pointer;
  transition: color 0.3s;
}
.rm__tabs svg { width: 2em; height: 2em; }
.rm__tabs button.is-active { color: var(--accent); }

.rm-banner {
  display: grid;
  justify-items: start;
  gap: 0.2em;
  padding: 0.75em 0.85em 0.85em;
  border: 1px solid rgba(255, 90, 95, 0.5);
  border-radius: 1em;
  background: rgba(255, 90, 95, 0.14);
}
.rm-banner span { font-family: var(--font-mono); font-size: 0.56em; letter-spacing: 0.08em; text-transform: uppercase; color: #FF9A9D; }
.rm-banner b { font-size: 0.98em; }
.rm-banner i {
  margin-top: 0.45em;
  padding: 0.55em 1em;
  border-radius: 99px;
  background: var(--red);
  font-size: 0.68em;
  font-style: normal;
  font-weight: 600;
  color: #1A0507;
}

.rm-tasks { display: grid; gap: 0.42em; }
.rm-task {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.1em 0.6em;
  padding: 0.6em 0.75em;
  border: 1px solid var(--border);
  border-radius: 0.9em;
  background: #16161D;
  transition: border-color 0.4s, background-color 0.4s;
}
.rm-task__n { font-size: 0.76em; font-weight: 500; }
.rm-task__m { grid-column: 1; font-family: var(--font-mono); font-size: 0.56em; color: var(--muted); white-space: nowrap; }
.rm-task__tag { color: var(--amber); }
.rm-task__claim { color: var(--accent); opacity: 0; transition: opacity 0.4s; }
.rm-task__btn {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 1.9em; height: 1.9em;
  border: 1.5px solid var(--border-2);
  border-radius: 50%;
  font-size: 0.78em;
  font-weight: 700;
  color: transparent;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.rm-pop {
  position: absolute;
  right: 0.5em; top: -1.1em;
  padding: 0.45em 0.8em;
  border-radius: 99px;
  background: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.58em;
  font-weight: 600;
  color: #0A0A0D;
  white-space: nowrap;
  opacity: 0;
}
.s1 .rm-task--live { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.09); }
.s1 .rm-task--live .rm-task__claim { opacity: 1; }
.s1 .rm-task--live .rm-task__btn { border-color: var(--accent); }
.s2 .rm-task--live .rm-task__btn { background: var(--accent); border-color: var(--accent); color: #17100D; transform: scale(1.12); }
.s2 .rm-pop { animation: rmPop 2.2s var(--ease) both; }
@keyframes rmPop {
  0%   { opacity: 0; transform: translateY(0.8em) scale(0.8); }
  14%, 82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-0.5em); }
}

.rm-sup { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.rm-tile {
  display: grid;
  justify-items: center;
  gap: 0.15em;
  padding: 0.85em 0.4em 0.8em;
  border: 1px solid var(--border);
  border-radius: 1.1em;
  background: #16161D;
  transition: border-color 0.4s, background-color 0.4s;
}
.rm-tile__e { font-size: 2em; line-height: 1.2; }
.rm-tile__n { font-size: 0.7em; font-weight: 600; }
.rm-tile__s {
  margin-top: 0.3em;
  padding: 0.35em 0.7em;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rm-tile.is-ok .rm-tile__s  { background: rgba(61, 220, 151, 0.15); color: #5FE6AC; }
.rm-tile.is-low .rm-tile__s { background: rgba(255, 197, 61, 0.15); color: var(--amber); }
.rm-tile.is-out { border-color: rgba(255, 90, 95, 0.5); background: rgba(255, 90, 95, 0.1); }
.rm-tile.is-out .rm-tile__s { background: rgba(255, 90, 95, 0.2); color: #FF9A9D; }
.rm-tile.is-bump { animation: rmBump 0.55s var(--ease); }
@keyframes rmBump { 35% { transform: scale(0.92); } 70% { transform: scale(1.04); } }
.rm-toast {
  position: absolute;
  left: 0.9em; right: 0.9em; bottom: 0.7em;
  padding: 0.8em 0.9em;
  border-radius: 0.9em;
  background: #F5F5F7;
  font-size: 0.62em;
  font-weight: 600;
  text-align: center;
  color: #0A0A0D;
  opacity: 0;
  transform: translateY(1em);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.s1 .rm-toast { opacity: 1; transform: none; }

.rm-close {
  align-self: flex-start;
  padding: 0.45em 0.8em;
  border: 1px solid var(--border-2);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.54em;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.rk-list { position: relative; height: 21.6em; margin-top: 0.2em; }
.rk {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.15em 0.6em;
  height: 5em;
  padding: 0.55em 0.75em 0.6em;
  border: 1px solid var(--border);
  border-radius: 0.9em;
  background: #16161D;
  transform: translateY(calc(var(--pos) * 5.4em));
  transition: transform 0.8s var(--ease), border-color 0.4s;
}
.rk.is-first { border-color: rgba(var(--accent-rgb), 0.55); }
.rk__av {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2.3em; height: 2.3em;
  border-radius: 50%;
  background: #2A2A36;
  font-size: 0.76em;
  font-weight: 600;
}
.rk__name { font-size: 0.8em; font-weight: 600; }
.rk__pts { font-family: var(--font-mono); font-size: 0.82em; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.rk__sub { grid-column: 2 / 4; min-height: 1.5em; font-size: 0.56em; color: var(--muted); white-space: nowrap; }
.rk__debt {
  margin-right: 0.5em;
  padding: 0.15em 0.45em;
  border-radius: 0.4em;
  background: rgba(255, 90, 95, 0.2);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #FF9A9D;
}
.rk__bar {
  grid-column: 1 / 4;
  height: 0.3em;
  border-radius: 99px;
  background: var(--accent);
  transform: scaleX(var(--w));
  transform-origin: 0 50%;
  transition: transform 0.8s var(--ease);
}

/* Games screen — the cartoon style of the mini-games */
.rm__screen--games { gap: 0.5em; background: #FF7A59; color: #17171C; }
.hm__top { display: flex; align-items: center; justify-content: space-between; }
.hm__title { font-family: var(--font-display); font-size: 1.5em; font-weight: 800; letter-spacing: -0.04em; }
.hm__round {
  padding: 0.4em 0.8em;
  border: 0.22em solid #17171C;
  border-radius: 99px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.62em;
  font-weight: 600;
}
.hm__row { display: flex; align-items: center; gap: 0.7em; }
.hm__lives { flex-shrink: 0; width: 5.6em; height: auto; overflow: visible; }
.hm__time { flex: 1; height: 0.95em; border: 0.16em solid #17171C; border-radius: 99px; background: #fff; overflow: hidden; }
.hm__time i { display: block; height: 100%; background: #D4FF3A; transform-origin: 0 50%; animation: hmTime 7s linear infinite; }
@keyframes hmTime { from { transform: scaleX(1); } to { transform: scaleX(0.04); } }
.hm__game { font-family: var(--font-mono); font-size: 0.6em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hm__scene { width: 100%; height: auto; }
.hm__vac { transform: translate(35px, 215px); animation: vacPath 7s linear infinite; }
@keyframes vacPath {
  0%   { transform: translate(35px, 215px); }
  25%  { transform: translate(215px, 215px); }
  42%  { transform: translate(215px, 95px); }
  51%  { transform: translate(150px, 95px); }
  59%  { transform: translate(150px, 40px); }
  75%  { transform: translate(35px, 40px); }
  91%  { transform: translate(35px, 150px); }
  100% { transform: translate(35px, 215px); }
}
.hm__sock, .hm__cat, .wob { transform-box: fill-box; transform-origin: 50% 60%; animation: wobble 1.6s ease-in-out infinite; }
.hm__cat { animation-duration: 2.4s; animation-delay: -0.6s; }
@keyframes wobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* Mini-game illustrations (Mini-games tab) */
.g-shake { transform-box: fill-box; transform-origin: 50% 100%; animation: gShake 0.45s ease-in-out infinite; }
@keyframes gShake {
  0%, 100% { transform: translateX(-3px) rotate(-1.5deg); }
  50% { transform: translateX(3px) rotate(1.5deg); }
}
.g-spin { transform-box: fill-box; transform-origin: 50% 50%; animation: gSpin 1.4s linear infinite; }
@keyframes gSpin { to { transform: rotate(360deg); } }
.g-water { transform: scaleY(0.85); transform-box: fill-box; transform-origin: 50% 100%; animation: gFill 4s ease-in infinite; }
@keyframes gFill {
  0% { transform: scaleY(0.2); }
  70%, 100% { transform: scaleY(1); }
}
.g-drop { opacity: 0; animation: gDrop 4s ease-in infinite; }
@keyframes gDrop {
  0%, 64% { opacity: 0; transform: translateY(0); }
  70% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(95px); }
}
.g-vac { transform: translate(70px, 150px); animation: gVac 4.5s ease-in-out infinite; }
@keyframes gVac {
  0%   { transform: translate(-30px, 150px); }
  35%  { transform: translate(104px, 150px); }
  50%  { transform: translate(160px, 78px); }
  65%  { transform: translate(216px, 150px); }
  100% { transform: translate(350px, 150px); }
}

/* 14.3 Real-Time X Tracker */
.chat {
  display: grid;
  gap: 0.75em;
  width: min(100%, 25em);
  font-size: min(16px, 4.05vw);
  line-height: 1.4;
  transition: transform 0.5s var(--ease);
}
.chat__watch { padding: 0.9em 1em 1em; border: 1px solid var(--border); border-radius: 1.2em; background: var(--surface); }
.chat__watch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7em;
  font-family: var(--font-mono);
  font-size: 0.62em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.live { display: inline-flex; align-items: center; gap: 0.5em; color: var(--accent); }
.live::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 0.4em; }
.kw {
  display: inline-flex;
  gap: 0.6em;
  padding: 0.4em 0.65em;
  border: 1px solid var(--border-2);
  border-radius: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.64em;
}
.kw b { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.kw.is-hit { animation: kwHit 0.9s var(--ease); }
@keyframes kwHit { 0% { transform: scale(1.14); } 100% { transform: none; } }

.chat__win { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 1.5em; background: #0D0D12; overflow: hidden; box-shadow: 0 0 6em -2.5em rgba(var(--accent-rgb), 0.5); }
.chat__head { display: flex; align-items: center; gap: 0.7em; padding: 0.8em 1em; border-bottom: 1px solid var(--border); background: #14141B; }
.chat__av {
  display: grid;
  place-items: center;
  width: 2.6em; height: 2.6em;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0.72em;
  font-weight: 700;
  color: #0A0A0D;
}
.chat__name { display: grid; line-height: 1.2; }
.chat__name b { font-size: 0.9em; }
.chat__name i { font-size: 0.68em; font-style: normal; color: var(--muted); }
.chat__body { position: relative; height: 24em; overflow: hidden; }
.chat__feed { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 0.6em; padding: 0.8em; }
.msg {
  justify-self: start;
  width: 90%;
  padding: 0.75em 0.95em 0.7em;
  border-radius: 1.1em 1.1em 1.1em 0.3em;
  background: #1A1A22;
  font-size: 0.78em;
  line-height: 1.45;
}
.msg.is-new { animation: msgIn 0.55s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(1em) scale(0.97); } }
.msg__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; font-weight: 600; }
.msg__lat { padding: 0.1em 0.5em; border-radius: 0.45em; background: rgba(var(--accent-rgb), 0.14); font-family: var(--font-mono); font-size: 0.82em; font-weight: 500; color: var(--accent); white-space: nowrap; }
.msg__acc, .msg__time { display: block; font-size: 0.88em; color: var(--muted); }
.msg hr { margin: 0.55em 0; border: 0; border-top: 2px solid rgba(255, 255, 255, 0.2); }
.msg p b { color: var(--accent); }
.msg .pct { white-space: nowrap; font-weight: 700; }
.msg__link { display: block; color: #8FB4FF; }

/* 14.4 Automation #2 — node graph */
.graph {
  width: min(100%, 27em);
  padding: 1em;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--surface);
  box-shadow: 0 0 6em -2.5em rgba(var(--accent-rgb), 0.45);
  transition: transform 0.5s var(--ease);
}
.graph svg { width: 100%; height: auto; }
.ng-box { fill: #16161D; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; }
.ng-glow { stroke: var(--accent); stroke-width: 2; opacity: 0; animation: ngGlow 5s linear infinite; animation-delay: var(--d); }
@keyframes ngGlow {
  0% { opacity: 0; }
  4% { opacity: 1; }
  24%, 100% { opacity: 0; }
}
.ng text { fill: var(--text); font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.project__cta { justify-self: start; }

/* 14.4b Quake Watch — map with pulsing points + sheet filling up */
.quake {
  display: grid;
  gap: 0.75em;
  width: min(100%, 26em);
  font-size: min(16px, 4.05vw);
  line-height: 1.35;
  transition: transform 0.5s var(--ease);
}
.quake__map, .quake__sheet { border: 1px solid var(--border); border-radius: 1.2em; background: var(--surface); overflow: hidden; }
.quake__map { box-shadow: 0 0 6em -2.5em rgba(var(--accent-rgb), 0.45); }
.quake__map svg { width: 100%; height: auto; background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px) 0 0 / 14px 14px; }
.qk-dot { fill: var(--accent); }
.qk-dot--world { fill: #FF7A59; }
.qk-ring { fill: none; stroke: currentColor; stroke-width: 2; color: var(--accent); transform-box: fill-box; transform-origin: 50% 50%; opacity: 0.5; animation: qkPing 2.4s ease-out infinite; animation-delay: var(--d); }
.qk-dot--world .qk-ring { color: #FF7A59; }
@keyframes qkPing {
  0% { transform: scale(0.2); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}
.quake__legend { display: flex; flex-wrap: wrap; gap: 0.3em 1.2em; padding: 0.7em 1em; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.6em; color: var(--muted); }
.quake__legend span { display: inline-flex; align-items: center; gap: 0.6em; }
.quake__legend i { width: 0.75em; height: 0.75em; border-radius: 50%; background: var(--accent); }
.quake__legend i.is-world { background: #FF7A59; }
.qk-row {
  display: grid;
  grid-template-columns: 3.4em 3em minmax(0, 1fr) 4.2em 4.4em;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 1.3em;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.64em;
  animation: qkRow 9s var(--ease) infinite both;
  animation-delay: calc(var(--i) * 1.1s + 0.4s);
}
.qk-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qk-row b { font-weight: 500; color: var(--accent); }
.qk-row.is-world b { color: #FF9A80; }
.qk-row--head { border-top: 0; background: var(--surface-2); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); animation: none; }
@keyframes qkRow {
  0% { opacity: 0; transform: translateY(0.6em); }
  5%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@media (min-width: 900px) {
  .flow--5 .flow__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
}
.flow--5 .flow__node::after { animation-delay: calc(var(--i) * 1.2s + 0.25s); }

@media (prefers-reduced-motion: reduce) {
  .s2 .rm-pop, .g-drop { opacity: 1; }
  .ng-glow { opacity: 0.7; }
  .ng-pulse { display: none; }
}

/* 15 — MOTION PREFERENCES ------------------------------------------------ */
/* Looping animations pause while their block is off-screen */
html.js [data-anim]:not(.is-playing),
html.js [data-anim]:not(.is-playing) *,
html.js [data-anim]:not(.is-playing) *::before,
html.js [data-anim]:not(.is-playing) *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html.js .reveal, html.js .team-photo.reveal { opacity: 1; transform: none; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__group[aria-hidden="true"], .flow__dot, .scroll-cue__line::after { display: none; }
  .flow__node::after { opacity: 0.6; }
  html.js .vm__text .wd { color: var(--text); }
  html.js .vm__text em .wd { color: var(--lime); }
  .locked::after { display: none; }
}
