/* ==========================================================================
   CyberNestX — futuristic ed-tech theme
   Deep-space ink, ultraviolet, ice cyan and signal lime.
   ========================================================================== */

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

@view-transition { navigation: auto; }

:root {
  --ink: #05060b;
  --ink-2: #0a0c15;
  --ink-3: #10131f;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0ff;
  --soft: #b9bed6;
  --muted: #7d839c;
  --violet: #7c5cff;
  --violet-2: #a48bff;
  --cyan: #3de0ff;
  --lime: #c6ff3d;
  --rose: #ff5fae;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--cyan) 52%, var(--lime) 100%);

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 13vw, 180px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Ambient aurora + fine grid behind everything */
body::before {
  content: ""; position: fixed; inset: -20vh -20vw; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 15% 10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(35vw 35vw at 90% 30%, rgba(61, 224, 255, 0.10), transparent 60%),
    radial-gradient(30vw 30vw at 50% 110%, rgba(198, 255, 61, 0.06), transparent 60%);
  animation: aurora 26s var(--ease-io) infinite alternate;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.35;
}
@keyframes aurora { to { transform: translate3d(4vw, 6vh, 0) rotate(8deg) scale(1.1); } }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.7rem, 7.4vw, 7.4rem); }
h2 { font-size: clamp(2rem, 4.8vw, 4.4rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
strong { color: var(--text); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.grad-text {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* Mono label */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: blink 2.4s ease-in-out infinite; }
.tag b { color: var(--text); font-weight: 500; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em;
  color: var(--text); background: var(--glass); cursor: pointer; white-space: nowrap;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.4s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn:hover { border-color: rgba(255,255,255,0.35); background: var(--glass-2); }
.btn--primary { background: var(--lime); color: var(--ink); border-color: transparent; box-shadow: 0 0 0 0 rgba(198,255,61,0.5), 0 10px 40px -10px rgba(198,255,61,0.6); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn--primary:hover { background: var(--lime); box-shadow: 0 0 0 6px rgba(198,255,61,0.12), 0 14px 50px -10px rgba(198,255,61,0.75); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--sm { padding: 11px 20px; font-size: 0.86rem; }

.link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s; padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; color: var(--lime); }
.link svg { width: 14px; height: 14px; }

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 400; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,0.45); transition: opacity 0.3s, width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s, border-color 0.3s; mix-blend-mode: difference; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--lime); }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255,255,255,0.9); border-color: transparent; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(5,6,11,0.6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark .spin { transform-origin: 50% 50%; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.03em; }
.brand-name i { font-style: normal; color: var(--lime); }

.nav { display: flex; align-items: center; gap: 14px; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 5px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-list a { display: block; padding: 9px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--soft); transition: color 0.3s, background 0.3s; }
.nav-list a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-list a[aria-current="page"] { color: var(--ink); background: var(--text); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform 0.4s var(--ease); }
.nav-toggle span::before { content: ""; position: absolute; top: 6px; left: 0; }
.nav-toggle span { transform: translateY(-3px); }
.nav-open .nav-toggle span { transform: rotate(45deg); }
.nav-open .nav-toggle span::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 36px;
    padding: 100px var(--gutter) 40px; background: rgba(5,6,11,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - 46px) 42px); transition: clip-path 0.8s var(--ease); visibility: hidden;
  }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
  /* backdrop-filter/transform on the header would trap the fixed overlay inside it */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; background: transparent; border-color: transparent; }
  .nav-list { flex-direction: column; border: 0; background: none; padding: 0; gap: 6px; backdrop-filter: none; }
  .nav-list a { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.04em; padding: 4px 0; background: none !important; color: var(--soft); }
  .nav-list a[aria-current="page"] { color: var(--lime); }
  .nav-open .nav-list li { animation: navIn 0.7s var(--ease) both; }
  .nav-open .nav-list li:nth-child(2) { animation-delay: 0.06s; }
  .nav-open .nav-list li:nth-child(3) { animation-delay: 0.12s; }
  .nav-open .nav-list li:nth-child(4) { animation-delay: 0.18s; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(30px); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 56px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--ink)); z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; margin-bottom: 32px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--soft); max-width: 44ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hud { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: grid; gap: 10px; text-align: right; }
.hud span b { color: var(--text); font-weight: 500; }
.hud .live { color: var(--lime); }
.hud-corner { position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hud-corner--tl { top: 110px; left: var(--gutter); }
.hud-corner--tr { top: 110px; right: var(--gutter); text-align: right; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 48px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--lime), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 110%; } }
@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr; }
  .hud { text-align: left; }
  .hud-corner { display: none; }
}

/* Split words */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .w > * { display: inline-block; transform: translateY(105%) rotate(4deg); filter: blur(6px); opacity: 0; transition: transform 1.2s var(--ease), filter 1.2s var(--ease), opacity 0.8s; transition-delay: calc(var(--i) * 55ms); }
[data-split].is-in .w > * { transform: none; filter: none; opacity: 1; }

/* Generic reveal */
.rv { opacity: 0; transform: translate3d(0, 40px, 0); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: rgba(255,255,255,0.015); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.03em; color: var(--text); padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 12px; height: 12px; background: var(--grad); transform: rotate(45deg); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(238,240,255,0.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: end; margin-bottom: 72px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 46ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; } }

/* Scroll-lit manifesto */
.manifesto { font-family: var(--font-display); font-weight: 400; color: var(--text); font-size: clamp(1.7rem, 4.2vw, 3.9rem); line-height: 1.12; letter-spacing: -0.035em; margin: 0; max-width: 22ch; }
.manifesto .lw { opacity: 0.14; transition: opacity 0.4s, color 0.4s; }
.manifesto .lw.on { opacity: 1; }
.manifesto .lw.hl.on { color: var(--lime); }
.manifesto-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.manifesto-foot div { font-size: 0.98rem; }
.manifesto-foot b { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
@media (max-width: 760px) { .manifesto-foot { grid-template-columns: 1fr; } }

/* ---------- Glass tilt cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; padding: 36px 32px 34px; border-radius: var(--radius-lg); min-height: 380px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(124,92,255,0.22), transparent 45%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.14em; }
.card-glyph { width: 92px; height: 92px; margin: 34px 0 auto; transform: translateZ(40px); }
.card h3 { margin: 36px 0 12px; transform: translateZ(30px); }
.card p { margin: 0; font-size: 0.98rem; transform: translateZ(20px); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* Animated SVG glyphs */
.g-orbit ellipse { fill: none; stroke: url(#gGrad); stroke-width: 1.2; transform-origin: 46px 46px; }
.g-orbit ellipse:nth-of-type(1) { animation: spin 9s linear infinite; }
.g-orbit ellipse:nth-of-type(2) { animation: spin 13s linear infinite reverse; }
.g-orbit circle { fill: var(--lime); }
.g-pulse circle { fill: none; stroke: var(--cyan); transform-origin: 46px 46px; animation: pulse 3s var(--ease) infinite; }
.g-pulse circle:nth-child(2) { animation-delay: 1s; }
.g-pulse circle:nth-child(3) { animation-delay: 2s; }
.g-pulse .core { fill: var(--violet); stroke: none; animation: none; }
@keyframes pulse { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.g-bars rect { fill: url(#gGrad); transform-origin: 50% 100%; transform-box: fill-box; animation: bar 2.4s var(--ease-io) infinite alternate; }
.g-bars rect:nth-child(2) { animation-delay: 0.3s; }
.g-bars rect:nth-child(3) { animation-delay: 0.6s; }
.g-bars rect:nth-child(4) { animation-delay: 0.9s; }
@keyframes bar { from { transform: scaleY(0.25); } }

/* ---------- Sticky learning loop ---------- */
.loop { position: relative; height: 340vh; }
.loop-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.loop-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.loop-meter { margin-top: 36px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 360px; }
.loop-meter i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--grad); }
.loop-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-top: 14px; letter-spacing: 0.1em; }
.loop-count b { color: var(--text); font-weight: 500; }
.loop-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.loop-steps li {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid transparent; opacity: 0.32; transform: translateX(16px) scale(0.98); transform-origin: left center;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.6s, border-color 0.6s;
}
.loop-steps li.on { opacity: 1; transform: none; background: var(--glass); border-color: var(--line); }
.loop-steps li.on .ix { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.loop-steps .ix { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 0.8rem; transition: all 0.5s var(--ease); }
.loop-steps h3 { margin: 0 0 6px; }
.loop-steps p { margin: 0; font-size: 0.96rem; }
@media (max-width: 900px) {
  .loop { height: auto; }
  .loop-sticky { position: static; height: auto; padding-block: var(--section); }
  .loop-grid { grid-template-columns: 1fr; }
  .loop-steps li { opacity: 1; transform: none; background: var(--glass); border-color: var(--line); }
  .loop-meter, .loop-count { display: none; }
}

/* ---------- Flagship panel with rotating conic border ---------- */
.flagship {
  position: relative; border-radius: 34px; padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0 60%, var(--violet) 72%, var(--cyan) 82%, var(--lime) 90%, transparent 100%);
  animation: rotateBorder 6s linear infinite;
}
@keyframes rotateBorder { to { --angle: 360deg; } }
.flagship-inner {
  position: relative; border-radius: 33px; overflow: hidden; background: var(--ink-2);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); min-height: 560px;
}
.flagship-copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.flagship-copy h2 { font-size: clamp(2rem, 4.2vw, 3.8rem); }
.flagship-copy .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 32px; }
.pill { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); }
.flagship-visual { position: relative; display: grid; place-items: center; border-left: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(124,92,255,0.18), transparent 60%); min-height: 360px; }
.orbits { position: relative; width: min(380px, 80%); aspect-ratio: 1; }
.orbits .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); animation: spin 24s linear infinite; }
.orbits .ring:nth-child(2) { inset: 14%; animation-duration: 16s; animation-direction: reverse; border-style: dashed; border-color: rgba(61,224,255,0.35); }
.orbits .ring:nth-child(3) { inset: 30%; animation-duration: 10s; }
.orbits .ring i { position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.orbits .ring:nth-child(2) i { background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.orbits .ring:nth-child(3) i { background: var(--violet-2); box-shadow: 0 0 18px var(--violet); }
.orbits .core { position: absolute; inset: 40%; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 0 80px rgba(124,92,255,0.5); animation: breathe 4s var(--ease-io) infinite alternate; }
@keyframes breathe { to { transform: scale(1.08); box-shadow: 0 0 120px rgba(61,224,255,0.5); } }
@media (max-width: 900px) { .flagship-inner { grid-template-columns: 1fr; } .flagship-visual { border-left: 0; border-top: 1px solid var(--line); order: -1; } }

/* ---------- Horizon ---------- */
.horizon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.horizon::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: linear-gradient(90deg, var(--lime), var(--cyan), var(--violet), transparent); }
.horizon > div { padding-right: 40px; position: relative; }
.horizon .node { width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ink); display: grid; place-items: center; margin-bottom: 30px; }
.horizon .node::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.horizon > div:nth-child(2) .node::after { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.horizon > div:nth-child(3) .node::after { background: var(--violet-2); box-shadow: 0 0 14px var(--violet); }
.horizon .when { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.horizon h3 { margin: 10px 0 12px; }
.horizon p { margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) {
  .horizon { grid-template-columns: 1fr; gap: 40px; padding-left: 36px; }
  .horizon::before { left: 11px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(var(--lime), var(--cyan), var(--violet), transparent); }
  .horizon .node { position: absolute; left: -36px; top: 0; }
}

/* ---------- CTA ---------- */
.cta { position: relative; text-align: center; padding-block: clamp(100px, 14vw, 200px); overflow: hidden; }
.cta-ring { position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient(from var(--angle), rgba(124,92,255,0.0), rgba(124,92,255,0.35), rgba(61,224,255,0.3), rgba(198,255,61,0.25), rgba(124,92,255,0.0)); filter: blur(60px); animation: rotateBorder 14s linear infinite; opacity: 0.7; z-index: -1; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 6.4rem); max-width: 14ch; margin-inline: auto; }
.cta p { max-width: 46ch; margin: 0 auto 40px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 32px; position: relative; overflow: hidden; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-about { margin: 18px 0 0; max-width: 34ch; color: var(--muted); }
.site-footer h4 { font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--soft); transition: color 0.3s; }
.site-footer ul a:hover { color: var(--lime); }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: min(9.2vw, 8.2rem); line-height: 0.95; letter-spacing: -0.06em;
  margin: 80px 0 24px; color: transparent; -webkit-text-stroke: 1px rgba(238,240,255,0.18); white-space: nowrap; user-select: none;
  background-image: linear-gradient(100deg, transparent 0 50%, var(--violet) 60%, var(--cyan) 80%, var(--lime) 100%);
  background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text;
  transition: background-position 1.6s var(--ease), -webkit-text-stroke-color 1s;
}
.wordmark:hover, .wordmark.is-in { background-position: 100% 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: 180px 0 90px; overflow: hidden; min-height: 72svh; display: flex; align-items: flex-end; }
.page-hero .hero-canvas { opacity: 0.85; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 6.6rem); max-width: 15ch; }
.page-hero p { max-width: 50ch; font-size: clamp(1.02rem, 1.3vw, 1.2rem); margin: 0; }
.crumbs { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--lime); }
.crumbs span { margin: 0 10px; opacity: 0.4; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.split .sticky { position: sticky; top: 120px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .sticky { position: static; } }
.big-p { font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--text); line-height: 1.55; letter-spacing: -0.01em; }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.value { background: var(--ink); padding: 40px 36px; transition: background 0.5s; position: relative; }
.value:hover { background: var(--ink-3); }
.value .ix { font-family: var(--font-mono); font-size: 0.75rem; color: var(--lime); letter-spacing: 0.14em; }
.value h3 { margin: 18px 0 10px; }
.value p { margin: 0; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.facts { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--glass); }
.facts dl { margin: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.facts dt, .facts dd { margin: 0; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--text); }
.facts dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 600px) { .facts dl { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 2px; } .facts dd { padding-top: 4px; } }

.stack { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stack li { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.stack .ix { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); padding-top: 6px; }
.stack h3 { margin: 0 0 6px; }
.stack p { margin: 0; }

/* ---------- Ventures ---------- */
.venture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.venture:last-child { border-bottom: 1px solid var(--line); }
.venture h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -0.035em; margin-bottom: 14px; }
.venture .status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: var(--lime); margin-bottom: 18px; }
.venture .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.venture .status--soon { color: var(--cyan); }
.venture .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.venture-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--glass); }
.venture-box h4 { font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.venture-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.venture-box li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.venture-box li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
.venture--ghost h3 { color: transparent; -webkit-text-stroke: 1px rgba(238,240,255,0.45); }
@media (max-width: 860px) { .venture { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.channels li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.channels span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.channels a, .channels p { color: var(--text); margin: 0; font-size: 1.05rem; }
.channels a:hover { color: var(--lime); }

.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.field { position: relative; display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0; padding: 10px 0 12px; transition: border-color 0.3s;
}
.field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d839c' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field select option { background: var(--ink-2); color: var(--text); }
.field textarea { min-height: 130px; resize: vertical; }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.form-foot small { color: var(--muted); max-width: 38ch; line-height: 1.5; }
.form-foot small a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: none; padding: 14px 18px; border-radius: 12px; margin-bottom: 26px; font-weight: 500; font-size: 0.95rem; }
.notice.is-visible { display: block; }
.notice--ok { background: rgba(198,255,61,0.1); color: var(--lime); border: 1px solid rgba(198,255,61,0.3); }
.notice--err { background: rgba(255,95,174,0.1); color: var(--rose); border: 1px solid rgba(255,95,174,0.3); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: 120px; }
.legal-toc h4 { font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 4px; }
.legal-toc li { counter-increment: t; }
.legal-toc a { display: grid; grid-template-columns: 30px 1fr; padding: 6px 0; color: var(--soft); font-size: 0.92rem; transition: color 0.3s; }
.legal-toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); padding-top: 3px; }
.legal-toc a:hover { color: var(--lime); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -0.025em; margin: 2.2em 0 0.7em; scroll-margin-top: 120px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { padding-left: 20px; margin: 0 0 1.1em; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--lime); }
.legal-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* Placeholder that must be filled before launch */
mark.todo { background: rgba(198,255,61,0.14); color: var(--lime); padding: 1px 7px; border-radius: 5px; font-family: var(--font-mono); font-size: 0.88em; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; padding: 120px 0 60px; }
.lost .wrap { position: relative; z-index: 2; }
.glitch { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(6rem, 24vw, 18rem); line-height: 0.9; letter-spacing: -0.06em; color: var(--text); margin-bottom: 20px; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; }
.glitch::before { color: var(--cyan); animation: glitch 2.6s steps(2) infinite; clip-path: inset(10% 0 55% 0); transform: translateX(-4px); mix-blend-mode: screen; }
.glitch::after { color: var(--rose); animation: glitch 3.1s steps(2) infinite reverse; clip-path: inset(60% 0 8% 0); transform: translateX(4px); mix-blend-mode: screen; }
@keyframes glitch { 0% { clip-path: inset(10% 0 60% 0); } 25% { clip-path: inset(40% 0 30% 0); } 50% { clip-path: inset(70% 0 5% 0); } 75% { clip-path: inset(20% 0 50% 0); } 100% { clip-path: inset(5% 0 80% 0); } }

/* ---------- Page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 500; pointer-events: none; background: var(--ink); opacity: 0; transition: opacity 0.35s var(--ease-io); }
.curtain.is-on { opacity: 1; }
::view-transition-old(root) { animation: 0.35s var(--ease-io) both vtOut; }
::view-transition-new(root) { animation: 0.6s var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; filter: blur(8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* No-JS and reduced motion: show everything, stop looping motion */
.no-js .rv, .no-js [data-split] .w > * { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .rv, [data-split] .w > * { opacity: 1; transform: none; filter: none; }
  .manifesto .lw { opacity: 1; }
  .loop { height: auto; }
  .loop-sticky { position: static; height: auto; padding-block: var(--section); }
  .loop-steps li { opacity: 1; transform: none; }
}
