:root {
  color-scheme: dark;
  --ink: #f4f8f5;
  --muted: #9baaa7;
  --dim: #60706e;
  --bg: #030615;
  --panel: #07101b;
  --panel-soft: rgba(8, 19, 28, 0.72);
  --line: rgba(171, 255, 226, 0.17);
  --green: #72ff51;
  --teal: #00dcc2;
  --blue: #28a8ff;
  --magenta: #eb4cff;
  --orange: #ff9b5d;
  --header-height: 74px;
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 133, 99, 0.08), transparent 30%),
    radial-gradient(circle at 85% 48%, rgba(35, 76, 255, 0.07), transparent 27%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

img {
  display: block;
  width: 100%;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--green);
  color: #020b08;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(3, 6, 21, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.09em;
}

.brand-mark {
  position: relative;
  width: 24px;
  height: 12px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 6px;
  border: 1px solid var(--green);
  border-radius: 100%;
  transform: translateY(-50%) rotate(-24deg);
}

.brand-mark::after {
  right: 0;
  border-color: var(--blue);
  transform: translateY(-50%) rotate(24deg);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(244, 248, 245, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--green);
  transition: transform 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sound-master,
.language-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: rgba(2, 10, 17, 0.44);
  color: var(--ink);
  cursor: pointer;
}

.sound-master {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sound-bars {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 10px;
}

.sound-bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--dim);
}

.sound-bars i:nth-child(2) {
  height: 9px;
}

.sound-bars i:nth-child(3) {
  height: 6px;
}

.sound-master.playing .sound-bars i {
  background: var(--green);
  animation: audioBar 0.7s ease-in-out infinite alternate;
}

.sound-master.playing .sound-bars i:nth-child(2) {
  animation-delay: -0.4s;
}

.sound-master.playing .sound-bars i:nth-child(3) {
  animation-delay: -0.2s;
}

@keyframes audioBar {
  to { height: 10px; }
}

.language-toggle {
  min-height: 34px;
  padding: 0 12px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.language-option.active {
  color: var(--green);
}

.toggle-divider {
  padding: 0 4px;
  opacity: 0.45;
}

.menu-toggle {
  width: 38px;
  height: 34px;
  display: none;
  place-items: center;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 3px 0;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: rgba(3, 6, 21, 0.98);
}

.mobile-menu a {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 8vw, 46px);
  font-weight: 560;
}

.mobile-menu.open {
  display: flex;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(1, 4, 15, 0.92) 0%, rgba(1, 4, 15, 0.42) 48%, rgba(1, 4, 15, 0.12) 100%),
    url("assets/landscape-river.jpg") center / cover no-repeat;
}

#flowCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 6, 21, 0.6), transparent 24%, transparent 75%, var(--bg)),
    radial-gradient(circle at 65% 48%, transparent, rgba(3, 6, 21, 0.64) 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: var(--header-height);
}

.eyebrow {
  margin: 0 0 21px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(68px, 12.5vw, 176px);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 0.74;
}

.hero h1 span:last-child {
  margin-left: clamp(34px, 7.5vw, 110px);
}

.hero .chroma {
  background: linear-gradient(90deg, #f3fff3 4%, var(--green) 31%, var(--teal) 59%, var(--blue) 82%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 590px;
  margin: 54px 0 0 clamp(34px, 7.5vw, 110px);
  color: rgba(244, 248, 245, 0.9);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 420;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0 0 clamp(34px, 7.5vw, 110px);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #031009;
}

.button.ghost {
  background: rgba(1, 8, 13, 0.4);
  backdrop-filter: blur(8px);
}

.hero-data {
  position: absolute;
  right: clamp(24px, 5vw, 78px);
  bottom: clamp(70px, 8vw, 110px);
  z-index: 2;
  width: 146px;
}

.hero-data div {
  display: grid;
  grid-template-columns: 18px 36px 1fr;
  align-items: center;
  gap: 8px;
  margin: 11px 0;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
}

.hero-data strong {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.hero-data i {
  position: relative;
  height: 1px;
  background: rgba(255,255,255,0.14);
}

.hero-data i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  background: var(--green);
}

.hero-data div:nth-child(2) i::after { background: var(--teal); }
.hero-data div:nth-child(3) i::after { background: var(--blue); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 28px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

.section {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(100px, 12vw, 180px) 0;
  border-top: 1px solid var(--line);
}

.section-number {
  position: absolute;
  top: clamp(52px, 7vw, 92px);
  right: 0;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.section-heading {
  max-width: 840px;
  margin-bottom: clamp(58px, 8vw, 110px);
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 96px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-intro {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.concept-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(480px, 1.42fr);
  align-items: end;
  gap: clamp(32px, 6vw, 94px);
}

.concept-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(24px, 3.2vw, 43px);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.concept-copy > p:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.concept-image,
.wide-image,
.field-grid figure {
  margin: 0;
}

.concept-image img {
  aspect-ratio: 1.42;
  object-fit: cover;
}

.concept-image figcaption,
.wide-image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 13px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(60px, 10vw, 128px);
  background: var(--line);
  border: 1px solid var(--line);
}

.principle {
  min-height: 290px;
  padding: clamp(26px, 4vw, 48px);
  background: rgba(3, 6, 21, 0.92);
}

.principle > span,
.code-card-top,
.film-meta span {
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.principle h3 {
  margin: 92px 0 18px;
  font-size: 25px;
  font-weight: 550;
}

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

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-step {
  position: relative;
  min-height: 430px;
  padding: 26px clamp(20px, 2.5vw, 38px) 34px;
  border-right: 1px solid var(--line);
}

.journey-step:last-child {
  border-right: 0;
}

.step-index {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.step-symbol {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 62px auto 52px;
  border: 1px solid rgba(114, 255, 81, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(0, 220, 194, 0.06);
}

.step-symbol::before,
.step-symbol::after {
  content: "";
  position: absolute;
}

.hand-symbol::before {
  inset: 33px 43px 24px;
  border: 1px solid var(--green);
  border-radius: 50% 50% 45% 45%;
}

.hand-symbol::after {
  left: 56px;
  bottom: -24px;
  width: 1px;
  height: 58px;
  background: linear-gradient(var(--green), transparent);
}

.touch-symbol::before {
  inset: 21px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  box-shadow: inset 0 0 0 16px rgba(40, 168, 255, 0.05), inset 0 0 0 17px rgba(40, 168, 255, 0.2);
}

.touch-symbol::after {
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px var(--green);
}

.wave-symbol::before {
  top: 50%;
  left: 15px;
  width: 86px;
  height: 28px;
  transform: translateY(-50%) skewX(-15deg);
  border-top: 1px solid var(--teal);
  border-bottom: 1px solid var(--blue);
  border-radius: 50%;
}

.wave-symbol::after {
  top: 50%;
  left: 20px;
  width: 76px;
  height: 52px;
  transform: translateY(-50%) rotate(8deg);
  border-top: 1px solid rgba(114,255,81,.5);
  border-radius: 50%;
}

.archive-symbol::before {
  inset: 29px;
  border: 1px solid var(--magenta);
  transform: rotate(45deg);
}

.archive-symbol::after {
  inset: 39px;
  border: 1px solid var(--blue);
  transform: rotate(45deg);
}

.journey-step h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 550;
}

.journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.privacy-note {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 70px auto 0;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(8, 22, 27, 0.55);
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 32px;
}

.privacy-note h3 {
  margin: 2px 0 10px;
  font-size: 18px;
}

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

.biome-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.biome-tab {
  min-height: 84px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(4, 11, 21, 0.72);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease;
}

.biome-tab:last-child {
  border-right: 0;
}

.biome-tab.active,
.biome-tab:hover {
  background: rgba(21, 47, 42, 0.78);
}

.biome-letter {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
}

.biome-letter.red { color: var(--orange); }
.biome-letter.green { color: var(--green); }
.biome-letter.blue { color: var(--blue); }

.biome-tab strong,
.biome-tab small {
  display: block;
}

.biome-tab strong {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 570;
}

.biome-tab small {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.biome-stage {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  background: #050a16;
}

.biome-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background:
    radial-gradient(circle at 44% 47%, rgba(255, 155, 93, 0.18), transparent 5%),
    repeating-radial-gradient(ellipse at 45% 52%, transparent 0 25px, rgba(255, 155, 93, 0.16) 26px 27px, transparent 28px 38px),
    radial-gradient(circle at 50% 50%, rgba(92, 30, 20, 0.34), #030714 72%);
  transition: background 0.6s ease;
}

.biome-stage.vegetation .biome-visual {
  background:
    radial-gradient(circle at 42% 40%, rgba(114, 255, 81, 0.2), transparent 4%),
    repeating-radial-gradient(ellipse at 42% 44%, transparent 0 20px, rgba(114, 255, 81, 0.17) 21px 22px, transparent 23px 36px),
    radial-gradient(circle at 50% 50%, rgba(14, 78, 53, 0.35), #030714 72%);
}

.biome-stage.river .biome-visual {
  background:
    radial-gradient(circle at 46% 52%, rgba(40, 168, 255, 0.22), transparent 5%),
    repeating-radial-gradient(ellipse at 46% 52%, transparent 0 19px, rgba(40, 168, 255, 0.2) 20px 21px, transparent 22px 35px),
    radial-gradient(circle at 50% 50%, rgba(9, 66, 103, 0.38), #030714 72%);
}

.contour {
  position: absolute;
  border: 1px solid rgba(255, 155, 93, 0.34);
  border-radius: 45% 55% 48% 52%;
  transition: border-color 0.55s ease, border-radius 0.55s ease, transform 0.55s ease;
  animation: contourTurn 18s linear infinite;
}

.contour-a { inset: 14% 18%; }
.contour-b { inset: 24% 27%; animation-direction: reverse; animation-duration: 12s; }
.contour-c { inset: 34% 36%; animation-duration: 8s; }

.biome-stage.vegetation .contour {
  border-color: rgba(114, 255, 81, 0.4);
  border-radius: 68% 32% 57% 43%;
}

.biome-stage.river .contour {
  border-color: rgba(40, 168, 255, 0.45);
  border-radius: 75% 25% 75% 25%;
}

.sound-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 70px 20px rgba(255, 155, 93, 0.3);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.biome-stage.vegetation .sound-orbit {
  background: var(--green);
  box-shadow: 0 0 70px 20px rgba(114, 255, 81, 0.3);
}

.biome-stage.river .sound-orbit {
  background: var(--blue);
  box-shadow: 0 0 70px 20px rgba(40, 168, 255, 0.3);
}

.biome-stage.playing .sound-orbit {
  animation: soundPulse 1.2s ease-in-out infinite;
}

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

@keyframes soundPulse {
  50% { transform: translate(-50%, -50%) scale(2.5); opacity: 0.5; }
}

.biome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px);
  border-left: 1px solid var(--line);
  background: rgba(4, 9, 18, 0.85);
}

.biome-copy h3 {
  margin: 0 0 24px;
  font-size: clamp(38px, 4vw, 61px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.biome-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.biome-copy dl {
  margin: 26px 0 35px;
  border-top: 1px solid var(--line);
}

.biome-copy dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.biome-copy dt {
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.biome-copy dd {
  margin: 0;
  font-size: 12px;
}

.listen-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.listen-button:hover,
.listen-button.playing {
  background: var(--green);
  color: #031009;
}

.listen-button small {
  margin-left: auto;
  opacity: 0.58;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.system-flow {
  display: grid;
  grid-template-columns: 1fr 70px 1fr 70px 1fr 70px 1fr;
  align-items: center;
}

.system-flow article {
  min-height: 360px;
  padding: 25px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 20, 0.7);
}

.system-index {
  color: var(--dim);
  font-size: 10px;
}

.system-orb {
  position: relative;
  width: 114px;
  height: 114px;
  display: grid;
  place-items: center;
  margin: 46px auto;
  border: 1px solid rgba(114, 255, 81, 0.4);
  border-radius: 50%;
}

.sensor-orb::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: radial-gradient(circle, white 0 8%, var(--blue) 12%, transparent 50%);
  box-shadow: 0 0 30px rgba(40, 168, 255, 0.4);
}

.board-orb span,
.code-orb span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
}

.output-orb {
  background: url("assets/landscape-field.jpg") center / cover;
}

.flow-line {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.flow-line i {
  position: absolute;
  width: 30px;
  height: 1px;
  background: var(--green);
  animation: dataFlow 2.2s linear infinite;
}

@keyframes dataFlow {
  from { transform: translateX(-30px); }
  to { transform: translateX(70px); }
}

.system-flow h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 560;
}

.system-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.wide-image {
  margin-top: 76px;
}

.wide-image img {
  aspect-ratio: 1.75;
  object-fit: cover;
  border: 1px solid var(--line);
}

.manual-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 7vw, 96px);
}

.manual-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.status-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 17, 24, 0.7);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.status-card strong,
.status-card small {
  display: block;
}

.status-card strong {
  margin-bottom: 5px;
  font-size: 12px;
}

.status-card small {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.4;
}

.manual-nav {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.manual-nav a {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
}

.manual-nav a:hover,
.manual-nav a.active {
  color: var(--green);
}

.manual-content {
  min-width: 0;
}

.manual-block {
  scroll-margin-top: calc(var(--header-height) + 26px);
  margin-bottom: 70px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line);
}

.manual-block header {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: baseline;
  margin-bottom: 34px;
}

.manual-block header span {
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.manual-block h3 {
  margin: 0;
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 550;
  letter-spacing: -0.035em;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}

.check-grid label:has(input:checked) {
  border-color: rgba(114,255,81,.48);
  color: var(--ink);
  background: rgba(114,255,81,.05);
}

.check-grid input {
  appearance: none;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--dim);
  border-radius: 50%;
}

.check-grid input:checked {
  border: 4px solid var(--green);
}

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

.wiring-table > div {
  display: grid;
  grid-template-columns: 0.7fr 0.8fr 1.5fr;
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.wiring-table > div:first-child {
  color: var(--dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wiring-table > div:not(:first-child) span:nth-child(2) {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.manual-note {
  margin: 20px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--green);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.startup-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.startup-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.startup-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.startup-list > li > span {
  color: var(--green);
  font-size: 10px;
}

.startup-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.startup-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.calibration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.calibration-grid > div {
  min-height: 250px;
  padding: 25px;
  border: 1px solid var(--line);
}

.calibration-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 75px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 11px;
}

.calibration-grid h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.calibration-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.accordion details:last-child {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 10px;
  color: var(--green);
  font-size: 20px;
  font-weight: 300;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion details p {
  max-width: 720px;
  margin: -4px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.code-card {
  padding: 25px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 21, 0.72);
}

.code-card.featured {
  border-color: rgba(114,255,81,.46);
  box-shadow: inset 0 0 60px rgba(114,255,81,.03);
}

.code-card-top {
  display: flex;
  justify-content: space-between;
}

.code-card h3 {
  margin: 70px 0 20px;
  font-size: 25px;
  font-weight: 550;
}

.code-card pre {
  min-height: 230px;
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: #02050c;
  color: #c3e9dd;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.7;
}

.code-comment {
  color: var(--green);
}

.code-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
}

.code-archive img {
  object-position: center 55%;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-grid figure {
  position: relative;
  overflow: hidden;
}

.field-grid img {
  aspect-ratio: 1.42;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.field-grid figure:hover img {
  transform: scale(1.025);
}

.field-grid figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 38px 20px 18px;
  background: linear-gradient(transparent, rgba(1, 7, 15, 0.9));
  font-size: 11px;
}

.field-notes blockquote {
  max-width: 1000px;
  margin: 110px auto 0;
  text-align: center;
}

.field-notes blockquote p {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 61px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.field-notes cite {
  display: block;
  margin-top: 30px;
  color: var(--dim);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.film-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
}

.film-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-meta {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr auto;
  gap: 24px;
  align-items: end;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.film-meta span,
.film-meta strong {
  display: block;
}

.film-meta strong {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 520;
}

.film-meta a {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closing {
  position: relative;
  min-height: 85svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.closing > img,
.closing-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
}

.closing > img {
  object-fit: cover;
}

.closing-overlay {
  background: rgba(2, 5, 17, 0.58);
  backdrop-filter: saturate(0.8);
}

.closing-copy {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - 48px));
  text-align: center;
}

.closing h2 {
  font-size: clamp(41px, 6.2vw, 86px);
}

.closing-copy a {
  display: inline-block;
  margin-top: 58px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 40px clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer > div,
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand strong {
  color: var(--ink);
}

footer > div:nth-child(2) {
  flex-direction: row;
  gap: 22px;
}

footer > a {
  justify-self: end;
  color: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

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

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

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-copy { max-width: 730px; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey-step:nth-child(2) { border-right: 0; }
  .journey-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .system-flow { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .flow-line { display: none; }
  .system-flow article { min-height: 390px; }
  .biome-stage { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --header-height: 64px; }
  .site-header { padding: 0 18px; }
  .sound-master { display: none; }
  .hero-content { width: calc(100% - 36px); }
  .hero h1 { font-size: clamp(58px, 19vw, 116px); line-height: 0.8; }
  .hero h1 span:last-child { margin-left: 0; }
  .hero-subtitle, .hero-actions { margin-left: 0; }
  .hero-subtitle { margin-top: 42px; }
  .hero-data { display: none; }
  .section { width: calc(100% - 36px); }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: auto; }
  .principle h3 { margin-top: 54px; }
  .biome-selector { grid-template-columns: 1fr; }
  .biome-tab { border-right: 0; border-bottom: 1px solid var(--line); }
  .biome-tab:last-child { border-bottom: 0; }
  .biome-stage { grid-template-columns: 1fr; }
  .biome-copy { border-top: 1px solid var(--line); border-left: 0; }
  .system-flow { grid-template-columns: repeat(2, 1fr); }
  .manual-layout { grid-template-columns: 1fr; }
  .manual-aside { position: static; }
  .manual-nav { display: none; }
  .code-grid { grid-template-columns: 1fr; }
  .code-card pre { min-height: 0; }
  .field-grid { grid-template-columns: 1fr; }
  .film-meta { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr 1fr; }
  footer > div:nth-child(2) { display: none; }
}

@media (max-width: 580px) {
  .brand { font-size: 11px; }
  .hero-subtitle br { display: none; }
  .section-heading h2 br { display: none; }
  .journey { grid-template-columns: 1fr; }
  .journey-step { min-height: 390px; border-right: 0; border-bottom: 1px solid var(--line); }
  .journey-step:last-child { border-bottom: 0; }
  .privacy-note { grid-template-columns: 1fr; }
  .system-flow { grid-template-columns: 1fr; }
  .system-flow article { min-height: 330px; }
  .manual-block header, .startup-list li { grid-template-columns: 38px 1fr; }
  .check-grid, .calibration-grid { grid-template-columns: 1fr; }
  .wiring-table > div { grid-template-columns: 0.6fr 0.65fr 1.45fr; font-size: 10px; }
  .concept-image figcaption, .wide-image figcaption { flex-direction: column; }
  .film-meta { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer > a { justify-self: start; }
}

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