:root {
  --bg: #050706;
  --bg-elevated: #0a0e0c;
  --panel: #0d1210;
  --panel-soft: #111713;
  --line: rgba(237, 242, 237, 0.14);
  --line-bright: rgba(90, 255, 139, 0.34);
  --text: #f0f2ed;
  --muted: #9ca39d;
  --muted-strong: #c6cac5;
  --green: #43ff7b;
  --green-soft: #8bffa9;
  --green-deep: #0ca642;
  --white: #f4f3ee;
  --max: 1400px;
  --gutter: clamp(20px, 3.5vw, 56px);
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 106px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 77% 8%, rgba(48, 255, 110, 0.055), transparent 28%),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #021005;
  background: var(--green);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

img {
  height: auto;
  max-width: 100%;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: #020604;
  background: var(--green);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.noise {
  position: fixed;
  z-index: 999;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

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

.block-section {
  padding-top: clamp(104px, 11vw, 176px);
  padding-bottom: clamp(90px, 10vw, 150px);
}

.ticker {
  position: relative;
  z-index: 100;
  height: 32px;
  overflow: hidden;
  border-bottom: 1px solid rgba(67, 255, 123, 0.2);
  color: var(--green);
  background: #020403;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 32px;
  white-space: nowrap;
}

.ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ticker 35s linear infinite;
}

.ticker span {
  display: inline-block;
}

.ticker i {
  margin-inline: 34px;
  font-style: normal;
}

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

.site-header {
  position: sticky;
  z-index: 90;
  top: 0;
  display: grid;
  min-height: 76px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  grid-template-columns: minmax(240px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  background: linear-gradient(to bottom, rgba(5, 7, 6, 0.96), rgba(5, 7, 6, 0.78));
  backdrop-filter: blur(16px);
  transition: border-color 240ms ease, min-height 240ms ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  border-bottom-color: var(--line);
}

.brand {
  width: max-content;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.brand span {
  color: var(--green);
}

.main-nav {
  display: flex;
  gap: clamp(19px, 2.4vw, 37px);
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a,
.header-socials a,
.footer__links a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.header-socials a:hover,
.header-socials a:focus-visible,
.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--green);
}

.header-socials {
  display: flex;
  justify-content: flex-end;
  gap: 17px;
}

.header-socials a {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--muted-strong);
}

.header-socials svg {
  width: 18px;
  fill: currentColor;
}

.menu-button {
  display: none;
  border: 0;
  background: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 108px);
  padding-top: clamp(62px, 9vh, 116px);
  padding-bottom: 52px;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.82fr);
  gap: 36px;
  align-items: center;
}

#hero-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.46;
}

.hero__copy,
.hero__visual,
.hero__foot {
  position: relative;
  z-index: 2;
}

.hero__copy {
  max-width: 780px;
  padding-bottom: 22px;
}

.hero__hello {
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: -0.03em;
}

.hero__hello strong {
  color: var(--green);
  font-weight: 500;
}

.hero__title {
  margin: 0;
  max-width: 850px;
  font-size: clamp(58px, 6.35vw, 101px);
  font-weight: 500;
  letter-spacing: -0.072em;
  line-height: 0.91;
}

.hero__title em,
.section-heading h2 em,
.contact h2 em {
  color: var(--green);
  font-style: normal;
}

.hero__build {
  display: flex;
  min-height: 26px;
  margin: 28px 0 0;
  gap: 9px;
  align-items: center;
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.11em;
}

.terminal-line {
  color: var(--green);
}

.terminal-line b {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--green);
  animation: blink 0.85s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__intro {
  max-width: 630px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.hero__actions,
.contact__actions {
  display: flex;
  margin-top: 32px;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  padding: 0 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  background: var(--green);
  content: "";
  transform: translateY(105%);
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button > * {
  position: relative;
}

.button svg {
  position: relative;
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.button--light {
  color: #060806;
  border-color: var(--white);
  background: var(--white);
}

.button--ghost {
  color: var(--text);
  background: rgba(5, 7, 6, 0.38);
}

.button:hover,
.button:focus-visible {
  color: #031006;
  border-color: var(--green);
  transform: translateY(-2px);
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateY(0);
}

.button--large {
  min-height: 61px;
  padding-inline: 29px;
  font-size: 16px;
}

.system-badge {
  display: inline-flex;
  min-height: 34px;
  margin-top: 15px;
  padding: 0 14px;
  border: 1px solid rgba(67, 255, 123, 0.36);
  border-radius: 999px;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: border-color 160ms ease, background 160ms ease;
}

.system-badge span,
.status-dot,
.contact__status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.system-badge:hover,
.system-badge:focus-visible {
  border-color: var(--green);
  background: rgba(67, 255, 123, 0.06);
}

.hero__visual {
  position: relative;
  min-height: min(620px, 66vh);
  align-self: stretch;
}

.hero__visual::before {
  position: absolute;
  top: 8%;
  right: -3%;
  bottom: 7%;
  left: 10%;
  border-top: 1px solid rgba(67, 255, 123, 0.24);
  border-right: 1px solid rgba(67, 255, 123, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 72% 26%, rgba(67, 255, 123, 0.13), transparent 36%),
    linear-gradient(rgba(67, 255, 123, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 255, 123, 0.04) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.portrait-meta {
  position: absolute;
  z-index: 5;
  top: 9%;
  right: 0;
  left: 12%;
  display: flex;
  justify-content: space-between;
  color: rgba(199, 255, 214, 0.54);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.portrait-card {
  position: absolute;
  z-index: 4;
  top: 16%;
  right: 4%;
  width: min(245px, 21vw);
  margin: 0;
}

.portrait-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), 0 0 55px rgba(67, 255, 123, 0.08);
}

.portrait-card__image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(67, 255, 123, 0.11);
  background: linear-gradient(140deg, transparent 58%, rgba(67, 255, 123, 0.08));
  content: "";
  pointer-events: none;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.portrait-card__corner {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-color: var(--green);
  opacity: 0.86;
}

.portrait-card__corner--top {
  top: 9px;
  left: 9px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.portrait-card__corner--bottom {
  right: 9px;
  bottom: 9px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.portrait-card figcaption {
  display: grid;
  min-height: 72px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.portrait-card figcaption div {
  display: flex;
  gap: 5px;
  flex-direction: column;
}

.portrait-card figcaption strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.portrait-card figcaption span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portrait-card figcaption a {
  display: grid;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(67, 255, 123, 0.32);
  place-items: center;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  transition: color 180ms ease, background 180ms ease;
}

.portrait-card figcaption a:hover,
.portrait-card figcaption a:focus-visible {
  color: #020a04;
  background: var(--green);
}

.visual-manifesto {
  position: absolute;
  z-index: 3;
  bottom: 12%;
  left: 0;
  display: flex;
  margin: 0;
  flex-direction: column;
  color: transparent;
  font-size: clamp(56px, 5vw, 82px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.74;
  -webkit-text-stroke: 1px rgba(238, 244, 239, 0.25);
}

.visual-manifesto span:last-child {
  color: var(--green);
  -webkit-text-stroke: 0;
}

.visual-status {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 7%;
  display: flex;
  min-height: 35px;
  padding: 0 13px;
  border: 1px solid rgba(67, 255, 123, 0.33);
  gap: 8px;
  align-items: center;
  background: rgba(4, 9, 6, 0.9);
  color: var(--green-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.hero__foot {
  position: absolute;
  bottom: 22px;
  left: var(--gutter);
  display: flex;
  width: calc(100% - (var(--gutter) * 2));
  gap: 16px;
  align-items: center;
  color: #6f7770;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__foot > :last-child {
  margin-left: auto;
}

.scroll-line {
  position: relative;
  width: 65px;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.15);
}

.scroll-line::after {
  position: absolute;
  inset: 0;
  background: var(--green);
  content: "";
  transform: translateX(-100%);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine { 50%, 100% { transform: translateX(100%); } }

.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #070a08;
}

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

.proof__item {
  display: flex;
  min-height: 150px;
  padding: 32px clamp(15px, 2.4vw, 36px);
  border-left: 1px solid var(--line);
  gap: 5px;
  flex-direction: column;
  justify-content: center;
}

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

.proof__item strong {
  color: var(--green);
  font-family: var(--mono);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
}

.proof__item span {
  color: var(--muted);
  font-size: 12px;
}

.section-heading {
  position: relative;
  display: grid;
  margin-bottom: clamp(48px, 6vw, 90px);
  grid-template-columns: minmax(160px, 0.3fr) minmax(500px, 1fr) minmax(170px, 0.35fr);
  gap: 30px;
  align-items: end;
}

.section-heading > p:first-child,
.mono-label {
  margin: 0;
  align-self: start;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading > p:first-child span {
  color: var(--green);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5.5vw, 83px);
  font-weight: 500;
  letter-spacing: -0.066em;
  line-height: 0.98;
}

.section-heading__aside {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.section-heading--compact {
  grid-template-columns: minmax(160px, 0.3fr) minmax(500px, 1fr) minmax(170px, 0.35fr);
}

.case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3.6vw, 54px) clamp(18px, 2.7vw, 38px);
}

.case {
  position: relative;
}

.case--wide {
  grid-column: 1 / -1;
}

.case__media,
.system-map {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.case__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 6, 4, 0.32), transparent 35%),
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(67,255,123,.13), transparent 25%);
  content: "";
  opacity: 0;
  transition: opacity 240ms ease;
}

.case__media:hover::after { opacity: 1; }

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transition: filter 400ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case__media:hover img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.025);
}

.case__launch {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  display: flex;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  align-items: center;
  color: #061008;
  background: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(0,0,0,.28);
  transform: translateY(5px);
  transition: transform 220ms ease;
}

.case__media:hover .case__launch { transform: translateY(0); }

.case__body {
  display: grid;
  padding: 25px 0 8px;
  grid-template-columns: 1fr minmax(220px, 0.82fr) auto;
  gap: 28px;
  align-items: start;
}

.case--split .case__body {
  grid-template-columns: 1fr;
  gap: 13px;
}

.case__index {
  margin: 0 0 10px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.case h3 {
  margin: 0;
  font-size: clamp(27px, 3vw, 45px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.case__summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
}

.case--split .tag-list { justify-content: flex-start; }

.tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 9px;
}

.case--system {
  margin-top: clamp(10px, 3vw, 32px);
}

.system-map {
  height: clamp(370px, 42vw, 590px);
  aspect-ratio: auto;
  background:
    radial-gradient(circle at 50% 50%, rgba(67, 255, 123, 0.11), transparent 28%),
    #070b08;
}

.system-map__grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(67,255,123,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,255,123,.13) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 70%);
  mask-image: radial-gradient(circle at center, #000, transparent 70%);
}

.system-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(67, 255, 123, 0.38);
  stroke-width: 1;
  stroke-dasharray: 5 9;
  animation: dash 20s linear infinite;
}

@keyframes dash { to { stroke-dashoffset: -200; } }

.node {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 108px;
  height: 46px;
  border: 1px solid rgba(67,255,123,.3);
  place-items: center;
  color: var(--green-soft);
  background: rgba(6, 15, 9, 0.88);
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 0 0 0 4px rgba(67,255,123,.025), 0 12px 35px rgba(0,0,0,.32);
}

.node--core {
  top: 50%;
  left: 50%;
  width: 140px;
  height: 60px;
  color: #031107;
  background: var(--green);
  font-weight: 600;
  transform: translate(-50%, -50%);
}

.node--core span {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #031107;
  animation: blink 1.4s steps(1) infinite;
}

.node--one { top: 13%; left: 13%; }
.node--two { top: 11%; right: 13%; }
.node--three { right: 10%; bottom: 13%; }
.node--four { bottom: 12%; left: 12%; }

.system-log {
  position: absolute;
  right: 21px;
  bottom: 19px;
  color: #6c7b70;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.75;
}

.system-log span { color: var(--green); }

.case__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.case__links a,
.text-link {
  color: var(--muted-strong);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: rgba(67,255,123,.45);
  text-underline-offset: 5px;
  transition: color 160ms ease;
}

.case__links a:hover,
.text-link:hover { color: var(--green); }

.game-reel {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 58%, rgba(67, 255, 123, 0.11), transparent 26%),
    #080b09;
}

.game-stage {
  display: grid;
  min-height: 720px;
  padding: clamp(30px, 5vw, 72px);
  border: 1px solid var(--line);
  grid-template-columns: minmax(270px, .7fr) 1fr;
  gap: clamp(45px, 9vw, 140px);
  align-items: center;
  background:
    linear-gradient(rgba(67, 255, 123, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 255, 123, 0.035) 1px, transparent 1px),
    rgba(5, 8, 6, .84);
  background-size: 48px 48px;
}

.phone-shot {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  margin-inline: auto;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 28px;
  background: #0a0d0b;
  box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 50px rgba(67,255,123,.08);
  transform: perspective(1100px) rotateY(8deg) rotateX(1deg);
}

.phone-shot::before {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  width: 76px;
  height: 18px;
  border-radius: 999px;
  background: #050605;
  content: "";
  transform: translateX(-50%);
}

.phone-shot img {
  width: 100%;
  border-radius: 20px;
}

.phone-shot__glow {
  position: absolute;
  z-index: -1;
  inset: 25% -22%;
  border-radius: 50%;
  background: rgba(67,255,123,.16);
  filter: blur(55px);
}

.game-stage__copy {
  max-width: 640px;
}

.game-stage__copy h3 {
  margin: 20px 0 25px;
  font-size: clamp(45px, 5.6vw, 82px);
  font-weight: 500;
  letter-spacing: -0.067em;
  line-height: .96;
}

.game-stage__copy > p:not(.mono-label) {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}

.game-capabilities {
  display: grid;
  margin: 38px 0 35px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}

.game-capabilities div {
  display: flex;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  align-items: center;
}

.game-capabilities div:nth-child(odd) { border-right: 1px solid var(--line); }
.game-capabilities div:nth-child(even) { padding-left: 20px; }

.game-capabilities strong {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.game-capabilities span {
  color: var(--muted-strong);
  font-size: 13px;
}

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

.timeline__item {
  position: relative;
  display: grid;
  min-height: 220px;
  padding: 36px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(160px, .3fr) minmax(380px, 1fr) minmax(250px, .65fr);
  gap: 30px;
  align-items: start;
}

.timeline__item::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(67,255,123,.045), transparent);
  content: "";
  transform: translateX(-100%);
  transition: transform 600ms ease;
}

.timeline__item:hover::before { transform: translateX(0); }

.timeline__when {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.timeline__when i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.timeline__role p {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
}

.timeline__role h3 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.timeline__description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.timeline__item--education .timeline__when,
.timeline__item--education .timeline__role p { color: var(--muted-strong); }

.stack {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #080a08;
}

.stack-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stack-marquee__track {
  display: flex;
  width: max-content;
  min-height: 112px;
  gap: 27px;
  align-items: center;
  animation: ticker 48s linear infinite;
}

.stack-marquee span {
  color: var(--muted-strong);
  font-size: clamp(27px, 3.8vw, 54px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.stack-marquee i {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
}

.stack__grid {
  display: grid;
  padding-top: 55px;
  grid-template-columns: repeat(3, 1fr);
}

.skill-panel {
  min-height: 270px;
  padding: 27px clamp(24px, 3vw, 42px) 36px;
  border-left: 1px solid var(--line);
}

.skill-panel:last-child { border-right: 1px solid var(--line); }

.skill-panel > span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.skill-panel h3 {
  margin: 70px 0 16px;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.skill-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.contact {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  text-align: center;
}

.contact::before,
.contact::after {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  border: 1px solid rgba(67,255,123,.12);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.contact::after {
  top: 18%;
  width: min(500px, 65vw);
  border-color: rgba(67,255,123,.2);
  box-shadow: 0 0 100px rgba(67,255,123,.07) inset;
}

.contact__status {
  display: flex;
  width: max-content;
  min-height: 32px;
  margin: 0 auto 42px;
  padding: 0 13px;
  border: 1px solid rgba(67,255,123,.3);
  border-radius: 999px;
  gap: 9px;
  align-items: center;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
}

.contact__kicker {
  margin: 0 auto 22px;
  color: var(--muted-strong);
  font-size: clamp(16px, 1.6vw, 20px);
}

.contact h2 {
  margin: 0;
  font-size: clamp(66px, 10vw, 152px);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: .82;
}

.contact__actions {
  justify-content: center;
  margin-top: 55px;
}

.footer {
  display: grid;
  min-height: 210px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer > p,
.footer__links {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  gap: 7px;
  flex-direction: column;
}

.footer__copy { text-align: right; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--delay, 0) * 90ms);
}

.reveal[data-delay="1"] { --delay: 1; }
.reveal[data-delay="2"] { --delay: 2; }
.reveal[data-delay="3"] { --delay: 3; }
.reveal[data-delay="4"] { --delay: 4; }
.reveal[data-delay="5"] { --delay: 5; }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(67, 255, 123, 0.55);
  transition: width 180ms ease, height 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  border-color: var(--green);
  background: rgba(67,255,123,.07);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    top: 96px;
    right: var(--gutter);
    display: none;
    min-width: 250px;
    padding: 25px;
    border: 1px solid var(--line-bright);
    gap: 18px;
    flex-direction: column;
    background: rgba(4, 8, 5, .96);
    box-shadow: 0 30px 70px rgba(0,0,0,.55);
    backdrop-filter: blur(18px);
  }

  .main-nav.is-open { display: flex; }
  .header-socials { display: none; }

  .menu-button {
    display: inline-flex;
    padding: 8px 0 8px 16px;
    gap: 9px;
    align-items: center;
    color: var(--muted-strong);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
  }

  .menu-button svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, .62fr);
  }

  .hero__title { font-size: clamp(54px, 7.6vw, 80px); }
  .portrait-card { right: 0; width: min(230px, 24vw); }
  .portrait-meta { left: 8%; }

  .section-heading,
  .section-heading--compact {
    grid-template-columns: 145px 1fr;
  }

  .section-heading__aside {
    display: none;
  }

  .case__body {
    grid-template-columns: 1fr minmax(220px, .8fr);
  }

  .tag-list,
  .case__links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .timeline__item {
    grid-template-columns: 130px 1fr minmax(220px, .62fr);
  }

  .game-stage {
    gap: 55px;
  }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  html { scroll-padding-top: 80px; }
  body { font-size: 15px; }
  .cursor-dot, .cursor-ring { display: none; }
  .ticker { height: 28px; line-height: 28px; }
  .ticker i { margin-inline: 22px; }

  .site-header {
    min-height: 62px;
  }

  .brand { font-size: 19px; }
  .main-nav { top: 77px; right: 20px; left: 20px; }

  .hero {
    display: flex;
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 70px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__copy { z-index: 4; }
  .hero__hello { margin-bottom: 17px; font-size: 19px; }

  .hero__title {
    font-size: clamp(47px, 15vw, 69px);
    line-height: .92;
  }

  .hero__build {
    display: block;
    margin-top: 22px;
    line-height: 1.8;
  }

  .terminal-line { display: block; }
  .hero__intro { margin-top: 17px; font-size: 16px; }
  .hero__actions { margin-top: 25px; }
  .button { min-height: 47px; padding-inline: 18px; font-size: 13px; }
  .system-badge { max-width: 100%; font-size: 8px; }

  .hero__visual {
    width: 100%;
    min-height: 370px;
    margin-top: 32px;
    order: 2;
  }

  .hero__visual::before {
    top: 2%;
    right: -3%;
    bottom: 2%;
    left: 3%;
  }

  .portrait-meta {
    top: 3%;
    right: 0;
    left: 5%;
  }

  .portrait-card {
    top: 11%;
    right: 0;
    width: min(210px, 55vw);
  }

  .portrait-card figcaption { min-height: 65px; }

  .visual-manifesto {
    bottom: 15%;
    left: 0;
    font-size: clamp(56px, 18vw, 78px);
  }

  .visual-status { right: 0; bottom: 0; }
  .hero__foot { display: none; }

  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .proof__item { min-height: 116px; padding: 23px 18px; }
  .proof__item:nth-child(3), .proof__item:nth-child(4) { border-top: 1px solid var(--line); }
  .proof__item strong { font-size: 34px; }
  .proof__item span { font-size: 10px; }

  .block-section {
    padding-top: 86px;
    padding-bottom: 80px;
  }

  .section-heading,
  .section-heading--compact {
    display: block;
    margin-bottom: 42px;
  }

  .section-heading > p:first-child { margin-bottom: 22px; }
  .section-heading h2 { font-size: clamp(39px, 12vw, 56px); }

  .case-list { display: block; }
  .case { margin-bottom: 54px; }
  .case:last-child { margin-bottom: 0; }
  .case__media { aspect-ratio: 4 / 3; }
  .case--split .case__media { aspect-ratio: 4 / 3; }
  .case__body { display: block; padding-top: 19px; }
  .case__summary { margin-top: 13px; }
  .tag-list { margin-top: 16px; }
  .case h3 { font-size: 31px; }
  .case__launch { right: 11px; bottom: 11px; min-height: 33px; font-size: 8px; }

  .system-map { height: 420px; }
  .node { width: 78px; height: 39px; font-size: 9px; }
  .node--core { width: 112px; height: 54px; }
  .system-log { display: none; }
  .case__links { margin-top: 18px; }

  .game-stage {
    display: flex;
    min-height: auto;
    padding: 32px 18px 40px;
    gap: 54px;
    flex-direction: column;
  }

  .phone-shot { width: 245px; transform: none; }
  .game-stage__copy h3 { margin-block: 16px 20px; font-size: 50px; }
  .game-stage__copy > p:not(.mono-label) { font-size: 16px; }
  .game-capabilities { grid-template-columns: 1fr; }
  .game-capabilities div:nth-child(odd) { border-right: 0; }
  .game-capabilities div:nth-child(even) { padding-left: 0; }

  .timeline__item {
    display: block;
    min-height: auto;
    padding: 31px 0 36px;
  }

  .timeline__role { margin-top: 30px; }
  .timeline__role h3 { font-size: 33px; }
  .timeline__description { margin-top: 20px; }

  .stack-marquee__track { min-height: 80px; }
  .stack__grid { display: block; padding-top: 35px; }
  .skill-panel { min-height: auto; padding: 27px 22px 35px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .skill-panel h3 { margin-top: 36px; }

  .contact { min-height: 670px; }
  .contact__kicker { font-size: 15px; }
  .contact h2 { font-size: clamp(60px, 21vw, 91px); }
  .contact__actions { align-items: stretch; flex-direction: column; }
  .button--large { width: 100%; }

  .footer {
    display: grid;
    min-height: auto;
    padding-top: 36px;
    grid-template-columns: 1fr 1fr;
  }

  .footer .brand { grid-column: 1 / -1; }
  .footer__copy { grid-column: 1 / -1; text-align: left; }
}

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

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
