:root {
  --bg: #080807;
  --paper: #f3f1ea;
  --fg: #f3f1ea;
  --muted: rgba(243, 241, 234, .58);
  --thin: rgba(243, 241, 234, .14);
  --line: rgba(243, 241, 234, .22);
  --red: #dc2626;
  --red-dark: #991b1b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 9rem 9rem;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 20%, rgba(255,255,255,.04) 20.2% 20.35%, transparent 20.6% 28%, rgba(255,255,255,.035) 28.2% 28.35%, transparent 28.6% 38%, rgba(220,38,38,.12) 38.1% 38.22%, transparent 38.5%),
    conic-gradient(from 12deg at 50% 50%, transparent, rgba(255,255,255,.045), transparent 13%, rgba(220,38,38,.08), transparent 30%, rgba(255,255,255,.035), transparent 48%);
  animation: cosmicDrift 38s linear infinite;
  opacity: .62;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto 0;
  height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: rgba(8,8,7,.84);
  backdrop-filter: blur(18px);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(220,38,38,.55); background: rgba(220,38,38,.12); letter-spacing: 0; }
.nav-links { display: flex; gap: 1px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); padding: 1px; }
.nav-links a { padding: 10px 14px; background: var(--bg); color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; }
.nav-links a,
.button {
  transition: transform .18s ease, border-color .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(255,255,255,.08); }
.nav-links .red { background: var(--red); color: white; }

.scroll-meter {
  position: fixed;
  left: 0;
  top: 76px;
  z-index: 45;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.scroll-meter span {
  display: block;
  width: calc(var(--scroll, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--red), rgba(255,255,255,.9));
  box-shadow: 0 0 16px rgba(220,38,38,.58);
}
.cursor-orb {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(220,38,38,.95);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  box-shadow: 0 0 24px rgba(220,38,38,.44);
}
.cursor-orb::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--red);
}

.field {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.045) 24px, transparent 25px),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.42) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 34%, rgba(255,255,255,.32) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 78%, rgba(255,255,255,.28) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 68%, rgba(220,38,38,.45) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 42%, rgba(220, 38, 38, .20), transparent 28rem),
    radial-gradient(circle at 28% 78%, rgba(255,255,255,.08), transparent 20rem);
  mask-image: linear-gradient(to bottom, black, transparent 94%);
  animation: starfieldDrift 18s ease-in-out infinite alternate;
}
.kicker { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.55); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .24em; }
.kicker::before { content: ""; width: 56px; height: 1px; background: var(--red); }
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 72px;
  border-bottom: 1px solid var(--thin);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 96px max(20px, calc((100vw - 1180px) / 2)) 24px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.09);
  border-left-color: rgba(220,38,38,.35);
  background:
    linear-gradient(90deg, rgba(220,38,38,.18), transparent 18%) left top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.14), transparent 26%) right top / 1px 100% no-repeat;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  z-index: 0;
  width: min(30vw, 320px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 18px, rgba(255,255,255,.045) 19px, transparent 20px);
  animation: spin 36s linear infinite;
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  max-width: 100%;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: .86;
  text-transform: uppercase;
  text-shadow: 0 0 36px rgba(255,255,255,.07);
  overflow-wrap: normal;
}
.page-hero h1::after,
.home h1::after {
  content: "";
  display: block;
  width: min(42vw, 520px);
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), var(--red), transparent);
  animation: titleScan 4.8s ease-in-out infinite;
}
.page-hero h1 span, .red-dot { color: var(--red); }
.page-hero .lead {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-top: 30px;
  color: rgba(255,255,255,.62);
  font-size: 19px;
  line-height: 1.85;
}
.page-hero .shell,
.section .shell {
  position: relative;
  z-index: 2;
}
.compact-hero {
  padding: 126px 0 46px;
}
.compact-hero h1 {
  font-size: clamp(48px, 7vw, 90px);
}

.home {
  position: relative;
  min-height: 100vh;
  padding-top: 92px;
  overflow: hidden;
}
.home-grid {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  justify-items: center;
  padding: 26px 0 44px;
}
.home-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}
.home h1 {
  margin: 16px 0 0;
  font-size: clamp(86px, 14vw, 178px);
  line-height: .84;
  text-transform: uppercase;
}
.home h1 span { color: var(--red); }
.intro { max-width: 860px; margin-top: 24px; color: rgba(255,255,255,.76); font-size: 19px; line-height: 1.78; }
.module-grid { margin-top: 22px; width: min(780px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.18); }
.module-grid button {
  position: relative;
  border: 0;
  background: rgba(8,8,7,.96);
  color: white;
  padding: 15px 13px;
  text-align: center;
  cursor: pointer;
}
.module-grid button::after {
  content: "";
  position: absolute;
      left: 13px;
      right: 13px;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.module-grid button.active { background: rgba(255,255,255,.075); }
.module-grid button.active::after { transform: scaleX(1); }
.num { display: block; color: var(--red); font-size: 10px; font-weight: 950; letter-spacing: .22em; }
.name { display: block; margin-top: 9px; font-size: 15px; font-weight: 850; }
.label { display: block; margin-top: 6px; color: rgba(255,255,255,.32); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 13px 20px; border: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 950; }
.button.primary { border-color: var(--red); background: var(--red); color: white; }
.button:hover { border-color: rgba(220,38,38,.65); color: white; }

.stage {
  --active-angle: 0deg;
  --preview-angle: 0deg;
  --drift: 0deg;
  --cursor-x: 50%;
  --cursor-y: 50%;
  position: relative;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  margin: -8px auto -2px;
  cursor: crosshair;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(220,38,38,.16), transparent 9rem),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.05), transparent 18rem),
    repeating-radial-gradient(circle, transparent 0 13px, rgba(255,255,255,.065) 14px, transparent 15px);
}
svg.dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial * {
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
}
.ticks { transform-origin: center; transform: rotate(var(--drift)); }
.arcs { transform-origin: center; transform: rotate(calc(var(--drift) * -0.58)); }
.scan-axis {
  stroke-dasharray: 8 7;
  animation: scanDash 2.8s linear infinite;
  stroke-linecap: round;
}
.scan-arc {
  stroke-width: 1.4;
  opacity: .85;
}
.roads { animation: pulse 5s ease-in-out infinite; }
.center {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(220,38,38,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.08), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(8,8,7,.98) 0 54%, rgba(8,8,7,.72) 62%, transparent 70%);
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(220,38,38,.18),
    inset 0 0 42px rgba(255,255,255,.035),
    0 0 88px rgba(220,38,38,.12);
  isolation: isolate;
  overflow: hidden;
}
.center::before,
.center::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  pointer-events: none;
}
.center::before {
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.012);
  animation: spin 30s linear infinite;
}
.center::after {
  inset: 36px;
  border: 1px dashed rgba(220,38,38,.34);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 35%, rgba(220,38,38,.18) 36%, transparent 37%),
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.18) 50%, transparent 51%);
  animation: spin 42s linear reverse infinite;
}
.center-clock {
  position: absolute;
  inset: 13px;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}
.center-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  will-change: transform;
}
.hour-hand {
  width: 8px;
  height: 39px;
  clip-path: polygon(50% 0, 100% 18%, 72% 100%, 28% 100%, 0 18%);
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.78) 48%, rgba(255,255,255,.24)),
    rgba(255,255,255,.32);
  box-shadow: 0 0 14px rgba(255,255,255,.16);
  transform: translate(-50%, -100%) rotate(var(--clock-hour, 0deg));
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.minute-hand {
  width: 4px;
  height: 63px;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.54) 19% 81%, transparent 82%),
    linear-gradient(to top, rgba(255,255,255,.04), rgba(255,255,255,.88));
  box-shadow: 0 0 14px rgba(255,255,255,.14);
  transform: translate(-50%, -100%) rotate(var(--clock-minute, 0deg));
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.second-hand {
  width: 2px;
  height: 78px;
  background:
    linear-gradient(to top, rgba(220,38,38,.06), rgba(220,38,38,.96) 52%, #ff5656);
  box-shadow: 0 0 18px rgba(220,38,38,.72);
  transform: translate(-50%, -100%) rotate(var(--clock-second, 0deg));
  transition: transform .18s cubic-bezier(.22,1,.36,1);
}
.second-hand-shadow {
  width: 9px;
  height: 78px;
  opacity: .24;
  background: rgba(220,38,38,.35);
  filter: blur(2.4px);
  transform: translate(-50%, -100%) rotate(var(--clock-second, 0deg));
  transition: transform .18s cubic-bezier(.22,1,.36,1);
}
.second-hand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--red);
  border-radius: 50%;
  background: rgba(220,38,38,.28);
  box-shadow: 0 0 16px rgba(220,38,38,.72);
  transform: translateX(-50%);
}
.second-counterweight {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.5px;
  height: 25px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(220,38,38,.72), rgba(220,38,38,.08));
  transform: translate(-50%, 0) rotate(var(--clock-second, 0deg));
  transform-origin: 50% 0;
  transition: transform .18s cubic-bezier(.22,1,.36,1);
}
.second-counterweight::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(220,38,38,.72);
  border-radius: 50%;
  transform: translateX(-50%);
}
.center-hand-pivot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(220,38,38,.88);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 2px),
    rgba(8,8,7,.92);
  box-shadow: 0 0 0 4px rgba(220,38,38,.08), 0 0 18px rgba(220,38,38,.42);
  transform: translate(-50%, -50%);
}
.core-sigil {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(220,38,38,.13), transparent 38%),
    rgba(8,8,7,.72);
  box-shadow: inset 0 0 22px rgba(255,255,255,.04);
}
.core-sigil::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 20px rgba(220,38,38,.72);
}
.center small { color: var(--red); font-size: 9px; font-weight: 950; text-transform: uppercase; letter-spacing: .28em; }
.center strong {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 106px;
  margin: 0;
  color: rgba(255,255,255,.96);
  font-size: 17px;
  line-height: .98;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.note {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(860px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,8,7,.82);
  backdrop-filter: blur(12px);
  text-align: center;
}
.note small { color: rgba(255,255,255,.35); font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .24em; }
.note p { margin: 12px auto 0; max-width: 760px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.8; }

.constellation {
  position: absolute;
  inset: 11%;
  pointer-events: none;
}
.constellation span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 16px rgba(255,255,255,.34);
}
.constellation span:nth-child(1) { left: 18%; top: 30%; }
.constellation span:nth-child(2) { left: 32%; top: 16%; }
.constellation span:nth-child(3) { left: 64%; top: 18%; }
.constellation span:nth-child(4) { left: 78%; top: 38%; }
.constellation span:nth-child(5) { left: 62%; top: 72%; }
.constellation span:nth-child(6) { left: 28%; top: 74%; }
.cosmic-caption {
  position: absolute;
  left: 50%;
  bottom: 7.5%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.42);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 82px 0;
  border-bottom: 1px solid var(--thin);
  overflow: hidden;
}
.section::before {
  content: "";
  position: absolute;
  left: max(20px, calc((100vw - 1180px) / 2));
  top: 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: .9;
}
.section::after {
  content: "";
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  top: 28px;
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: .48;
  border: 1px solid rgba(255,255,255,.07);
  transform: rotate(18deg);
  background:
    linear-gradient(90deg, transparent, rgba(220,38,38,.12), transparent),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(255,255,255,.045) 14px, transparent 15px);
}
.section .shell::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -24px;
  width: 154px;
  height: 154px;
  pointer-events: none;
  opacity: .42;
  border-left: 1px solid rgba(220,38,38,.42);
  border-top: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 0 0, rgba(220,38,38,.16), transparent 72px),
    linear-gradient(135deg, transparent 49%, rgba(255,255,255,.12) 50%, transparent 51%);
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.section h2 { margin: 18px 0 0; font-size: clamp(38px, 6vw, 70px); line-height: 1; }
.copy { color: rgba(255,255,255,.58); line-height: 1.8; font-size: 16px; }
.copy p + p { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.card {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,8,7,.92);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent, rgba(220,38,38,.36), transparent) top / 100% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(255,255,255,.24), transparent) right / 1px 100% no-repeat;
  transition: opacity .25s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.card:hover, .card.is-active { border-color: rgba(220,38,38,.72); background: rgba(255,255,255,.045); transform: translateY(-3px); }
.card:hover::before, .card.is-active::before { opacity: 1; }
.card:hover::after, .card.is-active::after { transform: scaleX(1); }
.card small { color: var(--red); font-size: 11px; font-weight: 950; letter-spacing: .22em; text-transform: uppercase; }
.card h3 { margin: 16px 0 0; font-size: 22px; }
.card p { margin-top: 12px; color: rgba(255,255,255,.5); line-height: 1.65; }
.card .card {
  background: rgba(255,255,255,.025);
  min-height: 190px;
}
.card .card h3 {
  font-size: 20px;
}
.tools-page .page-hero {
  min-height: 440px;
}
.tool-orbits {
  position: absolute;
  inset: 76px 0 0;
  pointer-events: none;
  overflow: hidden;
}
.tool-orbits span {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 880px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--orbit-rot, 0deg));
  animation: orbitSweep var(--orbit-time, 42s) linear infinite;
}
.tool-orbits span:nth-child(1) { --orbit-rot: -12deg; --orbit-end: 348deg; --orbit-time: 56s; border-color: rgba(255,255,255,.18); }
.tool-orbits span:nth-child(2) { --orbit-rot: 18deg; --orbit-end: -342deg; --orbit-time: 48s; width: 720px; height: 180px; border-style: dashed; }
.tool-orbits span:nth-child(3) { --orbit-rot: 42deg; --orbit-end: 402deg; --orbit-time: 36s; width: 540px; height: 120px; border-color: rgba(220,38,38,.35); }
.tool-orbits span:nth-child(4) { --orbit-rot: -38deg; --orbit-end: -398deg; --orbit-time: 68s; width: 1120px; height: 340px; border-color: rgba(255,255,255,.08); }
.flow-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .72;
}
.flow-lines::before,
.flow-lines::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--red);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(220,38,38,.45);
  animation: nodeOrbit 13s ease-in-out infinite alternate;
}
.flow-lines::before { left: 18%; top: 32%; }
.flow-lines::after { right: 16%; bottom: 24%; animation-delay: -5s; }
.flow-lines i {
  position: absolute;
  left: -18%;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), rgba(220,38,38,.62), transparent);
  transform: rotate(var(--flow-rot, -14deg));
  animation: flowMove var(--flow-time, 10s) linear infinite;
}
.flow-lines i:nth-child(1) { top: 22%; --flow-time: 11s; --flow-rot: -18deg; }
.flow-lines i:nth-child(2) { top: 38%; --flow-time: 15s; --flow-rot: 9deg; animation-delay: -4s; opacity: .7; }
.flow-lines i:nth-child(3) { top: 56%; --flow-time: 13s; --flow-rot: -6deg; animation-delay: -7s; opacity: .55; }
.flow-lines i:nth-child(4) { top: 72%; --flow-time: 18s; --flow-rot: 15deg; animation-delay: -2s; opacity: .45; }
.flow-lines i:nth-child(5) { top: 14%; --flow-time: 20s; --flow-rot: 28deg; animation-delay: -10s; opacity: .35; }
.tool-atlas {
  position: relative;
  overflow: hidden;
}
.tool-atlas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 26%, rgba(255,255,255,.1) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 72%, rgba(220,38,38,.32) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 82%, rgba(255,255,255,.1) 0 1px, transparent 2px);
}
.atlas-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 980px;
  height: 980px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.atlas-orbit::before,
.atlas-orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 50%;
}
.atlas-orbit::after {
  inset: 28%;
  border-color: rgba(220,38,38,.18);
  border-style: solid;
}
.tool-card {
  isolation: isolate;
}
.tool-card small::after {
  content: " / " attr(data-index);
  color: rgba(255,255,255,.28);
}
.tool-card h3::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border: 1px solid var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(220,38,38,.55);
  vertical-align: middle;
}
.tool-card::after {
  background: linear-gradient(90deg, transparent, var(--red), rgba(255,255,255,.82), transparent);
}
.tool-card:hover {
  box-shadow: inset 0 0 0 1px rgba(220,38,38,.18), 0 24px 80px rgba(0,0,0,.22);
}
.diagram {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--thin);
  background:
    repeating-radial-gradient(circle, transparent 0 21px, rgba(255,255,255,.05) 22px, transparent 23px),
    rgba(8,8,7,.88);
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}
.diagram::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.22);
  animation: spin 30s linear infinite;
}
.diagram::after {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(220,38,38,.18), transparent 14rem),
    conic-gradient(from 0deg, transparent, rgba(255,255,255,.08), transparent 16%, rgba(220,38,38,.18), transparent 31%);
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.diagram-label {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,8,7,.86);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .22s ease, color .22s ease, transform .22s ease, background .22s ease;
}
.diagram-label::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 92px;
  background: linear-gradient(to bottom, rgba(220,38,38,.7), transparent);
  transform-origin: top center;
  transform: rotate(var(--ray, 0deg));
  opacity: 0;
  pointer-events: none;
}
.diagram-label:hover,
.diagram-label.is-active {
  color: white;
  border-color: rgba(220,38,38,.74);
  background: rgba(220,38,38,.12);
  transform: translateY(-3px);
}
.diagram-label.is-active::before { opacity: 1; }
.diagram-readout,
.mode-readout {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8,8,7,.9);
  padding: 18px;
}
.diagram-readout {
  margin-top: 14px;
}
.diagram-readout strong,
.mode-readout strong {
  display: block;
  color: white;
  font-size: 18px;
}
.diagram-readout span,
.mode-readout span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.52);
  font-size: 13px;
  line-height: 1.65;
}
.site-carousel {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,8,7,.92);
  overflow: hidden;
}
.carousel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 14px;
}
.carousel-tabs {
  display: flex;
  gap: 1px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.1);
  padding: 1px;
}
.carousel-tab {
  border: 0;
  background: #080807;
  color: rgba(255,255,255,.58);
  cursor: pointer;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.carousel-tab.is-active {
  background: var(--red);
  color: white;
}
.carousel-frame-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 22px),
    #080807;
}
.carousel-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1);
  background: #080807;
}
.carousel-frame.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.carousel-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.carousel-status {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,8,7,.86);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}
.carousel-status strong {
  display: block;
  color: white;
  font-size: 18px;
}
.carousel-status span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.52);
  font-size: 12px;
}
.carousel-actions {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}
.carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,8,7,.86);
  color: white;
  cursor: pointer;
  font-size: 18px;
}
.carousel-progress {
  height: 2px;
  background: rgba(255,255,255,.12);
}
.carousel-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  animation: carouselProgress 7s linear infinite;
}
.dl1 { left: 8%; top: 18%; }
.dl2 { right: 8%; top: 18%; }
.dl3 { left: 12%; bottom: 18%; }
.dl4 { right: 12%; bottom: 18%; }
.dl5 { left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--red); }
.video-slot {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 18px),
    #080807;
}
.video-slot::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg, transparent, rgba(220,38,38,.22), transparent 28%);
  animation: spin 12s linear infinite;
}
.video-slot:hover::before { animation-duration: 5s; }
.video-content { position: relative; z-index: 1; min-height: 220px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.visual-slot .video-content {
  min-height: 260px;
}
.visual-slot .visual-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: auto;
}
.visual-title {
  color: rgba(255,255,255,.74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.visual-note {
  max-width: 220px;
  color: rgba(255,255,255,.34);
  font-size: 12px;
  line-height: 1.65;
  text-align: right;
}
.geo-preview {
  position: absolute;
  inset: 18px;
  opacity: .92;
  pointer-events: none;
}
.geo-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(220px, 54%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  animation: spinCentered 24s linear infinite;
}
.geo-orbit::before,
.geo-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 50%;
}
.geo-orbit::after {
  inset: 32%;
  border-color: rgba(220,38,38,.5);
  border-style: solid;
}
.geo-ray {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 44%;
  background: linear-gradient(to top, rgba(220,38,38,.85), transparent);
  transform-origin: bottom center;
}
.geo-ray:nth-child(2) { transform: translate(-50%, -100%) rotate(42deg); }
.geo-ray:nth-child(3) { transform: translate(-50%, -100%) rotate(128deg); }
.geo-ray:nth-child(4) { transform: translate(-50%, -100%) rotate(236deg); }
.geo-cardgrid {
  position: absolute;
  inset: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 9px;
  transform: skewY(-3deg);
}
.geo-cardgrid span {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.035);
}
.geo-cardgrid span:nth-child(3n) { border-color: rgba(220,38,38,.52); background: rgba(220,38,38,.08); }
.geo-cardgrid span:nth-child(4n) { transform: translateY(18px); }
.geo-slab {
  position: absolute;
  border: 1px solid rgba(220,38,38,.44);
  background: rgba(220,38,38,.08);
  transform: rotate(var(--rot, 0deg));
}
.geo-slab.s1 { width: 38%; height: 48%; right: 4%; bottom: -6%; --rot: -18deg; }
.geo-slab.s2 { width: 26%; height: 34%; left: 10%; top: 20%; --rot: 8deg; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.025); }
.geo-slab.s3 { width: 22%; height: 22%; right: 18%; top: 12%; --rot: 2deg; }
.geo-arc {
  position: absolute;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.geo-arc.a1 { width: 56%; aspect-ratio: 1; left: 12%; top: -16%; }
.geo-arc.a2 { width: 38%; aspect-ratio: 1; left: 28%; top: 22%; border-color: rgba(220,38,38,.42); }
.geo-arc.a3 { width: 78%; aspect-ratio: 1; right: -24%; bottom: -40%; }
.geo-line {
  position: absolute;
  left: 9%;
  right: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), rgba(220,38,38,.72), transparent);
  animation: scanLine 4s ease-in-out infinite;
}
.geo-line.l1 { top: 35%; }
.geo-line.l2 { top: 58%; animation-delay: -1.4s; }
.geo-line.l3 { top: 74%; animation-delay: -2.5s; }
.progress-list { display: grid; gap: 1px; background: rgba(255,255,255,.1); border: 1px solid var(--thin); }
.progress-row { display: grid; grid-template-columns: .22fr .88fr 1.18fr .7fr; gap: 24px; align-items: center; background: var(--bg); padding: 26px; }
.progress-no { font-size: 56px; font-weight: 950; color: rgba(255,255,255,.1); }
.bar { height: 8px; border: 1px solid var(--thin); padding: 1px; }
.bar span { display: block; height: 100%; background: var(--red); }
.footer { padding: 60px 0; border-top: 1px solid var(--thin); color: rgba(255,255,255,.4); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.footer-logo { font-size: 72px; line-height: .8; font-weight: 950; color: rgba(255,255,255,.1); text-transform: uppercase; }

@keyframes pulse { 0%,100% { opacity: .38; stroke-dashoffset: 0; } 50% { opacity: .78; stroke-dashoffset: 18; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinCentered { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes scanLine { 0%,100% { transform: scaleX(.25); opacity: .25; } 50% { transform: scaleX(1); opacity: .85; } }
@keyframes scanDash { to { stroke-dashoffset: -60; } }
@keyframes cosmicDrift { to { transform: rotate(360deg); } }
@keyframes starfieldDrift { to { transform: translate3d(-18px, 12px, 0) scale(1.015); } }
@keyframes titleScan { 0%,100% { transform: scaleX(.18); opacity: .35; } 50% { transform: scaleX(1); opacity: .9; } }
@keyframes flowMove { from { transform: translateX(-12%) rotate(var(--flow-rot, -14deg)); } to { transform: translateX(235%) rotate(var(--flow-rot, -14deg)); } }
@keyframes orbitSweep { to { transform: translate(-50%, -50%) rotate(var(--orbit-end, 360deg)); } }
@keyframes nodeOrbit { to { transform: translate(42px, -28px) scale(1.35); opacity: .58; } }
@keyframes carouselProgress { from { width: 0; } to { width: 100%; } }

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav {
    height: 112px;
  }
  .nav-inner {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
  }
  .brand {
    gap: 10px;
    font-size: 13px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .nav-links {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .scroll-meter { top: 112px; }
  .home { padding-top: 112px; }
  .home-grid {
    min-height: auto;
    gap: 18px;
    padding: 22px 0 34px;
  }
  .home h1 {
    font-size: clamp(60px, 21vw, 116px);
  }
  .home-grid, .split, .grid-2, .grid-3, .grid-5, .progress-row { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .intro {
    font-size: 16px;
    line-height: 1.72;
  }
  .note {
    margin-top: 8px;
    padding: 14px;
  }
  .stage {
    width: min(560px, 96vw);
    max-width: 560px;
    margin: -4px auto 0;
  }
  .center {
    width: 170px;
    height: 170px;
  }
  .core-sigil {
    width: 108px;
    height: 108px;
  }
  .center-clock { inset: 14px; }
  .center strong { font-size: 15px; }
  .cosmic-caption {
    bottom: 6%;
    font-size: 8px;
    letter-spacing: .2em;
  }
  .page-hero {
    padding: 136px 0 54px;
  }
  .page-hero::before {
    inset: 112px 14px 18px;
  }
  .page-hero h1 {
    font-size: clamp(44px, 14vw, 76px);
    line-height: .9;
  }
  .page-hero .lead {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.72;
  }
  .section {
    padding: 58px 0;
  }
  .section h2 {
    font-size: clamp(34px, 11vw, 54px);
  }
  .diagram {
    min-height: 360px;
  }
  .diagram-label {
    padding: 8px 10px;
    font-size: 12px;
  }
  .carousel-top, .carousel-overlay { align-items: stretch; flex-direction: column; }
  .carousel-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .carousel-tabs::-webkit-scrollbar { display: none; }
  .carousel-tab { flex: 0 0 auto; }
  .carousel-frame-wrap { min-height: 300px; }
  .tool-orbits {
    opacity: .72;
  }
  .tool-orbits span {
    width: 680px;
    height: 190px;
  }
  .visual-slot .visual-meta {
    align-items: start;
    flex-direction: column;
  }
  .visual-note {
    max-width: none;
    text-align: left;
  }
  .footer-grid { align-items: start; flex-direction: column; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 22px, 1180px); }
  .home h1 { font-size: clamp(54px, 19vw, 82px); }
  .stage { width: 102vw; }
  .module-grid { grid-template-columns: 1fr; }
  .module-grid button { min-height: 78px; padding: 13px; }
  .center {
    width: 150px;
    height: 150px;
  }
  .center::before { inset: 9px; }
  .center::after { inset: 30px; }
  .core-sigil {
    width: 96px;
    height: 96px;
  }
  .center-clock { inset: 10px; }
  .hour-hand { height: 34px; }
  .minute-hand { height: 50px; }
  .second-hand,
  .second-hand-shadow { height: 60px; }
  .center small {
    font-size: 8px;
    letter-spacing: .22em;
  }
  .center strong {
    font-size: 13px;
    line-height: 1;
  }
  .note p { font-size: 14px; }
  .page-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }
  .page-hero .lead {
    font-size: 15px;
  }
  .card {
    padding: 18px;
  }
  .carousel-frame-wrap {
    min-height: 240px;
  }
  .carousel-status strong {
    font-size: 16px;
  }
  .progress-no {
    font-size: 42px;
  }
}
