:root {
  --bg: #f3f6f0;
  --bg-soft: #e9eee7;
  --surface: rgba(255,255,255,.74);
  --surface-solid: #ffffff;
  --surface-dark: #0a1113;
  --text: #101719;
  --muted: #667073;
  --line: rgba(16,23,25,.13);
  --line-strong: rgba(16,23,25,.22);
  --accent: #5ccf8a;
  --accent-2: #a4f2c1;
  --accent-deep: #176c45;
  --danger: #ec8b75;
  --shadow: 0 28px 80px rgba(17,31,28,.12);
  --shadow-soft: 0 12px 36px rgba(17,31,28,.08);
  --radius: 26px;
  --radius-sm: 16px;
  --header-h: 72px;
  --max: 1440px;
  --ease: cubic-bezier(.2,.75,.25,1);
}

html[data-theme="dark"] {
  --bg: #081012;
  --bg-soft: #0d1719;
  --surface: rgba(16,27,29,.76);
  --surface-solid: #101a1c;
  --text: #eff7f2;
  --muted: #a6b4b0;
  --line: rgba(232,245,237,.12);
  --line-strong: rgba(232,245,237,.22);
  --accent: #69e19a;
  --accent-2: #b4f5cd;
  --accent-deep: #1d8a57;
  --shadow: 0 28px 90px rgba(0,0,0,.34);
  --shadow-soft: 0 12px 38px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
}
body.lightbox-open { overflow: hidden; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #06100b; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 1000;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #d9ffe8);
  box-shadow: 0 0 18px rgba(92,207,138,.55);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 500;
  display: flex;
  align-items: center;
  color: #fff;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, color .3s ease;
}
.site-header.scrolled {
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 1px 0 var(--line);
}
.nav-wrap {
  width: min(calc(100% - 42px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.025em; white-space: nowrap; }
.brand-logo { width: 30px; height: 30px; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { position: relative; font-size: .91rem; font-weight: 630; opacity: .74; transition: opacity .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: currentColor; transition: right .28s var(--ease); }
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-support { color: currentColor; text-decoration: none; font-size: .76rem; font-weight: 760; opacity: .72; transition: opacity .2s ease, transform .2s var(--ease); }
.nav-support:hover { opacity: 1; transform: translateY(-1px); }
.language-switch { display: inline-flex; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 20%, transparent); border-radius: 999px; padding: 2px; }
.language-switch button, .theme-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.language-switch button { min-width: 34px; height: 28px; border-radius: 999px; font-size: .72rem; font-weight: 760; opacity: .6; }
.language-switch button[aria-pressed="true"] { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; position: relative; overflow: hidden; }
.theme-toggle span { position: absolute; transition: transform .4s var(--ease), opacity .3s ease; }
html[data-theme="light"] .theme-sun { transform: translateY(0) rotate(0); opacity: 1; }
html[data-theme="light"] .theme-moon { transform: translateY(28px) rotate(70deg); opacity: 0; }
html[data-theme="dark"] .theme-sun { transform: translateY(-28px) rotate(-70deg); opacity: 0; }
html[data-theme="dark"] .theme-moon { transform: translateY(0) rotate(0); opacity: 1; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 720;
  letter-spacing: -.015em;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.985); }
.button-small { min-height: 38px; padding: 0 16px; font-size: .88rem; border: 1px solid color-mix(in srgb, currentColor 26%, transparent); background: color-mix(in srgb, currentColor 8%, transparent); }
.site-header:not(.scrolled) .button-small { background: rgba(255,255,255,.1); }
.button-primary { background: #f4fff7; color: #07130c; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.button-primary:hover { box-shadow: 0 16px 42px rgba(0,0,0,.25); }
.button-glass { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(9px); }
.button-secondary { color: #f0f7f3; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.18); }
.button-secondary:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.32); }

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: #101a1c;
}
.hero-media, .hero-media img, .hero-shade, .hero-grid, .hero-glow { position: absolute; inset: 0; }
.hero-media { z-index: -5; overflow: hidden; transform: scale(1.025); will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; transform: scale(1.04); animation: heroIn 1.8s var(--ease) both; will-change: transform; }
@keyframes heroIn { from { transform: scale(1.105); filter: saturate(.8) brightness(.82); } to { transform: scale(1.04); filter: saturate(1) brightness(1); } }
.hero-shade {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(4,12,12,.78) 0%, rgba(4,11,12,.56) 32%, rgba(4,11,12,.15) 64%, rgba(3,9,12,.3) 100%),
    linear-gradient(0deg, rgba(3,8,10,.64) 0%, transparent 42%, rgba(2,9,12,.22) 100%);
}
.hero-grid {
  z-index: -3;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to right, black, transparent 72%);
  animation: gridDrift 16s linear infinite;
}
@keyframes gridDrift { to { background-position: 96px 96px; } }
.hero-glow {
  z-index: -2;
  pointer-events: none;
  opacity: .65;
  background: radial-gradient(440px circle at var(--gx, 72%) var(--gy, 38%), rgba(180,255,210,.18), transparent 60%);
  transition: opacity .2s ease;
}
.hero-content {
  width: min(calc(100% - 56px), var(--max));
  min-height: max(720px, 100svh);
  margin: 0 auto;
  padding: calc(var(--header-h) + 88px) 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 70px;
}
.hero-intro { max-width: 820px; }
.eyebrow { margin: 0 0 18px; font-size: .75rem; line-height: 1; letter-spacing: .17em; font-weight: 820; text-transform: uppercase; color: var(--accent-deep); }
.hero-eyebrow { color: #d9ffe7; text-shadow: 0 1px 20px rgba(0,0,0,.35); }
.hero h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(4rem, 8vw, 8.4rem);
  line-height: .86;
  letter-spacing: -.073em;
  font-weight: 820;
  text-wrap: balance;
}
.hero h1 span { color: rgba(255,255,255,.69); font-weight: 620; }
.hero-copy { max-width: 650px; margin: 28px 0 0; font-size: clamp(1.08rem, 1.55vw, 1.35rem); line-height: 1.55; color: rgba(255,255,255,.82); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-reveal { opacity: 0; transform: translateY(26px); animation: heroReveal .85s var(--ease) forwards; }
.hero-reveal:nth-child(1) { animation-delay: .2s; }
.hero-reveal:nth-child(2) { animation-delay: .28s; }
.hero-reveal:nth-child(3) { animation-delay: .38s; }
.hero-reveal:nth-child(4) { animation-delay: .48s; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }
.hero-telemetry {
  align-self: end;
  width: 100%;
  padding: 22px 22px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  background: rgba(3,12,13,.28);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
  animation-delay: .62s;
}
.telemetry-head { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: .68rem; letter-spacing: .15em; font-weight: 790; color: rgba(255,255,255,.68); }
.live-dot, .signal-ribbon i { width: 7px; height: 7px; border-radius: 50%; background: #74f0a2; box-shadow: 0 0 0 0 rgba(116,240,162,.45); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(116,240,162,0); } }
.telemetry-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.telemetry-row span { font-size: .84rem; color: rgba(255,255,255,.58); }
.telemetry-row strong { font-size: .9rem; font-weight: 720; text-align: right; }
.telemetry-wave { display: flex; align-items: end; gap: 4px; height: 26px; margin-top: 14px; overflow: hidden; }
.telemetry-wave i { display: block; width: 100%; height: 20%; border-radius: 8px 8px 1px 1px; background: rgba(119,241,164,.8); transform-origin: bottom; animation: wave 1.8s ease-in-out infinite alternate; }
.telemetry-wave i:nth-child(2n) { animation-delay: -.6s; }
.telemetry-wave i:nth-child(3n) { animation-delay: -1.1s; }
.telemetry-wave i:nth-child(4n) { animation-delay: -.2s; }
@keyframes wave { from { transform: scaleY(.25); opacity: .3; } to { transform: scaleY(1); opacity: .9; } }
.hero-bottom { position: absolute; inset: auto 24px 18px; display: flex; justify-content: space-between; font-size: .66rem; letter-spacing: .16em; font-weight: 700; color: rgba(255,255,255,.48); }

.signal-ribbon {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-solid);
}
.ribbon-track { display: flex; align-items: center; width: max-content; min-width: 200%; animation: ribbon 34s linear infinite; }
.ribbon-track span { display: inline-flex; align-items: center; gap: 9px; padding: 15px 28px; white-space: nowrap; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ribbon-track strong { color: var(--text); }
@keyframes ribbon { to { transform: translateX(-50%); } }

.section-shell { width: min(calc(100% - 56px), var(--max)); margin: 0 auto; }
.vision-section, .scale-section, .gallery-section { padding: 128px 0; }
.systems-section, .data-section, .compat-section, .community-section { padding: 128px 0; }
.systems-section, .compat-section { background: var(--bg-soft); }
.data-section { position: relative; overflow: hidden; }
.data-section::before { content: ""; position: absolute; width: 850px; height: 850px; right: -300px; top: -180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%); pointer-events: none; }
.section-heading { max-width: 880px; }
.section-heading h2, .systems-heading h2, .scale-copy h2, .community-copy h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.4vw, 6.2rem);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 790;
}
.section-heading h2 span, .systems-heading h2 span, .scale-copy h2 span, .community-copy h2 span { color: var(--muted); font-weight: 590; }
.section-heading > p:last-child, .systems-heading > p, .scale-copy > p, .community-copy > p { max-width: 730px; margin: 26px 0 0; font-size: 1.1rem; color: var(--muted); }

.vision-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; margin-top: 74px; }
.vision-points { display: grid; gap: 12px; }
.principle-card {
  position: relative;
  padding: 26px 28px 26px 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.principle-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.card-no { position: absolute; left: 24px; top: 28px; font-size: .72rem; letter-spacing: .12em; font-weight: 800; color: var(--accent-deep); }
.principle-card h3 { margin: 0 0 6px; font-size: 1.18rem; letter-spacing: -.025em; }
.principle-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.vision-photo { margin: 0; position: relative; min-height: 640px; overflow: hidden; border-radius: var(--radius); background: #111; box-shadow: var(--shadow); transform-style: preserve-3d; }
.vision-photo img { width: 100%; height: 640px; object-fit: cover; transition: transform .9s var(--ease); }
.vision-photo:hover img { transform: scale(1.035); }
.vision-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(2,7,9,.76)); pointer-events: none; }
.vision-photo figcaption { position: absolute; z-index: 2; inset: auto 26px 24px; color: #fff; display: grid; gap: 5px; }
.vision-photo figcaption span { font-size: .68rem; letter-spacing: .15em; color: rgba(255,255,255,.62); }
.vision-photo figcaption strong { max-width: 500px; font-size: 1rem; font-weight: 650; }

.systems-heading { display: grid; grid-template-columns: 1fr 450px; gap: 70px; align-items: end; }
.system-stage { margin-top: 66px; min-height: 720px; display: grid; grid-template-columns: 1.3fr .7fr; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: var(--surface-solid); box-shadow: var(--shadow); }
.system-visual { position: relative; min-height: 720px; overflow: hidden; background: #071013; }
.system-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); filter: saturate(.88); transition: opacity .65s ease, transform 1.1s var(--ease), filter .7s ease; }
.system-image.is-active { opacity: 1; transform: scale(1.01); filter: saturate(1); }
.system-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(2,7,9,.2)), linear-gradient(0deg, rgba(2,7,9,.48), transparent 50%); pointer-events: none; }
.system-scan { position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 0 47%, rgba(164,242,193,.35) 49%, rgba(164,242,193,.1) 50%, transparent 53%); background-size: 100% 260%; animation: scan 5.2s linear infinite; mix-blend-mode: screen; opacity: .35; }
@keyframes scan { from { background-position: 0 -140%; } to { background-position: 0 160%; } }
.system-coordinate { position: absolute; z-index: 4; left: 24px; bottom: 22px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(0,0,0,.22); backdrop-filter: blur(10px); font-size: .67rem; letter-spacing: .14em; font-weight: 760; }
.system-panel { padding: 28px 30px 34px; display: flex; flex-direction: column; background: var(--surface-solid); }
.system-tabs { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.system-tab { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 700; transition: .25s ease; }
.system-tab:hover { color: var(--text); border-color: var(--line-strong); }
.system-tab.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.system-copy { display: none; margin-top: auto; padding-top: 56px; animation: systemCopy .5s var(--ease) both; }
.system-copy.is-active { display: block; }
@keyframes systemCopy { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.system-tag { margin: 0 0 16px; color: var(--accent-deep); font-size: .7rem; letter-spacing: .15em; font-weight: 820; }
.system-copy h3 { margin: 0; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.02; letter-spacing: -.05em; }
.system-copy > p:not(.system-tag) { margin: 22px 0 0; color: var(--muted); }
.system-list { display: grid; gap: 12px; list-style: none; margin: 30px 0 0; padding: 0; }
.system-list li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 640; }
.system-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent-deep); }

.scale-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: center; }
.scale-copy { max-width: 560px; }
.scale-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 28px; }
.scale-readout div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.scale-readout span { display: block; font-size: .77rem; color: var(--muted); }
.scale-readout strong { display: block; margin-top: 4px; font-size: 1.35rem; letter-spacing: -.04em; }
.scale-slider-label { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 780; color: var(--muted); }
.scale-slider { width: 100%; margin: 10px 0 4px; accent-color: var(--accent-deep); cursor: ew-resize; }
.scale-presets { display: grid; grid-template-columns: repeat(8,1fr); font-size: .63rem; color: var(--muted); text-align: center; }
.scale-visual { position: relative; min-height: 610px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: #0b1717; box-shadow: var(--shadow); perspective: 1000px; }
.scale-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, rgba(108,226,153,.22), transparent 28%), linear-gradient(160deg, rgba(255,255,255,.03), transparent); }
.earth-grid { position: absolute; inset: -40%; background-image: linear-gradient(rgba(145,255,185,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(145,255,185,.25) 1px, transparent 1px); background-size: var(--grid-size, 28px) var(--grid-size, 28px); transform: rotateX(60deg) rotateZ(-18deg) translateY(20%); transform-origin: center; transition: background-size .7s var(--ease); mask-image: radial-gradient(circle at center, #000 25%, transparent 68%); }
.grid-marker { position: absolute; width: 16px; height: 16px; border: 2px solid #aff6c7; border-radius: 50%; box-shadow: 0 0 28px rgba(175,246,199,.7); }
.grid-marker span { position: absolute; left: 19px; top: -4px; color: #dfffea; font-size: .67rem; letter-spacing: .12em; font-weight: 760; }
.marker-a { left: 22%; top: 62%; }
.marker-b { right: 23%; top: 34%; }
.scale-line { position: absolute; left: 24%; right: 25%; top: 50%; height: 1px; background: linear-gradient(90deg, #baf8ce, rgba(186,248,206,.2)); transform: rotate(-16deg); transform-origin: left center; }
.scale-line::before, .scale-line::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: #baf8ce; }
.scale-line::before { left: 0; } .scale-line::after { right: 0; }
.scale-line span { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); color: rgba(223,255,234,.8); font-size: .67rem; letter-spacing: .1em; white-space: nowrap; }
.scale-orbit { position: absolute; width: 380px; height: 380px; border: 1px solid rgba(171,245,199,.12); border-radius: 50%; right: -80px; top: -60px; }
.scale-orbit::before { content: ""; position: absolute; width: 7px; height: 7px; background: #adf6c8; border-radius: 50%; left: 50%; top: -4px; box-shadow: 0 0 22px #adf6c8; animation: orbit 8s linear infinite; transform-origin: 0 194px; }
@keyframes orbit { to { transform: rotate(360deg); } }

.data-heading { position: relative; z-index: 1; }
.data-explorer { display: grid; grid-template-columns: 1fr 420px; gap: 36px; margin-top: 66px; position: relative; z-index: 1; }
.dataset-cloud { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; }
.dataset-chip { position: relative; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); padding: 14px 18px; cursor: pointer; font-size: .88rem; font-weight: 690; transition: transform .22s var(--ease), background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease; }
.dataset-chip:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.dataset-chip.is-active { color: #07110c; background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 30px rgba(74,187,116,.2); }
.dataset-chip small { margin-left: 8px; font-size: .58rem; letter-spacing: .1em; opacity: .6; }
.planned-chip { border-style: dashed; }
.dataset-detail { min-height: 330px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-solid); box-shadow: var(--shadow); }
.detail-top { display: flex; justify-content: space-between; gap: 18px; align-items: center; font-size: .66rem; letter-spacing: .14em; font-weight: 800; color: var(--muted); }
.detail-status { color: var(--accent-deep); }
.dataset-detail h3 { margin: 24px 0 0; font-size: 2rem; line-height: 1; letter-spacing: -.045em; }
.dataset-detail > p { margin: 16px 0 0; color: var(--muted); }
.detail-meter { height: 2px; margin: 26px 0; background: var(--line); overflow: hidden; }
.detail-meter span { display: block; width: 82%; height: 100%; background: var(--accent-deep); transform-origin: left; animation: meterIn .5s var(--ease); }
@keyframes meterIn { from { transform: scaleX(.08); } to { transform: scaleX(1); } }
.dataset-detail dl { display: grid; gap: 10px; margin: 0; }
.dataset-detail dl div { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.dataset-detail dt { color: var(--muted); font-size: .78rem; }
.dataset-detail dd { margin: 0; text-align: right; font-size: .8rem; font-weight: 700; }
.pipeline-rail { display: grid; grid-template-columns: 1fr 46px 1fr 46px 1fr 46px 1fr; align-items: center; gap: 0; margin-top: 64px; }
.pipeline-rail article { min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pipeline-rail article > span { display: block; margin-bottom: 26px; font-size: .68rem; letter-spacing: .13em; font-weight: 800; color: var(--accent-deep); }
.pipeline-rail strong { display: block; font-size: 1rem; }
.pipeline-rail p { margin: 8px 0 0; color: var(--muted); font-size: .83rem; }
.pipeline-rail > i { height: 1px; background: var(--line-strong); position: relative; overflow: visible; }
.pipeline-rail > i::after { content: ""; position: absolute; width: 6px; height: 6px; top: -2.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: flowDot 2.2s linear infinite; }
@keyframes flowDot { from { left: -3px; } to { left: calc(100% - 3px); } }

.gallery-heading { max-width: none; display: grid; grid-template-columns: 1fr 440px; gap: 70px; align-items: end; }
.gallery-heading > p { margin: 0; }
.gallery-mosaic { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 220px; gap: 14px; margin-top: 64px; }
.gallery-card { position: relative; grid-column: span 4; grid-row: span 2; margin: 0; overflow: hidden; border-radius: 20px; background: #0b1112; cursor: zoom-in; box-shadow: var(--shadow-soft); outline: none; }
.gallery-hero-card { grid-column: span 8; grid-row: span 3; }
.gallery-wide-card { grid-column: span 8; grid-row: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease), filter .5s ease; }
.gallery-card:hover img, .gallery-card:focus-visible img { transform: scale(1.045); filter: brightness(.88); }
.gallery-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(2,7,9,.76)); opacity: .8; transition: opacity .3s ease; }
.gallery-card figcaption { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 2px; color: #fff; transform: translateY(4px); transition: transform .3s var(--ease); }
.gallery-card:hover figcaption { transform: none; }
.gallery-card figcaption strong { font-size: 1.05rem; }
.gallery-card figcaption span { font-size: .73rem; color: rgba(255,255,255,.65); }

.compat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 64px; }
.compat-card { min-height: 210px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-solid); box-shadow: var(--shadow-soft); transform-style: preserve-3d; }
.compat-card h3 { margin: 34px 0 8px; font-size: 1.2rem; letter-spacing: -.03em; }
.compat-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.compat-status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: .61rem; letter-spacing: .09em; font-weight: 840; }
.compat-status.core { background: var(--text); color: var(--bg); }
.compat-status.active { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--accent-deep); }
.compat-status.tested { background: color-mix(in srgb, #7aa4ff 18%, transparent); color: color-mix(in srgb, #4779e7 78%, var(--text)); }
.compat-status.experimental { background: color-mix(in srgb, #f1c462 20%, transparent); color: color-mix(in srgb, #c48616 82%, var(--text)); }
.compat-status.future { background: color-mix(in srgb, #b995ef 18%, transparent); color: color-mix(in srgb, #8053c4 82%, var(--text)); }

.community-section { position: relative; overflow: hidden; background: #071012; color: #f0f7f3; }
.community-section::before { content: ""; position: absolute; width: 900px; height: 900px; left: -300px; bottom: -560px; border-radius: 50%; background: radial-gradient(circle, rgba(79,225,137,.24), transparent 66%); }
.community-layout { position: relative; display: grid; grid-template-columns: 1fr 420px; gap: 100px; align-items: center; }
.community-copy .eyebrow { color: #7febaa; }
.community-copy h2 span { color: rgba(240,247,243,.52); }
.community-copy > p { color: rgba(240,247,243,.62); }
.community-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.community-actions .button-primary { background: #7febaa; color: #07130c; box-shadow: 0 12px 34px rgba(82,215,136,.18); }
.community-actions .button-primary:hover { box-shadow: 0 18px 46px rgba(82,215,136,.24); }
.release-card { margin-top: 36px; max-width: 560px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.035); }
.release-status-row { display: flex; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .12em; }
.release-card p { margin: 12px 0 0; color: rgba(240,247,243,.55); }
.discord-shell { border: 1px solid rgba(255,255,255,.13); border-radius: 24px; overflow: hidden; background: #151a1e; box-shadow: 0 34px 100px rgba(0,0,0,.38); }
.discord-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .78rem; }
.discord-head div { display: flex; align-items: center; gap: 9px; }
.discord-head > span { font-size: .58rem; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.discord-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #5865f2; font-weight: 800; }
.discord-shell iframe { display: block; width: 100%; max-width: none; border: 0; }

.site-footer { width: min(calc(100% - 56px), var(--max)); margin: 0 auto; padding: 44px 0 56px; display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.site-footer > div > p { margin: 10px 0 0; color: var(--muted); }
.footer-right { display: grid; justify-items: end; gap: 12px; }
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links a { color: var(--muted); font-size: .78rem; font-weight: 720; text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-note { max-width: 520px; margin: 0; text-align: right; font-size: .78rem; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(2,6,8,.88);
  color: #fff;
  backdrop-filter: blur(18px);
}
.lightbox::backdrop { background: rgba(2,6,8,.72); }
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox figure { margin: 0 auto; width: min(88vw, 1480px); max-height: 90vh; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.lightbox figcaption { font-size: .78rem; letter-spacing: .08em; color: rgba(255,255,255,.68); }
.lightbox-close, .lightbox-nav { position: fixed; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; backdrop-filter: blur(12px); }
.lightbox-close { right: 24px; top: 22px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.lightbox-nav { top: 50%; width: 48px; height: 68px; border-radius: 16px; transform: translateY(-50%); font-size: 2rem; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (max-width: 1160px) {
  .main-nav { display: none; }
  .hero-content { grid-template-columns: 1fr 320px; gap: 40px; }
  .systems-heading, .gallery-heading { grid-template-columns: 1fr; gap: 22px; }
  .gallery-heading > p { max-width: 650px; }
  .vision-layout { gap: 38px; }
  .scale-section { gap: 40px; }
  .data-explorer { grid-template-columns: 1fr 360px; }
  .compat-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-wrap, .section-shell, .site-footer { width: min(calc(100% - 34px), var(--max)); }
  .desktop-cta, .desktop-support { display: none; }
  .hero-content { width: min(calc(100% - 34px), var(--max)); grid-template-columns: 1fr; align-content: end; gap: 26px; padding-bottom: 62px; }
  .hero-intro { max-width: 720px; }
  .hero h1 { font-size: clamp(3.5rem, 13vw, 7rem); }
  .hero-telemetry { max-width: 520px; }
  .vision-section, .systems-section, .scale-section, .data-section, .gallery-section, .compat-section, .community-section { padding: 92px 0; }
  .vision-layout, .scale-section, .community-layout { grid-template-columns: 1fr; }
  .vision-photo { min-height: 520px; }
  .vision-photo img { height: 520px; }
  .system-stage { grid-template-columns: 1fr; min-height: 0; }
  .system-visual { min-height: 520px; }
  .system-panel { min-height: 470px; }
  .data-explorer { grid-template-columns: 1fr; }
  .dataset-detail { min-height: 0; }
  .pipeline-rail { grid-template-columns: 1fr; gap: 0; }
  .pipeline-rail > i { width: 1px; height: 36px; margin-left: 30px; }
  .pipeline-rail > i::after { animation-name: flowDotVertical; }
  @keyframes flowDotVertical { from { top: -3px; left: -2.5px; } to { top: calc(100% - 3px); left: -2.5px; } }
  .pipeline-rail article { min-height: 0; }
  .gallery-mosaic { grid-template-columns: repeat(2,1fr); grid-auto-rows: 260px; }
  .gallery-card, .gallery-hero-card, .gallery-wide-card { grid-column: span 1; grid-row: span 1; }
  .gallery-hero-card { grid-column: span 2; grid-row: span 2; }
  .gallery-wide-card { grid-column: span 2; }
  .compat-grid { grid-template-columns: repeat(2,1fr); }
  .community-layout { gap: 52px; }
  .discord-shell { width: min(100%, 440px); }
  .site-footer { align-items: flex-start; }
}

@media (max-width: 620px) {
  .nav-wrap, .section-shell, .site-footer { width: min(calc(100% - 26px), var(--max)); }
  .nav-wrap { gap: 10px; }
  .brand span { font-size: .92rem; }
  .brand-logo { width: 27px; height: 27px; }
  .nav-actions { gap: 4px; }
  .language-switch button { min-width: 29px; padding: 0 7px; }
  .hero { min-height: 780px; }
  .hero-media img { object-position: 56% 50%; }
  .hero-content { width: min(calc(100% - 26px), var(--max)); min-height: 780px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(3.25rem, 16vw, 5.3rem); letter-spacing: -.07em; }
  .hero-copy { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .hero-telemetry { padding: 18px; }
  .hero-bottom { display: none; }
  .ribbon-track span { padding: 13px 20px; }
  .section-heading h2, .systems-heading h2, .scale-copy h2, .community-copy h2 { font-size: clamp(2.4rem, 12vw, 4.2rem); }
  .vision-layout { margin-top: 50px; }
  .principle-card { padding: 22px 20px 22px 64px; }
  .vision-photo, .vision-photo img { min-height: 420px; height: 420px; }
  .system-stage { margin-top: 46px; border-radius: 22px; }
  .system-visual { min-height: 380px; }
  .system-panel { padding: 20px; min-height: 500px; }
  .system-tabs { grid-template-columns: 1fr 1fr; }
  .system-copy { padding-top: 38px; }
  .scale-readout { grid-template-columns: 1fr; }
  .scale-presets { font-size: .52rem; }
  .scale-visual { min-height: 450px; }
  .data-explorer { margin-top: 44px; }
  .dataset-cloud { gap: 8px; }
  .dataset-chip { padding: 11px 13px; font-size: .78rem; }
  .dataset-detail { padding: 22px; }
  .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .gallery-card, .gallery-hero-card, .gallery-wide-card { grid-column: span 1; grid-row: span 1; }
  .compat-grid { grid-template-columns: 1fr; }
  .compat-card { min-height: 180px; }
  .community-layout { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .footer-right { justify-items: start; }
  .footer-note { text-align: left; }
  .community-actions { display: grid; grid-template-columns: 1fr; }
  .community-actions .button { width: 100%; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { width: 94vw; }
  .lightbox-nav { top: auto; bottom: 24px; width: 52px; height: 52px; border-radius: 50%; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

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

/* v0.8 — clarity and interaction pass based on user review */

/* Support is a secondary menu, while Discord remains the primary community CTA. */
.support-menu { position: relative; }
.support-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 740;
  opacity: .74;
  transition: opacity .2s ease;
}
.support-trigger:hover, .support-trigger[aria-expanded="true"] { opacity: 1; }
.support-chevron { font-size: .9rem; transition: transform .22s var(--ease); }
.support-trigger[aria-expanded="true"] .support-chevron { transform: rotate(180deg); }
.support-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 95%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.support-option {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  transition: background .2s ease;
}
.support-option:hover, .support-option:focus-visible { background: var(--bg-soft); outline: none; }
.support-option > span:nth-child(2) { display: grid; gap: 2px; }
.support-option strong { font-size: .9rem; }
.support-option small { color: var(--muted); font-size: .7rem; line-height: 1.35; }
.support-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, #ff424d 10%, var(--surface-solid)); }
.support-icon img { width: 20px; height: 20px; }
.support-external { color: var(--muted); }

/* The hero snapshot contains meaningful current facts only; no decorative pseudo-graph. */
.hero-telemetry { padding: 18px; }
.telemetry-head { margin-bottom: 12px; }
.telemetry-state {
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-size: .56rem;
  letter-spacing: .09em;
}
.telemetry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.1); }
.telemetry-item { min-width: 0; padding: 13px 14px; background: rgba(3,12,13,.56); }
.telemetry-item span { display: block; color: rgba(255,255,255,.52); font-size: .67rem; }
.telemetry-item strong { display: block; margin-top: 3px; color: #fff; font-size: .86rem; font-weight: 720; white-space: nowrap; }

/* Seamless ticker: two truly identical groups travel as one loop. */
.ribbon-track { display: flex; align-items: center; width: max-content; min-width: 0; animation: ribbonContinuous 30s linear infinite; will-change: transform; }
.ribbon-group { display: flex; flex: none; align-items: center; }
.ribbon-group span { display: inline-flex; align-items: center; gap: 9px; padding: 15px 28px; white-space: nowrap; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ribbon-group strong { color: var(--text); }
@keyframes ribbonContinuous { to { transform: translate3d(-50%,0,0); } }

/* Principle cards now drive the adjacent image. The photo itself enlarges as a card, not as an internal crop/zoom. */
.principle-card { cursor: default; }
.principle-card.is-active { border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); box-shadow: 0 18px 52px color-mix(in srgb, var(--accent) 12%, transparent); }
.principle-card:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 68%, transparent); outline-offset: 3px; }
.vision-photo { transition: transform .46s var(--ease), box-shadow .46s ease; isolation: isolate; }
.vision-photo:hover { transform: scale(1.075); box-shadow: 0 36px 100px rgba(17,31,28,.18); z-index: 4; }
.vision-photo img { position: absolute; inset: 0; width: 100%; height: 100%; transform: none !important; opacity: 0; transition: opacity .55s ease; }
.vision-photo .vision-scene.is-active { opacity: 1; }
.vision-photo:hover img { transform: none !important; }

/* Scale Lab: explicit numbers and a flat ruler instead of the ambiguous 3D A/B decoration. */
.scale-section { display: block; }
.scale-heading { max-width: 920px; }
.scale-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 790;
}
.scale-heading h2 span { color: var(--muted); font-weight: 590; }
.scale-heading > p:last-child { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.scale-lab { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 20px; margin-top: 58px; }
.scale-controls, .scale-preview { border: 1px solid var(--line); border-radius: 26px; background: var(--surface-solid); box-shadow: var(--shadow-soft); }
.scale-controls { padding: 28px; }
.scale-current { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.scale-current span { color: var(--muted); font-size: .78rem; }
.scale-current strong { font-size: clamp(2.2rem, 4vw, 4rem); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.scale-readout { margin: 20px 0 28px; }
.scale-readout div { min-height: 92px; }
.scale-readout strong, .scale-current strong, .scale-control-row output, .ruler-label strong { font-variant-numeric: tabular-nums; }
.scale-control-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 4px; font-size: .76rem; color: var(--muted); }
.scale-control-row output { color: var(--text); font-weight: 780; }
.scale-slider { height: 26px; margin: 10px 0 12px; }
.scale-presets { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 5px; color: inherit; }
.scale-presets button { min-width: 0; min-height: 32px; padding: 0 4px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: .62rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.scale-presets button:hover { border-color: var(--line-strong); color: var(--text); }
.scale-presets button.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.scale-preview { min-height: 430px; padding: 30px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 7%, var(--surface-solid)), var(--surface-solid)); }
.scale-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 46px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.scale-preview-head strong { color: var(--accent-deep); font-size: .8rem; }
.ruler-block { display: grid; gap: 12px; }
.ruler-label { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.ruler-label span { color: var(--muted); font-size: .77rem; }
.ruler-label strong { font-size: 1.02rem; }
.real-ruler { position: relative; height: 2px; margin: 8px 8px; background: var(--text); opacity: .78; }
.real-ruler i { position: absolute; top: -5px; width: 2px; height: 12px; background: currentColor; }
.real-ruler i:first-child { left: 0; }
.real-ruler i:last-child { right: 0; }
.real-ruler span { position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; border-radius: 50%; transform: translateX(-50%); background: var(--accent); }
.projection-arrow { margin: 24px 0; color: var(--accent-deep); text-align: center; font-size: 1.3rem; }
.minecraft-ruler { position: relative; height: 62px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg-soft); }
.minecraft-ruler span { display: block; width: 100%; height: 100%; border-right: 1px solid var(--accent-deep); background-color: color-mix(in srgb, var(--accent) 26%, transparent); background-image: linear-gradient(90deg, color-mix(in srgb, var(--accent-deep) 32%, transparent) 1px, transparent 1px); background-size: 10px 100%; transition: width .35s var(--ease), background-size .35s var(--ease); }
.scale-note { min-height: 44px; margin: 24px 0 0; color: var(--muted); font-size: .82rem; }

/* Dataset detail has a reserved desktop height, so changing a source cannot push the pipeline around. */
.data-explorer { align-items: start; }
.dataset-chip:hover { transform: none; }
.dataset-detail { height: 360px; min-height: 360px; display: grid; grid-template-rows: auto auto minmax(76px,1fr) auto; overflow: hidden; }
.dataset-detail h3 { margin-top: 20px; }
.dataset-detail > p { margin-top: 14px; }
.dataset-detail dl { align-self: end; }
.detail-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* Clean gallery: one predictable grid, then an explicit View more action. */
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 58px; }
.gallery-grid .gallery-card { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 10; min-height: 0; transition: transform .3s var(--ease), box-shadow .3s ease; }
.gallery-grid .gallery-card img { transform: none !important; filter: none; }
.gallery-grid .gallery-card:hover img, .gallery-grid .gallery-card:focus-visible img { transform: none !important; filter: brightness(.9); }
.gallery-grid .gallery-card.reveal.is-visible:hover, .gallery-grid .gallery-card.reveal.is-visible:focus-visible { transform: translateY(-6px) scale(1.075); box-shadow: var(--shadow); z-index: 6; }
.gallery-grid .gallery-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.gallery-more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; font-size: .86rem; font-weight: 720; transition: transform .2s var(--ease), border-color .2s ease, background .2s ease; }
.gallery-more:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-solid); }
.gallery-more-icon { transition: transform .25s var(--ease); }
.gallery-more[aria-expanded="true"] .gallery-more-icon { transform: rotate(180deg); }

/* Patreon is visually separated from Discord and gets its own branded identity. */
.community-actions { margin-top: 28px; }
.patreon-card { max-width: 560px; margin-top: 14px; display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.035); transition: transform .22s var(--ease), background .22s ease, border-color .22s ease; }
.patreon-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.22); }
.patreon-card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,66,77,.10); }
.patreon-card-icon img { width: 23px; height: 23px; }
.patreon-card-copy { display: grid; }
.patreon-card-copy small { color: rgba(240,247,243,.46); font-size: .58rem; letter-spacing: .12em; font-weight: 800; }
.patreon-card-copy strong { margin-top: 1px; font-size: 1rem; }
.patreon-card-copy > span { color: rgba(240,247,243,.58); font-size: .75rem; }
.patreon-card-arrow { color: rgba(240,247,243,.48); }
.footer-patreon { display: inline-flex; align-items: center; gap: 6px; }
.footer-patreon img { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .scale-lab { grid-template-columns: 1fr; }
  .scale-preview { min-height: 360px; }
  .dataset-detail { height: auto; min-height: 340px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vision-photo:hover { transform: scale(1.025); }
}

@media (max-width: 620px) {
  .telemetry-grid { grid-template-columns: 1fr 1fr; }
  .telemetry-item { padding: 11px 12px; }
  .telemetry-item strong { white-space: normal; }
  .ribbon-group span { padding: 13px 20px; }
  .scale-heading h2 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .scale-controls, .scale-preview { padding: 20px; border-radius: 20px; }
  .scale-current { align-items: center; }
  .scale-current strong { font-size: 2.4rem; }
  .scale-readout { grid-template-columns: 1fr 1fr; }
  .scale-readout div { min-height: 82px; padding: 14px; }
  .scale-readout strong { font-size: 1.05rem; }
  .scale-presets { grid-template-columns: repeat(4,1fr); }
  .scale-presets button { min-height: 34px; font-size: .67rem; }
  .scale-preview { min-height: 330px; }
  .scale-preview-head { margin-bottom: 34px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-card { aspect-ratio: 16 / 10; }
  .patreon-card { grid-template-columns: 42px 1fr auto; }
  .patreon-card-icon { width: 42px; height: 42px; }
}

@media (max-width: 620px) {
  /* Keep dataset switching from moving everything below it on phones as well. */
  .dataset-detail { height: 410px; min-height: 410px; }
}

@media (max-width: 480px) {
  .scale-readout { grid-template-columns: 1fr; }
  .scale-readout div { min-height: 0; }
}


/* ========================= EarthGen v0.9 refinement pass ========================= */
:root {
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.16,1,.3,1);
}
body { transition: background .48s var(--ease), color .42s var(--ease); }
.scroll-progress span { width: 100%; transform: scaleX(0); transform-origin: left center; will-change: transform; }
.site-header { transition: background .46s var(--ease), box-shadow .46s var(--ease), backdrop-filter .46s var(--ease), color .38s var(--ease); }
.button, .dataset-chip, .system-tab, .compat-card, .gallery-more, .support-trigger, .support-option { transition-timing-function: var(--ease); }
.reveal { transform: translate3d(0,26px,0); transition: opacity .72s var(--ease), transform .82s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { transform: translate3d(0,0,0); }

/* Truly gapless development ribbon. JS measures the repeated group in pixels. */
.ribbon-track { animation: none; transform: translate3d(0,0,0); }
.ribbon-track.is-ready { animation: ribbonMeasured 32s linear infinite; }
.ribbon-group { flex: 0 0 auto; justify-content: space-around; }
@keyframes ribbonMeasured { to { transform: translate3d(calc(-1 * var(--ribbon-shift, 100vw)),0,0); } }

/* Overview image: whole-card scale + soft 3D response + glare, no bitmap zoom. */
.vision-photo {
  --vision-rx: 0deg; --vision-ry: 0deg; --shine-x: 50%; --shine-y: 30%;
  cursor: zoom-in; transform: perspective(1200px) rotateX(var(--vision-rx)) rotateY(var(--vision-ry)) scale(1);
  transition: transform .66s var(--ease-spring), box-shadow .66s var(--ease), border-color .5s var(--ease);
  border: 1px solid transparent; will-change: transform;
}
.vision-photo:hover, .vision-photo:focus-visible {
  transform: perspective(1200px) rotateX(var(--vision-rx)) rotateY(var(--vision-ry)) scale(1.065);
  box-shadow: 0 42px 110px rgba(6,20,17,.24);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  outline: none; z-index: 5;
}
.vision-photo::before {
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none; opacity:0;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,255,255,.16), transparent 28%);
  mix-blend-mode: screen; transition: opacity .45s var(--ease);
}
.vision-photo:hover::before, .vision-photo:focus-visible::before { opacity:1; }
.vision-photo img { transform:none !important; transition: opacity .7s var(--ease), filter .7s var(--ease); }
.vision-photo .vision-scene.is-active { opacity:1; }
.vision-expand {
  position:absolute; z-index:4; top:18px; right:18px; width:38px; height:38px; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.2); border-radius:999px; color:#fff; background:rgba(3,10,12,.24);
  backdrop-filter:blur(12px); opacity:.62; transform:translate3d(0,4px,0); transition:opacity .4s var(--ease), transform .5s var(--ease), background .4s var(--ease);
}
.vision-photo:hover .vision-expand, .vision-photo:focus-visible .vision-expand { opacity:1; transform:translate3d(0,0,0); background:rgba(3,10,12,.42); }

/* Scale Lab v2: the old spatial idea, corrected so the projection actually explains scale. */
.scale-preview { min-height: 520px; justify-content: flex-start; overflow:hidden; }
.scale-preview-head { margin-bottom:18px; }
.scale-stage {
  position:relative; height:330px; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:#091515; perspective:1000px; isolation:isolate;
}
.scale-stage::after { content:""; position:absolute; inset:0; z-index:5; pointer-events:none; background:linear-gradient(180deg,rgba(3,10,11,.04),transparent 55%,rgba(3,10,11,.48)); }
.scale-stage-glow { position:absolute; inset:0; background:radial-gradient(circle at 72% 20%,rgba(99,225,151,.26),transparent 28%),linear-gradient(145deg,rgba(255,255,255,.04),transparent 60%); }
.earth-grid-v2 {
  --grid-size:8px; position:absolute; inset:-48%; z-index:1;
  background-image:linear-gradient(rgba(138,246,180,.24) 1px,transparent 1px),linear-gradient(90deg,rgba(138,246,180,.24) 1px,transparent 1px);
  background-size:var(--grid-size) var(--grid-size); transform:rotateX(61deg) rotateZ(-14deg) translateY(24%); transform-origin:center;
  mask-image:radial-gradient(ellipse at center,#000 22%,rgba(0,0,0,.88) 48%,transparent 72%);
  transition:background-size .78s var(--ease-spring); will-change:background-size;
}
.grid-marker-v2 { position:absolute; z-index:4; top:61%; width:16px; height:16px; margin:-8px 0 0 -8px; border:2px solid #b6f8cf; border-radius:50%; box-shadow:0 0 24px rgba(182,248,207,.56); transition:left .76s var(--ease-spring); }
.grid-marker-v2::before { content:""; position:absolute; inset:3px; border-radius:50%; background:#86efad; }
.grid-marker-v2 span { position:absolute; left:20px; top:-4px; color:#e5ffed; font-size:.66rem; font-weight:800; letter-spacing:.12em; }
.marker-a-v2 { left:20%; } .marker-b-v2 { left:78%; }
.scale-line-v2 { position:absolute; z-index:3; left:20%; top:61%; width:58%; height:1px; background:linear-gradient(90deg,#c5fbd7,rgba(197,251,215,.28)); transform:rotate(-10deg); transform-origin:left center; transition:width .76s var(--ease-spring); }
.scale-line-v2::before,.scale-line-v2::after { content:""; position:absolute; top:-4px; width:1px; height:9px; background:#c5fbd7; }
.scale-line-v2::before{left:0}.scale-line-v2::after{right:0}
.scale-line-v2 span { position:absolute; left:50%; top:-27px; transform:translateX(-50%); color:rgba(229,255,237,.82); font-size:.66rem; font-weight:700; letter-spacing:.08em; white-space:nowrap; }
.scale-cell-note { position:absolute; z-index:6; left:16px; bottom:15px; display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid rgba(255,255,255,.13); border-radius:999px; color:rgba(236,255,243,.66); background:rgba(3,10,12,.28); backdrop-filter:blur(10px); font-size:.63rem; }
.scale-cell-note i { width:8px; height:8px; border:1px solid #8befb0; }
.scale-orbit-v2 { position:absolute; z-index:2; width:260px; height:260px; right:-78px; top:-80px; border:1px solid rgba(155,244,188,.14); border-radius:50%; }
.scale-orbit-v2::before { content:""; position:absolute; width:6px; height:6px; left:50%; top:-3px; border-radius:50%; background:#aef7c8; box-shadow:0 0 18px #aef7c8; animation:orbit 11s linear infinite; transform-origin:0 133px; }
.scale-projection-summary { display:grid; grid-template-columns:1fr auto 1fr; gap:16px; align-items:center; margin-top:20px; padding:15px 2px 0; }
.scale-projection-summary > div { display:grid; gap:2px; }
.scale-projection-summary > div:last-child { text-align:right; }
.scale-projection-summary span { color:var(--muted); font-size:.72rem; }
.scale-projection-summary strong { font-size:.96rem; font-variant-numeric:tabular-nums; }
.scale-summary-arrow { color:var(--accent-deep) !important; font-size:1.1rem !important; }
.scale-note { margin-top:14px; min-height:40px; }

/* Data explorer: fill the left column with useful architecture rather than decorative empty space. */
.data-explorer { grid-template-columns:minmax(0,1fr) 460px; gap:30px; }
.data-source-column { min-width:0; display:flex; flex-direction:column; gap:28px; }
.source-priority { margin-top:auto; padding:22px; border:1px solid var(--line); border-radius:22px; background:color-mix(in srgb,var(--surface-solid) 90%,transparent); box-shadow:var(--shadow-soft); }
.source-priority-head { display:flex; justify-content:space-between; gap:18px; align-items:center; padding-bottom:15px; border-bottom:1px solid var(--line); }
.source-priority-head span { color:var(--muted); font-size:.66rem; letter-spacing:.13em; font-weight:800; }
.source-priority-head strong { color:var(--accent-deep); font-size:.64rem; letter-spacing:.08em; text-align:right; }
.source-priority-flow { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:12px; align-items:stretch; margin-top:18px; }
.source-priority-flow > div { min-width:0; padding:14px; border:1px solid var(--line); border-radius:15px; background:var(--surface); }
.source-priority-flow > div > span { display:block; color:var(--accent-deep); font-size:.62rem; font-weight:850; letter-spacing:.1em; }
.source-priority-flow strong { display:block; margin-top:5px; font-size:.78rem; line-height:1.25; }
.source-priority-flow small { display:block; margin-top:6px; color:var(--muted); font-size:.67rem; line-height:1.35; }
.source-priority-flow > i { align-self:center; color:var(--accent-deep); font-style:normal; opacity:.7; }
.runtime-badge { display:flex; align-items:center; gap:9px; margin-top:16px; color:var(--muted); font-size:.61rem; letter-spacing:.08em; }
.runtime-badge span { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 12%,transparent); }
.dataset-detail { height:448px; min-height:448px; grid-template-rows:auto auto minmax(82px,1fr) auto; padding:28px; }
.dataset-detail dl { gap:7px; }
.dataset-detail dl div { padding-top:9px; }

/* Current Patreon mark: recognizable current P symbol on a neutral tile. */
.patreon-icon, .patreon-card-icon { color:#000; background:#fff; }
.patreon-icon img { width:18px; height:18px; }
.patreon-card-icon { border:1px solid rgba(255,255,255,.14); }
.patreon-card-icon img { width:21px; height:21px; }
.footer-patreon img { width:14px; height:14px; padding:2px; border-radius:4px; background:#fff; }

/* Small motion polish: avoid abrupt display changes where possible. */
.system-image { transition:opacity .82s var(--ease), transform 1.15s var(--ease-spring), filter .8s var(--ease); }
.system-copy { animation:systemCopyV09 .64s var(--ease) both; }
@keyframes systemCopyV09 { from { opacity:0; transform:translate3d(0,12px,0); } to { opacity:1; transform:translate3d(0,0,0); } }
.gallery-grid .gallery-card { transition:transform .52s var(--ease-spring), box-shadow .52s var(--ease), opacity .45s var(--ease); }
.gallery-more { transition:transform .42s var(--ease-spring), border-color .38s var(--ease), background .38s var(--ease); }
.support-popover { transform-origin:top right; }

@media (max-width: 1100px) {
  .data-explorer { grid-template-columns:1fr; }
  .dataset-detail { height:auto; min-height:410px; }
  .source-priority { margin-top:0; }
}
@media (max-width: 760px) {
  .scale-preview { min-height:0; }
  .scale-stage { height:285px; }
  .scale-projection-summary { grid-template-columns:1fr auto 1fr; }
  .source-priority-flow { grid-template-columns:1fr; }
  .source-priority-flow > i { transform:rotate(90deg); justify-self:center; }
  .source-priority-head { align-items:flex-start; flex-direction:column; gap:5px; }
  .source-priority-head strong { text-align:left; }
}
@media (max-width: 620px) {
  .vision-photo:hover, .vision-photo:focus-visible { transform:perspective(1200px) rotateX(var(--vision-rx)) rotateY(var(--vision-ry)) scale(1.02); }
  .dataset-detail { height:auto; min-height:430px; }
  .scale-stage { height:250px; }
  .scale-line-v2 span { top:-25px; font-size:.59rem; }
  .scale-cell-note { max-width:calc(100% - 30px); white-space:normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track.is-ready { animation:none !important; }
  .vision-photo { transform:none !important; }
}

/* Prevent localized headings from forcing grid tracks wider than the viewport. */
.hero-intro, .hero-telemetry, .vision-layout > *, .scale-lab > *, .data-explorer > * { min-width: 0; }
@media (max-width:620px) {
  .hero h1 { font-size: clamp(2.9rem, 13.4vw, 4.6rem); hyphens:auto; }
}

.scale-controls { display:flex; flex-direction:column; }
.scale-model-note { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:auto; padding-top:24px; }
.scale-model-note > div { padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--bg-soft); }
.scale-model-note span { display:block; color:var(--accent-deep); font-size:.58rem; letter-spacing:.1em; font-weight:820; }
.scale-model-note strong { display:block; margin-top:5px; font-size:.75rem; line-height:1.35; font-weight:680; }
@media (max-width:620px) { .scale-model-note { grid-template-columns:1fr; margin-top:22px; padding-top:0; } }


/* v0.9 final stability polish */
html { overflow-x: hidden; }
.compat-card { transition: transform .48s var(--ease-spring), border-color .38s var(--ease), box-shadow .48s var(--ease), background .38s var(--ease); }
@media (max-width: 620px) {
  .dataset-detail { height: 520px; min-height: 520px; }
}
