/* ============================================================
   DRONE TECH PORTFOLIO — visual system
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e9e8e4;
  --bg-soft: #f3f2ee;
  --ink: #090a09;
  --ink-soft: #252622;
  --muted: #6d6d66;
  --muted-2: #8f8f87;
  --line: rgba(9, 10, 9, 0.12);
  --line-strong: rgba(9, 10, 9, 0.2);
  --panel: #0a0b0a;
  --panel-2: #131412;
  --panel-3: #1a1b18;
  --white: #f5f5f0;
  --lime: #c8ff3e;
  --lime-deep: #9fe31a;
  --cyan: #7de9dc;
  --danger: #ff5e5e;
  --radius-xl: 40px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.68, 0.2, 1);
  --font-display: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-body: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --shadow-float: 0 36px 90px rgba(0, 0, 0, 0.16);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 88% -12%, rgba(255, 255, 255, 0.82), transparent 62%),
    radial-gradient(900px 700px at -8% 38%, rgba(255, 255, 255, 0.52), transparent 65%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

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

em {
  font-style: normal;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

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

/* Film-grain texture, kept extremely subtle */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

/* ============================================================
   Shared type + buttons
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.7;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.46);
}

.tiny-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  gap: 12px;
  transition:
    transform 0.45s var(--ease),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.45s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-arrow {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  transition: transform 0.45s var(--ease), background-color 0.3s ease;
}

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

.btn-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.btn-dark:hover {
  background: #242521;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.btn-dark .btn-arrow {
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  border-color: rgba(9, 10, 9, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  border-color: rgba(9, 10, 9, 0.32);
  background: rgba(255, 255, 255, 0.55);
}

.btn-ghost .btn-arrow {
  background: rgba(9, 10, 9, 0.08);
}

.btn-neon {
  background: var(--lime);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(200, 255, 62, 0.28),
    0 0 36px rgba(200, 255, 62, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.2);
}

.btn-neon:hover {
  background: #d6ff70;
  box-shadow:
    0 0 0 1px rgba(200, 255, 62, 0.5),
    0 0 46px rgba(200, 255, 62, 0.22),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

.btn-neon .btn-arrow {
  background: rgba(9, 10, 9, 0.12);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 200;
  display: flex;
  width: min(1440px, calc(100% - 32px));
  height: 66px;
  align-items: center;
  padding: 8px 10px 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(239, 238, 234, 0.58);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  transform: translateX(-50%);
  transition:
    background-color 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    height 0.45s var(--ease);
}

.site-header.is-scrolled {
  height: 60px;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(246, 245, 241, 0.86);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  transition: transform 0.7s var(--ease), background-color 0.3s ease;
}

.brand:hover .brand-mark {
  background: #252622;
  transform: rotate(90deg);
}

.brand-mark svg {
  width: 14px;
  height: 14px;
}

.brand-reg {
  position: relative;
  top: -0.45em;
  margin: 0 0.08em 0 0.02em;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  margin-right: 18px;
  margin-left: auto;
  gap: 2px;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 999px;
  color: #3c3d38;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  gap: 7px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav a span {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
}

.nav a::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lime-deep);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.nav a:hover {
  background: rgba(9, 10, 9, 0.055);
  color: var(--ink);
}

.nav a.is-active {
  background: rgba(9, 10, 9, 0.065);
  color: var(--ink);
  font-weight: 600;
}

.nav a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  margin-left: 0;
  gap: 8px;
}

.header-cta {
  min-height: 46px;
  padding: 0 20px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

body.menu-open .menu-toggle span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding: 132px clamp(20px, 4vw, 60px) 20px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(9, 10, 9, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 10, 9, 0.028) 1px, transparent 1px);
  background-size: 8.3333% 100%, 100% 25%;
  mask-image: radial-gradient(ellipse 82% 76% at 50% 42%, #000 28%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 82% 76% at 50% 42%, #000 28%, transparent 82%);
  opacity: 0.9;
}

.hero::after {
  position: absolute;
  top: 12%;
  right: -14%;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(9, 10, 9, 0.06);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 8vw rgba(255, 255, 255, 0.08),
    0 0 0 16vw rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-topline {
  display: flex;
  max-width: 1440px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  gap: 24px;
}

.hero-live {
  display: inline-flex;
  align-items: center;
  color: #4e4f48;
  gap: 8px;
}

.hero-live i,
.contact-status i,
.about-badge i {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(159, 227, 26, 0.13);
}

.hero-live i::after,
.contact-status i::after,
.about-badge i::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(159, 227, 26, 0.45);
  border-radius: 50%;
  content: "";
  animation: ping 2.4s ease-out infinite;
}

.hero-stage {
  position: relative;
  display: flex;
  max-width: 1440px;
  width: 100%;
  flex: 1;
  align-items: center;
  margin: 0 auto;
  padding: 18px 0 24px;
}

.hero-title {
  position: relative;
  z-index: 3;
  width: 100%;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(4rem, min(16vw, 24vh), 15.5rem);
  font-weight: 880;
  letter-spacing: -0.075em;
  line-height: 0.78;
  text-transform: uppercase;
}

.title-line {
  display: block;
  overflow: hidden;
  padding: 0.015em 0 0.035em;
}

.title-inner {
  display: block;
  transform: translateY(112%);
  animation: title-up 1.15s var(--ease) forwards;
}

.title-line:nth-child(1) .title-inner {
  animation-delay: 0.12s;
}

.title-line:nth-child(2) .title-inner {
  animation-delay: 0.22s;
}

.title-line:nth-child(3) .title-inner {
  animation-delay: 0.32s;
}

.title-reg {
  position: relative;
  top: -0.02em;
  display: inline-block;
  margin-left: 0.035em;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.105em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: top;
}

.hero-visual {
  position: absolute;
  top: 2.5%;
  right: 0.5vw;
  z-index: 2;
  width: clamp(170px, 16vw, 270px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 26px;
  background: var(--panel-2);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.21);
  opacity: 0;
  transform: translateY(24px) rotate(3.5deg);
  animation: visual-in 1.1s 0.58s var(--ease) forwards;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
  transform: scale(1.03);
}

.hero-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0%, transparent 28%, transparent 58%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.2), transparent 46%);
}

.hero-visual-top {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero-visual-top span:last-child {
  color: var(--lime);
}

.hero-visual-center {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
}

.reticle {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 255, 62, 0.6);
  border-radius: 50%;
}

.reticle::before,
.reticle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(200, 255, 62, 0.6);
  content: "";
  transform: translate(-50%, -50%);
}

.reticle::before {
  width: 68px;
  height: 1px;
}

.reticle::after {
  width: 1px;
  height: 68px;
}

.reticle-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  color: rgba(200, 255, 62, 0.7);
  font-size: 6px;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
}

.hero-visual-bottom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--white);
  gap: 12px;
}

.hero-visual-bottom strong {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-visual-bottom strong span {
  margin-left: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-visual-bottom > span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 6px;
  letter-spacing: 0.14em;
  line-height: 1.8;
  text-align: right;
}

.scanline {
  position: absolute;
  right: 0;
  left: 0;
  top: -18%;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(200, 255, 62, 0.15), transparent);
  mix-blend-mode: screen;
  animation: scan 5.2s 1.8s linear infinite;
}

.hero-side-note {
  position: absolute;
  right: 0;
  bottom: 5px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.18em;
  gap: 10px;
}

.hero-side-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
}

.hero-foot {
  position: relative;
  z-index: 4;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.hero-bottom {
  display: grid;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 22px 65px rgba(0, 0, 0, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  gap: clamp(20px, 3vw, 48px);
  grid-template-columns: minmax(0, 1.15fr) auto minmax(280px, 0.85fr);
}

.hero-name {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.hero-name strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-name span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.hero-bio p {
  max-width: 480px;
  margin-top: 7px;
  color: #55564f;
  font-size: 12.5px;
  line-height: 1.72;
}

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

.telemetry {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding-left: clamp(18px, 2.5vw, 36px);
  border-left: 1px solid var(--line);
  gap: clamp(18px, 2.4vw, 38px);
}

.telemetry > div span {
  display: block;
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.telemetry > div strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.telemetry > div em {
  margin-left: 1px;
  color: var(--muted-2);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-scroll {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 0 4px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.scroll-arrow {
  display: inline-block;
  font-size: 12px;
  animation: bob 2.2s ease-in-out infinite;
}

/* ============================================================
   Marquee
   ============================================================ */

.marquee {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 15px 0;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  transform: rotate(-1.15deg) scale(1.025);
}

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

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  padding-right: 30px;
  gap: 30px;
}

.marquee-group span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.marquee-group i {
  color: var(--lime);
  font-size: 9px;
  font-style: normal;
}

/* ============================================================
   Section shell
   ============================================================ */

.section {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(78px, 9vw, 140px) clamp(20px, 4vw, 60px);
}

.section-head {
  display: grid;
  align-items: end;
  margin-bottom: clamp(34px, 4.4vw, 60px);
  gap: 6vw;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.73fr);
}

.section-head-title h2 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 6rem);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.section-head .lead {
  max-width: 500px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   About
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.about-photo {
  position: relative;
  grid-row: 1 / span 2;
  min-height: 600px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  box-shadow: var(--shadow-float);
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.04);
  transition: transform 1.25s var(--ease), filter 0.8s ease;
}

.about-photo:hover img {
  filter: saturate(0.94) contrast(1.04);
  transform: scale(1.045);
}

.about-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 28%, transparent 48%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(100deg, rgba(0, 0, 0, 0.28), transparent 54%);
}

.about-photo figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  color: var(--white);
}

.about-photo figcaption span {
  display: block;
  margin-bottom: 9px;
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.about-photo figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 31px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.about-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  backdrop-filter: blur(10px);
  gap: 8px;
}

.about-copy {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 18px 55px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
}

.about-copy h3 {
  margin: 15px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(29px, 2.5vw, 40px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.about-copy p {
  margin-bottom: 13px;
  color: #55564f;
  font-size: 13.5px;
  line-height: 1.85;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 23px;
  gap: 7px;
}

.chip-row li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: #575850;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.about-signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 27px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.about-signature span {
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.about-stats {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(480px 280px at 100% 0%, rgba(200, 255, 62, 0.07), transparent 64%),
    linear-gradient(155deg, #151714, #090a09 68%);
  color: var(--white);
  grid-template-columns: 1fr 1fr;
}

.about-stats::after {
  position: absolute;
  right: -18%;
  bottom: -34%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 255, 62, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 34px rgba(200, 255, 62, 0.022);
}

.stat {
  position: relative;
  z-index: 1;
  padding: 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:nth-child(-n + 2) {
  border-top: 0;
}

.stat:nth-child(even) {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.1vw, 49px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.stat strong em {
  margin-left: 1px;
  color: var(--lime);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
}

.stat > span {
  display: block;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.75;
}

.workflow {
  display: grid;
  margin-top: 18px;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.workflow-step {
  position: relative;
  display: flex;
  min-height: 194px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 24px;
  transition:
    transform 0.55s var(--ease),
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.55s var(--ease);
}

.workflow-step:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  transform: translateY(-5px);
}

.workflow-step > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
}

.workflow-num {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.workflow-step h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.workflow-step p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.workflow-en {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

/* ============================================================
   Expertise
   ============================================================ */

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

.service-card {
  position: relative;
  display: flex;
  min-height: 478px;
  flex-direction: column;
  overflow: hidden;
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 30px;
  background:
    radial-gradient(420px 320px at 100% 100%, rgba(200, 255, 62, 0.035), transparent 65%),
    linear-gradient(162deg, #191b17 0%, #0a0b0a 62%);
  color: var(--white);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.65s var(--ease),
    box-shadow 0.65s var(--ease),
    border-color 0.45s ease;
}

.service-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 62, 0.14), transparent 58%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  border-color: rgba(200, 255, 62, 0.2);
  box-shadow: 0 34px 76px rgba(0, 0, 0, 0.24);
  transform: translateY(-10px) scale(1.008);
}

.card-index {
  position: absolute;
  top: 27px;
  right: 27px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.service-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--lime);
  transition:
    transform 0.55s var(--ease),
    background-color 0.35s ease,
    color 0.35s ease;
}

.service-icon svg {
  width: 27px;
  height: 27px;
}

.service-card:hover .service-icon {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-8deg) scale(1.06);
}

.service-body {
  flex: 1;
  padding-top: 36px;
}

.service-en {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.39);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.5;
}

.service-body h3 {
  margin-bottom: 13px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.service-body p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12.5px;
  line-height: 1.78;
}

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

.tag-list li {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.service-metric {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.service-metric strong {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.service-metric strong span {
  margin-left: 2px;
  color: var(--lime);
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0;
}

.service-metric small {
  max-width: 110px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 7px;
  letter-spacing: 0.11em;
  line-height: 1.6;
  text-align: right;
}

/* ============================================================
   Projects
   ============================================================ */

.section-head--projects .projects-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 24px;
}

.projects-side .lead {
  margin-left: 0;
  text-align: right;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.filter {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #5c5d55;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  gap: 6px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.4s var(--ease);
}

.filter span {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 7px;
}

.filter:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  transform: translateY(-2px);
}

.filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.filter.is-active span {
  color: var(--lime);
}

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

.project-card {
  position: relative;
  display: flex;
  min-height: 552px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: #0d0e0d;
  color: var(--white);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.65s var(--ease),
    box-shadow 0.65s var(--ease),
    border-color 0.45s ease,
    opacity 0.5s ease;
}

.project-card::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 62, 0.12), transparent 60%);
  content: "";
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.project-card:hover {
  border-color: rgba(200, 255, 62, 0.18);
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.2);
  transform: translateY(-8px) scale(1.006);
}

.project-card[hidden] {
  display: none;
}

.project-card--wide {
  grid-column: span 7;
}

.project-card--narrow {
  grid-column: span 5;
}

.project-media {
  position: relative;
  height: clamp(290px, 27vw, 390px);
  flex: 0 0 auto;
  overflow: hidden;
}

.project-card--narrow .project-media {
  height: clamp(260px, 23vw, 340px);
}

.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.74) contrast(1.04);
  transition: transform 1.2s var(--ease), filter 0.7s ease;
}

.project-card:hover .project-media img {
  filter: saturate(1.02) contrast(1.03);
  transform: scale(1.055);
}

.project-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 25%, transparent 56%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(110deg, rgba(0, 0, 0, 0.24), transparent 50%);
}

.project-index {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
}

.project-cat {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.project-view {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0;
  gap: 6px;
  transform: translateY(10px);
  backdrop-filter: blur(10px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.project-view span {
  color: var(--lime);
}

.project-card:hover .project-view {
  opacity: 1;
  transform: none;
}

.project-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 46px;
  height: 46px;
  opacity: 0.4;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease, transform 0.7s var(--ease);
}

.project-crosshair::before,
.project-crosshair::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.68);
  content: "";
  transform: translate(-50%, -50%);
}

.project-crosshair::before {
  width: 46px;
  height: 1px;
}

.project-crosshair::after {
  width: 1px;
  height: 46px;
}

.project-card:hover .project-crosshair {
  opacity: 0.75;
  transform: translate(-50%, -50%) scale(1.2);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px 27px 27px;
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.project-loc {
  display: block;
  color: rgba(200, 255, 62, 0.76);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.project-head h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.65vw, 27px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.project-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.5s var(--ease);
}

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

.project-body > p {
  max-width: 680px;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12.5px;
  line-height: 1.72;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: clamp(18px, 2.8vw, 42px);
}

.project-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1;
}

.project-metrics strong em {
  margin-left: 1px;
  color: var(--lime);
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0;
}

.project-metrics span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.project-body .tag-list {
  margin-top: 17px;
}

.tag-list--light li {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
}

/* ============================================================
   Snake game
   ============================================================ */

.game-section {
  padding-top: clamp(50px, 6vw, 90px);
}

.game-shell {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 46px;
  background: #080908;
  box-shadow:
    0 54px 130px rgba(0, 0, 0, 0.29),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  gap: 14px;
  grid-template-columns: 0.8fr 1.2fr;
}

.game-shell::before {
  position: absolute;
  top: -36%;
  left: -14%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(200, 255, 62, 0.1);
  content: "";
  filter: blur(130px);
  pointer-events: none;
}

.game-shell::after {
  position: absolute;
  right: -18%;
  bottom: -46%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(125, 233, 220, 0.05);
  content: "";
  filter: blur(140px);
  pointer-events: none;
}

.game-intro {
  position: relative;
  display: flex;
  min-height: 716px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 34px;
  background:
    radial-gradient(500px 380px at 0% 100%, rgba(200, 255, 62, 0.055), transparent 65%),
    linear-gradient(155deg, #171916 0%, #0b0c0b 70%);
  color: var(--white);
  gap: 36px;
}

.game-intro::after {
  position: absolute;
  right: -28px;
  bottom: -56px;
  color: transparent;
  content: "04";
  font-family: var(--font-display);
  font-size: 230px;
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 0.7;
  opacity: 0.75;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(200, 255, 62, 0.08);
}

.game-intro-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.game-code {
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.game-intro-main {
  position: relative;
  z-index: 1;
}

.game-intro h2 {
  margin: 25px 0 23px;
  font-family: var(--font-display);
  font-size: clamp(56px, 5.6vw, 88px);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 0.84;
}

.outline-lime {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--lime);
  text-shadow: 0 0 28px rgba(200, 255, 62, 0.13);
}

.game-intro-main p {
  max-width: 370px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.8;
}

.game-specs {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 20px;
}

.game-specs span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.game-specs strong {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: right;
}

.legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  letter-spacing: 0.09em;
  gap: 18px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  display: inline-block;
  flex: 0 0 auto;
}

.legend-snake {
  width: 11px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5c791a, var(--lime));
  box-shadow: 0 0 8px rgba(200, 255, 62, 0.45);
}

.legend-food {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(125, 233, 220, 0.65);
  transform: rotate(45deg);
}

.legend-grid {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(to right, transparent 45%, rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0.25) 55%, transparent 55%),
    linear-gradient(to bottom, transparent 45%, rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0.25) 55%, transparent 55%);
}

.game-stage {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 34px;
  background: #070807;
  gap: 13px;
}

.game-hud {
  display: flex;
  width: 100%;
  max-width: 610px;
  align-items: stretch;
  margin: 0 auto;
  gap: 10px;
}

.score-card {
  min-width: 112px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: #101110;
  color: var(--white);
  transition: transform 0.35s var(--ease), border-color 0.3s ease;
}

.score-card span {
  display: block;
  color: rgba(255, 255, 255, 0.36);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.score-card strong {
  display: block;
  margin-top: 3px;
  font-family: "Space Grotesk", monospace;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.score-card--best strong {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(200, 255, 62, 0.28);
}

.score-card.is-bump {
  animation: score-bump 0.35s var(--ease);
}

.game-status {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: #101110;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  gap: 8px;
}

.game-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64645e;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.game-status.is-running i {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(200, 255, 62, 0.8);
  animation: blink 1.1s ease-in-out infinite;
}

.game-status.is-paused i {
  background: #ffc84a;
  box-shadow: 0 0 12px rgba(255, 200, 74, 0.7);
}

.game-status.is-over i {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 94, 94, 0.7);
}

.canvas-wrap {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 610px;
  flex: 0 0 auto;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: #090a09;
}

.canvas-wrap::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 255, 62, 0.045);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  box-shadow: 0 0 50px rgba(200, 255, 62, 0.04) inset;
}

#snakeCanvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

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

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  background: radial-gradient(circle at 50% 46%, rgba(10, 11, 10, 0.32), rgba(6, 7, 6, 0.72));
  text-align: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  backdrop-filter: blur(1px);
}

.game-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.overlay-kicker {
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.game-overlay h3 {
  margin: 11px 0 9px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-shadow: 0 0 34px rgba(200, 255, 62, 0.12);
}

.game-overlay p {
  max-width: 280px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.7;
}

.game-overlay .btn {
  min-height: 48px;
  padding: 0 22px;
}

.game-controls {
  display: flex;
  width: 100%;
  max-width: 610px;
  align-items: center;
  margin: 0 auto;
  gap: 12px;
}

.pill-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  gap: 8px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.pill-btn span {
  font-size: 14px;
  transition: transform 0.6s var(--ease);
}

.pill-btn:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 28px rgba(200, 255, 62, 0.18);
  transform: translateY(-2px);
}

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

.dpad {
  display: none;
  width: 138px;
  flex: 0 0 auto;
  gap: 6px;
  grid-template-areas:
    ". up ."
    "left down right";
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 42px);
}

.dpad button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dpad button[data-dir="up"] {
  grid-area: up;
}

.dpad button[data-dir="left"] {
  grid-area: left;
}

.dpad button[data-dir="down"] {
  grid-area: down;
}

.dpad button[data-dir="right"] {
  grid-area: right;
}

.dpad button:active {
  background: var(--lime);
  color: var(--ink);
  transform: scale(0.95);
}

.key-hint {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.32);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-align: right;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  padding-bottom: 30px;
}

.contact-panel {
  position: relative;
  display: flex;
  min-height: 700px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(38px, 6.4vw, 92px);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: clamp(30px, 4vw, 54px);
  background:
    radial-gradient(800px 500px at 84% 0%, rgba(200, 255, 62, 0.04), transparent 60%),
    linear-gradient(150deg, #131512 0%, #080908 66%);
  color: var(--white);
  box-shadow: 0 60px 150px rgba(0, 0, 0, 0.25);
}

.contact-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.contact-glow--one {
  top: -16%;
  right: -6%;
  width: 44%;
  aspect-ratio: 1;
  background: rgba(200, 255, 62, 0.16);
}

.contact-glow--two {
  bottom: -34%;
  left: -8%;
  width: 42%;
  aspect-ratio: 1;
  background: rgba(125, 233, 220, 0.09);
}

.contact-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 8.3333% 100%, 100% 25%;
  mask-image: radial-gradient(ellipse 80% 84% at 60% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 84% at 60% 45%, #000 20%, transparent 78%);
  pointer-events: none;
}

.contact-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  gap: 9px;
}

.contact-title {
  position: relative;
  z-index: 2;
  margin: clamp(46px, 7vw, 88px) 0;
  font-family: var(--font-display);
  font-size: clamp(4.7rem, 15vw, 15.5rem);
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 0.75;
}

.contact-title span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 245, 240, 0.84);
}

.contact-title i {
  display: inline-block;
  margin-left: 0.04em;
  color: var(--lime);
  font-size: 0.21em;
  font-style: normal;
  letter-spacing: 0;
  vertical-align: top;
  transform: translateY(0.7em);
  animation: float-arrow 3.6s ease-in-out infinite;
}

.contact-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  gap: clamp(30px, 5vw, 70px);
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-copy p {
  max-width: 530px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
  gap: 16px;
}

.copy-btn {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

.contact-details {
  display: grid;
  align-content: center;
  padding-left: clamp(24px, 4vw, 56px);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-details span {
  display: block;
  color: rgba(255, 255, 255, 0.34);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.contact-details strong {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.contact-marquee {
  position: absolute;
  right: 0;
  bottom: -0.12em;
  left: 0;
  overflow: hidden;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(58px, 8vw, 124px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4px 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  gap: 20px;
}

.site-footer .footer-mid {
  color: var(--muted-2);
}

.site-footer .footer-mid a {
  display: inline;
  color: #5e5f57;
  border-bottom: 1px solid rgba(9, 10, 9, 0.2);
  transition: color 0.25s ease, border-color 0.25s ease;
}

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

.site-footer a {
  display: inline-flex;
  align-items: center;
  color: #4d4e47;
  gap: 7px;
  transition: color 0.25s ease;
}

.site-footer a span {
  font-size: 11px;
  transition: transform 0.4s var(--ease);
}

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

.site-footer a:hover span {
  transform: translateY(-3px);
}

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 500;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.03em;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, 18px);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.5s var(--ease);
}

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

/* ============================================================
   Motion
   ============================================================ */

@keyframes title-up {
  to {
    transform: translateY(0);
  }
}

@keyframes visual-in {
  to {
    opacity: 1;
    transform: translateY(0) rotate(3.5deg);
  }
}

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

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

@keyframes ping {
  0% {
    opacity: 0.8;
    transform: scale(0.55);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes scan {
  0% {
    top: -18%;
  }
  55%,
  100% {
    top: 110%;
  }
}

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

@keyframes score-bump {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.07);
    border-color: rgba(200, 255, 62, 0.5);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float-arrow {
  0%,
  100% {
    transform: translateY(0.7em) translateX(0);
  }
  50% {
    transform: translateY(0.58em) translateX(0.06em);
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-height: 820px) and (min-width: 761px) {
  .hero {
    padding-top: 104px;
    padding-bottom: 16px;
  }

  .hero-stage {
    padding: 8px 0 12px;
  }

  .hero-bottom {
    padding: 17px 24px;
    gap: 24px;
  }

  .hero-actions .btn {
    min-height: 48px;
    padding: 0 20px;
  }

  .hero-scroll {
    margin-top: 8px;
  }

  .hero-visual {
    width: clamp(160px, 14vw, 235px);
  }
}

@media (max-width: 1260px) {
  .hero-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .telemetry {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .about-photo {
    min-height: 540px;
  }

  .service-card {
    min-height: 455px;
  }
}

@media (max-width: 1080px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-photo {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 460px;
  }

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

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

  .service-card {
    min-height: 420px;
  }

  .project-card--wide,
  .project-card--narrow {
    grid-column: span 6;
  }

  .project-media,
  .project-card--narrow .project-media {
    height: 310px;
  }

  .game-shell {
    grid-template-columns: 1fr;
  }

  .game-intro {
    min-height: auto;
  }

  .game-intro::after {
    font-size: 190px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    width: calc(100% - 24px);
    padding-left: 17px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    background: rgba(246, 245, 241, 0.95);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(-8px);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    gap: 2px;
    transition:
      opacity 0.35s ease,
      visibility 0.35s ease,
      transform 0.45s var(--ease);
  }

  body.menu-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav a {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
  }

  .nav a span {
    font-size: 8px;
  }

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-topline {
    font-size: 8px;
  }

  .hero-coord {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head .lead,
  .projects-side .lead {
    max-width: 540px;
    margin-left: 0;
    text-align: left;
  }

  .section-head--projects .projects-side {
    align-items: flex-start;
  }

  .project-filters {
    justify-content: flex-start;
  }

  .project-card--wide,
  .project-card--narrow {
    grid-column: 1 / -1;
  }

  .project-media,
  .project-card--narrow .project-media {
    height: clamp(280px, 48vw, 430px);
  }

  .game-hud {
    flex-wrap: wrap;
  }

  .game-status {
    flex: 1 1 100%;
    min-height: 40px;
    justify-content: flex-start;
    order: -1;
  }

  .dpad {
    display: grid;
  }

  .key-hint {
    display: none;
  }

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

  .contact-details {
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }
}

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

  .hero-live {
    display: none;
  }

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

  .hero-topline > span:first-child::after {
    margin-left: 12px;
    color: var(--muted-2);
    content: "/ PORTFOLIO 2026";
  }

  .hero-stage {
    padding: 14px 0 18px;
  }

  .hero-visual,
  .hero-side-note {
    display: none;
  }

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

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .telemetry {
    display: grid;
    grid-column: auto;
    padding-top: 18px;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
  }

  .telemetry > div span {
    white-space: normal;
  }

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

  .about-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .about-stats {
    grid-column: auto;
    grid-row: auto;
  }

  .about-photo {
    min-height: 390px;
  }

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

  .workflow-step {
    min-height: 150px;
  }

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

  .service-card {
    min-height: 390px;
  }

  .game-shell {
    padding: 10px;
    border-radius: 32px;
  }

  .game-intro,
  .game-stage {
    border-radius: 25px;
  }

  .game-intro {
    padding: 28px;
    gap: 22px;
  }

  .game-intro::after {
    font-size: 150px;
  }

  .game-specs li {
    padding: 10px 0;
  }

  .game-specs li:nth-child(n + 2) {
    display: none;
  }

  .game-controls {
    flex-wrap: wrap;
  }

  .pill-btn {
    flex: 1;
    justify-content: center;
  }

  .contact-panel {
    min-height: 620px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-mid {
    display: none;
  }
}

@media (max-width: 540px) {
  .site-header {
    top: 10px;
    height: 58px;
    width: calc(100% - 20px);
    padding: 6px 6px 6px 15px;
  }

  .site-header.is-scrolled {
    height: 56px;
  }

  .brand-text {
    font-size: 11px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .header-cta {
    display: inline-flex;
    min-height: 40px;
    padding: 0 14px;
    font-size: 11px;
    gap: 7px;
  }

  .header-cta .btn-arrow {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .hero {
    min-height: 100svh;
    padding: 96px 18px 18px;
  }

  .hero-title {
    font-size: 15.7vw;
    letter-spacing: -0.08em;
  }

  .hero-bio p {
    font-size: 12px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    min-height: 48px;
    padding: 0 17px;
    font-size: 12px;
  }

  .telemetry > div strong {
    font-size: 21px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-head-title h2 {
    font-size: 2.55rem;
  }

  .stat {
    padding: 21px 13px;
  }

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

  .about-photo {
    min-height: 340px;
  }

  .about-copy {
    padding: 25px;
  }

  .service-card {
    padding: 24px;
  }

  .project-media,
  .project-card--narrow .project-media {
    height: 270px;
  }

  .project-body {
    padding: 22px;
  }

  .project-metrics {
    gap: 18px;
  }

  .project-metrics strong {
    font-size: 21px;
  }

  .project-view {
    display: none;
  }

  .game-intro {
    padding: 24px;
  }

  .game-intro h2 {
    font-size: 54px;
  }

  .game-stage {
    padding: 11px;
  }

  .game-hud {
    gap: 7px;
  }

  .score-card {
    min-width: 0;
    flex: 1;
    padding: 10px 13px;
  }

  .score-card strong {
    font-size: 22px;
  }

  .game-overlay h3 {
    font-size: 24px;
  }

  .dpad {
    width: 126px;
  }

  .contact-panel {
    min-height: 580px;
    padding: 34px 24px;
  }

  .contact-title {
    font-size: 19vw;
  }

  .contact-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .contact-details {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .contact-actions .btn {
    width: 100%;
    padding: 0 17px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .title-inner,
  .hero-visual,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
