/* ============================================================
   LIN MO — DRONE TECH PORTFOLIO
   Hand-built visual system / 2025
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("../fonts/noto-sans-sc-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dmmono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #e9e6de;
  --paper-light: #f2efe7;
  --paper-deep: #dedacf;
  --ink: #11140e;
  --ink-soft: #1a1f16;
  --ink-card: #10140e;
  --ink-card-2: #171d14;
  --sage: #a5b298;
  --sage-dark: #68725d;
  --muted: #5f6458;
  --muted-2: #656b5e;
  --olive: #5c7a1d;
  --lime: #d7ff57;
  --lime-deep: #9dbf3e;
  --lime-soft: #e3f3a9;
  --line: rgba(17, 20, 14, 0.16);
  --line-strong: rgba(17, 20, 14, 0.28);
  --line-dark: rgba(232, 242, 220, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --gutter: clamp(18px, 4.5vw, 72px);
  --shell-w: 1880px;
  --space: clamp(88px, 12vw, 190px);
  --radius-xl: clamp(30px, 3.4vw, 54px);
  --radius-lg: clamp(22px, 2.4vw, 34px);
  --radius-md: 18px;
  --font-sans: "Archivo", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-cn: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Baskerville", "Songti SC", "Noto Serif CJK SC", "AR PL UMing CN", serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

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

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 75% 48% at 78% -4%, rgba(255, 255, 255, 0.9), transparent 66%),
    radial-gradient(circle at 9% 30%, rgba(202, 215, 190, 0.36), transparent 36%),
    radial-gradient(circle at 93% 66%, rgba(215, 255, 87, 0.1), transparent 28%),
    linear-gradient(160deg, #efebe2 0%, var(--paper) 46%, #e6e2d8 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 450;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: inherit; line-height: 1; }

p, ul, ol, dl, dd, dt, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; padding: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
svg { overflow: visible; }
address { font-style: normal; }
sup { line-height: 0; }

:focus-visible {
  outline: 2px solid var(--focus, var(--ink));
  outline-offset: 4px;
  border-radius: 6px;
}
.dark-card, .site-footer, .project-dialog, .game-shell { --focus: var(--lime); }

.shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell-w));
  margin-inline: auto;
}

.section { position: relative; padding-block: var(--space); }
section[id], footer[id] { scroll-margin-top: 108px; }

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

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: none;
}

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

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

.page-noise {
  position: fixed;
  z-index: 80;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: var(--noise);
  background-size: 180px 180px;
}

.page-no-js .page-noise { opacity: 0.025; }

/* ---------- Reusable atoms ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 3px rgba(157, 191, 62, 0.13);
}
.section-label > span:first-child { color: var(--ink); }
.section-label--dark { color: var(--sage); }
.section-label--dark > span:first-child { color: var(--lime); }

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 0 rgba(157, 191, 62, 0.35);
  animation: statusPulse 2.8s var(--ease-soft) infinite;
  flex: none;
}
.section-label--dark .status-dot { background: var(--lime); }
.status-dot--live { background: var(--lime); }

.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
  pointer-events: none;
}
.btn:hover { box-shadow: 0 8px 28px rgba(17, 20, 14, 0.12); }
.btn .icon { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }

.btn--dark {
  background: var(--ink);
  color: var(--paper-light);
  border-color: var(--ink);
}
.btn--dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn--lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  font-weight: 600;
}
.btn--lime:hover { background: #e2ff85; border-color: #e2ff85; box-shadow: 0 10px 36px rgba(215, 255, 87, 0.22); }
.btn--restart {
  min-height: 42px;
  padding: 9px 15px 9px 13px;
  color: var(--lime);
  border-color: rgba(215, 255, 87, 0.42);
  background: rgba(215, 255, 87, 0.035);
  font-size: 11px;
}
.btn--restart:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: 0 0 30px rgba(215, 255, 87, 0.16); }
.btn--restart .icon { width: 15px; height: 15px; }
.btn--restart:hover .icon { transform: rotate(-35deg); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.text-link .icon { width: 15px; height: 15px; }
.text-link:hover { color: var(--olive); gap: 11px; }
.text-link--light { color: var(--paper-light); }
.text-link--light:hover { color: var(--lime); }

.lime-dot { color: var(--lime-deep); }
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: transparent;
  transition: background-color 0.45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(233, 230, 222, 0.74);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 10px 40px rgba(28, 34, 22, 0.05);
}
.site-header.is-scrolled::after { background: var(--line); }

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--lime);
  transition: transform 0.55s var(--ease), background-color 0.35s var(--ease);
}
.brand-mark .icon { width: 23px; height: 23px; }
.brand:hover .brand-mark { transform: rotate(90deg); background: var(--ink-soft); }
.brand-mark--small { width: 34px; height: 34px; border-radius: 10px; }
.brand-type { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name sup { font-size: 7px; vertical-align: top; position: relative; top: 1px; margin-left: 1px; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.is-current { color: var(--ink); }
.main-nav a.is-current::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime-deep);
  transform: translateX(-50%);
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.btn--header { min-height: 38px; padding: 9px 16px; font-size: 12px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.menu-toggle .icon { width: 15px; height: 15px; }
.menu-toggle:hover { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }

/* mobile nav dialog */
.mobile-menu {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink-card);
  color: var(--paper-light);
  overflow: hidden;
}
.mobile-menu::backdrop { background: rgba(10, 14, 8, 0.4); }
.mobile-menu[open] { display: flex; flex-direction: column; animation: menuIn 0.5s var(--ease) both; }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 36px), var(--shell-w));
  min-height: 78px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu__brand { font-family: var(--font-sans); font-size: 16px; font-weight: 750; letter-spacing: -0.02em; }
.mobile-menu__brand sup { font-size: 8px; color: var(--lime); }
.menu-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--paper-light);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}
.menu-close .icon { width: 17px; height: 17px; }
.menu-close:hover { background: var(--lime); color: var(--ink); transform: rotate(90deg); }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  width: min(calc(100% - 36px), var(--shell-w));
  margin-inline: auto;
  padding: 16px 0;
}
.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(10px, 2.2vh, 22px) 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.3s var(--ease), padding 0.35s var(--ease);
}
.mobile-menu__nav a > span:first-child {
  width: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--lime);
}
.mobile-menu__nav a > span:nth-child(2) {
  flex: 1;
  font-size: clamp(2.3rem, 9vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.mobile-menu__nav small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--sage);
}
.mobile-menu__nav .icon { width: 20px; height: 20px; color: var(--lime); }
.mobile-menu__nav a:hover { color: var(--lime); padding-left: 10px; }
.mobile-menu__cta { position: relative; z-index: 1; align-self: flex-start; margin: 0 18px 10px; width: min(354px, calc(100% - 36px)); justify-content: space-between; }
.mobile-menu__cta::after { display: none; }
.nojs-note { margin: 12px 4px 0; padding: 11px 14px; border: 1px solid rgba(235, 244, 224, 0.14); border-radius: 12px; color: var(--sage); font-size: 11px; line-height: 1.6; }
.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  width: min(calc(100% - 36px), var(--shell-w));
  margin-inline: auto;
  padding: 20px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--sage);
}
.mobile-menu__foot a { color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  --hero-top: clamp(100px, 9.5vh, 132px);
  position: relative;
  display: flex;
  min-height: 100svh;
  padding-top: var(--hero-top);
  padding-bottom: 24px;
  overflow: clip;
  isolation: isolate;
}
.hero__shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex: none;
  flex-direction: column;
  min-height: calc(100svh - var(--hero-top) - 24px);
}
.hero__glow {
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -12%;
  width: min(70vw, 980px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 255, 87, 0.27) 0%, rgba(190, 224, 132, 0.1) 38%, transparent 69%);
  filter: blur(22px);
  pointer-events: none;
}
.hero__ring {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: -16%;
  width: min(72vw, 1080px);
  aspect-ratio: 1;
  border: 1px solid rgba(17, 20, 14, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.hero__ring::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px dashed rgba(17, 20, 14, 0.08);
  border-radius: 50%;
}
.hero__ring::after {
  content: "";
  position: absolute;
  top: 24%;
  left: 2%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 5px rgba(157, 191, 62, 0.13);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.11em;
  line-height: 1.5;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-meta__coords { color: var(--muted-2); }
.hero-meta__place { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(18px, 3.4vh, 40px);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-kicker__en {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-title {
  margin-top: clamp(10px, 1.8vh, 24px);
  font-family: var(--font-sans);
  font-size: clamp(2.55rem, 13.9vw, 17.5rem);
  font-weight: 850;
  font-variation-settings: "wdth" 108;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--ink);
  white-space: nowrap;
}
.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.hero-row + .hero-row { margin-top: 0.025em; }
.hero-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
.hero-word { display: block; }
.js .hero-word {
  transform: translateY(112%);
  transition: transform 1.15s var(--ease);
  will-change: transform;
}
.js.is-loaded .hero-word { transform: translateY(0); }
.js .hero-row:nth-child(1) .hero-word { transition-delay: 0.05s; }
.js .hero-row:nth-child(2) .hero-word { transition-delay: 0.15s; }
.js .hero-row:nth-child(3) .hero-word { transition-delay: 0.25s; }
.hero-anno {
  flex: none;
  padding: 0 0 0.72em 14px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}
.hero-row--last { align-items: flex-start; }
.hero-reg {
  display: inline-block;
  position: relative;
  top: -0.9em;
  margin-left: 0.035em;
  font-family: var(--font-mono);
  font-size: 0.1em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: baseline;
  color: var(--muted);
}
.hero-row--last .hero-anno { display: none; }

.hero-base {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(260px, 0.9fr) 154px;
  gap: clamp(22px, 3.6vw, 64px);
  align-items: end;
  margin-top: auto;
  padding-top: clamp(18px, 3vh, 44px);
}
.hero-lead {
  max-width: 465px;
  font-size: clamp(0.96rem, 1.15vw, 1.18rem);
  line-height: 1.75;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
}
.hero-disciplines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.hero-disciplines li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.hero-disciplines li span { color: var(--olive); font-size: 7.5px; }

.orbit-badge {
  --mx: 0px;
  --my: 0px;
  justify-self: end;
  width: 154px;
  height: 154px;
  color: var(--ink);
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.5s var(--ease), color 0.35s var(--ease);
}
.orbit-badge svg { width: 100%; height: 100%; }
.orbit-badge__text {
  font-family: var(--font-mono);
  font-size: 7.3px;
  font-weight: 400;
  letter-spacing: 0.19em;
  fill: currentColor;
  text-transform: uppercase;
}
.orbit-badge__disc {
  fill: var(--lime);
  stroke: var(--ink);
  stroke-width: 1;
  transition: fill 0.35s var(--ease), stroke 0.35s var(--ease);
}
.orbit-badge__drone { color: var(--ink); transition: color 0.35s var(--ease); }
.orbit-badge__arrow { transition: transform 0.35s var(--ease); transform-origin: 90px 140px; }
.orbit-badge:hover { color: var(--lime-deep); }
.orbit-badge:hover .orbit-badge__disc { fill: var(--ink); }
.orbit-badge:hover .orbit-badge__drone { color: var(--lime); }
.orbit-badge:hover .orbit-badge__arrow { transform: translateY(4px); }
.orbit-badge__text { animation: orbitSpin 34s linear infinite; transform-origin: 90px 90px; }

.hero-footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(14px, 2.2vh, 30px);
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero-scroll .icon { width: 13px; height: 13px; animation: nudgeDown 2.5s var(--ease-soft) infinite; }
.hero-scroll__line { display: block; width: clamp(24px, 4vw, 62px); height: 1px; background: var(--line-strong); }
.hero-availability { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; }

/* ---------- Ticker ---------- */
.ticker-wrap {
  position: relative;
  margin-top: clamp(22px, 4vw, 60px);
  z-index: 3;
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell-w));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(236, 244, 224, 0.1);
  border-radius: clamp(20px, 2.7vw, 38px);
  background: var(--ink);
  color: var(--lime-soft);
  box-shadow: 0 24px 60px -34px rgba(20, 26, 17, 0.7);
}
.ticker {
  display: flex;
  width: max-content;
  padding-block: clamp(15px, 2vw, 26px);
  animation: tickerMove 42s linear infinite;
  will-change: transform;
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker__set {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 44px);
  padding-right: clamp(20px, 2.6vw, 44px);
  white-space: nowrap;
  font-size: clamp(1.05rem, 2.15vw, 2.1rem);
  font-weight: 550;
  letter-spacing: -0.025em;
}
.ticker__star { color: var(--lime); font-size: 0.62em; }

/* ---------- Section headers ---------- */
.section-head { margin-bottom: clamp(34px, 5.4vw, 80px); }
.section-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.62fr);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(18px, 3vw, 34px);
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 6.8vw, 8rem);
  font-weight: 800;
  font-variation-settings: "wdth" 106;
  line-height: 0.93;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.section-title .serif { font-size: 1.1em; line-height: 0.8; }
.section-title .mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.08em;
  color: var(--ink);
  white-space: nowrap;
}
.section-title .mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -0.04em 3%;
  background: var(--lime);
  border-radius: 0.12em;
  transform: rotate(-1.5deg);
  transform-origin: left bottom;
}
.section-intro {
  max-width: 390px;
  padding: 0 0 0.35em clamp(0px, 2vw, 26px);
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  line-height: 1.75;
}
.section-intro::first-letter { color: var(--ink); }

/* ---------- Dark cards ---------- */
.dark-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 6%, rgba(181, 223, 137, 0.14), transparent 30%),
    radial-gradient(circle at 10% 92%, rgba(110, 145, 84, 0.13), transparent 35%),
    linear-gradient(150deg, #1b2117 0%, #11160f 48%, #0b0e09 100%);
  color: var(--paper-light);
  box-shadow: 0 36px 90px -44px rgba(18, 25, 15, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  isolation: isolate;
}
.dark-card > * { position: relative; }
.grain::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  opacity: 0.065;
  mix-blend-mode: overlay;
  background-image: var(--noise);
  background-size: 180px 180px;
  border-radius: inherit;
}
.card-corner {
  position: absolute;
  z-index: 3;
  width: 17px;
  height: 17px;
  border-color: rgba(215, 255, 87, 0.52);
  border-style: solid;
  pointer-events: none;
}
.card-corner--tl { top: 22px; left: 22px; border-width: 1px 0 0 1px; }
.card-corner--tr { top: 22px; right: 22px; border-width: 1px 1px 0 0; }
.card-corner--bl { bottom: 22px; left: 22px; border-width: 0 0 1px 1px; }
.card-corner--br { right: 22px; bottom: 22px; border-width: 0 1px 1px 0; }

[data-glow] { --mx: 50%; --my: 50%; }
[data-glow]::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(215, 255, 87, 0.13), transparent 46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
[data-glow]:hover::before { opacity: 1; }

/* ---------- About ---------- */
.about-card {
  padding: clamp(24px, 3.7vw, 58px);
  border-radius: var(--radius-xl);
}
.about-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--sage);
  text-transform: uppercase;
}
.about-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 100px);
  padding-block: clamp(32px, 5.6vw, 78px);
  align-items: start;
}
.about-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: #f2f6eb;
  font-family: var(--font-cn);
  font-size: clamp(1.5rem, 2.75vw, 2.85rem);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -0.035em;
}
.about-card__copy > p:not(.about-lead):not(.about-card__scenes) {
  max-width: 570px;
  margin-bottom: 14px;
  color: rgba(236, 243, 226, 0.68);
  font-size: 0.95rem;
  line-height: 1.85;
}
.about-card__scenes {
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--sage);
}
.about-card__scenes span { color: var(--lime); margin-right: 8px; }
.about-card__links { margin-top: 24px; }

.crew-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(235, 244, 226, 0.18);
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(236, 245, 226, 0.115), rgba(236, 245, 226, 0.025));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 70px -30px rgba(0, 0, 0, 0.45);
  transform: rotate(1.25deg);
  transition: transform 0.65s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.crew-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 255, 87, 0.14), transparent 70%);
  pointer-events: none;
}
.crew-card:hover {
  transform: rotate(0deg) translateY(-5px);
  border-color: rgba(215, 255, 87, 0.42);
  box-shadow: 0 34px 80px -28px rgba(0, 0, 0, 0.55);
}
.crew-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--line-dark);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--sage);
}
.crew-status { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.crew-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(215, 255, 87, 0.11); }
.crew-card__art { position: relative; height: 245px; margin: 9px 0 4px; }
.quad-art {
  width: 100%;
  height: 100%;
  color: rgba(236, 244, 224, 0.76);
  filter: drop-shadow(0 0 20px rgba(215, 255, 87, 0.09));
  transform: rotate(-11deg) scale(0.94);
  transform-origin: center;
  transition: transform 0.8s var(--ease);
}
.crew-card:hover .quad-art { transform: rotate(-4deg) scale(0.98); }
.crew-stamp {
  position: absolute;
  top: 19px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding-top: 2px;
  border: 1px solid rgba(215, 255, 87, 0.65);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
  transform: rotate(9deg);
}
.crew-stamp small { font-size: 6px; letter-spacing: 0.12em; }
.crew-coord {
  position: absolute;
  bottom: 5px;
  left: 2px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  line-height: 1.7;
  color: var(--sage);
}
.crew-card__foot { position: relative; padding-top: 12px; border-top: 1px dashed var(--line-dark); }
.crew-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.crew-name strong { font-family: var(--font-cn); font-size: 1.35rem; font-weight: 650; letter-spacing: -0.03em; }
.crew-name span { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.13em; color: var(--sage); }
.crew-role { margin-top: 2px; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.1em; color: var(--sage); }
.crew-facts { display: grid; gap: 6px; margin-top: 14px; }
.crew-facts > div { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.04em; }
.crew-facts dt { color: var(--sage); }
.crew-facts dd { color: rgba(245, 249, 239, 0.86); text-align: right; }
.crew-barcode {
  height: 16px;
  margin-top: 15px;
  opacity: 0.65;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px, currentColor 3px 5px, transparent 5px 7px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 72%, transparent 100%);
  color: var(--sage);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.about-stats > div { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.about-stats strong {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 750;
  font-variation-settings: "wdth" 105;
  line-height: 0.8;
  letter-spacing: -0.055em;
  color: #f1f5e9;
  white-space: nowrap;
}
.about-stats sup { font-size: 0.34em; top: -0.25em; color: var(--lime); }
.about-stats span { display: flex; flex-direction: column; gap: 5px; padding-top: 2px; color: rgba(235, 242, 225, 0.7); font-family: var(--font-cn); font-size: 11px; line-height: 1.3; }
.about-stats small { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.1em; color: var(--sage); }
.about-card__quote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 30px;
  padding-top: 24px;
  color: var(--sage);
}
.about-card__quote p { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.2vw, 2rem); font-style: italic; letter-spacing: -0.01em; color: #edf3e3; }
.about-card__quote span { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.12em; }

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.cap-card {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 2.8vw, 38px);
  transition: transform 0.65s var(--ease), border-color 0.45s var(--ease), box-shadow 0.65s var(--ease);
}
.cap-card:nth-child(1) { grid-column: span 7; min-height: 650px; }
.cap-card:nth-child(2) { grid-column: span 5; min-height: 650px; }
.cap-card:nth-child(3) { grid-column: span 5; }
.cap-card:nth-child(4) { grid-column: span 7; }
.cap-card:hover {
  transform: translateY(-7px) scale(1.006);
  border-color: rgba(215, 255, 87, 0.32);
  box-shadow: 0 48px 100px -42px rgba(14, 20, 12, 0.86);
}
.cap-card__visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.cap-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 9, 0.04) 18%, rgba(10, 14, 9, 0.33) 48%, rgba(11, 15, 10, 0.87) 76%, #0b0e09 100%);
  pointer-events: none;
}
.cap-card__visual > svg,
.cap-card__visual > img,
.cap-card__visual > picture,
.cap-card__visual > .blueprint-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cap-card__visual > picture img { width: 100%; height: 100%; object-fit: cover; }
.cap-card__visual--photo img {
  filter: saturate(0.4) contrast(1.02) brightness(0.62);
  transition: filter 1.15s var(--ease), transform 1.4s var(--ease);
  transform: scale(1.02);
}
.cap-card--post:hover .cap-card__visual--photo img { filter: saturate(1.02) contrast(1.02) brightness(0.76); transform: scale(1.055); }
.cap-card__hud {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  color: var(--sage);
  text-transform: uppercase;
}
.cap-index { font-size: 11px; color: var(--lime); }
.cap-card__body { position: relative; z-index: 4; max-width: 500px; padding-top: 110px; }
.cap-card__cn {
  margin-bottom: 9px;
  color: var(--lime);
  font-family: var(--font-cn);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
}
.cap-card__body h3 {
  color: #f0f5e8;
  font-family: var(--font-cn);
  font-size: clamp(2.1rem, 3.5vw, 3.7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.cap-card:nth-child(2) .cap-card__body h3,
.cap-card:nth-child(3) .cap-card__body h3 { font-size: clamp(2rem, 3.1vw, 3.25rem); }
.cap-card__desc {
  max-width: 40ch;
  margin-top: 16px;
  color: rgba(237, 244, 227, 0.7);
  font-size: 0.88rem;
  line-height: 1.72;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 22px; }
.tag-list li {
  padding: 6px 10px;
  border: 1px solid rgba(235, 244, 224, 0.18);
  border-radius: 999px;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}
.cap-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(215, 255, 87, 0.35);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cap-link .icon { width: 13px; height: 13px; }
.cap-link:hover { gap: 10px; border-color: var(--lime); }

.cap-card--mapping .topo-art { width: 100%; height: 100%; }
.topo-route { animation: dashTravel 22s linear infinite; }
.cap-card--mapping .cap-card__body { max-width: 470px; }
.cap-card--build .blueprint-bg {
  background:
    linear-gradient(rgba(215, 255, 87, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 255, 87, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 58% 42%, rgba(166, 198, 123, 0.2), transparent 48%),
    linear-gradient(145deg, #1d2818, #0b0e09 72%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}
.hexa-art { color: rgba(233, 242, 223, 0.82); }
.cap-card--build .hexa-art {
  width: 107%;
  height: 107%;
  left: -2%;
  top: -5%;
  filter: drop-shadow(0 0 24px rgba(215, 255, 87, 0.08));
  transform: rotate(-2deg);
}
.bp-note {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--lime);
  opacity: 0.78;
}
.bp-note-a { top: 74px; right: 24px; }
.bp-note-b { top: 90px; right: 24px; color: var(--sage); }
.bp-cross { position: absolute; z-index: 2; width: 11px; height: 11px; opacity: 0.55; }
.bp-cross::before, .bp-cross::after { content: ""; position: absolute; background: var(--sage); }
.bp-cross::before { top: 5px; left: 0; width: 11px; height: 1px; }
.bp-cross::after { top: 0; left: 5px; width: 1px; height: 11px; }
.bp-cross-a { top: 34%; left: 26%; }
.bp-cross-b { right: 13%; bottom: 28%; }
.spray-route { animation: dashTravel 16s linear infinite; }
.cap-card--agri .cap-card__body { max-width: 430px; padding-top: 140px; }
.cap-card--post .cap-card__body { max-width: 480px; padding-top: 150px; }
.photo-grade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(188, 216, 135, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(8, 12, 8, 0.12), rgba(8, 11, 7, 0.66));
  mix-blend-mode: multiply;
}
.grade-hud {
  position: absolute;
  z-index: 2;
  top: 17%;
  right: 5%;
  width: 43%;
  color: rgba(234, 245, 221, 0.7);
  opacity: 0.75;
  transform: translateY(0);
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.cap-card--post:hover .grade-hud { transform: translateY(-7px); opacity: 1; }
.grade-stamp {
  position: absolute;
  z-index: 2;
  right: 9%;
  bottom: 23%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(215, 255, 87, 0.66);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(8deg);
  transition: transform 0.6s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.cap-card--post:hover .grade-stamp { transform: rotate(-2deg) scale(1.05); background: var(--lime); color: var(--ink); }

.cap-card__visual--agri img {
  filter: saturate(0.62) contrast(1.08) brightness(0.68);
  object-position: 50% 42%;
  transform: scale(1.02);
  transition: filter 1.1s var(--ease), transform 1.4s var(--ease);
}
.cap-card--agri:hover .cap-card__visual--agri img {
  filter: saturate(0.92) contrast(1.03) brightness(0.8);
  transform: scale(1.06);
}
.agri-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(158deg, rgba(22, 52, 18, 0.22) 0%, rgba(8, 15, 8, 0.5) 48%, rgba(5, 9, 6, 0.97) 100%),
    radial-gradient(circle at 68% 30%, rgba(215, 255, 87, 0.17), transparent 38%);
}
.agri-overlay-grid { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0.9; mix-blend-mode: screen; }
.agri-tags { position: absolute; z-index: 3; top: clamp(52px, 8vh, 88px); left: 24px; display: flex; flex-wrap: wrap; gap: 5px; max-width: 72%; }
.agri-tags span { padding: 4px 7px; border: 1px solid rgba(235, 244, 224, 0.18); border-radius: 999px; background: rgba(8, 13, 7, 0.36); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--lime); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.06em; white-space: nowrap; }
.agri-scan { position: absolute; z-index: 2; top: -20%; bottom: -20%; left: -20%; width: 22%; background: linear-gradient(90deg, transparent, rgba(215, 255, 87, 0.1), transparent); transform: skewX(-12deg); animation: agriScan 9s ease-in-out infinite; pointer-events: none; }
.cap-card--post .cap-card__visual--photo img { filter: saturate(0.5) contrast(1.03) brightness(0.66); }
.cap-card--post:hover .cap-card__visual--photo img { filter: saturate(1.02) contrast(1.02) brightness(0.8); }
.grade-stamp { width: 78px; height: 78px; font-size: 6.5px; }
.grade-stamp strong { font-size: 8px; letter-spacing: 0.03em; }
@keyframes agriScan {
  0%, 12% { transform: translateX(-30vw) skewX(-12deg); opacity: 0; }
  28% { opacity: 0.8; }
  55%, 100% { transform: translateX(120vw) skewX(-12deg); opacity: 0; }
}

/* ---------- Projects ---------- */
.project-list { display: flex; flex-direction: column; gap: clamp(18px, 2.5vw, 32px); }
.project { transition: transform 0.6s var(--ease), border-color 0.45s var(--ease), box-shadow 0.6s var(--ease); }
.project:hover { transform: translateY(-6px); border-color: rgba(215, 255, 87, 0.25); box-shadow: 0 50px 110px -46px rgba(14, 20, 12, 0.78); }
.project--featured { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr); min-height: 610px; padding: 0; }
.project__media { position: relative; min-height: 100%; overflow: hidden; background: #22281b; }
.project__media picture, .project__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.project__media img { object-fit: cover; filter: saturate(0.82) contrast(1.04) brightness(0.87); transform: scale(1.01); transition: transform 1.5s var(--ease), filter 0.9s var(--ease); }
.project:hover .project__media img { transform: scale(1.055); filter: saturate(1.03) contrast(1.02) brightness(0.94); }
.project__media::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(9, 13, 8, 0.28), transparent 25%, transparent 62%, rgba(9, 13, 8, 0.72)); pointer-events: none; }
.project__media-overlay { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(14, 24, 13, 0.28), transparent 40%); pointer-events: none; }
.project__media-overlay--green { background: linear-gradient(180deg, rgba(21, 38, 16, 0.16), transparent 38%, rgba(9, 15, 8, 0.58)); }
.media-hud {
  position: absolute;
  z-index: 3;
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: rgba(241, 247, 231, 0.8);
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.media-hud--top { top: 18px; }
.media-hud--top > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(236, 244, 224, 0.14);
  border-radius: 999px;
  background: rgba(9, 13, 8, 0.34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-shadow: none;
}
.media-hud--bottom { bottom: 20px; color: var(--sage); font-size: 7px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.media-hud .crosshair { display: inline-flex; align-items: center; gap: 5px; }
.media-hud .crosshair .icon { width: 12px; height: 12px; color: var(--lime); }
.media-hud .north { color: var(--lime); }
.scan-line {
  position: absolute;
  z-index: 2;
  top: -20%;
  right: 0;
  left: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(215, 255, 87, 0.11) 45%, transparent);
  border-top: 1px solid rgba(215, 255, 87, 0.18);
  animation: scanDown 8s linear infinite;
  pointer-events: none;
}
.project__info { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3.8vw, 54px); }
.project__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.11em; color: var(--sage); text-transform: uppercase; }
.project__top .project__num, .project__top .project__kind { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid rgba(236, 244, 224, 0.12); border-radius: 999px; background: rgba(9, 13, 8, 0.28); }
.project__overlay-info .project__top .project__num, .project__overlay-info .project__top .project__kind { background: rgba(9, 13, 8, 0.36); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.project__num { color: var(--lime); font-size: 11px; }
.project__info h3 {
  margin: clamp(18px, 3.5vh, 34px) 0 18px;
  color: #f3f6ec;
  font-family: var(--font-cn);
  font-size: clamp(2.3rem, 3.55vw, 3.85rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.project__info h3 span { display: block; margin-top: 9px; color: var(--sage); font-family: var(--font-cn); font-size: 0.38em; font-weight: 500; letter-spacing: 0.02em; }
.project__info > p { max-width: 43ch; color: rgba(235, 242, 226, 0.68); font-size: 0.88rem; line-height: 1.75; }
.project__metrics { display: flex; flex-wrap: wrap; gap: 16px 22px; margin: 24px 0; padding: 17px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.project__metrics span { display: flex; flex-direction: column; gap: 4px; color: var(--sage); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.07em; text-transform: uppercase; }
.project__metrics strong { color: #eef4e5; font-family: var(--font-sans); font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; }
.project__metrics small { margin-left: 2px; font-size: 0.45em; font-weight: 400; color: var(--sage); letter-spacing: 0.02em; }
.project__bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 6px; }
.round-cta {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(238, 245, 231, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.028);
  color: var(--paper-light);
  font-size: 8px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.round-cta .icon { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.round-cta:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: rotate(-7deg) scale(1.04); }
.round-cta:hover .icon { transform: rotate(45deg); }
.project__deliverables { max-width: 180px; color: var(--sage); font-family: var(--font-mono); font-size: 7.5px; line-height: 1.7; letter-spacing: 0.04em; text-align: right; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 32px); }
.project--build, .project--agri { min-height: 620px; padding: 0; }
.project__poster { position: absolute; z-index: 0; inset: 0; overflow: hidden; background: radial-gradient(circle at 54% 36%, rgba(172, 205, 125, 0.25), transparent 40%), linear-gradient(145deg, #22301b 0%, #111710 56%, #0a0d09 100%); }
.poster-grid { position: absolute; inset: 0; opacity: 0.55; background-image: linear-gradient(rgba(215, 255, 87, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 255, 87, 0.055) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: radial-gradient(circle at 50% 35%, #000, transparent 76%); mask-image: radial-gradient(circle at 50% 35%, #000, transparent 76%); }
.poster-ghost {
  position: absolute;
  top: 1%;
  right: 2%;
  color: transparent;
  font-family: var(--font-sans);
  font-size: clamp(11rem, 23vw, 26rem);
  font-weight: 850;
  -webkit-text-stroke: 1px rgba(215, 255, 87, 0.18);
  letter-spacing: -0.09em;
  line-height: 0.8;
  pointer-events: none;
}
.hexa-art--poster { position: absolute; top: -2%; left: -8%; width: 110%; height: 92%; color: rgba(232, 241, 223, 0.7); transform: rotate(-7deg); filter: drop-shadow(0 0 28px rgba(215, 255, 87, 0.08)); transition: transform 1s var(--ease); }
.project--build:hover .hexa-art--poster { transform: rotate(-3deg) scale(1.025); }
.poster-note { position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.08em; line-height: 1.6; color: var(--sage); }
.poster-note small { color: rgba(215, 255, 87, 0.7); font-size: 6.5px; letter-spacing: 0.1em; }
.poster-note--tl { top: 23px; left: 24px; }
.poster-note--br { right: 24px; bottom: 205px; text-align: right; }
.project--build .poster-ghost, .project--build .poster-note--tl, .project--build .poster-stamp { display: none; }
.project--agri .project__overlay-info .project__top .project__num { display: none; }
.project--agri .project__overlay-info .project__top { justify-content: flex-end; }
.poster-stamp { position: absolute; z-index: 2; top: 13%; right: 8%; display: grid; place-items: center; width: 75px; height: 75px; border: 1px solid rgba(215, 255, 87, 0.54); border-radius: 50%; color: var(--lime); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.1em; line-height: 1.3; text-align: center; transform: rotate(13deg); }
.poster-stamp strong { display: block; font-size: 9px; }
.poster-dim { position: absolute; z-index: 2; top: 25%; left: 12%; width: 72%; height: 1px; background: repeating-linear-gradient(90deg, rgba(215, 255, 87, 0.28) 0 4px, transparent 4px 10px); transform: rotate(-17deg); transform-origin: left; }
.poster-dim::before, .poster-dim::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: rgba(215, 255, 87, 0.45); }
.poster-dim::before { left: 0; }
.poster-dim::after { right: 0; }
.project__overlay-info { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; min-height: 620px; padding: clamp(22px, 3vw, 38px); background: linear-gradient(180deg, transparent 28%, rgba(9, 12, 8, 0.7) 62%, rgba(9, 12, 8, 0.97) 100%); }
.project__overlay-info .project__top { margin-bottom: auto; }
.project__overlay-info h3 { margin: 22px 0 12px; color: #f2f6eb; font-family: var(--font-cn); font-size: clamp(1.9rem, 2.9vw, 3rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.05em; }
.project__overlay-info h3 span { display: block; margin-top: 7px; color: var(--sage); font-size: 0.38em; font-weight: 500; letter-spacing: 0.01em; }
.project__overlay-info > p { max-width: 40ch; color: rgba(235, 242, 226, 0.7); font-size: 0.84rem; line-height: 1.68; }
.project__inline-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 17px 0 18px; color: var(--lime); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.08em; }
.project__overlay-info .round-cta--compact { align-self: flex-start; }
.round-cta--compact { flex-direction: row; width: auto; height: 39px; padding: 0 15px; gap: 7px; font-size: 9px; }
.round-cta--compact .icon { width: 13px; height: 13px; }
.project--agri .project__media { position: absolute; z-index: 0; inset: 0; min-height: 0; }
.project--agri .project__media img { filter: saturate(0.76) contrast(1.04) brightness(0.79); }
.project--agri:hover .project__media img { filter: saturate(1) contrast(1.02) brightness(0.89); transform: scale(1.055); }
.project-card__badge { position: absolute; z-index: 4; top: 20%; right: 8%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 93px; height: 93px; border: 1px solid rgba(215, 255, 87, 0.48); border-radius: 50%; background: rgba(9, 13, 8, 0.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--lime); text-align: center; transform: rotate(-6deg); transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease); }
.project-card__badge span { font-family: var(--font-sans); font-size: 1.45rem; font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.project-card__badge small { margin-top: 4px; font-family: var(--font-cn); font-size: 8px; font-weight: 400; letter-spacing: 0.02em; }
.project--agri:hover .project-card__badge { transform: rotate(2deg) scale(1.06); background: var(--lime); color: var(--ink); }
.spray-map { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.project__overlay-info--photo { position: absolute; inset: 0; z-index: 3; justify-content: flex-end; background: linear-gradient(180deg, transparent 25%, rgba(9, 12, 8, 0.55) 48%, rgba(9, 12, 8, 0.97) 100%); }
.project__overlay-info--photo .project__top { margin-bottom: auto; }

/* Before / after project */
.project--compare { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); min-height: 570px; padding: 0; }
.compare { position: relative; min-height: 570px; overflow: hidden; background: #1a2016; cursor: ew-resize; touch-action: pan-y; }
.compare > picture, .compare > picture img, .compare__graded, .compare__graded img { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare > picture img { object-fit: cover; filter: saturate(0.92) contrast(1.02) brightness(0.9); }
.compare__graded { overflow: hidden; clip-path: inset(0 calc(100% - var(--pos, 34%)) 0 0); }
.compare__graded img { object-fit: cover; filter: saturate(0.22) contrast(0.9) brightness(1.17) sepia(0.14); }
.compare::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 9, 0.22), transparent 32%, rgba(10, 14, 9, 0.18)); pointer-events: none; }
.compare__label { position: absolute; z-index: 3; bottom: 23px; padding: 5px 8px; border: 1px solid rgba(235, 244, 224, 0.2); border-radius: 999px; background: rgba(10, 14, 9, 0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--paper-light); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.1em; transition: color 0.3s var(--ease), background-color 0.3s var(--ease); }
.compare__label--left { left: 24px; }
.compare__label--right { right: 24px; }
.compare__line { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos, 34%); width: 1px; background: rgba(255, 255, 255, 0.8); pointer-events: none; }
.compare__line::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.compare__grip { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--lime); color: var(--ink); transform: translate(-50%, -50%); box-shadow: 0 5px 20px rgba(26, 34, 15, 0.28); }
.compare__grip .icon { width: 18px; height: 18px; }
.compare__range { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.compare__range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.compare__range::-webkit-slider-thumb { width: 56px; height: 100%; border: 0; background: transparent; -webkit-appearance: none; appearance: none; }
.compare__range::-moz-range-track { height: 100%; background: transparent; border: 0; }
.compare__range::-moz-range-thumb { width: 56px; height: 100%; border: 0; border-radius: 0; background: transparent; }
.compare:focus-within { outline: 2px solid var(--lime); outline-offset: -4px; }
.compare:focus-within .compare__grip { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.compare:focus-within .compare__line { background: var(--lime); }
#main:focus { outline: none; }
.compare__range:focus-visible { outline: none; }
.project__info--compare { padding: clamp(24px, 3.8vw, 54px); }
.project__info--compare h3 { font-size: clamp(2.15rem, 3.2vw, 3.35rem); }

/* Archive */
.archive { margin-top: clamp(60px, 8vw, 120px); padding-top: 30px; border-top: 1px solid var(--line); }
.archive__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.archive__head h3 { margin-top: 12px; font-family: var(--font-cn); font-size: clamp(1.4rem, 2.35vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; }
.archive__head .text-link { margin-bottom: 5px; flex: none; }
.archive__list { margin-top: 22px; }
.archive__row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.35fr) minmax(0, 1fr) 100px;
  align-items: center;
  gap: 16px;
  padding: 16px 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), padding 0.35s var(--ease);
}
.archive__row:last-child { border-bottom: 1px solid var(--line); }
.archive__row strong { color: var(--ink); font-size: 14px; font-weight: 500; }
.archive__meta { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.08em; text-align: right; color: var(--muted-2); }
.archive__row:hover { padding-left: 16px; background: rgba(17, 20, 14, 0.035); color: var(--ink); }
.archive__row:hover .archive__meta { color: var(--lime-deep); }

/* ---------- Toolkit ---------- */
.toolkit { position: relative; overflow: clip; }
.toolkit__blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.7;
}
.toolkit__blob--a { top: 4%; left: -10%; width: 48vw; height: 38vw; background: radial-gradient(circle, rgba(215, 255, 87, 0.48), transparent 66%); }
.toolkit__blob--b { right: -8%; bottom: 0; width: 45vw; height: 40vw; background: radial-gradient(circle, rgba(169, 202, 215, 0.4), transparent 68%); }
.toolkit .shell { position: relative; z-index: 1; }
.glass-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.4vw, 66px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(248, 245, 236, 0.29));
  -webkit-backdrop-filter: blur(28px) saturate(1.16);
  backdrop-filter: blur(28px) saturate(1.16);
  box-shadow: 0 35px 80px -38px rgba(42, 49, 31, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.glass-card.grain::after { opacity: 0.042; mix-blend-mode: multiply; }
.toolkit__head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(26px, 5vw, 80px); align-items: end; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.toolkit__head h2 { margin-top: 15px; font-family: var(--font-cn); font-size: clamp(2.9rem, 6vw, 7rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.06em; }
.toolkit__head > p { max-width: 385px; padding-bottom: 6px; color: var(--muted); font-size: 0.93rem; line-height: 1.75; }
.toolkit__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 76px); padding-top: 31px; }
.workflow__title { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; color: var(--muted); }
.workflow ol { border-top: 1px solid var(--line); }
.workflow li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.workflow__num { padding-top: 3px; font-family: var(--font-mono); font-size: 9px; color: var(--olive); }
.workflow h3 { font-family: var(--font-cn); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; }
.workflow h3 small { margin-left: 7px; font-family: var(--font-mono); font-size: 6.5px; font-weight: 400; letter-spacing: 0.1em; color: var(--muted-2); }
.workflow li p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.toolbox { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; align-content: start; }
.tool-group { padding: 12px 0 15px; border-top: 1px solid var(--line); }
.tool-group h4 { margin-bottom: 8px; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.13em; font-weight: 500; color: var(--ink); }
.tool-group h4 span { margin-right: 6px; color: var(--lime-deep); }
.tool-group li { padding: 3px 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.preflight { grid-column: 1 / -1; margin-top: 20px; padding: 21px 24px; border: 1px solid rgba(17, 20, 14, 0.11); border-radius: 23px; background: linear-gradient(135deg, rgba(17, 20, 14, 0.97), rgba(27, 35, 23, 0.96)); color: var(--paper-light); box-shadow: 0 22px 50px -35px rgba(17, 20, 14, 0.6); }
.preflight__head { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 11px; border-bottom: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.12em; color: var(--sage); }
.preflight__head span:last-child { color: var(--lime); }
.preflight ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; padding: 13px 0 10px; }
.preflight li { display: flex; align-items: center; gap: 7px; color: rgba(238, 245, 227, 0.75); font-size: 11px; }
.preflight li .icon { width: 13px; height: 13px; color: var(--lime); }
.preflight > p { margin: 5px 0 14px; color: var(--sage); font-family: var(--font-serif); font-size: 15px; font-style: italic; }
.preflight__certs { display: flex; flex-wrap: wrap; gap: 6px; }
.preflight__certs span { padding: 4px 8px; border: 1px solid rgba(235, 244, 224, 0.15); border-radius: 999px; color: var(--sage); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.06em; }

/* ---------- Playground ---------- */
.playground { position: relative; padding-top: clamp(60px, 9vw, 140px); }
.playground::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6%;
  left: 0;
  height: 54%;
  background-image: linear-gradient(rgba(17, 20, 14, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 20, 14, 0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 52%, #000 4%, transparent 69%);
  mask-image: radial-gradient(ellipse at 60% 52%, #000 4%, transparent 69%);
  pointer-events: none;
}
.playground__head { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.playground__title {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: clamp(4.6rem, 13.2vw, 16rem);
  font-weight: 850;
  font-variation-settings: "wdth" 110;
  line-height: 0.72;
  letter-spacing: -0.075em;
  color: var(--ink);
}
.playground__title span { color: var(--lime-deep); }
.playground__note { max-width: 330px; margin-bottom: 9px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.playground__note span { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.07em; color: var(--muted-2); }
.game-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(230px, 0.67fr) minmax(480px, 1.33fr); gap: clamp(30px, 4.5vw, 70px); margin-top: clamp(36px, 6vw, 78px); align-items: start; }
.game-copy { padding-top: 13px; }
.game-copy__label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted); }
.game-copy h3 { margin: 22px 0 22px; font-family: var(--font-cn); font-size: clamp(2.8rem, 4.9vw, 4.9rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.065em; }
.game-copy > p:not(.game-copy__local) { max-width: 290px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.game-copy__rule { display: flex; gap: 13px; max-width: 300px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.game-copy__rule > span { padding-top: 2px; font-family: var(--font-mono); font-size: 8px; color: var(--olive); }
.game-copy__rule p { color: var(--ink-soft); font-family: var(--font-mono); font-size: 9px; line-height: 1.55; letter-spacing: 0.01em; }
.game-copy__rule small { color: var(--muted); font-size: 8px; }
.game-copy__local { display: flex; align-items: center; gap: 7px; margin-top: 28px; color: var(--muted-2); font-family: var(--font-mono); font-size: 6.8px; letter-spacing: 0.06em; line-height: 1.5; }
.game-shell { padding: clamp(14px, 1.9vw, 25px); border-radius: clamp(25px, 3vw, 38px); background: radial-gradient(circle at 78% 7%, rgba(166, 208, 113, 0.12), transparent 28%), linear-gradient(150deg, #161c13 0%, #0b0f0a 62%, #080b08 100%); }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 4px 11px; border-bottom: 1px solid var(--line-dark); color: var(--sage); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.08em; }
.console-top > span { display: inline-flex; align-items: center; gap: 7px; }
.console-top b { color: var(--lime); font-weight: 400; letter-spacing: 0.08em; }
.console-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(215, 255, 87, 0.08); animation: statusPulse 2.2s var(--ease-soft) infinite; }
.console-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; padding: 10px 13px; border: 1px solid rgba(235, 244, 224, 0.075); border-radius: 14px; background: rgba(255, 255, 255, 0.027); }
.console-hud div { min-width: 0; padding-left: 9px; border-left: 1px solid var(--line-dark); }
.console-hud div:first-child { padding-left: 0; border-left: 0; }
.console-hud span { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.1em; color: var(--sage); white-space: nowrap; }
.console-hud strong { display: block; overflow: hidden; color: #eff6e7; font-family: var(--font-sans); font-size: clamp(1.05rem, 2vw, 1.65rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.015em; line-height: 1; white-space: nowrap; text-overflow: ellipsis; }
.console-hud div:nth-child(3) strong { color: var(--lime); font-size: clamp(0.72rem, 1.2vw, 0.9rem); letter-spacing: 0.06em; line-height: 1.35; }
.board-frame {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(215, 255, 87, 0.28);
  border-radius: clamp(15px, 1.8vw, 24px);
  background: #0a0e09;
  box-shadow: 0 0 0 5px rgba(215, 255, 87, 0.025), inset 0 0 70px rgba(0, 0, 0, 0.55);
  touch-action: manipulation;
  transition: box-shadow 0.3s var(--ease);
}
.board-frame::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.4) 100%); }
.board-frame:focus-within { box-shadow: 0 0 0 2px var(--lime), 0 0 34px rgba(215, 255, 87, 0.15), inset 0 0 70px rgba(0, 0, 0, 0.55); }
.board-frame.is-running { touch-action: none; }
#snake-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #0a0e09; outline: none; cursor: default; }
.board-scan { position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: 0.5; background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.018) 3px, rgba(255, 255, 255, 0.018) 4px); mix-blend-mode: screen; }
.board-corners span { position: absolute; z-index: 3; width: 18px; height: 18px; border-color: rgba(215, 255, 87, 0.56); border-style: solid; pointer-events: none; }
.board-corners span:nth-child(1) { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.board-corners span:nth-child(2) { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.board-corners span:nth-child(3) { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.board-corners span:nth-child(4) { right: 12px; bottom: 12px; border-width: 0 1px 1px 0; }
.game-overlay {
  position: absolute;
  z-index: 5;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(235, 244, 224, 0.14);
  border-radius: 16px;
  background: rgba(9, 13, 8, 0.72);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  text-align: center;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.game-overlay.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.game-overlay__kicker { margin-bottom: 7px; font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.14em; color: var(--lime); }
.game-overlay h4 { max-width: 290px; color: #f2f7eb; font-family: var(--font-cn); font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.035em; }
.game-overlay > p:not(.game-overlay__kicker) { max-width: 270px; margin-top: 8px; color: var(--sage); font-size: 10.5px; line-height: 1.6; }
.game-overlay .btn { margin-top: 15px; min-height: 39px; padding: 9px 15px; font-size: 11px; }
.game-overlay[data-state="over"] .game-overlay__kicker { color: #ffbc85; }
.game-overlay[data-state="over"] h4 { color: #ffe5cf; }
.touch-pad { display: none; }
.console-bottom { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line-dark); }
.console-hints { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--sage); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.02em; line-height: 1.6; }
.console-hints span { display: inline-flex; align-items: center; gap: 3px; }
kbd { display: inline-grid; place-items: center; min-width: 16px; height: 17px; padding: 0 4px; border: 1px solid rgba(235, 244, 224, 0.18); border-radius: 4px; background: rgba(255, 255, 255, 0.035); color: rgba(240, 247, 231, 0.8); font-family: var(--font-mono); font-size: 7px; font-weight: 400; line-height: 1; }
.console-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(235, 244, 224, 0.16); border-radius: 50%; color: var(--sage); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.icon-button .icon { width: 16px; height: 16px; }
.icon-button:hover { border-color: var(--lime); color: var(--lime); }
.icon-button:disabled { opacity: 0.35; cursor: not-allowed; }
.icon-button:disabled:hover { border-color: rgba(235, 244, 224, 0.16); color: var(--sage); }
.icon-button[aria-pressed="true"] { color: var(--lime); }
.game-shell .btn--restart { min-height: 36px; }

@media (min-width: 1680px) {
  .game-layout { grid-template-columns: minmax(320px, 0.6fr) minmax(0, 1.4fr); max-width: 1540px; margin-inline: auto; }
  .game-shell { width: 100%; max-width: 1000px; margin-inline: auto; }
  .board-frame { max-width: 680px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(35px, 5vw, 80px);
  padding-block: clamp(64px, 9vw, 130px) 26px;
  border-radius: clamp(32px, 5vw, 70px) clamp(32px, 5vw, 70px) 0 0;
  background:
    radial-gradient(circle at 83% 17%, rgba(174, 207, 122, 0.18), transparent 28%),
    radial-gradient(circle at 12% 90%, rgba(167, 200, 214, 0.11), transparent 26%),
    #0a0d08;
  color: var(--paper-light);
  isolation: isolate;
}
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.055; mix-blend-mode: overlay; background-image: var(--noise); background-size: 190px 190px; }
.footer-glow { position: absolute; z-index: -1; right: -9%; bottom: -22%; width: 58vw; height: 48vw; border-radius: 50%; background: radial-gradient(circle, rgba(215, 255, 87, 0.14), transparent 67%); filter: blur(30px); pointer-events: none; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid var(--line-dark); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--sage); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.08em; white-space: nowrap; }
.footer-status .status-dot { background: var(--lime); }
.footer-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: clamp(38px, 6vw, 86px) 0 clamp(36px, 6vw, 82px); }
.footer-kicker { margin-bottom: 17px; color: var(--sage); font-family: var(--font-cn); font-size: 12px; font-weight: 500; letter-spacing: 0.03em; }
.footer-hero h2 { color: var(--paper-light); font-family: var(--font-sans); font-size: clamp(4.2rem, 12vw, 15rem); font-weight: 850; font-variation-settings: "wdth" 110; line-height: 0.75; letter-spacing: -0.075em; }
.footer-hero h2 > span { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--lime); text-stroke: 1.5px var(--lime); }
.footer-hero h2 .lime-dot { color: var(--lime); -webkit-text-stroke: 0; text-shadow: 0 0 22px rgba(215, 255, 87, 0.2); }
.footer-mail { display: inline-flex; align-items: center; gap: 9px; flex: none; margin-bottom: 14px; padding-bottom: 7px; border-bottom: 1px solid rgba(215, 255, 87, 0.5); color: var(--lime); font-family: var(--font-mono); font-size: clamp(10px, 1.25vw, 15px); letter-spacing: 0.03em; white-space: nowrap; transition: color 0.3s var(--ease), gap 0.3s var(--ease); }
.footer-mail .icon { width: 17px; height: 17px; }
.footer-mail:hover { color: var(--paper-light); gap: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 0.9fr 0.6fr; gap: clamp(22px, 4vw, 64px); padding: 36px 0 38px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.footer-col { min-width: 0; }
.footer-col > p { max-width: 300px; color: var(--sage); font-size: 13px; line-height: 1.75; }
.footer-col h3 { margin-bottom: 12px; color: var(--paper-light); font-family: var(--font-mono); font-size: 7.5px; font-weight: 400; letter-spacing: 0.14em; }
.footer-col a { display: inline-flex; align-items: center; gap: 5px; color: rgba(245, 248, 240, 0.9); font-size: 13px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--lime); }
.footer-col a .icon { width: 12px; height: 12px; }
.footer-col .copy-link { display: flex; gap: 5px; margin-top: 6px; color: var(--sage); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; }
.footer-col .copy-link .icon { width: 11px; height: 11px; }
.footer-col .footer-wechat { margin-top: 11px; color: var(--muted-2); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; }
.footer-wechat button { display: inline-flex; align-items: center; gap: 4px; color: var(--lime); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; border-bottom: 1px dotted rgba(215, 255, 87, 0.55); }
.footer-wechat .icon { width: 10px; height: 10px; }
.footer-col > p + p { margin-top: 9px; }
.footer-col > p small { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.03em; color: var(--muted-2); }
.footer-clock { display: flex; align-items: baseline; gap: 7px; color: var(--lime); font-family: var(--font-mono); font-size: 19px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.footer-clock small { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.05em; color: var(--muted-2); }
.footer-col--nav a { display: flex; margin: 5px 0; color: var(--sage); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.03em; }
.footer-col--nav a:hover { color: var(--lime); }
.footer-signature { display: flex; align-items: center; gap: 11px; margin-top: 22px; color: rgba(244, 248, 238, 0.8); font-size: 11px; font-weight: 500; line-height: 1.3; }
.footer-signature small { display: block; margin-top: 3px; color: var(--muted-2); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.08em; }
.footer-signature .brand-mark { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); color: var(--lime); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 21px; color: var(--muted-2); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.06em; line-height: 1.6; }
.footer-colophon { max-width: 48%; text-align: center; color: rgba(134, 147, 127, 0.7); }
.back-top { display: inline-flex; align-items: center; gap: 5px; color: var(--sage); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.07em; white-space: nowrap; }
.back-top .icon { width: 12px; height: 12px; }
.back-top:hover { color: var(--lime); }

/* ---------- Dialog ---------- */
.project-dialog {
  width: min(calc(100vw - 28px), 1080px);
  max-width: 1080px;
  max-height: min(88svh, 900px);
  margin: auto;
  padding: 0;
  overflow: hidden auto;
  border: 1px solid rgba(235, 244, 224, 0.16);
  border-radius: clamp(22px, 3vw, 38px);
  background: #10150e;
  color: var(--paper-light);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}
.project-dialog::backdrop { background: rgba(7, 10, 6, 0.7); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.project-dialog[open] { animation: dialogIn 0.45s var(--ease) both; }
.dialog-shell { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); min-height: 570px; }
.dialog-media { position: relative; min-height: 100%; overflow: hidden; background: #1b2417; }
.dialog-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) contrast(1.04) brightness(0.77); }
.dialog-art { position: absolute; z-index: 1; inset: 0; display: none; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 43%, rgba(180, 211, 139, 0.19), transparent 42%), repeating-linear-gradient(0deg, rgba(215, 255, 87, 0.045) 0 1px, transparent 1px 38px), repeating-linear-gradient(90deg, rgba(215, 255, 87, 0.045) 0 1px, transparent 1px 38px), #10170e; }
.dialog-art.is-visible { display: grid; }
.dialog-art svg { width: 84%; height: 90%; color: rgba(237, 245, 227, 0.8); transform: rotate(-5deg); }
.dialog-art > span { position: absolute; bottom: 24px; left: 24px; color: var(--lime); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.1em; }
.dialog-media::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 11, 7, 0.14), transparent 38%, rgba(8, 11, 7, 0.7)); }
.dialog-media__index { position: absolute; z-index: 2; top: 22px; left: 24px; color: var(--lime); font-family: var(--font-sans); font-size: 54px; font-weight: 700; line-height: 0.8; letter-spacing: -0.07em; }
.dialog-media__stamp { position: absolute; z-index: 2; right: 21px; bottom: 19px; color: var(--sage); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.08em; line-height: 1.6; text-align: right; }
.dialog-close { position: absolute; z-index: 8; top: 15px; right: 15px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(235, 244, 224, 0.2); border-radius: 50%; background: rgba(10, 15, 9, 0.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--paper-light); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease); }
.dialog-close .icon { width: 17px; height: 17px; }
.dialog-close:hover { background: var(--lime); color: var(--ink); transform: rotate(90deg); }
.dialog-body { display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 42px); overflow-y: auto; }
.dialog-kicker { margin-bottom: 12px; color: var(--lime); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.11em; }
.dialog-body h2 { margin-bottom: 17px; font-family: var(--font-cn); font-size: clamp(1.85rem, 3vw, 3rem); font-weight: 650; line-height: 1.12; letter-spacing: -0.045em; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.dialog-meta span { padding: 5px 8px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--sage); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.04em; }
.dialog-desc { color: rgba(235, 243, 225, 0.68); font-size: 12.5px; line-height: 1.8; }
.dialog-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line-dark); }
.dialog-columns h3 { margin-bottom: 9px; color: var(--sage); font-family: var(--font-mono); font-size: 6.5px; font-weight: 400; letter-spacing: 0.1em; }
.dialog-process li { position: relative; padding: 2px 0 2px 20px; color: rgba(236, 243, 228, 0.78); font-size: 10px; line-height: 1.5; }
.dialog-process { counter-reset: p; }
.dialog-process li::before { counter-increment: p; content: "0" counter(p); position: absolute; left: 0; color: var(--lime); font-family: var(--font-mono); font-size: 6.5px; }
.dialog-tags li { padding: 4px 0 4px 13px; border-bottom: 1px solid var(--line-dark); color: rgba(236, 243, 228, 0.78); font-size: 10px; line-height: 1.5; }
.dialog-tags li::before { content: "·"; display: inline-block; width: 10px; margin-left: -10px; color: var(--lime); }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.dialog-footer > span { color: var(--sage); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.04em; }
.dialog-footer .btn { min-height: 36px; padding: 9px 13px; font-size: 10px; }

/* ---------- Toast / to top / cursor ---------- */
.toast {
  position: fixed;
  z-index: 500;
  bottom: 26px;
  left: 50%;
  padding: 10px 16px;
  border: 1px solid rgba(235, 244, 224, 0.14);
  border-radius: 999px;
  background: rgba(17, 20, 14, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--paper-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.to-top {
  visibility: hidden;
  position: fixed;
  z-index: 90;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(235, 244, 224, 0.16);
  border-radius: 50%;
  background: rgba(17, 20, 14, 0.84);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  color: var(--lime);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.to-top.is-visible { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--lime); color: var(--ink); }
.to-top .icon { width: 17px; height: 17px; }

.cursor { position: fixed; z-index: 9999; inset: 0 auto auto 0; width: 0; height: 0; pointer-events: none; opacity: 0; }
.has-custom-cursor .cursor { opacity: 1; }
.cursor__dot { position: fixed; top: 0; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transform: translate(-50%, -50%); }
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.28s var(--ease), height 0.28s var(--ease), background-color 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease), mix-blend-mode 0.1s linear;
}
.cursor__label { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.08em; white-space: nowrap; opacity: 0; transform: scale(0.8); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.cursor.is-hover .cursor__ring { width: 46px; height: 46px; }
.cursor.is-view .cursor__ring { width: 82px; height: 82px; border-color: var(--lime); background: var(--lime); color: var(--ink); mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-drag .cursor__ring { width: 68px; height: 68px; border-color: var(--lime); background: rgba(215, 255, 87, 0.92); color: var(--ink); mix-blend-mode: normal; }
.cursor.is-drag .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-hidden { opacity: 0; }
.has-custom-cursor, .has-custom-cursor * { cursor: none; }
html.dialog-open.has-custom-cursor, html.dialog-open.has-custom-cursor * { cursor: auto !important; }
html.dialog-open.has-custom-cursor .cursor { display: none; }
html.menu-open.has-custom-cursor, html.menu-open.has-custom-cursor * { cursor: auto !important; }
html.menu-open .cursor { display: none; }

/* ---------- Motion / reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-inview { opacity: 1; transform: translateY(0); }
.js .section-head[data-reveal] { transform: translateY(18px); }

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(157, 191, 62, 0.3); }
  45% { box-shadow: 0 0 0 5px rgba(157, 191, 62, 0); }
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes tickerMove { to { transform: translateX(-50%); } }
@keyframes dashTravel { to { stroke-dashoffset: -300; } }
@keyframes scanDown { 0% { transform: translateY(-20%); opacity: 0; } 12% { opacity: 0.9; } 75% { opacity: 0.5; } 100% { transform: translateY(560%); opacity: 0; } }
@keyframes nudgeDown { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(4px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(22px) scale(0.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatSoft { 0%, 100% { transform: translateY(0) rotate(1.25deg); } 50% { transform: translateY(-5px) rotate(0.5deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .header-status { display: none; }
  .hero-base { grid-template-columns: minmax(250px, 1.2fr) minmax(240px, 0.9fr) 130px; }
  .orbit-badge { width: 130px; height: 130px; }
  .cap-card:nth-child(1), .cap-card:nth-child(2) { min-height: 600px; }
  .cap-card__body { padding-top: 90px; }
  .cap-card--agri .cap-card__body, .cap-card--post .cap-card__body { padding-top: 120px; }
}
@media (max-width: 1120px) {
  :root { --space: clamp(74px, 10vw, 140px); }
  .header-shell { min-height: 78px; }
  .site-header { background: rgba(233, 230, 222, 0.66); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .main-nav { gap: 17px; }
  .hero { padding-top: 112px; }
  .hero-base { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) 118px; }
  .orbit-badge { width: 118px; height: 118px; }
  .hero-anno { font-size: 7.5px; padding-left: 10px; }
  .about-card__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: 34px; }
  .about-stats { gap: 13px; }
  .cap-grid { gap: 17px; }
  .cap-card { padding: 22px; }
  .cap-card:nth-child(1), .cap-card:nth-child(2) { min-height: 570px; }
  .cap-card:nth-child(3), .cap-card:nth-child(4) { min-height: 530px; }
  .cap-card__body h3 { font-size: clamp(1.9rem, 3.7vw, 3rem); }
  .cap-card:nth-child(2) .cap-card__body h3, .cap-card:nth-child(3) .cap-card__body h3 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); }
  .project__poster .poster-note--br { bottom: 190px; }
  .game-layout { grid-template-columns: minmax(200px, 0.62fr) minmax(440px, 1.38fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 0.9fr 0.65fr; gap: 24px; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { gap: 8px; }
  .hero-base { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
  .orbit-badge { display: none; }
  .hero { min-height: 100svh; }
  .section-head__row { grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr); gap: 28px; }
  .about-card__grid { grid-template-columns: 1fr; gap: 30px; padding-block: 32px; }
  .crew-card { max-width: 480px; justify-self: start; transform: rotate(0.8deg); }
  .about-stats { padding-block: 18px; }
  .cap-card:nth-child(1), .cap-card:nth-child(2), .cap-card:nth-child(3), .cap-card:nth-child(4) { grid-column: span 6; min-height: 530px; }
  .cap-card__body { max-width: 100%; padding-top: 65px; }
  .cap-card__desc { font-size: 0.82rem; }
  .cap-card__body h3 { font-size: clamp(1.7rem, 3.5vw, 2.55rem) !important; }
  .tag-list { margin: 14px 0 16px; }
  .project--featured { grid-template-columns: 1fr; min-height: 0; }
  .project__media { min-height: 380px; }
  .project__info { padding: 30px; }
  .project--featured .project__info h3 { font-size: clamp(2.1rem, 5vw, 3rem); }
  .project__bottom { margin-top: 10px; }
  .project-grid { grid-template-columns: 1fr; }
  .project--build, .project--agri { min-height: 560px; }
  .project__overlay-info { min-height: 560px; }
  .poster-note--br { bottom: 175px; }
  .project--compare { grid-template-columns: 1fr; }
  .compare { min-height: 420px; }
  .project--compare .project__info { padding: 30px; }
  .toolkit__head { grid-template-columns: 1fr; gap: 16px; }
  .toolkit__head > p { max-width: 540px; }
  .toolkit__grid { grid-template-columns: 1fr; gap: 28px; }
  .preflight { grid-column: auto; }
  .game-layout { grid-template-columns: 1fr; gap: 28px; }
  .game-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
  .game-copy__label, .game-copy h3, .game-copy > p { grid-column: 1; }
  .game-copy__rule { grid-column: 2; margin-top: 0; }
  .game-copy__rule + .game-copy__rule { margin-top: 16px; }
  .game-copy__local { grid-column: 1 / -1; margin-top: 20px; }
  .game-shell { max-width: 700px; width: 100%; margin-inline: auto; }
  .board-frame { max-width: 560px; }
  .toolkit__head h2 { font-size: clamp(2.8rem, 8vw, 5rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-colophon { max-width: 42%; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .console-top { padding-bottom: 8px; font-size: 7px; }
  .console-hud { margin: 8px 0; padding: 7px 9px; gap: 5px; }
  .console-hud div { padding-left: 6px; }
  .console-hud span { margin-bottom: 3px; font-size: 5.5px; }
  .console-hud strong { font-size: 0.95rem; }
  .console-hud div:nth-child(3) strong { font-size: 0.7rem; }
  .board-frame { max-width: 238px; }
  .touch-pad { gap: 5px; margin-top: 9px; }
  .touch-pad button { min-height: 39px; }
  .console-bottom { margin-top: 7px; padding-top: 8px; }
  .game-overlay { inset: 9px; padding: 13px; }
  .game-overlay h4 { font-size: 1.15rem; }
  .game-overlay > p:not(.game-overlay__kicker) { font-size: 9px; }
  .game-overlay .btn { margin-top: 9px; min-height: 34px; padding: 7px 12px; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; --space: clamp(68px, 13vw, 104px); --radius-xl: 28px; --radius-lg: 20px; }
  html { scroll-padding-top: 90px; }
  .header-shell { min-height: 70px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-mark .icon { width: 20px; height: 20px; }
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 6.5px; }
  .btn--header { display: inline-flex; min-height: 36px; padding: 8px 12px; font-size: 11px; }
  .menu-toggle { min-height: 36px; width: 36px; padding: 0; justify-content: center; }
  .menu-toggle span { display: none; }
  .hero { --hero-top: 92px; min-height: 100svh; padding-top: var(--hero-top); padding-bottom: 18px; }
  .hero__shell { min-height: calc(100svh - var(--hero-top) - 18px); }
  .hero__glow { width: 125vw; right: -45%; top: -5%; }
  .hero__ring { width: 130vw; right: -50%; top: 20%; }
  .hero-meta { flex-wrap: wrap; gap: 5px 16px; font-size: 7px; }
  .hero-meta__coords { order: 3; flex-basis: 100%; }
  .hero-kicker { margin-top: 26px; font-size: 11.5px; }
  .hero-kicker__en { font-size: 7px; }
  .hero-title { margin-top: 13px; font-size: clamp(2.55rem, 13.2vw, 5.8rem); line-height: 0.8; }
  .hero-anno, .hero-reg { display: none; }
  .hero-base { grid-template-columns: 1fr; gap: 18px; padding-top: 31px; }
  .hero-lead { max-width: 530px; font-size: 14px; line-height: 1.7; }
  .hero-disciplines { grid-template-columns: 1fr 1fr; gap: 8px 16px; padding-top: 12px; }
  .hero-disciplines li { font-size: 7px; }
  .hero-footline { margin-top: 25px; font-size: 7.5px; }
  .hero-availability { display: none; }
  .ticker-wrap { width: calc(100% - 36px); border-radius: 20px; }
  .ticker__set { font-size: 1.02rem; }
  .section-head__row { grid-template-columns: 1fr; gap: 18px; }
  .section-title { font-size: clamp(2.65rem, 12vw, 5rem); }
  .section-intro { max-width: 460px; padding-left: 0; border-left: 0; font-size: 13px; line-height: 1.7; }
  .about-card { padding: 21px; }
  .about-card__topline { font-size: 6.5px; gap: 10px; }
  .about-card__topline span:last-child { display: none; }
  .about-lead { font-size: 1.45rem; line-height: 1.4; }
  .about-card__copy > p:not(.about-lead):not(.about-card__scenes) { font-size: 13px; line-height: 1.75; }
  .about-card__scenes { font-size: 7px; }
  .crew-card { max-width: 100%; padding: 13px; }
  .crew-card__art { height: 220px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 19px 12px; padding-block: 18px; }
  .about-stats strong { font-size: 2.3rem; }
  .about-stats span { font-size: 10px; }
  .about-card__quote { padding-top: 18px; }
  .about-card__quote p { font-size: 1.25rem; }
  .cap-grid { grid-template-columns: 1fr; gap: 14px; }
  .cap-card:nth-child(1), .cap-card:nth-child(2), .cap-card:nth-child(3), .cap-card:nth-child(4) { grid-column: auto; min-height: 490px; }
  .cap-card { padding: 21px; border-radius: 28px; }
  .cap-card__body { padding-top: 40px; }
  .cap-card__body h3 { font-size: clamp(1.8rem, 8.5vw, 2.5rem) !important; }
  .cap-card__desc { max-width: 38ch; font-size: 12.5px; }
  .cap-card__cn { font-size: 9px; }
  .tag-list li { padding: 5px 8px; font-size: 7px; }
  .cap-link { font-size: 8px; }
  .cap-card--build .hexa-art { transform: scale(1.05) rotate(-2deg); }
  .cap-card--post .grade-hud { top: 13%; width: 50%; }
  .grade-stamp { right: 7%; bottom: 24%; width: 68px; height: 68px; }
  .cap-card--agri .cap-card__body, .cap-card--post .cap-card__body { padding-top: 90px; }
  .project--featured .project__media { min-height: 300px; }
  .project__info { padding: 23px; }
  .project__info h3 { font-size: clamp(2rem, 9vw, 3rem) !important; }
  .project__info > p { font-size: 13px; }
  .project__metrics { gap: 14px; margin: 18px 0; }
  .project__metrics strong { font-size: 1.45rem; }
  .project__bottom { gap: 12px; }
  .round-cta { width: 71px; height: 71px; font-size: 7.5px; }
  .project__deliverables { font-size: 6.5px; max-width: 130px; }
  .project--build, .project--agri { min-height: 490px; }
  .project__overlay-info { min-height: 490px; padding: 22px; }
  .poster-note--br { bottom: 150px; }
  .project__overlay-info h3 { font-size: 2rem; }
  .project__overlay-info > p { font-size: 12px; }
  .project-card__badge { top: 19%; right: 6%; width: 76px; height: 76px; }
  .project-card__badge span { font-size: 1.25rem; }
  .compare { min-height: 315px; }
  .compare__grip { width: 40px; height: 40px; }
  .compare__label { bottom: 14px; }
  .compare__label--left { left: 14px; }
  .compare__label--right { right: 14px; }
  .compare .media-hud { right: 14px; left: 14px; font-size: 6px; }
  .project__info--compare { padding: 23px; }
  .archive__head { display: block; }
  .archive__head .text-link { margin-top: 14px; }
  .archive__row { grid-template-columns: 48px minmax(0, 1fr) 78px; gap: 9px; padding: 13px 4px; font-size: 10px; }
  .archive__row > span:nth-child(3) { display: none; }
  .archive__row strong { font-size: 12px; }
  .archive__meta { font-size: 6px; }
  .toolkit__head h2 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .toolbox { gap: 0 18px; }
  .tool-group li { font-size: 10px; }
  .preflight { padding: 17px; }
  .preflight ul { grid-template-columns: 1fr; gap: 7px; }
  .preflight > p { font-size: 13px; }
  .playground__head { display: block; }
  .playground__note { margin-top: 18px; max-width: 380px; font-size: 11px; }
  .playground__title { margin-top: 13px; font-size: clamp(4.5rem, 18vw, 8rem); }
  .game-layout { margin-top: 30px; gap: 25px; }
  .game-copy { display: block; }
  .game-copy h3 { margin: 15px 0 14px; font-size: 2.6rem; }
  .game-copy > p:not(.game-copy__local) { font-size: 12px; max-width: 330px; }
  .game-copy__rule { max-width: 340px; margin-top: 13px; }
  .game-copy__local { margin-top: 18px; }
  .game-shell { padding: 12px; border-radius: 24px; }
  .console-top { font-size: 6.5px; padding: 0 3px 9px; }
  .console-hud { grid-template-columns: 1fr 1fr; gap: 8px 0; margin: 9px 0; padding: 9px 10px; }
  .console-hud div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); padding-top: 7px; }
  .console-hud div:nth-child(4) { border-top: 1px solid var(--line-dark); padding-top: 7px; }
  .console-hud strong { font-size: 1.15rem; }
  .console-hud div:nth-child(3) strong { font-size: 0.75rem; }
  .game-overlay { inset: 10px; padding: 16px; border-radius: 13px; }
  .game-overlay h4 { font-size: 1.3rem; }
  .game-overlay > p:not(.game-overlay__kicker) { font-size: 10px; }
  .console-bottom { align-items: flex-end; }
  .console-hints { display: none; }
  .console-actions { margin-left: auto; }
  .touch-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: min(290px, 100%); margin: 11px auto 0; }
  .touch-pad button { display: grid; place-items: center; min-height: 47px; border: 1px solid rgba(235, 244, 224, 0.15); border-radius: 11px; background: rgba(255, 255, 255, 0.035); color: var(--paper-light); transition: background-color 0.2s, color 0.2s, transform 0.2s; }
  .touch-pad button:active { background: var(--lime); color: var(--ink); transform: scale(0.95); }
  .touch-pad button .icon { width: 17px; height: 17px; }
  .touch-pad__ghost { display: block; min-height: 1px; }
  .touch-pad__center { display: grid; place-items: center; color: var(--sage); font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.08em; }
  .mobile-menu__nav a > span:nth-child(2) { font-size: clamp(2.1rem, 8.4vw, 3.5rem); }
  .mobile-menu__cta { margin-inline: auto; width: min(354px, calc(100% - 36px)); }
  .footer-hero { display: block; padding: 39px 0 46px; }
  .footer-hero h2 { font-size: clamp(4.4rem, 20vw, 9rem); }
  .footer-mail { margin-top: 27px; margin-bottom: 0; font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 28px 0; }
  .footer-col--about { grid-column: 1 / -1; }
  .footer-colophon { display: none; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; }
  .back-top { margin-left: auto; }
  .dialog-shell { grid-template-columns: 1fr; }
  .dialog-media { min-height: 210px; max-height: 260px; }
  .dialog-body { padding: 21px; }
  .dialog-body h2 { font-size: 1.75rem; }
  .dialog-columns { grid-template-columns: 1fr; gap: 15px; }
  .dialog-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dialog-footer .btn { width: 100%; }
  .project-dialog { max-height: 92svh; border-radius: 24px; }
  .to-top { right: 14px; bottom: 14px; width: 39px; height: 39px; }
}
@media (max-width: 420px) {
  .hero-title { font-size: clamp(2.45rem, 12.7vw, 3.5rem); }
  .hero-meta__coords { display: none; }
  .brand-sub { display: none; }
  .header-actions { gap: 6px; }
  .hero-disciplines { gap: 7px 10px; }
  .hero-disciplines li { letter-spacing: 0.02em; font-size: 6.5px; }
  .about-stats strong { font-size: 2rem; }
  .footer-hero h2 { font-size: 4rem; }
  .footer-mail { font-size: 10px; }
  .game-copy h3 { font-size: 2.35rem; }
  .console-hud span { font-size: 6px; }
  .console-hud strong { font-size: 1rem; }
  .btn--restart { padding: 8px 11px; }
  .footer-bottom > span:first-child { max-width: 58%; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 13.1vw; }
  .hero-lead { font-size: 13px; }
  .console-actions { gap: 4px; }
  .btn--restart span { font-size: 10px; }
  .icon-button { width: 33px; height: 33px; }
  .btn--restart { min-height: 33px; padding: 7px 9px; }
}
@media (min-width: 981px) and (max-height: 1120px) {
  .hero-title { font-size: clamp(3.2rem, 13.2vw, 17rem); }
  .hero-footline { display: none; }
  .orbit-badge { width: 136px; height: 136px; }
}
@media (min-width: 981px) and (max-height: 940px) {
  .hero { --hero-top: 100px; }
  .hero-title { font-size: clamp(3rem, 13.4vw, 15rem); }
  .hero-kicker { margin-top: 22px; }
  .hero-base { padding-top: 16px; }
  .hero-footline { display: flex; margin-top: 10px; }
  .orbit-badge { width: 122px; height: 122px; }
}
@media (min-width: 981px) and (max-height: 820px) {
  .hero { --hero-top: 92px; min-height: 100svh; }
  .hero-title { font-size: clamp(2.9rem, 11.8vw, 13rem); }
  .hero-kicker { margin-top: 16px; }
  .hero-base { padding-top: 12px; }
  .hero-footline { display: none; }
  .orbit-badge { width: 108px; height: 108px; }
}
@media (hover: none), (pointer: coarse) {
  [data-glow]::before { display: none; }
  .to-top { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .touch-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: min(290px, 100%); margin: 11px auto 0; }
  .touch-pad button { display: grid; place-items: center; min-height: 47px; border: 1px solid rgba(235, 244, 224, 0.15); border-radius: 11px; background: rgba(255, 255, 255, 0.035); color: var(--paper-light); transition: background-color 0.2s, color 0.2s, transform 0.2s; }
  .touch-pad button:active { background: var(--lime); color: var(--ink); transform: scale(0.95); }
  .touch-pad button .icon { width: 17px; height: 17px; }
  .touch-pad__ghost { display: block; min-height: 1px; }
  .touch-pad__center { display: grid; place-items: center; color: var(--sage); font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.08em; }
  .console-hints { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .hero-word { transform: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor { display: none !important; }
  .ticker { animation: none !important; overflow-x: auto; }
  .orbit-badge__text { animation: none !important; }
  .topo-route, .spray-route { animation: none !important; }
  .scan-line { display: none; }
  .page-noise { display: none; }
}
