/* Self-hosted, subsetted variable fonts. Licenses live in assets/fonts/licenses/. */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/fonts/noto-sans-sc-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("assets/fonts/noto-serif-sc-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Worldweave — official site
   Dark, woven, a little editorial.
   ========================================================= */

:root {
  --bg: #070c0a;
  --bg-soft: #0a1210;
  --bg-deep: #050907;
  --text: #edf7ef;
  --muted: #9db3a5;
  --muted-2: #6e8477;
  --line: rgba(188, 239, 211, 0.13);
  --line-strong: rgba(188, 239, 211, 0.24);
  --mint: #49e6a6;
  --mint-soft: #b9ffdf;
  --cyan: #45bdec;
  --amber: #f2b968;
  --coral: #ee8568;
  --cream: #f3efe3;
  --cream-deep: #e9e2d2;
  --ink: #111913;
  --ink-muted: #5d6d62;
  --ink-line: rgba(17, 25, 19, 0.14);
  --glass-bg: rgba(9, 18, 14, 0.56);
  --glass-bg-strong: rgba(9, 18, 14, 0.82);
  --glass-border: rgba(190, 246, 216, 0.16);
  --glass-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.88);
  --card-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.012) 60%, rgba(255, 255, 255, 0.025));
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --max: 1240px;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(73, 230, 166, 0.28);
  color: #ffffff;
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

.wrap {
  width: min(var(--max), calc(100% - max(24px, env(safe-area-inset-left)) - max(24px, env(safe-area-inset-right))));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient i {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.5;
  transform: translateZ(0);
  will-change: transform;
  animation: ambientFloat 26s ease-in-out infinite alternate;
}

.ambient i:nth-child(1) {
  width: 52vw;
  height: 52vw;
  left: -14vw;
  top: -16vw;
  background: radial-gradient(circle, rgba(73, 230, 166, 0.32), transparent 66%);
}

.ambient i:nth-child(2) {
  width: 46vw;
  height: 46vw;
  right: -12vw;
  top: 6vh;
  background: radial-gradient(circle, rgba(69, 189, 236, 0.24), transparent 66%);
  animation-delay: -8s;
}

.ambient i:nth-child(3) {
  width: 44vw;
  height: 44vw;
  left: 26vw;
  top: 42vh;
  background: radial-gradient(circle, rgba(242, 185, 104, 0.14), transparent 66%);
  animation-delay: -15s;
}

.ambient i:nth-child(4) {
  width: 38vw;
  height: 38vw;
  right: 4vw;
  bottom: -14vw;
  background: radial-gradient(circle, rgba(73, 230, 166, 0.16), transparent 66%);
  animation-delay: -20s;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

@keyframes ambientFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(5vw, -4vh, 0) scale(1.14); }
}


.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--amber));
  pointer-events: none;
}

html.theme-transition,
html.theme-transition * {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease !important;
}

/* ---------- shared type ---------- */

.eyebrow,
.kicker,
.section-rail,
.arch-kicker,
.roadmap-status,
.chrome-live,
.time-corner {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--mint);
  margin-bottom: 18px;
}

.section-rail {
  color: var(--muted-2);
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 260px;
  gap: 42px;
  align-items: start;
  margin-bottom: 66px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.3vw, 4.05rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-aside {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 280px;
  align-self: end;
}

.section {
  position: relative;
  padding: 134px 0;
}

.section[id] {
  scroll-margin-top: -30px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  width: fit-content;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.section-link:hover {
  color: var(--mint);
  border-color: var(--mint);
}

/* ---------- reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(44px) scale(0.985);
  transition:
    opacity 0.95s var(--ease) var(--d, 0s),
    transform 0.95s var(--ease) var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s ease;
}

.header-inner {
  width: min(var(--max), calc(100% - max(24px, env(safe-area-inset-left)) - max(24px, env(safe-area-inset-right))));
  margin: 14px auto 0;
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  transition: background 0.35s ease, min-height 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled .header-inner {
  background: var(--glass-bg-strong);
  min-height: 58px;
  border-color: var(--line-strong);
}

.site-header.is-scrolling .header-inner {
  background: var(--glass-bg-strong);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.is-scrolling .ambient i,
html.is-scrolling .aurora,
html.is-scrolling .float-chip,
html.is-scrolling .marquee-track,
html.is-scrolling .serif-accent {
  animation-play-state: paused;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 14px rgba(73, 230, 166, 0.22));
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Space Grotesk", var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

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

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

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 12.5px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.github-link:hover {
  border-color: rgba(73, 230, 166, 0.5);
  background: rgba(73, 230, 166, 0.07);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -18px rgba(73, 230, 166, 0.6);
}

.github-link:hover .star-mark {
  transform: rotate(72deg) scale(1.15);
}

.star-mark {
  color: var(--amber);
  font-size: 12px;
  transition: transform 0.35s var(--ease);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.theme-icon {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  transition: transform 0.45s var(--ease);
}

.theme-toggle:hover .theme-icon {
  transform: rotate(18deg);
}

.theme-moon {
  display: none;
}

:root[data-theme="dark"] .theme-sun {
  display: none;
}

:root[data-theme="dark"] .theme-moon {
  display: grid;
}

.theme-label {
  font-size: 11px;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 22px;
}

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

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

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.5) 48%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px) scale(1.012);
}

.btn:hover::before {
  transform: translateX(130%);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn svg,
.btn-arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--mint-soft), var(--mint) 48%, #5fd7ed);
  color: #06110b;
  box-shadow: 0 14px 34px -14px rgba(73, 230, 166, 0.65);
}

.btn-primary:hover {
  box-shadow: 0 24px 52px -16px rgba(73, 230, 166, 0.8);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(73, 230, 166, 0.45);
  background: rgba(73, 230, 166, 0.06);
  box-shadow: 0 16px 34px -24px rgba(73, 230, 166, 0.5);
}

.btn-arrow {
  color: var(--mint);
  font-size: 15px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: auto;
  padding: 150px 0 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .hero {
    min-height: 100svh;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(190, 255, 220, 0.18) 1px, transparent 1.2px);
  background-size: 38px 38px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse at 60% 34%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 34%, #000 0%, transparent 68%);
}

.weave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 72%, transparent 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  opacity: 0.28;
  transform: translateZ(0);
  will-change: transform;
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

.aurora-a {
  width: 52vw;
  height: 40vw;
  left: -10vw;
  top: 4vw;
  background: radial-gradient(circle, rgba(73, 230, 166, 0.55), transparent 65%);
}

.aurora-b {
  width: 46vw;
  height: 36vw;
  right: -8vw;
  top: 2vw;
  background: radial-gradient(circle, rgba(69, 189, 236, 0.44), transparent 65%);
  animation-delay: -7s;
}

.aurora-c {
  width: 40vw;
  height: 28vw;
  left: 34vw;
  bottom: -12vw;
  background: radial-gradient(circle, rgba(242, 185, 104, 0.21), transparent 65%);
  animation-delay: -12s;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 12, 10, 0.08) 0%, rgba(7, 12, 10, 0) 42%, rgba(7, 12, 10, 0.86) 96%),
    radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(7, 12, 10, 0.28) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 54px;
  align-items: center;
  flex: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 28px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(73, 230, 166, 0.1), 0 0 18px rgba(73, 230, 166, 0.65);
  animation: pulseDot 3s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(3.35rem, 5.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 780px;
  white-space: nowrap;
}

.serif-accent {
  font-family: var(--serif);
  font-size: 1.04em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.05em;
  background: linear-gradient(100deg, #eafff4 0%, var(--mint) 46%, var(--cyan) 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
  animation: gradientShift 9s ease-in-out infinite alternate;
}

.lede {
  max-width: 560px;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 36px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.hero-meta span {
  position: relative;
  padding-right: 24px;
}

.hero-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  transform: translateY(-50%);
  background: var(--line-strong);
}

.hero-meta b {
  color: var(--text);
  font-weight: 500;
}

.hero-stage {
  position: relative;
  perspective: 1150px;
  min-width: 0;
}

.stage-halo {
  position: absolute;
  inset: -12% -10%;
  background:
    radial-gradient(ellipse at 58% 38%, rgba(73, 230, 166, 0.2), transparent 58%),
    radial-gradient(ellipse at 80% 82%, rgba(69, 189, 236, 0.14), transparent 55%);
  filter: blur(30px);
  pointer-events: none;
}

.world-frame {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(191, 245, 217, 0.2);
  border-radius: 19px;
  background: #0b1310;
  box-shadow:
    0 60px 110px -38px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 90px -30px rgba(73, 230, 166, 0.22);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.24s var(--ease), box-shadow 0.4s ease;
  will-change: transform;
  overflow: visible;
}

.world-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 19px;
  background: radial-gradient(380px circle at var(--gx, 62%) var(--gy, 18%), rgba(255, 255, 255, 0.34), transparent 48%);
  opacity: 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.world-frame:hover::after {
  opacity: 1;
}

.frame-chrome,
.gallery-chrome,
.terminal-chrome {
  height: 37px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(191, 245, 217, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.frame-chrome {
  border-radius: 18px 18px 0 0;
}

.chrome-dots {
  display: inline-flex;
  gap: 5px;
}

.chrome-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(226, 255, 238, 0.22);
}

.chrome-dots i:first-child {
  background: rgba(238, 133, 104, 0.72);
}

.chrome-dots i:nth-child(2) {
  background: rgba(242, 185, 104, 0.72);
}

.chrome-dots i:nth-child(3) {
  background: rgba(73, 230, 166, 0.72);
}

.chrome-url {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}

.chrome-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}

.chrome-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

.frame-screen {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: #c9d9cf;
}

.frame-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.screen-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 12, 9, 0.04), transparent 34%, rgba(6, 12, 9, 0.14)),
    radial-gradient(ellipse at 50% 100%, rgba(73, 230, 166, 0.12), transparent 55%);
  pointer-events: none;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(199, 248, 220, 0.18);
  border-radius: 13px;
  background: rgba(8, 17, 13, 0.82);
  box-shadow: 0 18px 42px -22px rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: floatChip 7s ease-in-out infinite;
  white-space: nowrap;
}

.float-chip small {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.float-chip b {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.float-chip em {
  align-self: flex-end;
  color: var(--muted-2);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.chip-time {
  top: -52px;
  left: -22px;
  animation-delay: -1.5s;
}

.chip-world {
  left: -34px;
  bottom: 42px;
  animation-delay: -3s;
}

.chip-ai {
  right: -26px;
  bottom: -26px;
  animation-delay: -5s;
}

.chip-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.sun-icon {
  background: radial-gradient(circle at 36% 36%, #fff5ca, #ffc45e 48%, #e98343 72%, transparent 73%);
  box-shadow: 0 0 22px rgba(242, 185, 104, 0.48);
}

.chip-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(73, 230, 166, 0.1), 0 0 16px rgba(73, 230, 166, 0.55);
}

.ai-spark {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(73, 230, 166, 0.1);
  color: var(--mint);
  font-size: 12px;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 42px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.scroll-cue:hover {
  color: var(--mint);
}

.scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--mint));
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 1px;
  height: 100%;
  background: var(--mint);
  animation: scrollLine 2.4s ease-in-out infinite;
}

.hero-coord {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  padding: 17px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  animation: marqueeRun 42s linear infinite;
}

.marquee span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.marquee i {
  color: var(--mint);
  font-style: normal;
  font-size: 9px;
  opacity: 0.7;
}

/* ---------- paper sections ---------- */

.paper {
  --text: var(--ink);
  --muted: var(--ink-muted);
  --muted-2: #7c8a80;
  --line: var(--ink-line);
  --line-strong: rgba(17, 25, 19, 0.24);
  --mint: #167a52;
  --cyan: #0e7094;
  background: var(--cream);
  color: var(--ink);
}

.paper .eyebrow {
  color: #167a52;
}

/* ---------- manifesto ---------- */

.manifesto {
  overflow: hidden;
}

.manifesto::before {
  content: "WORLDWEAVE";
  position: absolute;
  top: 26px;
  right: -2vw;
  font-family: "Space Grotesk", var(--sans);
  font-size: clamp(9rem, 22vw, 20rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(17, 25, 19, 0.035);
  pointer-events: none;
  white-space: nowrap;
}

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

.manifesto h2 {
  max-width: 1000px;
}

.manifesto h2 span {
  color: #52635a;
}

.manifesto h2 em {
  font-style: normal;
  color: var(--ink);
  position: relative;
  z-index: 0;
}

.manifesto h2 em::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.08em;
  height: 0.22em;
  background: linear-gradient(90deg, rgba(73, 230, 166, 0.42), rgba(69, 189, 236, 0.3));
  z-index: -1;
  border-radius: 2px;
}

.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-left: 222px;
  max-width: 900px;
}

.manifesto-lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.65;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.manifesto-note {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.95;
}

.manifesto-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-top: 78px;
  padding-top: 38px;
  border-top: 1px solid var(--ink-line);
}

.manifesto-facts article {
  min-width: 0;
}

.fact-no {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #167a52;
  margin-bottom: 18px;
}

.manifesto-facts h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.manifesto-facts p {
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.manifesto-end {
  margin-top: 72px;
  color: #7c8a80;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- features / bento ---------- */

.features {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(69, 189, 236, 0.07), transparent 45%),
    radial-gradient(ellipse at 8% 36%, rgba(73, 230, 166, 0.055), transparent 42%);
}

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

.bento-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 27px;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: 0 24px 50px -40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(73, 230, 166, 0.12), transparent 58%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(73, 230, 166, 0.27);
  box-shadow: 0 34px 60px -42px rgba(0, 0, 0, 0.75);
}

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

.card-plot {
  grid-column: span 7;
  min-height: 388px;
}

.card-ai {
  grid-column: span 5;
  min-height: 388px;
}

.card-source {
  grid-column: span 12;
  min-height: 218px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-right: 44px;
}

.card-source .card-head {
  grid-column: 1;
}

.card-source h3,
.card-source p,
.card-source .card-link {
  grid-column: 1;
}

.source-mark {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
  font-family: "Space Grotesk", var(--sans);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.8;
  font-weight: 600;
  letter-spacing: -0.1em;
  background: linear-gradient(135deg, rgba(185, 255, 223, 0.18), rgba(69, 189, 236, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(73, 230, 166, 0.2);
  background: rgba(73, 230, 166, 0.075);
  color: var(--mint);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.card-index {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
}

.bento-card h3 {
  position: relative;
  z-index: 1;
  font-size: 21px;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bento-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  flex: 1;
}

.tag-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin-top: 2px;
}

.tag-row li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.card-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 12px;
  border-bottom: 1px solid rgba(73, 230, 166, 0.28);
  padding-bottom: 3px;
  transition: gap 0.25s ease;
}

.card-link:hover {
  gap: 12px;
}

.card-visual {
  position: relative;
  height: 155px;
  margin: 2px 0 4px;
  border: 1px solid rgba(188, 239, 211, 0.08);
  border-radius: 15px;
  overflow: hidden;
  background: #07100c;
}

/* plot visual */

.plot-visual {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(69, 189, 236, 0.14), transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(73, 230, 166, 0.13), transparent 58%),
    #08120d;
}

.plot-grid {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 290px;
  height: 210px;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-38deg);
  background:
    linear-gradient(rgba(73, 230, 166, 0.2) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(73, 230, 166, 0.2) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(135deg, rgba(73, 230, 166, 0.08), rgba(69, 189, 236, 0.035));
  border: 1px solid rgba(73, 230, 166, 0.26);
  box-shadow: 0 0 40px rgba(73, 230, 166, 0.09);
}

.plot-road {
  position: absolute;
  left: 24%;
  top: 63%;
  width: 165px;
  height: 17px;
  background: linear-gradient(90deg, #1c2b23, #2d4137);
  border: 1px solid rgba(189, 247, 215, 0.2);
  border-radius: 3px;
  transform: rotate(-26deg) skewX(-24deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.plot-road::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  border-top: 1px dashed rgba(242, 185, 104, 0.72);
  transform: translateY(-50%);
}

.plot-block {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  border: 1px solid rgba(205, 255, 225, 0.28);
  background: linear-gradient(145deg, #7eddb4, #2f8d69);
  transform: rotateX(58deg) rotateZ(-38deg);
  box-shadow:
    10px 10px 0 -2px rgba(22, 62, 45, 0.9),
    16px 16px 28px rgba(0, 0, 0, 0.3);
}

.block-a {
  left: 34%;
  top: 34%;
  width: 50px;
  height: 50px;
}

.block-b {
  left: 54%;
  top: 48%;
  width: 34px;
  height: 34px;
  background: linear-gradient(145deg, #a1e8da, #3c948d);
}

.block-c {
  left: 21%;
  top: 53%;
  width: 29px;
  height: 29px;
  background: linear-gradient(145deg, #f0c07b, #a8653e);
}

.plot-label {
  position: absolute;
  left: 12px;
  bottom: 9px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

/* ai visual */

.ai-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0.52;
  transform: scale(1.35);
  transform-origin: 20% 15%;
  filter: saturate(0.7) contrast(1.05);
  mask-image: linear-gradient(135deg, #000 20%, transparent 82%);
  -webkit-mask-image: linear-gradient(135deg, #000 20%, transparent 82%);
}

.ai-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 26%;
  background: linear-gradient(to bottom, transparent, rgba(73, 230, 166, 0.24), transparent);
  animation: scan 5s linear infinite;
  pointer-events: none;
}

.ai-console {
  position: absolute;
  left: 12px;
  bottom: 11px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.ai-console span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(73, 230, 166, 0.18);
  border-radius: 999px;
  background: rgba(7, 16, 12, 0.74);
  color: #b6d8c5;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.ai-console i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
}

/* time orb */

.time-orb {
  position: relative;
  height: 136px;
  margin: -8px 0 0;
  display: grid;
  place-items: center;
}

.orb-sun {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff4ca, #ffc15c 42%, #ea8750 70%, rgba(234, 135, 80, 0));
  box-shadow: 0 0 48px rgba(242, 185, 104, 0.38), 0 0 110px rgba(238, 133, 104, 0.2);
}

.orb-ring {
  position: absolute;
  border: 1px solid rgba(242, 185, 104, 0.2);
  border-radius: 50%;
}

.ring-a {
  width: 118px;
  height: 118px;
}

.ring-b {
  width: 158px;
  height: 158px;
  border-style: dashed;
  opacity: 0.55;
  animation: spin 34s linear infinite;
}

.orb-label {
  position: absolute;
  right: 8%;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.08em;
}

/* publish flow */

.publish-flow {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 80px;
  padding: 0 4px;
}

.flow-node {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.02);
}

.flow-node.active {
  border-color: rgba(242, 185, 104, 0.45);
  color: var(--amber);
  background: rgba(242, 185, 104, 0.07);
}

.flow-node.done {
  border-color: rgba(73, 230, 166, 0.42);
  color: var(--mint);
  background: rgba(73, 230, 166, 0.07);
}

.flow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(73, 230, 166, 0.4));
}

/* team stack */

.team-stack {
  display: flex;
  align-items: center;
  height: 80px;
  position: relative;
  padding-left: 4px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: #06110b;
  border: 3px solid var(--bg);
  margin-left: -11px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-a {
  background: linear-gradient(135deg, #b9ffdf, #49e6a6);
}

.avatar-b {
  background: linear-gradient(135deg, #a9dff7, #45bdec);
}

.avatar-c {
  background: linear-gradient(135deg, #ffdca0, #f2b968);
}

.team-role {
  position: absolute;
  right: 2px;
  top: 7px;
  padding: 4px 7px;
  border: 1px solid rgba(242, 185, 104, 0.35);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.team-role.member {
  top: 45px;
  border-color: rgba(73, 230, 166, 0.3);
  color: var(--mint);
}

/* ---------- world time ---------- */

.worldtime {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(242, 185, 104, 0.06), transparent 48%),
    radial-gradient(ellipse at 12% 20%, rgba(73, 230, 166, 0.04), transparent 40%);
}

.time-shell {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 31px;
  background: rgba(255, 255, 255, 0.018);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.85);
}

.time-stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  aspect-ratio: 16 / 8.6;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: #0a1210;
}

.sky-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.sky-dawn {
  background: linear-gradient(180deg, #1a2740 0%, #4d5472 30%, #b4757b 56%, #efad83 76%, #f7d9a8 100%);
}

.sky-noon {
  background: linear-gradient(180deg, #2b83ba 0%, #62b2d7 36%, #b7e0e9 68%, #e9f2dd 100%);
}

.sky-dusk {
  background: linear-gradient(180deg, #251e47 0%, #57376b 28%, #a84e68 52%, #e7785b 73%, #f4be7d 100%);
}

.sky-night {
  background: linear-gradient(180deg, #030713 0%, #071127 38%, #0c2038 72%, #112d3b 100%);
}

.time-stage[data-phase="dawn"] .sky-dawn,
.time-stage[data-phase="noon"] .sky-noon,
.time-stage[data-phase="dusk"] .sky-dusk,
.time-stage[data-phase="night"] .sky-night {
  opacity: 1;
}

.star-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 28% 32%, rgba(255, 255, 255, 0.62), transparent),
    radial-gradient(1px 1px at 44% 12%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 61% 26%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 72% 8%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 84% 22%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 91% 14%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 18% 8%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 53% 6%, rgba(255, 255, 255, 0.62), transparent);
  opacity: 0;
  transition: opacity 1.4s ease;
}

.time-stage[data-phase="night"] .star-field {
  opacity: 1;
}

.time-stage[data-phase="dawn"] .star-field {
  opacity: 0.22;
}

.time-stage[data-phase="dusk"] .star-field {
  opacity: 0.16;
}

.cloud {
  position: absolute;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(6px);
  animation: cloudDrift 26s linear infinite;
}

.cloud-a {
  width: 22%;
  left: -6%;
  top: 23%;
}

.cloud-b {
  width: 16%;
  left: 48%;
  top: 15%;
  opacity: 0.7;
  animation-duration: 34s;
  animation-delay: -12s;
}

.celestial {
  position: absolute;
  left: 72%;
  top: 40%;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fff7d8, #ffd27f 42%, #f19a5b 68%, rgba(241, 154, 91, 0));
  box-shadow: 0 0 72px 24px rgba(242, 185, 104, 0.38), 0 0 160px 60px rgba(238, 133, 104, 0.18);
  transition: left 1.4s var(--ease), top 1.4s var(--ease), width 1.4s var(--ease), height 1.4s var(--ease), background 1.4s ease, box-shadow 1.4s ease;
  z-index: 1;
}

.time-stage[data-phase="dawn"] .celestial {
  left: 19%;
  top: 47%;
  width: 74px;
  height: 74px;
  background: radial-gradient(circle at 36% 34%, #fff2cf, #ffc27b 44%, #ee8568 70%, rgba(238, 133, 104, 0));
  box-shadow: 0 0 62px 20px rgba(238, 133, 104, 0.3), 0 0 140px 48px rgba(242, 185, 104, 0.14);
}

.time-stage[data-phase="noon"] .celestial {
  left: 56%;
  top: 11%;
  width: 76px;
  height: 76px;
  background: radial-gradient(circle at 36% 34%, #ffffff, #fff6c8 44%, #ffd979 72%, rgba(255, 217, 121, 0));
  box-shadow: 0 0 70px 26px rgba(255, 246, 200, 0.45), 0 0 150px 62px rgba(255, 232, 160, 0.16);
}

.time-stage[data-phase="night"] .celestial {
  left: 63%;
  top: 16%;
  width: 56px;
  height: 56px;
  background: radial-gradient(circle at 38% 34%, #ffffff, #dfeaf8 45%, #b7cce6 72%, rgba(183, 204, 230, 0));
  box-shadow: 0 0 42px 14px rgba(220, 235, 255, 0.28), 0 0 110px 46px rgba(120, 165, 220, 0.1);
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16%;
  height: 39%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.15%;
  padding: 0 4%;
  z-index: 3;
}

.skyline i {
  display: block;
  width: var(--w);
  height: var(--h);
  min-width: 12px;
  background: linear-gradient(180deg, rgba(7, 13, 11, 0.98), rgba(5, 9, 8, 0.92));
  border-top: 1px solid rgba(73, 230, 166, 0.16);
  position: relative;
}

.skyline i::after {
  content: "";
  position: absolute;
  inset: 14% 20% 18%;
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(242, 185, 104, 0.24) 6px 8px),
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(242, 185, 104, 0.16) 8px 10px);
  opacity: 0.5;
  transition: opacity 1.2s ease;
}

.time-stage[data-phase="night"] .skyline i::after {
  opacity: 1;
}

.time-stage[data-phase="noon"] .skyline i {
  background: linear-gradient(180deg, rgba(35, 58, 52, 0.92), rgba(15, 28, 24, 0.9));
}

.time-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(7, 14, 11, 0.9), #050907);
  z-index: 4;
  overflow: hidden;
}

.time-grid {
  position: absolute;
  left: -30%;
  right: -30%;
  top: -150%;
  height: 300%;
  transform: perspective(280px) rotateX(62deg);
  background:
    linear-gradient(rgba(73, 230, 166, 0.16) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(73, 230, 166, 0.16) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 76%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 76%, transparent);
  opacity: 0.65;
}

.time-hud {
  position: absolute;
  z-index: 7;
  left: 25px;
  top: 24px;
  display: grid;
  gap: 3px;
  padding: 15px 18px;
  border: 1px solid rgba(201, 247, 222, 0.18);
  border-radius: 15px;
  background: rgba(7, 15, 12, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 172px;
}

.hud-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a4c2b2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.time-hud strong {
  font-family: "Space Grotesk", var(--sans);
  font-size: 33px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #f4fbf6;
  font-variant-numeric: tabular-nums;
}

.time-hud > span:last-child {
  color: rgba(225, 245, 233, 0.66);
  font-size: 10.5px;
}

.time-corner {
  position: absolute;
  right: 24px;
  top: 25px;
  z-index: 7;
  color: rgba(226, 246, 235, 0.55);
  font-size: 8px;
}

.time-corner b {
  color: var(--amber);
  font-weight: 500;
}

.time-caption {
  position: absolute;
  left: 25px;
  bottom: 17px;
  z-index: 7;
  color: rgba(212, 235, 222, 0.46);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.time-controls {
  display: flex;
  align-items: stretch;
  gap: 9px;
  padding: 13px 3px 2px;
}

.time-controls button {
  flex: 1;
  min-width: 118px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.time-controls button:hover {
  border-color: rgba(73, 230, 166, 0.3);
  background: rgba(255, 255, 255, 0.025);
  transform: translateY(-2px);
}

.time-controls button:active {
  transform: translateY(0) scale(0.99);
}

.time-controls button[aria-pressed="true"] {
  border-color: rgba(73, 230, 166, 0.48);
  background: rgba(73, 230, 166, 0.075);
  box-shadow: 0 12px 26px -22px rgba(73, 230, 166, 0.65);
}

.swatch {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.swatch-dawn {
  background: linear-gradient(135deg, #4d5472, #efad83);
}

.swatch-noon {
  background: linear-gradient(135deg, #62b2d7, #e9f2dd);
}

.swatch-dusk {
  background: linear-gradient(135deg, #57376b, #f4be7d);
}

.swatch-night {
  background: linear-gradient(135deg, #071127, #44578a);
}

.time-controls b {
  display: block;
  font-family: "Space Grotesk", var(--sans);
  font-size: 12.5px;
  font-weight: 500;
}

.time-controls small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}

.time-note {
  flex: 0 1 310px;
  align-self: center;
  padding-left: 14px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
}

/* ---------- workflow ---------- */

.workflow {
  background: rgba(255, 255, 255, 0.012);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.flow-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 292px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.flow-list li:hover {
  transform: translateY(-4px);
  border-color: rgba(73, 230, 166, 0.28);
}

.flow-no {
  font-family: "Space Grotesk", var(--sans);
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
  color: rgba(73, 230, 166, 0.86);
  letter-spacing: -0.04em;
}

.flow-copy h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 9px;
}

.flow-copy p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.flow-visual {
  margin-top: auto;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: #08100d;
}

.flow-visual-grid {
  background:
    linear-gradient(rgba(73, 230, 166, 0.16) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(73, 230, 166, 0.16) 1px, transparent 1px) 0 0 / 22px 22px;
}

.flow-visual-grid::after {
  content: "";
  position: absolute;
  inset: 17px 30%;
  border: 1px solid rgba(73, 230, 166, 0.48);
  background: rgba(73, 230, 166, 0.08);
  box-shadow: 0 0 22px rgba(73, 230, 166, 0.12);
}

.flow-visual-road {
  background:
    linear-gradient(115deg, transparent 36%, rgba(73, 230, 166, 0.08) 36.5%, rgba(73, 230, 166, 0.08) 64%, transparent 64.5%),
    linear-gradient(115deg, transparent 46%, rgba(242, 185, 104, 0.5) 46.3%, rgba(242, 185, 104, 0.5) 53.7%, transparent 54%),
    #08100d;
}

.flow-visual-sun {
  background:
    radial-gradient(circle at 50% 78%, rgba(242, 185, 104, 0.48), transparent 34%),
    linear-gradient(180deg, #1b2238, #6a4656 55%, #d08b5e);
}

.flow-visual-check {
  display: grid;
  place-items: center;
  color: var(--mint);
  font-size: 24px;
  background: rgba(73, 230, 166, 0.055);
}

/* ---------- gallery ---------- */

.gallery {
  background:
    radial-gradient(ellipse at 78% 30%, rgba(69, 189, 236, 0.06), transparent 44%),
    radial-gradient(ellipse at 18% 80%, rgba(73, 230, 166, 0.045), transparent 42%);
}

.gallery-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.gallery-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gallery-tabs button {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.gallery-tabs button:hover {
  background: rgba(255, 255, 255, 0.024);
  transform: translateX(3px);
}

.gallery-tabs button[aria-selected="true"] {
  border-color: var(--line);
  background: rgba(73, 230, 166, 0.055);
}

.tab-no {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.9;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

.gallery-tabs button[aria-selected="true"] .tab-no {
  color: var(--mint);
}

.gallery-tabs b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

.gallery-tabs small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.gallery-panel {
  min-width: 0;
}

.gallery-frame {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0a1310;
  overflow: hidden;
  box-shadow: 0 48px 100px -46px rgba(0, 0, 0, 0.9), 0 0 80px -44px rgba(73, 230, 166, 0.3);
}

.gallery-chrome {
  justify-content: flex-start;
}

.gallery-chrome > span:nth-child(2) {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
}

.chrome-tag {
  margin-left: auto;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.gallery-image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #c6d7cd;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.4s ease, transform 0.7s var(--ease);
}

.gallery-panel.is-switching .gallery-image-wrap img {
  opacity: 0.35;
  transform: scale(0.992);
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 17px 2px 0;
}

.gallery-caption p {
  font-size: 12.5px;
  color: var(--text);
}

.gallery-caption span {
  font-size: 10.5px;
  color: var(--muted-2);
  text-align: right;
  max-width: 300px;
}

/* ---------- architecture ---------- */

.architecture {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(73, 230, 166, 0.045), transparent 46%),
    var(--bg-soft);
}

.arch-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr) 62px minmax(0, 1fr);
  align-items: stretch;
}

.arch-node {
  display: flex;
  flex-direction: column;
  padding: 25px;
  min-height: 272px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.arch-node:hover {
  transform: translateY(-3px);
  border-color: rgba(73, 230, 166, 0.27);
}

.arch-kicker {
  color: var(--mint);
  font-size: 9px;
  margin-bottom: 17px;
}

.arch-node h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.arch-node ul {
  list-style: none;
  display: grid;
  gap: 0;
}

.arch-node li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.arch-node li b {
  color: var(--text);
  font-weight: 500;
}

.arch-foot {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.arch-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-link::before {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73, 230, 166, 0.5), transparent);
}

.arch-link span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px rgba(73, 230, 166, 0.8);
  animation: linkTravel 3s ease-in-out infinite;
}

.arch-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.arch-note-icon {
  color: var(--mint);
  font-size: 18px;
}

.arch-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  flex: 1;
}

.arch-note a {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 11.5px;
  border-bottom: 1px solid var(--line-strong);
}

.arch-note a:hover {
  color: var(--mint);
}

/* ---------- start ---------- */

.start {
  overflow: hidden;
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 64px;
  align-items: start;
}

.start-copy > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-muted);
  max-width: 460px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 28px 0 30px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink);
}

.check-list span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(22, 122, 82, 0.12);
  color: #167a52;
  font-size: 9px;
}

.start-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 26px;
}

.start-links a {
  font-size: 12.5px;
  border-bottom: 1px solid rgba(17, 25, 19, 0.28);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.start-links a:hover {
  color: #167a52;
  border-color: #167a52;
}

.demo-note {
  font-size: 11px !important;
  color: #7c8a80 !important;
  line-height: 1.7 !important;
}

.demo-note code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(17, 25, 19, 0.07);
  font-family: var(--mono);
  font-size: 10px;
  color: #385044;
}

.terminal-card {
  border: 1px solid rgba(190, 246, 216, 0.16);
  border-radius: 18px;
  background: #08100d;
  color: #d8f2e2;
  box-shadow: 0 40px 80px -36px rgba(10, 16, 13, 0.48);
  overflow: hidden;
}

.terminal-chrome {
  justify-content: flex-start;
  color: #6e8c7b;
  font-family: var(--mono);
  font-size: 9px;
}

.copy-btn {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid rgba(190, 246, 216, 0.16);
  border-radius: 5px;
  background: transparent;
  color: #9bc7ad;
  font-family: var(--mono);
  font-size: 8px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: rgba(73, 230, 166, 0.4);
  color: var(--mint);
}

.start-tabs {
  display: flex;
  gap: 4px;
  padding: 9px 13px 0;
  border-bottom: 1px solid rgba(190, 246, 216, 0.1);
}

.start-tabs button {
  padding: 7px 10px 9px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #6e8c7b;
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.start-tabs button[aria-selected="true"] {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

.terminal-body {
  margin: 0;
  padding: 23px 23px 26px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
  overflow-x: auto;
  min-height: 290px;
  color: #c8e7d5;
}

.terminal-body[hidden] {
  display: none;
}

.c-muted {
  color: #587062;
}

.c-cmd {
  color: #7ef0bb;
}

.c-out {
  color: #9ecfd7;
}

/* ---------- roadmap ---------- */

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

.roadmap-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  padding-top: 38px;
}

.roadmap-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(73, 230, 166, 0.55), rgba(242, 185, 104, 0.4), var(--line) 70%);
}

.roadmap-item {
  position: relative;
  min-width: 0;
}

.roadmap-dot {
  position: absolute;
  left: 0;
  top: -4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg);
  z-index: 1;
}

.roadmap-item.done .roadmap-dot {
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 14px rgba(73, 230, 166, 0.45);
}

.roadmap-item.next .roadmap-dot {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 14px rgba(242, 185, 104, 0.35);
}

.roadmap-status {
  display: block;
  margin: 20px 0 12px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.roadmap-item.done .roadmap-status {
  color: var(--mint);
}

.roadmap-item.next .roadmap-status {
  color: var(--amber);
}

.roadmap-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 9px;
  line-height: 1.45;
}

.roadmap-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* ---------- cta ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 160px 0 142px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: #060b09;
}

.cta-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90vw;
  height: 80vw;
  max-width: 1100px;
  max-height: 900px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 50% 55%, rgba(73, 230, 166, 0.18), transparent 50%),
    radial-gradient(ellipse at 30% 40%, rgba(69, 189, 236, 0.1), transparent 48%),
    radial-gradient(ellipse at 70% 30%, rgba(242, 185, 104, 0.09), transparent 44%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 80vw);
  transform: translate(-50%, -48%) rotate(-8deg);
  opacity: 0.055;
  filter: blur(2px);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6.4vw, 5.7rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.cta h2 span {
  background: linear-gradient(100deg, #eafff4, var(--mint) 48%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-mobile-break {
  display: none;
}

.cta p:not(.eyebrow):not(.license-line) {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.license-line {
  margin-top: 42px;
  max-width: 360px;
  margin-inline: auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-wrap: balance;
}

.license-break {
  display: none;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 66px 0 30px;
  border-top: 1px solid var(--line);
  background: #060a08;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.1fr);
  gap: 42px;
}

.footer-brand p {
  margin: 20px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.footer-version {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.footer-col h4 {
  margin-bottom: 15px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-tech span {
  display: inline-block;
  margin: 0 7px 8px 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9.5px;
}

.footer-made {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ---------- animations ---------- */

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes auroraDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
}

@keyframes floatChip {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes scrollLine {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

@keyframes marqueeRun {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes scan {
  0% { top: -30%; }
  100% { top: 110%; }
}

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

@keyframes cloudDrift {
  from { transform: translateX(-10vw); }
  to { transform: translateX(80vw); }
}

@keyframes linkTravel {
  0% { left: 6%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 94%; opacity: 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .section-head {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 32px;
  }

  .section-head .section-aside {
    grid-column: 2;
    max-width: 520px;
    align-self: start;
    margin-top: -8px;
  }

  .manifesto-body {
    margin-left: 172px;
    gap: 44px;
  }

  .hero-inner {
    gap: 36px;
  }

  .float-chip {
    transform: scale(0.92);
  }

  .chip-time { left: -12px; }
  .chip-world { left: -16px; }
  .chip-ai { right: -10px; }

  .card-source {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .roadmap-grid {
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 88px;
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(8, 15, 12, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px;
  }

  .nav-links a:hover {
    background: rgba(73, 230, 166, 0.06);
  }

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

  .site-header.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 124px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-stage {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .world-frame {
    transform: none;
  }

  .float-chip {
    transform: none;
  }

  .chip-time { left: -14px; }
  .chip-world { left: -18px; bottom: 20px; }
  .chip-ai { right: -14px; bottom: -20px; }

  .hero-bottom {
    padding-top: 34px;
  }

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

  .manifesto-body {
    margin-left: 0;
    max-width: 760px;
    gap: 30px;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .manifesto-facts {
    grid-template-columns: 1fr 1fr;
    gap: 30px 34px;
  }

  .bento-card,
  .card-plot,
  .card-ai,
  .card-source {
    grid-column: span 6;
  }

  .card-plot,
  .card-ai {
    min-height: 360px;
  }

  .card-source {
    grid-column: span 12;
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .flow-list {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .gallery-tabs button {
    flex: 0 0 auto;
    width: auto;
    min-width: 170px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.015);
  }

  .arch-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .arch-link {
    height: 44px;
  }

  .arch-link::before {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(73, 230, 166, 0.5), transparent);
  }

  .arch-link span {
    animation: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .arch-node {
    min-height: 0;
  }

  .start-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .start-copy > p {
    max-width: 620px;
  }

  .roadmap-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }

  .roadmap-grid::before {
    display: none;
  }

  .roadmap-dot {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }

  .roadmap-status {
    margin-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-tech {
    grid-column: 1 / -1;
  }
}

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

  .section[id] {
    scroll-margin-top: 0;
  }

  .wrap,
  .header-inner {
    width: calc(100% - max(32px, env(safe-area-inset-left)) - max(32px, env(safe-area-inset-right)));
  }

  .header-inner {
    min-height: 58px;
    margin-top: 10px;
    padding: 0 14px;
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle {
    min-height: 34px;
    padding: 0 8px;
  }

  .theme-label {
    display: none;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .nav-toggle span {
    left: 10px;
    right: 10px;
  }

  .nav-toggle span:first-child {
    top: 14px;
  }

  .nav-toggle span:last-child {
    top: 20px;
  }

  .site-header.nav-open .nav-toggle span:first-child,
  .site-header.nav-open .nav-toggle span:last-child {
    top: 17px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

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

  .brand-text small {
    font-size: 10px;
  }

  .github-link {
    min-height: 34px;
    padding: 0 9px;
    gap: 6px;
  }

  .github-link span:not(.star-mark) {
    display: none;
  }

  .nav-links {
    top: 76px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 26px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11.5vw, 4.1rem);
    letter-spacing: -0.055em;
  }

  .kicker {
    font-size: 8.5px;
    letter-spacing: 0.13em;
    margin-bottom: 22px;
  }

  .lede {
    font-size: 14.5px;
    line-height: 1.85;
    margin: 24px 0 28px;
  }

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

  .hero-meta {
    gap: 8px 14px;
    margin-top: 26px;
    font-size: 10px;
  }

  .hero-meta span {
    padding-right: 14px;
  }

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

  .frame-chrome {
    height: 31px;
  }

  .chrome-url {
    font-size: 8px;
  }

  .chrome-live {
    font-size: 7px;
  }

  .float-chip {
    padding: 7px 9px;
    border-radius: 10px;
    gap: 7px;
  }

  .float-chip small {
    font-size: 7px;
  }

  .float-chip b {
    font-size: 10px;
  }

  .float-chip em {
    display: none;
  }

  .chip-time {
    top: -42px;
    left: -8px;
  }

  .chip-world {
    left: -8px;
    bottom: 11px;
  }

  .chip-ai {
    right: -7px;
    bottom: -17px;
  }

  .chip-icon,
  .ai-spark {
    width: 20px;
    height: 20px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 46px;
  }

  .hero-coord {
    display: none;
  }

  .section {
    padding: 86px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 38px;
  }

  .section-head .section-aside {
    grid-column: 1;
    margin-top: 0;
    max-width: 100%;
  }

  .section-head h2 {
    font-size: clamp(1.4rem, 7vw, 2.45rem);
  }

  .section-rail {
    font-size: 9px;
    padding-top: 8px;
  }

  .eyebrow {
    font-size: 9px;
    margin-bottom: 13px;
  }

  .manifesto::before {
    font-size: 34vw;
    top: 12px;
  }

  .manifesto h2 {
    font-size: clamp(1.85rem, 8.8vw, 2.65rem);
  }

  .manifesto-lede {
    font-size: 1.15rem;
  }

  .manifesto-note {
    font-size: 13px;
  }

  .manifesto-facts {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 50px;
    padding-top: 28px;
  }

  .manifesto-facts p {
    font-size: 12.5px;
  }

  .manifesto-end {
    margin-top: 48px;
    font-size: 8px;
  }

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

  .bento-card,
  .card-plot,
  .card-ai,
  .card-source {
    grid-column: 1;
    min-height: 0;
    padding: 22px;
  }

  .card-visual {
    height: 132px;
  }

  .card-source {
    grid-template-columns: 1fr;
    padding-right: 22px;
  }

  .source-mark {
    display: none;
  }

  .bento-card h3 {
    font-size: 19px;
  }

  .time-stage {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .time-hud {
    left: 15px;
    top: 15px;
    padding: 12px 14px;
    min-width: 142px;
  }

  .time-hud strong {
    font-size: 26px;
  }

  .time-corner {
    right: 15px;
    top: 17px;
    font-size: 7px;
  }

  .time-caption {
    left: 15px;
    bottom: 12px;
    right: 15px;
    font-size: 7px;
  }

  .skyline {
    height: 31%;
    bottom: 18%;
    gap: 1.6%;
    padding: 0 2%;
  }

  .celestial {
    width: 62px;
    height: 62px;
  }

  .time-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 10px;
  }

  .time-controls button {
    min-width: 0;
  }

  .time-note {
    grid-column: 1 / -1;
    flex: none;
    padding: 6px 2px 2px;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    min-height: 0;
  }

  .flow-visual {
    margin-top: 4px;
  }

  .gallery-tabs button {
    min-width: 156px;
    padding: 11px 12px;
  }

  .gallery-caption {
    display: block;
    padding-top: 12px;
  }

  .gallery-caption span {
    display: block;
    margin-top: 5px;
    text-align: left;
    max-width: 100%;
  }

  .arch-node {
    padding: 22px;
  }

  .arch-note {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .arch-note p {
    flex-basis: calc(100% - 40px);
  }

  .arch-note a {
    margin-left: 34px;
  }

  .start-grid {
    gap: 30px;
  }

  .terminal-body {
    padding: 18px;
    font-size: 11px;
    min-height: 270px;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 10px;
  }

  .roadmap-item {
    padding-left: 24px;
  }

  .roadmap-dot {
    position: absolute;
    left: 0;
    top: 5px;
    margin: 0;
  }

  .roadmap-status {
    margin: 0 0 8px;
  }

  .cta {
    padding: 104px 0 96px;
  }

  .cta h2 {
    font-size: clamp(2.4rem, 11vw, 3.7rem);
  }

  .cta-mobile-break {
    display: inline;
  }

  .license-break {
    display: inline;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .license-line {
    line-height: 1.8;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-tech {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 38px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 2.65rem;
  }
}

@media (max-width: 340px) {
  .hero h1 {
    font-size: 2.2rem;
  }

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

  .brand-text small {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .header-inner {
    gap: 8px;
    padding: 0 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .github-link {
    width: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }

  .github-link .star-mark {
    display: none;
  }

  .theme-toggle {
    width: 34px;
    padding: 0;
    justify-content: center;
  }
}

/* =========================================================
   REAL OR IMAGINED — landing chapter
   ========================================================= */

#real-imagined {
  padding-bottom: 72px;
}

#worldtime {
  padding-top: 100px;
  scroll-margin-top: 0;
}

.world-doors {
  background:
    radial-gradient(ellipse at 12% 20%, rgba(73, 230, 166, 0.055), transparent 40%),
    radial-gradient(ellipse at 88% 70%, rgba(69, 189, 236, 0.045), transparent 42%);
}

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

.door-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 26px 55px -44px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s ease;
}

.door-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(73, 230, 166, 0.11), transparent 58%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.door-card:hover {
  transform: translateY(-6px);
  border-color: rgba(73, 230, 166, 0.3);
  box-shadow: 0 38px 76px -44px rgba(0, 0, 0, 0.6);
}

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

.door-imagined {
  --accent: var(--cyan);
}

.door-real {
  --accent: var(--mint);
}

.door-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
  z-index: 3;
}

.door-visual {
  position: relative;
  height: clamp(230px, 26vw, 300px);
  overflow: hidden;
  background: #08110d;
  border-bottom: 1px solid var(--line);
}

.door-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 12, 9, 0.08), rgba(5, 12, 9, 0.56));
  pointer-events: none;
}

.door-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.86;
  transition: transform 0.8s var(--ease), opacity 0.4s ease;
}

.door-card:hover .door-visual img {
  transform: scale(1.035);
  opacity: 1;
}

.door-badge,
.door-index {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dff7e8;
  border: 1px solid rgba(205, 252, 226, 0.2);
  background: rgba(7, 16, 12, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.door-badge {
  left: 16px;
  top: 16px;
  padding: 5px 8px;
  border-radius: 999px;
}

.door-index {
  right: 16px;
  bottom: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--mint);
}

.door-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 25px 26px 27px;
}

.door-body h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.door-body p {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.door-body .tag-row {
  margin-top: 1px;
}

.door-body .card-link {
  margin-top: 3px;
}

.agent-loop {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-bg);
}

.loop-label {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.loop-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted-2);
  font-size: 10px;
}

.loop-steps i {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(73, 230, 166, 0.4));
}

.agent-loop > a {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 11px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.agent-loop > a:hover {
  color: var(--mint);
  border-color: var(--mint);
}



/* =========================================================
   HOW IT WORKS — in-page tabs
   ========================================================= */

.how-tabs {
  background: none;
}

.how-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -18px 0 38px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.how-tab-nav button {
  position: relative;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.how-tab-nav button::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -13px;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.how-tab-nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.how-tab-nav button[aria-selected="true"] {
  color: var(--mint);
  border-color: var(--line);
  background: rgba(73, 230, 166, 0.065);
}

.how-tab-nav button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.how-panel[hidden] {
  display: none;
}

.how-panel > .section {
  padding: 0 0 20px;
  border: 0;
  background: none;
  box-shadow: none;
}

.how-panel > .section .wrap {
  width: 100%;
}

.how-panel > .section .section-head {
  margin-bottom: 46px;
}

.how-tabs .how-panel > .section.features,
.how-tabs .how-panel > .section.workflow,
.how-tabs .how-panel > .section.architecture,
.how-tabs .how-panel > .section.roadmap {
  background: none;
  border: 0;
  box-shadow: none;
}

@media (max-width: 960px) {
  .how-tab-nav {
    margin-top: -8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 13px;
    scrollbar-width: thin;
  }

  .how-tab-nav button {
    flex: 0 0 auto;
  }
}

/* =========================================================
   LIGHT THEME — sage, daylight and liquid glass
   ========================================================= */

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #dce9e0;
  --bg-soft: #e8f0e6;
  --bg-deep: #d2e2d7;
  --text: #12231b;
  --muted: #4d6457;
  --muted-2: #6a7d70;
  --line: rgba(18, 35, 27, 0.12);
  --line-strong: rgba(18, 35, 27, 0.22);
  --mint: #147a53;
  --mint-soft: #7de9bb;
  --cyan: #157e9f;
  --amber: #b0742c;
  --coral: #b65f45;
  --cream: #f3f0e5;
  --ink: #12231b;
  --ink-muted: #51685b;
  --ink-line: rgba(18, 35, 27, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.68);
  --glass-shadow: 0 26px 60px -34px rgba(34, 73, 55, 0.32);
  --card-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44) 60%, rgba(255, 255, 255, 0.58));
}

:root[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

:root[data-theme="light"] .ambient i {
  opacity: 0.46;
}

:root[data-theme="light"] .ambient i:nth-child(1) {
  background: radial-gradient(circle, rgba(104, 214, 163, 0.42), transparent 72%);
}

:root[data-theme="light"] .ambient i:nth-child(2) {
  background: radial-gradient(circle, rgba(118, 196, 230, 0.32), transparent 72%);
}

:root[data-theme="light"] .ambient i:nth-child(3) {
  background: radial-gradient(circle, rgba(242, 215, 158, 0.28), transparent 72%);
}

:root[data-theme="light"] .ambient i:nth-child(4) {
  background: radial-gradient(circle, rgba(116, 214, 174, 0.26), transparent 72%);
}

:root[data-theme="light"] .brand-text small,
:root[data-theme="light"] .nav-links a,
:root[data-theme="light"] .nav-toggle {
  color: var(--muted);
}

:root[data-theme="light"] .nav-links a:hover {
  color: var(--text);
}

:root[data-theme="light"] .github-link,
:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .nav-toggle {
  background: rgba(255, 255, 255, 0.46);
  border-color: var(--glass-border);
  color: var(--text);
}

:root[data-theme="light"] .github-link:hover,
:root[data-theme="light"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(20, 122, 83, 0.32);
}

:root[data-theme="light"] .nav-links {
  background: rgba(248, 251, 247, 0.94);
  border-color: var(--line);
  box-shadow: 0 30px 60px -24px rgba(34, 73, 55, 0.35);
}

:root[data-theme="light"] .nav-toggle span {
  background: var(--text);
}

:root[data-theme="light"] .btn-ghost {
  background: rgba(255, 255, 255, 0.44);
  border-color: var(--line-strong);
  color: var(--text);
}

:root[data-theme="light"] .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 122, 83, 0.38);
}

:root[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #c8ffe5, #49e6a6 48%, #5fd7ed);
  color: #06251a;
  box-shadow: 0 16px 38px -16px rgba(20, 122, 83, 0.55);
}

:root[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 26px 54px -18px rgba(20, 122, 83, 0.62);
}

:root[data-theme="light"] .hero {
  background:
    linear-gradient(180deg, rgba(222, 236, 225, 0.08) 0%, rgba(223, 236, 225, 0.28) 62%, rgba(230, 240, 228, 0.74) 100%);
}

:root[data-theme="light"] .hero-vignette {
  background:
    linear-gradient(to bottom, rgba(228, 238, 230, 0.02) 0%, rgba(228, 238, 230, 0) 42%, rgba(234, 242, 232, 0.9) 96%),
    radial-gradient(ellipse at 50% 40%, transparent 34%, rgba(228, 238, 230, 0.24) 100%);
}

:root[data-theme="light"] .aurora {
  opacity: 0.34;
}

:root[data-theme="light"] .aurora-a {
  background: radial-gradient(circle, rgba(73, 230, 166, 0.58), transparent 65%);
}

:root[data-theme="light"] .aurora-b {
  background: radial-gradient(circle, rgba(69, 189, 236, 0.44), transparent 65%);
}

:root[data-theme="light"] .aurora-c {
  background: radial-gradient(circle, rgba(242, 185, 104, 0.36), transparent 65%);
}

:root[data-theme="light"] .hero-bg::after {
  background-image: radial-gradient(rgba(18, 82, 54, 0.2) 1px, transparent 1.2px);
  opacity: 0.3;
}

:root[data-theme="light"] .serif-accent {
  background-image: linear-gradient(100deg, #0a4a34 0%, #0c9467 46%, #137da2 100%);
}

:root[data-theme="light"] .kicker,
:root[data-theme="light"] .lede,
:root[data-theme="light"] .hero-meta,
:root[data-theme="light"] .scroll-cue {
  color: var(--muted);
}

:root[data-theme="light"] .hero-meta b {
  color: var(--text);
}

:root[data-theme="light"] .stage-halo {
  background:
    radial-gradient(ellipse at 58% 38%, rgba(73, 230, 166, 0.3), transparent 58%),
    radial-gradient(ellipse at 80% 82%, rgba(69, 189, 236, 0.2), transparent 55%);
}

:root[data-theme="light"] .world-frame {
  background: #f4f8f2;
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 56px 100px -38px rgba(38, 82, 59, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.62) inset,
    0 0 90px -34px rgba(73, 230, 166, 0.45);
}

:root[data-theme="light"] .frame-chrome,
:root[data-theme="light"] .gallery-chrome {
  background: rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(18, 35, 27, 0.08);
}

:root[data-theme="light"] .chrome-url,
:root[data-theme="light"] .gallery-chrome > span:nth-child(2) {
  color: var(--muted-2);
}

:root[data-theme="light"] .frame-screen,
:root[data-theme="light"] .gallery-image-wrap {
  background: #d9e7dc;
}

:root[data-theme="light"] .screen-tint {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 34%, rgba(18, 35, 27, 0.06)),
    radial-gradient(ellipse at 50% 100%, rgba(20, 122, 83, 0.1), transparent 55%);
}

:root[data-theme="light"] .float-chip {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px -24px rgba(34, 73, 55, 0.42);
}

:root[data-theme="light"] .float-chip small,
:root[data-theme="light"] .float-chip em {
  color: var(--muted-2);
}

:root[data-theme="light"] .float-chip b {
  color: var(--text);
}

:root[data-theme="light"] .marquee {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--line);
}

:root[data-theme="light"] .marquee span {
  color: var(--muted-2);
}

:root[data-theme="light"] .paper {
  --text: #12231b;
  --muted: #4d6457;
  --muted-2: #6a7d70;
  --line: rgba(18, 35, 27, 0.12);
  --line-strong: rgba(18, 35, 27, 0.22);
  --mint: #147a53;
  --cyan: #157e9f;
  --ink: #12231b;
  --ink-muted: #51685b;
  --ink-line: rgba(18, 35, 27, 0.14);
  background: linear-gradient(180deg, #ebf2e9 0%, #f0f4ea 100%);
  color: var(--text);
}

:root[data-theme="light"] .paper .eyebrow {
  color: var(--mint);
}

:root[data-theme="light"] .manifesto h2 span {
  color: #5b6f62;
}

:root[data-theme="light"] .manifesto h2 em::after {
  background: linear-gradient(90deg, rgba(73, 230, 166, 0.52), rgba(69, 189, 236, 0.34));
}

:root[data-theme="light"] .fact-no {
  color: var(--mint);
}

:root[data-theme="light"] .manifesto::before {
  color: rgba(18, 35, 27, 0.04);
}

:root[data-theme="light"] .features {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(69, 189, 236, 0.12), transparent 45%),
    radial-gradient(ellipse at 8% 36%, rgba(73, 230, 166, 0.1), transparent 42%);
}

:root[data-theme="light"] .bento-card {
  border-color: rgba(18, 35, 27, 0.1);
  box-shadow: 0 28px 60px -42px rgba(34, 73, 55, 0.45);
}

:root[data-theme="light"] .bento-card:hover {
  border-color: rgba(20, 122, 83, 0.3);
  box-shadow: 0 38px 76px -44px rgba(34, 73, 55, 0.5);
}

:root[data-theme="light"] .feature-icon {
  border-color: rgba(20, 122, 83, 0.2);
  background: rgba(20, 122, 83, 0.08);
}

:root[data-theme="light"] .tag-row li {
  color: var(--muted-2);
}

:root[data-theme="light"] .card-visual {
  border-color: rgba(18, 35, 27, 0.1);
}

:root[data-theme="light"] .plot-label {
  color: rgba(218, 255, 235, 0.62);
}

:root[data-theme="light"] .source-mark {
  background: linear-gradient(135deg, rgba(20, 122, 83, 0.2), rgba(21, 126, 159, 0.07));
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-theme="light"] .worldtime {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(242, 185, 104, 0.08), transparent 48%),
    radial-gradient(ellipse at 12% 20%, rgba(73, 230, 166, 0.07), transparent 40%);
}

:root[data-theme="light"] .time-shell {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 42px 90px -50px rgba(34, 73, 55, 0.42);
}

:root[data-theme="light"] .time-controls button {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(18, 35, 27, 0.12);
}

:root[data-theme="light"] .time-controls button:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(20, 122, 83, 0.32);
}

:root[data-theme="light"] .time-controls button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(20, 122, 83, 0.44);
  box-shadow: 0 16px 34px -24px rgba(34, 73, 55, 0.4);
}

:root[data-theme="light"] .time-note {
  color: var(--muted-2);
}

:root[data-theme="light"] .workflow {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--line);
}

:root[data-theme="light"] .flow-list li:hover {
  border-color: rgba(20, 122, 83, 0.3);
}

:root[data-theme="light"] .flow-visual {
  background: #eef4ec;
  border-color: rgba(18, 35, 27, 0.1);
}

:root[data-theme="light"] .gallery {
  background:
    radial-gradient(ellipse at 78% 30%, rgba(69, 189, 236, 0.1), transparent 44%),
    radial-gradient(ellipse at 18% 80%, rgba(73, 230, 166, 0.08), transparent 42%);
}

:root[data-theme="light"] .gallery-tabs button:hover {
  background: rgba(255, 255, 255, 0.42);
}

:root[data-theme="light"] .gallery-tabs button[aria-selected="true"] {
  border-color: rgba(18, 35, 27, 0.11);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 40px -30px rgba(34, 73, 55, 0.36);
}

:root[data-theme="light"] .gallery-frame {
  background: #f4f8f2;
  border-color: rgba(18, 35, 27, 0.12);
  box-shadow: 0 44px 94px -46px rgba(34, 73, 55, 0.42), 0 0 70px -44px rgba(73, 230, 166, 0.34);
}

:root[data-theme="light"] .architecture {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(73, 230, 166, 0.09), transparent 46%),
    rgba(232, 241, 233, 0.55);
}

:root[data-theme="light"] .arch-node:hover {
  border-color: rgba(20, 122, 83, 0.28);
}

:root[data-theme="light"] .arch-link::before {
  background: linear-gradient(90deg, transparent, rgba(20, 122, 83, 0.44), transparent);
}

:root[data-theme="light"] .arch-note {
  background: rgba(255, 255, 255, 0.4);
  border-color: var(--line);
}

:root[data-theme="light"] .start {
  background: linear-gradient(180deg, #f0f4eb 0%, #f3f0e6 100%);
}

:root[data-theme="light"] .start-copy > p {
  color: var(--ink-muted);
}

:root[data-theme="light"] .start-links a {
  border-bottom-color: var(--line-strong);
}

:root[data-theme="light"] .cta {
  background: linear-gradient(180deg, rgba(236, 244, 236, 0.7), rgba(223, 237, 226, 0.92));
}

:root[data-theme="light"] .cta-glow {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(73, 230, 166, 0.3), transparent 52%),
    radial-gradient(ellipse at 30% 40%, rgba(69, 189, 236, 0.18), transparent 48%),
    radial-gradient(ellipse at 70% 30%, rgba(242, 185, 104, 0.14), transparent 44%);
}

:root[data-theme="light"] .cta-watermark {
  opacity: 0.075;
}

:root[data-theme="light"] .cta h2 span {
  background-image: linear-gradient(100deg, #0a4a34, #0c9467 48%, #137da2);
}

:root[data-theme="light"] .cta p:not(.eyebrow):not(.license-line) {
  color: var(--muted);
}

:root[data-theme="light"] .license-line {
  color: var(--muted-2);
}

:root[data-theme="light"] .site-footer {
  background: rgba(222, 235, 224, 0.86);
  border-top-color: var(--line);
}

:root[data-theme="light"] .footer-brand p,
:root[data-theme="light"] .footer-col a,
:root[data-theme="light"] .footer-tech span {
  color: var(--muted);
}

:root[data-theme="light"] .footer-col a:hover {
  color: var(--mint);
}

:root[data-theme="light"] .footer-col h4,
:root[data-theme="light"] .footer-version,
:root[data-theme="light"] .footer-bottom {
  color: var(--muted-2);
}

/* Dark theme: keep the manifesto and quick start dark too, so there is no
   hard cream flash after the dark hero. */
:root[data-theme="dark"] .paper {
  --text: #edf7ef;
  --muted: #9db3a5;
  --muted-2: #6e8477;
  --line: rgba(188, 239, 211, 0.13);
  --line-strong: rgba(188, 239, 211, 0.24);
  --mint: #49e6a6;
  --cyan: #45bdec;
  --ink: #edf7ef;
  --ink-muted: #9db3a5;
  --ink-line: rgba(188, 239, 211, 0.13);
  background: var(--bg-soft);
  color: var(--text);
}

:root[data-theme="dark"] .paper .eyebrow {
  color: var(--mint);
}

:root[data-theme="dark"] .manifesto h2 span {
  color: #7a9184;
}

:root[data-theme="dark"] .manifesto::before {
  color: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .manifesto h2 em::after {
  background: linear-gradient(90deg, rgba(73, 230, 166, 0.4), rgba(69, 189, 236, 0.28));
}

:root[data-theme="dark"] .fact-no {
  color: var(--mint);
}

:root[data-theme="dark"] .start-copy > p,
:root[data-theme="dark"] .demo-note {
  color: var(--muted) !important;
}

:root[data-theme="dark"] .check-list li {
  color: var(--text);
}

:root[data-theme="dark"] .check-list span {
  background: rgba(73, 230, 166, 0.1);
  color: var(--mint);
}

:root[data-theme="dark"] .start-links a {
  border-bottom-color: var(--line-strong);
}

:root[data-theme="dark"] .start-links a:hover {
  color: var(--mint);
  border-color: var(--mint);
}

:root[data-theme="dark"] .demo-note code {
  background: rgba(255, 255, 255, 0.06);
  color: var(--mint-soft);
}

/* Keep the toggle icon state easy to read in both themes. */
:root[data-theme="light"] .theme-moon {
  display: none;
}

:root[data-theme="light"] .theme-sun {
  display: grid;
}

@media (max-width: 960px) {
  .door-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .door-visual {
    height: clamp(210px, 44vw, 280px);
  }

  .agent-loop {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .agent-loop > a {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .door-body {
    padding: 21px 21px 23px;
  }

  .door-body p {
    font-size: 13px;
  }

  .door-visual {
    height: 195px;
  }

  .agent-loop {
    padding: 14px 16px;
  }

  .loop-steps {
    gap: 6px;
    font-size: 9px;
  }

  .loop-steps i {
    width: 10px;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 24px;
  }

  .lede {
    margin: 22px 0 26px;
  }

  .hero-meta {
    margin-top: 24px;
  }

  .hero-bottom {
    padding-top: 24px;
  }
}

@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 92px 0 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(2rem, 5.6vw, 2.9rem);
  }

  .kicker {
    margin-bottom: 14px;
  }

  .lede,
  .hero-meta,
  .hero-stage,
  .hero-bottom {
    display: none;
  }

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

/* ---------- scroll-linked motion (Chromium / Edge) ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head h2 {
      animation: scrollHeadline both;
      animation-timeline: view();
      animation-range: entry 5% cover 32%;
    }

    .time-shell,
    .gallery-frame,
    .arch-flow,
    .roadmap-grid {
      animation: scrollLift both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
}

@keyframes scrollHeadline {
  from {
    opacity: 0.15;
    transform: translateY(54px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLift {
  from {
    opacity: 0.25;
    transform: translateY(52px) scale(0.986);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- reduced motion ---------- */

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

  .marquee-track,
  .scroll-line::after,
  .ai-scan,
  .orb-ring,
  .arch-link span {
    animation: none !important;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s var(--ease);
  }

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