/* ============================================================
   LIN HANG — DRONE TECH PORTFOLIO
   Visual system: light grey canvas / black poster type / dark
   floating cards / frosted glass / acid-lime game accent.
   ============================================================ */

:root {
  --bg: #e9e8e4;
  --bg-soft: #f2f1ed;
  --ink: #0b0b0a;
  --ink-soft: #2e2e2b;
  --muted: #62625b;
  --muted-2: #8c8c84;
  --line: rgba(11, 11, 10, 0.14);
  --line-strong: rgba(11, 11, 10, 0.26);
  --line-light: rgba(255, 255, 255, 0.11);

  --dark: #10100f;
  --dark-2: #181816;
  --dark-3: #20201d;
  --white: #f7f7f2;

  --lime: #d9ff3d;
  --lime-soft: #e6ff79;
  --pink: #ff4d8d;
  --amber: #ffbd4a;
  --mint: #8ce8c4;

  --radius-xl: 44px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1560px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(1000px 760px at 93% 4%, rgba(255, 255, 255, 0.88), transparent 62%),
    radial-gradient(900px 700px at 2% 42%, rgba(217, 255, 61, 0.055), transparent 60%),
    radial-gradient(1100px 800px at 88% 88%, rgba(255, 255, 255, 0.44), transparent 65%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.mono {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

/* ------------------------------ grain + cursor + progress */
.page-grain {
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.034;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cursor-dot,
.cursor-ring {
  display: none;
}

.cursor-enabled .cursor-dot,
.cursor-enabled .cursor-ring {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(11, 11, 10, 0.32);
  border-radius: 50%;
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.cursor-enabled .cursor-ring.is-active {
  width: 58px;
  height: 58px;
  background: rgba(217, 255, 61, 0.18);
  border-color: rgba(11, 11, 10, 0.45);
}

.cursor-enabled .cursor-ring.is-dark {
  border-color: rgba(255, 255, 255, 0.55);
}

.cursor-enabled .cursor-ring.is-active.is-dark {
  background: rgba(217, 255, 61, 0.14);
  border-color: var(--lime);
}

.cursor-enabled .cursor-dot.is-dark {
  background: var(--lime);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10002;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ------------------------------ shared */
.shine-card {
  position: relative;
  isolation: isolate;
}

.shine-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    430px circle at var(--mx, 50%) var(--my, 50%),
    rgba(217, 255, 61, 0.12),
    transparent 43%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-soft);
}

.shine-card:hover::before {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  width: min(calc(100vw - 32px), var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 11px 9px 18px;
  border: 1px solid rgba(11, 11, 10, 0.09);
  border-radius: 999px;
  background: rgba(243, 242, 238, 0.7);
  box-shadow: 0 8px 34px rgba(11, 11, 10, 0.055);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  transform: translateX(-50%);
  transition:
    background-color 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft);
}

.site-header.is-scrolled {
  background: rgba(243, 242, 238, 0.9);
  border-color: rgba(11, 11, 10, 0.13);
  box-shadow: 0 14px 44px rgba(11, 11, 10, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-name em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.09em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a span {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.42s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    color 0.35s var(--ease-soft),
    background-color 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    transform 0.35s var(--ease);
}

.contact-btn .arrow {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  transition:
    color 0.35s var(--ease-soft),
    background-color 0.35s var(--ease-soft),
    transform 0.4s var(--ease);
}

.contact-btn:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-1px);
}

.contact-btn:hover .arrow {
  background: var(--ink);
  color: var(--lime);
  transform: rotate(45deg);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 11, 10, 0.06);
  cursor: pointer;
  place-items: center;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-toggle span:first-child {
  top: 18px;
}

.menu-toggle span:last-child {
  top: 25px;
}

.site-header.menu-open .menu-toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.site-header.menu-open .menu-toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(126px, 13vh, 166px) var(--gutter) 34px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(18px, 3vh, 34px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: pulseRing 2.2s ease-out infinite;
}

.hero-coords {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.11em;
  line-height: 1.55;
  text-align: right;
}

.hero-coords span {
  color: var(--muted);
  font-size: 9px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 345px);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
}

.hero-title-wrap {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 184px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.795;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.035em 0.055em 0.075em 0;
  margin: -0.035em -0.055em -0.075em 0;
}

.hero-title .line > span {
  display: block;
  transform: translateY(118%);
  animation: titleRise 1.2s var(--ease) 0.08s forwards;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.17s;
}

.hero-title .line:nth-child(3) > span {
  animation-delay: 0.26s;
  letter-spacing: -0.082em;
}

.hero-title sup {
  position: relative;
  top: 0.68em;
  margin-left: 0.015em;
  font-size: 0.16em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: baseline;
}

.hero-aside {
  position: relative;
  z-index: 3;
  padding-bottom: 6px;
}

.hero-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: clamp(350px, 31vw, 450px);
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(217, 255, 61, 0.14), transparent 52%),
    radial-gradient(120% 110% at 0% 100%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(145deg, #1d1d1a 0%, #0a0a09 76%);
  box-shadow:
    0 38px 90px rgba(11, 11, 10, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--white);
  overflow: hidden;
  transform: translateZ(0);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -24%;
  bottom: -34%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 255, 61, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(217, 255, 61, 0.035),
    0 0 0 58px rgba(217, 255, 61, 0.02);
  pointer-events: none;
}

.hero-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.hero-card-top .mono {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  font-size: 8px;
}

.status-light {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: blink 2s ease-in-out infinite;
}

.drone-illustration {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 4px 0 0;
  overflow: visible;
}

.rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: rotorSpin 5.5s linear infinite;
}

.rotor-b,
.rotor-d {
  animation-direction: reverse;
  animation-duration: 6.4s;
}

.rotor-c {
  animation-duration: 4.8s;
}

.rotor-e {
  animation-direction: reverse;
  animation-duration: 6.9s;
}

.hero-telemetry {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-telemetry div {
  min-width: 0;
}

.hero-telemetry span {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.hero-telemetry strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-telemetry small {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(11, 11, 10, 0.2);
  animation: floatChip 5.4s ease-in-out infinite;
}

.chip-one {
  top: 6%;
  left: -24px;
  padding: 9px 13px;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-7deg);
}

.chip-two {
  right: -18px;
  bottom: 52px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 16, 15, 0.82);
  color: var(--white);
  transform: rotate(5deg);
  backdrop-filter: blur(12px);
  animation-delay: -2.3s;
}

.chip-two i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(0, 1.9fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(30px, 4.4vh, 54px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-intro {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

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

.stat {
  min-width: 0;
  padding: 2px 14px 0 18px;
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.1vw, 48px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat sup {
  position: relative;
  top: -0.45em;
  margin-left: 2px;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0;
}

.stat > span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.scroll-cue {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  transition:
    color 0.4s var(--ease-soft),
    background-color 0.4s var(--ease-soft),
    transform 0.4s var(--ease);
}

.scroll-cue span {
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.scroll-cue i {
  margin-top: 3px;
  font-size: 14px;
  font-style: normal;
  line-height: 1;
  animation: bob 2s ease-in-out infinite;
}

.scroll-cue:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(2px);
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ticker {
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(11, 11, 10, 0.13);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(30px, 4vw, 62px);
  padding: 17px clamp(30px, 4vw, 62px) 17px 0;
}

.ticker-group:first-child {
  padding-left: clamp(30px, 4vw, 62px);
}

.ticker span {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.ticker i {
  color: var(--lime);
  font-size: 12px;
  font-style: normal;
}

/* ============================================================
   SECTION SYSTEM
   ============================================================ */
.section {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(86px, 11vw, 170px) var(--gutter) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(18px, 3vw, 52px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 52px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-no {
  align-self: start;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.3;
}

.section-heading h2 {
  max-width: 13em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 5.3vw, 84px);
  font-weight: 700;
  letter-spacing: -0.058em;
  line-height: 0.99;
}

.section-note {
  max-width: 350px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* ------------------------------ glass */
.glass-shell {
  position: relative;
  padding: clamp(12px, 1.8vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 34px 90px rgba(11, 11, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(118%);
  -webkit-backdrop-filter: blur(24px) saturate(118%);
}

.expertise-shell {
  overflow: hidden;
}

.expertise-shell::before {
  content: "";
  position: absolute;
  top: -38%;
  left: 22%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(217, 255, 61, 0.1);
  filter: blur(80px);
  pointer-events: none;
}

/* ============================================================
   CAPABILITY CARDS
   ============================================================ */
.cap-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 452px;
  padding: clamp(20px, 2vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(145deg, #1d1d1a 0%, #0d0d0c 67%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 40px rgba(11, 11, 10, 0.12);
  color: var(--white);
  transition:
    transform 0.6s var(--ease),
    border-color 0.5s var(--ease-soft),
    box-shadow 0.6s var(--ease-soft);
}

.cap-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.018),
    0 0 0 72px rgba(255, 255, 255, 0.012);
  pointer-events: none;
}

.cap-card:hover {
  z-index: 2;
  border-color: rgba(217, 255, 61, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 80px rgba(11, 11, 10, 0.28),
    0 0 0 1px rgba(217, 255, 61, 0.045);
  transform: translateY(-7px) scale(1.012);
}

.cap-card:hover .cap-viz svg {
  transform: scale(1.018);
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.cap-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cap-index {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.cap-label {
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-align: right;
}

.cap-viz {
  position: relative;
  z-index: 1;
  height: 174px;
  margin: 14px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(217, 255, 61, 0.06), transparent 55%),
    rgba(255, 255, 255, 0.018);
}

.cap-viz::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.cap-viz svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}

.cap-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.cap-body h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(26px, 2.35vw, 36px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.cap-body p {
  max-width: 48em;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.78;
}

.cap-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
}

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

.tags li {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.cap-metric {
  flex: 0 0 auto;
  text-align: right;
}

.cap-metric strong {
  display: block;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cap-metric strong small {
  margin-left: 2px;
  font-size: 0.35em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cap-metric span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ============================================================
   WORK
   ============================================================ */
.work-shell {
  position: relative;
  padding: clamp(14px, 1.8vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(217, 255, 61, 0.055), transparent 58%),
    radial-gradient(900px 700px at 100% 90%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(145deg, #141412 0%, #070707 72%);
  box-shadow:
    0 50px 120px rgba(11, 11, 10, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.work-shell::before {
  content: "";
  position: absolute;
  top: -130px;
  left: -90px;
  width: 320px;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 255, 61, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(217, 255, 61, 0.018),
    0 0 0 112px rgba(217, 255, 61, 0.01);
  pointer-events: none;
}

.work-shell-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.43);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.project-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 29px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, 0.045), transparent 55%),
    linear-gradient(155deg, #1b1b19 0%, #10100f 68%);
  transition:
    transform 0.6s var(--ease),
    border-color 0.5s var(--ease-soft),
    box-shadow 0.6s var(--ease-soft);
}

.project-card:hover {
  z-index: 2;
  border-color: rgba(217, 255, 61, 0.26);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(217, 255, 61, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-7px) scale(1.008);
}

.project-visual {
  position: relative;
  height: clamp(238px, 24vw, 330px);
  overflow: hidden;
  border-radius: 20px;
  background: #0b0b0a;
  transform: translateZ(0);
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.52) 100%);
  pointer-events: none;
}

.project-visual svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 1s var(--ease);
  transform-origin: center;
}

.project-card:hover .project-visual svg {
  transform: scale(1.05);
}

.project-index {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(217, 255, 61, 0.34);
  border-radius: 50%;
  background: rgba(10, 10, 9, 0.42);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.project-flag {
  position: absolute;
  top: 17px;
  right: 15px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(10, 10, 9, 0.4);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.13em;
  backdrop-filter: blur(8px);
}

.project-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px 12px 9px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.project-info h3 {
  margin: 13px 0 11px;
  color: var(--white);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.16;
}

.project-info p {
  max-width: 40em;
  margin: 0 0 23px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1.78;
}

.project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-bottom > span {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.project-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s var(--ease-soft);
}

.project-bottom a i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-style: normal;
  transition:
    color 0.35s var(--ease-soft),
    background-color 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    transform 0.4s var(--ease);
}

.project-bottom a:hover {
  color: var(--lime);
}

.project-bottom a:hover i {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  transform: rotate(45deg);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.25fr);
  gap: clamp(20px, 3.4vw, 56px);
  align-items: start;
}

.about-profile {
  padding: 13px;
}

.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(430px, 39vw, 560px);
  padding: clamp(20px, 2vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 29px;
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(217, 255, 61, 0.13), transparent 52%),
    linear-gradient(150deg, #1c1c19 0%, #0a0a09 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(11, 11, 10, 0.18);
  color: var(--white);
}

.profile-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profile-rings span {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 255, 61, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.profile-rings span:nth-child(2) {
  width: 94%;
  border-color: rgba(217, 255, 61, 0.11);
}

.profile-rings span:nth-child(3) {
  width: 126%;
  border-color: rgba(217, 255, 61, 0.07);
}

.profile-rings span:nth-child(4) {
  width: 160%;
  border-color: rgba(217, 255, 61, 0.04);
}

.profile-rings span::before,
.profile-rings span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(217, 255, 61, 0.5);
}

.profile-rings span::after {
  right: -3px;
  left: auto;
}

.profile-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.profile-top .mono {
  color: var(--lime);
}

.profile-mark {
  position: relative;
  z-index: 1;
  margin: auto 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(104px, 12vw, 188px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.76;
  text-indent: -0.04em;
}

.profile-mark sup {
  position: relative;
  top: -1.5em;
  margin-left: 0.03em;
  color: var(--lime);
  font-size: 0.11em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: baseline;
}

.profile-side {
  position: absolute;
  top: 43%;
  right: 18px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.profile-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-bottom strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.profile-bottom span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.profile-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: blink 2s ease-in-out infinite;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 13px 4px 3px;
}

.profile-tags span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.about-copy {
  padding-top: 7px;
}

.about-lead {
  max-width: 22em;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.55;
}

.about-text {
  max-width: 39em;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

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

.timeline-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s var(--ease);
}

.timeline-row:hover {
  padding-left: 8px;
}

.timeline-year {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.timeline-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.timeline-row div span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.toolbox {
  margin-top: 34px;
}

.toolbox-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.toolbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.toolbox-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  transition:
    color 0.3s var(--ease-soft),
    background-color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft);
}

.toolbox-tags span:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* ============================================================
   PLAY / SNAKE
   ============================================================ */
.play {
  padding-bottom: clamp(64px, 8vw, 120px);
}

.play-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 4vw, 68px);
  align-items: center;
  padding: clamp(24px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(880px 560px at 14% 0%, rgba(217, 255, 61, 0.15), transparent 55%),
    radial-gradient(700px 600px at 100% 100%, rgba(255, 77, 141, 0.06), transparent 58%),
    linear-gradient(145deg, #181816 0%, #070707 72%);
  box-shadow:
    0 50px 120px rgba(11, 11, 10, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.play-shell::before {
  content: "SNAKE";
  position: absolute;
  right: -0.06em;
  bottom: -0.24em;
  z-index: 0;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(150px, 23vw, 360px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.8;
  opacity: 0.42;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.play-copy {
  position: relative;
  z-index: 1;
}

.play-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.play-copy h2 {
  margin: clamp(28px, 4vw, 48px) 0 20px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(74px, 9.6vw, 154px);
  font-weight: 700;
  letter-spacing: -0.085em;
  line-height: 0.76;
  text-transform: uppercase;
}

.play-copy h2 span,
.play-copy h2 em {
  display: block;
}

.play-copy h2 em {
  color: var(--lime);
  font-style: normal;
  text-shadow: 0 0 42px rgba(217, 255, 61, 0.22);
}

.play-intro {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.85;
}

.play-rules {
  max-width: 420px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.play-rules li {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

.play-rules li span {
  flex: 0 0 24px;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 10px 14px;
  border: 1px solid rgba(217, 255, 61, 0.28);
  border-radius: 999px;
  background: rgba(217, 255, 61, 0.07);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.neon-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: blink 1.8s ease-in-out infinite;
}

/* ------------------------------ game console */
.game-console {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 610px;
  margin-left: auto;
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: rgba(8, 8, 8, 0.66);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.game-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 4px 14px;
}

.game-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 9px var(--lime);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(217, 255, 61, 0.45);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

.score-row {
  display: flex;
  gap: 7px;
}

.score-pill {
  min-width: 92px;
  padding: 8px 12px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.score-pill span {
  display: block;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.score-pill strong {
  display: block;
  margin-top: 3px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.score-pill:last-child strong {
  color: var(--lime);
}

.canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(217, 255, 61, 0.17);
  border-radius: 21px;
  background: #090908;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(217, 255, 61, 0.035);
  touch-action: none;
}

#snakeCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  outline: none;
}

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

.canvas-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.022) 0,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.55;
  pointer-events: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(8, 8, 8, 0.58), rgba(8, 8, 8, 0.91) 72%);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.35s var(--ease-soft);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.game-overlay.is-visible {
  opacity: 1;
}

.overlay-kicker {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.24em;
  animation: blink 2.4s ease-in-out infinite;
}

.game-overlay strong {
  color: var(--white);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.game-overlay small {
  max-width: 240px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  line-height: 1.6;
}

.game-console.is-over .overlay-kicker {
  color: var(--pink);
  animation: none;
}

.game-console.is-over .canvas-wrap {
  border-color: rgba(255, 77, 141, 0.34);
  box-shadow:
    inset 0 0 80px rgba(255, 77, 141, 0.08),
    0 0 34px rgba(255, 77, 141, 0.08);
}

.corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: rgba(217, 255, 61, 0.6);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.corner-tl {
  top: 9px;
  left: 9px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.corner-tr {
  top: 9px;
  right: 9px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.corner-bl {
  bottom: 9px;
  left: 9px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.corner-br {
  right: 9px;
  bottom: 9px;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px 1px;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.game-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition:
    background-color 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft);
}

.game-console[data-state="running"] .game-status-dot {
  background: var(--lime);
  box-shadow: 0 0 9px var(--lime);
  animation: blink 1.2s ease-in-out infinite;
}

.game-console[data-state="paused"] .game-status-dot {
  background: var(--amber);
  box-shadow: 0 0 9px rgba(255, 189, 74, 0.55);
}

.game-console[data-state="over"] .game-status-dot {
  background: var(--pink);
  box-shadow: 0 0 9px rgba(255, 77, 141, 0.65);
}

.game-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.3s var(--ease-soft),
    background-color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    box-shadow 0.3s var(--ease-soft),
    transform 0.35s var(--ease);
}

.pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

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

.pill-btn-primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(217, 255, 61, 0.2);
}

.pill-btn-primary:hover {
  border-color: var(--lime-soft);
  background: var(--lime-soft);
  color: var(--ink);
  box-shadow: 0 0 32px rgba(217, 255, 61, 0.34);
  transform: translateY(-1px);
}

.pill-btn-primary span {
  font-size: 13px;
  transition: transform 0.45s var(--ease);
}

.pill-btn-primary:hover span {
  transform: rotate(180deg);
}

.mobile-dpad {
  display: none;
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(2, 54px);
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}

.dpad-btn {
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 255, 61, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.dpad-btn:active {
  border-color: var(--lime);
  background: rgba(217, 255, 61, 0.18);
  color: var(--lime);
  transform: scale(0.94);
}

.dpad-up {
  grid-column: 2;
  grid-row: 1;
}

.dpad-left {
  grid-column: 1;
  grid-row: 2;
}

.dpad-down {
  grid-column: 2;
  grid-row: 2;
}

.dpad-right {
  grid-column: 3;
  grid-row: 2;
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact {
  padding-bottom: 0;
}

.contact-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.contact-title {
  margin: clamp(50px, 8vw, 116px) 0 clamp(38px, 6vw, 86px);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(88px, 18.6vw, 278px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.72;
  text-transform: uppercase;
}

.contact-title span {
  display: block;
}

.contact-title span:last-child {
  text-align: right;
}

.contact-title sup {
  position: relative;
  top: -1.9em;
  margin-left: 0.04em;
  color: var(--lime);
  font-size: 0.16em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: baseline;
  -webkit-text-stroke: 1px rgba(11, 11, 10, 0.12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr auto;
  gap: clamp(18px, 3vw, 52px);
  align-items: end;
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.contact-label {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.contact-block a,
.contact-value {
  color: var(--ink);
  font-size: clamp(15px, 1.45vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-block a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft);
}

.contact-block a:hover {
  border-bottom-color: var(--ink);
}

.copy-btn {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft);
}

.copy-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.contact-services p {
  max-width: 240px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.contact-large {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
  padding: 15px 16px 15px 24px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 16px 38px rgba(11, 11, 10, 0.18);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background-color 0.35s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft),
    transform 0.4s var(--ease);
}

.contact-large span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 18px;
  transition: transform 0.45s var(--ease);
}

.contact-large:hover {
  background: #1b1b18;
  box-shadow: 0 22px 48px rgba(11, 11, 10, 0.24);
  transform: translateY(-3px);
}

.contact-large:hover span {
  transform: rotate(45deg) scale(1.04);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(38px, 6vw, 76px);
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s var(--ease-soft);
}

.site-footer a:hover {
  color: var(--ink);
}

/* ------------------------------ toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(16, 16, 15, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition:
    opacity 0.35s var(--ease-soft),
    transform 0.45s var(--ease);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

/* game feedback */
.score-pill.is-bump strong {
  animation: scoreBump 0.58s var(--ease);
}

.canvas-wrap.is-flash {
  animation: boardFlash 0.34s ease-out;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes titleRise {
  0% {
    transform: translateY(118%);
  }
  100% {
    transform: translateY(0);
  }
}

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

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

@keyframes pulseRing {
  0% {
    opacity: 0.7;
    transform: scale(0.55);
  }
  70% {
    opacity: 0;
    transform: scale(1.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.32;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes floatChip {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes scoreBump {
  0% {
    transform: scale(1);
  }
  36% {
    color: var(--lime);
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes boardFlash {
  0% {
    box-shadow:
      inset 0 0 80px rgba(217, 255, 61, 0.26),
      0 0 48px rgba(217, 255, 61, 0.28);
  }
  100% {
    box-shadow:
      inset 0 0 80px rgba(0, 0, 0, 0.75),
      0 0 30px rgba(217, 255, 61, 0.035);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) {
  .section-head {
    grid-template-columns: 58px minmax(0, 1fr) minmax(220px, 310px);
  }

  .hero-bottom {
    grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.8fr) auto;
  }
}

@media (max-width: 1080px) {
  .brand-name em {
    display: none;
  }

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

  .hero-title {
    font-size: clamp(62px, 11.8vw, 150px);
  }

  .hero-card {
    height: 380px;
  }

  .chip-one {
    left: -14px;
  }

  .chip-two {
    right: -10px;
  }

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

  .contact-large {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 8px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 124px;
  }

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

  .hero-title {
    font-size: clamp(72px, 13.7vw, 132px);
  }

  .hero-aside {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
  }

  .hero-card {
    height: 420px;
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
  }

  .hero-intro {
    grid-column: 1 / -1;
  }

  .hero-stats {
    max-width: 680px;
  }

  .section-head {
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: start;
  }

  .section-note {
    grid-column: 2;
    max-width: 540px;
    margin-top: 18px;
  }

  .span-7,
  .span-5 {
    grid-column: span 6;
  }

  .cap-card {
    min-height: 430px;
  }

  .cap-viz {
    height: 156px;
  }

  .project-visual {
    height: 270px;
  }

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

  .about-profile {
    max-width: 600px;
  }

  .profile-card {
    min-height: 500px;
  }

  .profile-mark {
    font-size: 150px;
  }

  .play-shell {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .play-copy h2 {
    font-size: clamp(94px, 17vw, 160px);
  }

  .play-intro {
    max-width: 520px;
  }

  .game-console {
    max-width: 600px;
    margin: 0 auto;
  }

  .contact-title {
    font-size: clamp(92px, 18vw, 190px);
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 12px;
    width: calc(100vw - 24px);
    padding-left: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .brand-name {
    font-size: 12px;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background: #0f0f0e;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.35s var(--ease-soft),
      visibility 0.35s,
      transform 0.45s var(--ease);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    justify-content: space-between;
    padding: 17px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a span {
    order: 2;
    color: var(--lime);
    font-size: 9px;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .contact-btn {
    height: 40px;
    padding: 0 12px 0 16px;
    font-size: 11px;
  }

  .contact-btn .arrow {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .hero-title {
    font-size: clamp(64px, 14.6vw, 116px);
  }

  .hero-card {
    height: 390px;
  }

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

  .span-7,
  .span-5 {
    grid-column: 1 / -1;
  }

  .cap-card {
    min-height: 410px;
  }

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

  .project-visual {
    height: 300px;
  }

  .project-info h3 {
    font-size: 28px;
  }

  .play-copy h2 {
    font-size: clamp(88px, 19vw, 140px);
  }

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

  .contact-services {
    grid-column: 1 / -1;
    padding-top: 8px;
  }

  .contact-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 108px;
    padding-bottom: 24px;
  }

  .hero-top {
    margin-bottom: 20px;
  }

  .hero-coords {
    display: none;
  }

  .hero-title {
    font-size: clamp(58px, 16.5vw, 100px);
  }

  .hero-card {
    height: 345px;
    padding: 16px;
    border-radius: 26px;
  }

  .hero-telemetry strong {
    font-size: 14px;
  }

  .chip-one {
    top: 4%;
    left: -7px;
    padding: 7px 10px;
    font-size: 7px;
  }

  .chip-two {
    right: -5px;
    bottom: 38px;
    padding: 7px 10px;
    font-size: 7px;
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 28px;
  }

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

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

  .stat {
    padding-left: 14px;
  }

  .stat strong {
    font-size: 34px;
  }

  .scroll-cue {
    display: none;
  }

  .ticker-group {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .section {
    padding-top: 84px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .section-no {
    margin-bottom: 2px;
  }

  .section-note {
    grid-column: 1;
    margin-top: 6px;
  }

  .section-heading h2 {
    font-size: clamp(38px, 10.5vw, 56px);
  }

  .glass-shell,
  .work-shell,
  .play-shell {
    border-radius: 30px;
  }

  .cap-card {
    min-height: 0;
    padding: 20px;
    border-radius: 25px;
  }

  .cap-viz {
    height: 150px;
  }

  .cap-body h3 {
    font-size: 27px;
  }

  .cap-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .cap-metric {
    text-align: left;
  }

  .project-visual {
    height: 238px;
  }

  .project-card {
    border-radius: 24px;
  }

  .project-info {
    padding: 19px 7px 7px;
  }

  .project-info h3 {
    font-size: 25px;
  }

  .project-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .profile-card {
    min-height: 420px;
    border-radius: 25px;
  }

  .profile-mark {
    font-size: 124px;
  }

  .about-lead {
    font-size: 22px;
  }

  .timeline-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .play-shell {
    padding: 20px;
  }

  .play-copy h2 {
    font-size: clamp(78px, 24vw, 116px);
  }

  .game-console {
    padding: 12px;
    border-radius: 24px;
  }

  .game-head {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .score-row {
    width: 100%;
  }

  .score-pill {
    flex: 1;
    min-width: 0;
  }

  .game-foot {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .game-actions {
    width: 100%;
  }

  .pill-btn {
    flex: 1;
  }

  .mobile-dpad {
    display: grid;
  }

  .contact-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .contact-title {
    font-size: clamp(76px, 23vw, 126px);
  }

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

  .contact-block {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .contact-services {
    grid-column: 1;
    padding-top: 0;
  }

  .contact-large {
    grid-column: 1;
    justify-self: stretch;
    justify-content: space-between;
    margin-top: 6px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 26px;
  }
}

@media (max-width: 400px) {
  .brand-name {
    display: none;
  }

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

  .hero-card {
    height: 320px;
  }

  .score-pill span {
    font-size: 6px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@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;
    scroll-behavior: auto !important;
  }

  .hero-title .line > span {
    transform: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}
