.hub-page {
  --bg-primary: #000000;
  --ink-strong: rgba(248, 246, 238, 0.98);
  --ink-soft: rgba(236, 236, 230, 0.9);
  --panel-bg: rgba(5, 6, 10, 0.72);
  --panel-border: rgba(255, 231, 177, 0.34);
  --accent-gold: rgba(255, 214, 112, 0.88);
  --accent-cool: rgba(187, 212, 255, 0.86);
  --fib-flower-contrast: rgba(126, 232, 255, 0.98);
  --fib-flower-glow: rgba(112, 220, 255, 0.56);
  --mobius-base: rgba(214, 168, 66, 0.34);
  --mobius-strong: rgba(255, 214, 112, 0.72);
  --mobius-knot-border: rgba(242, 191, 74, 0.42);
  --mobius-knot-glow: rgba(255, 220, 128, 0.24);
  background: var(--bg-primary);
  min-height: 100vh;
}

.hub-page::before,
.hub-page::after {
  content: none;
}

.hub-titlebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
}

.hub-title {
  color: var(--ink-strong);
  text-shadow: 0 0 10px rgba(255, 219, 140, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  font-size: 0.8rem;
}

.hub-titlebar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.hub-titlebar-links a,
.hub-titlebar-links span {
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.73rem;
  border: 1px solid rgba(250, 226, 176, 0.38);
  border-radius: 999px;
  padding: 0.28rem 0.66rem;
  background: rgba(255, 216, 138, 0.08);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hub-titlebar-links a:hover,
.hub-titlebar-links a:focus-visible {
  color: #101217;
  border-color: rgba(255, 236, 190, 0.96);
  background: rgba(255, 225, 165, 0.96);
  outline: none;
}

.hub-page[data-mode="schematic"] .hub-titlebar-links span {
  pointer-events: none;
}

.engine-telemetry {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 140;
  width: min(260px, 34vw);
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 226, 165, 0.38);
  border-radius: 10px;
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(6px);
}

.engine-telemetry h2 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 236, 190, 0.9);
}

.engine-telemetry dl {
  margin: 0;
  display: grid;
  gap: 0.32rem;
}

.engine-telemetry dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.engine-telemetry dt {
  color: rgba(230, 230, 230, 0.72);
}

.engine-telemetry dd {
  margin: 0;
  color: rgba(255, 231, 170, 0.95);
}

.engine-calibration {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 140;
  width: min(310px, 38vw);
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(171, 211, 255, 0.36);
  border-radius: 10px;
  background: rgba(4, 8, 18, 0.76);
  backdrop-filter: blur(6px);
}

.engine-calibration h2 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(194, 223, 255, 0.92);
}

.cal-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.24rem 0.6rem;
  align-items: center;
  margin-bottom: 0.34rem;
}

.cal-row label {
  grid-column: 1 / -1;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 233, 247, 0.8);
}

.cal-row input[type="range"] {
  width: 100%;
  accent-color: rgba(163, 204, 255, 0.95);
}

.cal-row output {
  font-size: 0.66rem;
  color: rgba(173, 222, 255, 0.95);
  letter-spacing: 0.05em;
  min-width: 3.4rem;
  text-align: right;
}

.cal-reset {
  margin-top: 0.34rem;
  width: 100%;
  border: 1px solid rgba(176, 216, 255, 0.52);
  border-radius: 999px;
  background: rgba(152, 203, 255, 0.12);
  color: rgba(220, 238, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.64rem;
  padding: 0.36rem 0.64rem;
  cursor: pointer;
}

.cal-reset:hover,
.cal-reset:focus-visible {
  background: rgba(187, 220, 255, 0.94);
  color: #111522;
  outline: none;
}

.hub-page[data-mode="schematic"] .hub-continue,
.hub-page[data-mode="schematic"] .post-nav {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hub-shell {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  min-height: 88vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 4.4rem 1rem 2rem;
}

.hub-connection-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.space-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.space-particle {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.72;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.space-orb {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 246, 228, 0.92) 0%, rgba(255, 221, 154, 0.52) 34%, rgba(130, 176, 255, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
  box-shadow: 0 0 16px rgba(255, 214, 140, 0.22), 0 0 30px rgba(120, 170, 255, 0.14);
}

.space-glyph {
  color: rgba(240, 225, 188, 0.82);
  text-shadow: 0 0 9px rgba(255, 219, 140, 0.42), 0 0 16px rgba(125, 167, 243, 0.24);
  font-weight: 500;
  line-height: 1;
}

.space-particle.space-collision {
  filter: brightness(1.5);
}

.hub-sky {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background:
    radial-gradient(circle at 18% 16%, rgba(242, 196, 101, 0.12), transparent 48%),
    radial-gradient(circle at 82% 16%, rgba(132, 164, 255, 0.1), transparent 52%),
    radial-gradient(circle at 18% 86%, rgba(110, 229, 221, 0.1), transparent 54%);
  animation: sky-drift 9000ms ease-in-out infinite alternate;
}

.diamond-field {
  --diamond-rot: 0deg;
  --diamond-rot-inner: 0deg;
  --diamond-rot-outer: 0deg;
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(72vw, 860px);
  height: min(72vw, 860px);
  transform: translate(-50%, -50%) rotate(var(--diamond-rot));
  opacity: 1;
  visibility: visible;
  transition: opacity 1200ms ease, filter 1200ms ease, visibility 1200ms step-end;
  pointer-events: none;
  z-index: 5;
}

.hub-page[data-diamonds="fading"] .diamond-field {
  opacity: 0.22;
  filter: blur(0.5px);
}

.hub-page[data-diamonds="off"] .diamond-field {
  opacity: 0;
  visibility: hidden;
}

.diamond-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56%;
  height: 56%;
  border: 1px solid rgba(248, 206, 120, 0.46);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 120ms linear;
}

.diamond-outer {
  display: block;
  width: 74%;
  height: 74%;
  border-color: rgba(240, 196, 106, 0.62);
  box-shadow: 0 0 22px rgba(255, 220, 150, 0.28);
  transform: translate(-50%, -50%) rotate(calc(45deg + var(--diamond-rot-outer)));
}

.diamond-inner {
  width: 48%;
  height: 48%;
  border-color: rgba(187, 218, 255, 0.56);
  box-shadow: 0 0 18px rgba(170, 202, 255, 0.24);
  transform: translate(-50%, -50%) rotate(calc(45deg + var(--diamond-rot-inner)));
}

.diamond-glyph-band {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0.38;
  letter-spacing: 0.32em;
  color: rgba(250, 227, 171, 0.92);
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(0.58rem, 1.1vw, 0.84rem);
}

.diamond-glyph-band::before {
  content: "\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1\27E1";
}

.diamond-corner {
  --node-pull-x: 0px;
  --node-pull-y: 0px;
  --node-scale: 1;
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 229, 168, 0.88);
  box-shadow: 0 0 14px rgba(255, 214, 130, 0.68);
  transform: translate(var(--node-pull-x), var(--node-pull-y)) scale(var(--node-scale));
  transition: transform 130ms ease-out, box-shadow 130ms ease-out;
}

.diamond-corner-ne {
  right: 26%;
  top: 14%;
}

.diamond-corner-se {
  right: 26%;
  bottom: 14%;
}

.diamond-corner-sw {
  left: 26%;
  bottom: 14%;
}

.diamond-corner-nw {
  left: 26%;
  top: 14%;
}

.hub-strand {
  --strand-shift-x: 0px;
  --strand-shift-y: 0px;
  --strand-rot: 0deg;
  --strand-energy: 0;
  position: fixed;
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  opacity: calc(0.36 + (var(--strand-energy) * 0.5));
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 0 calc(7px + (var(--strand-energy) * 10px)) rgba(255, 214, 128, 0.4)) brightness(calc(0.86 + (var(--strand-energy) * 0.44)));
  animation: strand-breathe 4400ms ease-in-out infinite;
  transition: transform 220ms ease-out, filter 160ms ease-out, opacity 160ms ease-out;
}

.hub-strand:focus-visible {
  outline: 2px solid rgba(255, 236, 190, 0.88);
  outline-offset: 3px;
}

.hub-strand::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 232, 170, 0.86);
  box-shadow: 0 0 12px rgba(255, 220, 130, 0.6);
  transform: scale(calc(0.78 + (var(--strand-energy) * 0.6)));
  transition: transform 150ms ease-out;
}

.hub-strand-wake {
  left: 50%;
  top: 50%;
  width: clamp(250px, 34vw, 560px);
  transform: translate(var(--strand-shift-x), var(--strand-shift-y)) rotate(calc(-148deg + var(--strand-rot)));
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(241, 190, 92, 0.1) 0%, rgba(255, 225, 148, 0.92) 66%, rgba(255, 236, 182, 1) 100%);
}

.hub-strand-fold {
  left: 50%;
  top: 50%;
  width: clamp(250px, 34vw, 560px);
  transform: translate(var(--strand-shift-x), var(--strand-shift-y)) rotate(calc(-30deg + var(--strand-rot)));
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(134, 164, 255, 0.14) 0%, rgba(172, 194, 255, 0.8) 58%, rgba(234, 242, 255, 0.96) 100%);
}

.hub-strand-spire {
  left: 50%;
  top: 50%;
  width: clamp(250px, 34vw, 560px);
  transform: translate(var(--strand-shift-x), var(--strand-shift-y)) rotate(calc(92deg + var(--strand-rot)));
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(114, 225, 213, 0.14) 0%, rgba(159, 246, 237, 0.82) 58%, rgba(226, 255, 250, 0.96) 100%);
}

.hub-seed-logo {
  position: fixed;
  left: 50%;
  top: 50%;
  width: clamp(38px, 4.5vw, 68px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 7;
  filter: drop-shadow(0 0 16px rgba(255, 221, 148, 0.56));
  will-change: left, top, opacity, transform;
}

.mobius-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(76vw, 980px);
  height: min(38vw, 420px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  filter: blur(0.2px);
}

.mobius-loop {
  position: absolute;
  inset: 0;
  border: 1px solid var(--mobius-base);
  border-radius: 50% / 58%;
  opacity: 0.34;
}

.mobius-loop-a {
  transform: rotate(18deg) scaleX(1.02);
  animation: mobius-flow-cw 9000ms linear infinite;
}

.mobius-loop-b {
  transform: rotate(-18deg) scaleX(1.02);
  animation: mobius-flow-ccw 9200ms linear infinite;
}

.mobius-knot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(13vw, 140px);
  height: min(13vw, 140px);
  border-radius: 50%;
  border: 1px solid var(--mobius-knot-border);
  background: radial-gradient(circle, var(--mobius-knot-glow) 0%, rgba(255, 255, 255, 0) 72%);
  transform: translate(-50%, -50%);
  opacity: 0.35;
}

.hub-page[data-hover="wake"] .mobius-loop-a {
  border-color: var(--mobius-strong);
  opacity: 0.72;
  animation-duration: 4200ms;
}

.hub-page[data-hover="wake"] .mobius-loop-b {
  opacity: 0.22;
}

.hub-page[data-hover="fold"] .mobius-loop-b {
  border-color: var(--mobius-strong);
  opacity: 0.72;
  animation-duration: 4200ms;
}

.hub-page[data-hover="fold"] .mobius-loop-a {
  opacity: 0.22;
}

.hub-split {
  position: relative;
  width: min(92vw, 980px);
  height: min(68vw, 620px);
  max-height: 78vh;
  margin: 0 auto;
}

.sunflower-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(9vw, 86px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 235, 182, 0.92), rgba(244, 190, 92, 0.56) 45%, rgba(16, 18, 24, 0.28) 100%);
  box-shadow:
    inset 0 0 18px rgba(255, 225, 155, 0.46),
    0 0 26px rgba(255, 212, 120, 0.34);
  z-index: 9;
  pointer-events: none;
}

.sunflower-core-ring {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 219, 132, 0.58);
  opacity: 0.76;
  animation: hub-ring-spin 9000ms linear infinite;
}

.sunflower-core-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 248, 229, 0.94);
  box-shadow: 0 0 12px rgba(255, 230, 168, 0.7);
}

.hub-logo-cluster {
  position: fixed;
  inset: 0;
  pointer-events: auto;
  z-index: 6;
}

.hub-logo-mark {
  --overlay-pull-x: 0px;
  --overlay-pull-y: 0px;
  --overlay-rot: 0deg;
  position: absolute;
  width: min(7.8vw, 67px);
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.95;
  transform: translate(var(--overlay-pull-x), var(--overlay-pull-y)) rotate(var(--overlay-rot));
  filter: drop-shadow(0 0 18px rgba(245, 195, 96, 0.48)) saturate(1.1);
  transition: opacity 180ms ease, transform 220ms ease, filter 220ms ease;
}

.hub-logo-mark:focus-visible {
  outline: 2px solid rgba(255, 231, 170, 0.9);
  outline-offset: 3px;
}

.hub-logo-top-left {
  left: 10px;
  top: 10px;
}

.hub-logo-top-right {
  right: 10px;
  top: 10px;
}

.hub-logo-bottom-left {
  left: 10px;
  bottom: 10px;
}

.hub-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hub {
  --hub-pull-x: 0px;
  --hub-pull-y: 0px;
  --hub-rot: 0deg;
  --hub-scale: 1;
  --hub-hover-scale: 1;
  --hub-energy: 0;
  --core-shift-x: 0px;
  --core-shift-y: 0px;
  --core-scale: 1;
  --core-rot: 0deg;
  width: min(48vw, 360px);
  height: min(48vw, 360px);
  min-width: 160px;
  min-height: 160px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: absolute;
  cursor: crosshair;
  touch-action: manipulation;
  transform: translate(var(--hub-pull-x), var(--hub-pull-y)) rotate(var(--hub-rot)) scale(calc(var(--hub-scale) * var(--hub-hover-scale)));
  transition: transform 170ms ease-out, opacity 170ms ease-out, filter 170ms ease-out;
}

.hub-a {
  left: calc(50% - min(22vw, 205px));
  top: calc(50% - min(18vw, 168px));
}

.hub-b {
  left: calc(50% + min(2vw, 18px));
  top: calc(50% - min(18vw, 168px));
}

.hub-c {
  left: calc(50% - min(10vw, 90px));
  top: calc(50% + min(7.5vw, 70px));
}

.hub:focus-visible {
  outline: 4px dashed rgba(255, 255, 255, 0.7);
  outline-offset: 6px;
}

.hub-ring {
  --ring-base-duration: 2000ms;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(244, 231, 205, 0.5);
  opacity: calc(0.48 + (var(--hub-energy) * 0.42));
  box-shadow: 0 0 calc(5px + (var(--hub-energy) * 12px)) rgba(255, 224, 160, 0.28);
  animation: hub-ring-spin var(--ring-base-duration) linear infinite;
  animation-duration: clamp(900ms, calc(var(--ring-base-duration) - (var(--hub-energy) * 620ms)), var(--ring-base-duration));
  pointer-events: none;
}

.hub-ring-middle {
  --ring-base-duration: 1800ms;
  inset: 12%;
}

.hub-ring-inner {
  --ring-base-duration: 1200ms;
  inset: 24%;
}

.hub-core {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  border: 1px solid rgba(255, 237, 196, 0.72);
  background: rgba(255, 236, 194, 0.16);
  display: grid;
  place-items: center;
  color: rgba(255, 244, 220, 0.94);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.36);
  font-size: clamp(1.6rem, 3.1vw, 2.2rem);
  transform: translate(var(--core-shift-x), var(--core-shift-y)) scale(var(--core-scale)) rotate(var(--core-rot));
  transition: transform 150ms ease-out;
  animation: hub-core-pulse 2800ms ease-in-out infinite;
}

.hub-a .hub-ring,
.hub-a .hub-core {
  border-color: rgba(178, 238, 255, 0.82);
}

.hub-a .hub-ring {
  box-shadow: 0 0 14px rgba(126, 232, 255, 0.22);
}

.hub-a .hub-core {
  color: var(--fib-flower-contrast);
  background: rgba(104, 228, 255, 0.15);
  box-shadow: inset 0 0 16px rgba(120, 230, 255, 0.32), 0 0 20px var(--fib-flower-glow);
}

.hub-b .hub-ring,
.hub-b .hub-core {
  border-color: rgba(255, 255, 255, 0.4);
}

.hub-c .hub-ring,
.hub-c .hub-core {
  border-color: rgba(199, 222, 255, 0.7);
}

.hub-page[data-hover] .hub {
  opacity: 0.66;
}

.hub-page[data-hover="wake"] .hub-b,
.hub-page[data-hover="wake"] .hub-c,
.hub-page[data-hover="fold"] .hub-a,
.hub-page[data-hover="fold"] .hub-c,
.hub-page[data-hover="spire"] .hub-a,
.hub-page[data-hover="spire"] .hub-b {
  opacity: 0.52;
}

.hub-page[data-hover="wake"] .hub-a,
.hub-page[data-hover="fold"] .hub-b,
.hub-page[data-hover="spire"] .hub-c {
  --hub-hover-scale: 1.06;
  filter: brightness(1.4);
  opacity: 1;
}

.hub-page[data-hover="wake"] .hub-a .hub-core {
  box-shadow: inset 0 0 20px rgba(126, 232, 255, 0.42), 0 0 24px rgba(126, 232, 255, 0.7);
}

.hub-page[data-hover] .hub-logo-mark {
  opacity: 0.48;
}

.hub-page[data-hover="wake"] .hub-logo-top-left,
.hub-page[data-hover="fold"] .hub-logo-top-right,
.hub-page[data-hover="spire"] .hub-logo-bottom-left {
  opacity: 1;
  transform: translate(var(--overlay-pull-x), var(--overlay-pull-y)) rotate(var(--overlay-rot)) scale(1.08);
  filter: drop-shadow(0 0 20px rgba(255, 231, 170, 0.72));
}

.hub-page[data-hover] .hub-strand {
  opacity: 0.18;
}

.hub-page[data-hover] .diamond-shape {
  opacity: 0.4;
}

.hub-page[data-hover="wake"] .hub-strand-wake,
.hub-page[data-hover="fold"] .hub-strand-fold,
.hub-page[data-hover="spire"] .hub-strand-spire {
  opacity: 0.95;
}

.hub-page[data-hover="wake"] .diamond-outer,
.hub-page[data-hover="fold"] .diamond-outer,
.hub-page[data-hover="spire"] .diamond-outer {
  opacity: 0.92;
  animation-duration: 5600ms;
}

.hub-page[data-hover="wake"] .diamond-glyph-band,
.hub-page[data-hover="fold"] .diamond-glyph-band,
.hub-page[data-hover="spire"] .diamond-glyph-band {
  opacity: 0.5;
}

.hub-page[data-hover="wake"] .hub-a .hub-ring,
.hub-page[data-hover="fold"] .hub-b .hub-ring,
.hub-page[data-hover="spire"] .hub-c .hub-ring {
  animation-duration: 1000ms;
}

.hub-page[data-hub-state="locked"] .hub,
.hub-page[data-hub-state="committed"] .hub {
  pointer-events: none;
}

.hub-page[data-hub-state="committed"][data-path="wake"] .hub-b,
.hub-page[data-hub-state="committed"][data-path="wake"] .hub-c,
.hub-page[data-hub-state="committed"][data-path="fold"] .hub-a,
.hub-page[data-hub-state="committed"][data-path="fold"] .hub-c,
.hub-page[data-hub-state="committed"][data-path="spire"] .hub-a,
.hub-page[data-hub-state="committed"][data-path="spire"] .hub-b {
  opacity: 0.15;
  animation: none;
}

.hub-page[data-hub-state="committed"][data-path="wake"] {
  --bg-primary: #ffffff;
  color: #111111;
}

.hub-page[data-hub-state="committed"] .mobius-loop,
.hub-page[data-hub-state="committed"] .mobius-knot {
  transition: border-color 300ms ease, opacity 300ms ease;
}

.hub-page[data-hub-state="committed"][data-path="wake"] .mobius-loop,
.hub-page[data-hub-state="committed"][data-path="wake"] .mobius-knot {
  border-color: rgba(171, 124, 23, 0.58);
  opacity: 0.46;
}

.hub-page[data-hub-state="committed"] .hub-logo-mark {
  opacity: 0.5;
}

.hub-page[data-hub-state="committed"][data-path="wake"] .hub-logo-top-left,
.hub-page[data-hub-state="committed"][data-path="fold"] .hub-logo-top-right,
.hub-page[data-hub-state="committed"][data-path="spire"] .hub-logo-bottom-left {
  opacity: 0.96;
  filter: drop-shadow(0 0 24px rgba(255, 232, 170, 0.82));
}

.hub-page[data-hub-state="committed"] .hub-strand {
  opacity: 0.12;
}

.hub-page[data-hub-state="committed"] .diamond-shape {
  opacity: 0.18;
}

.hub-page[data-hub-state="committed"] .diamond-glyph-band {
  opacity: 0.14;
}

.hub-page[data-hub-state="committed"][data-path="wake"] .diamond-outer,
.hub-page[data-hub-state="committed"][data-path="fold"] .diamond-outer,
.hub-page[data-hub-state="committed"][data-path="spire"] .diamond-outer {
  opacity: 0.62;
}

.hub-page[data-hub-state="committed"] .hub-seed-logo {
  opacity: 0.26;
}

.hub-page[data-hub-state="committed"][data-path="wake"] .hub-strand-wake,
.hub-page[data-hub-state="committed"][data-path="fold"] .hub-strand-fold,
.hub-page[data-hub-state="committed"][data-path="spire"] .hub-strand-spire {
  opacity: 0.84;
}

.hub-page[data-hub-state="committed"][data-path="wake"] .mobius-loop-a {
  animation: mobius-settle-cw 1400ms ease-out 1 forwards;
}

.hub-page[data-hub-state="committed"][data-path="wake"] .mobius-loop-b {
  animation: mobius-settle-ccw 1400ms ease-out 1 forwards;
}

.hub-page[data-hub-state="committed"][data-path="wake"] .hub-titlebar {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(16, 16, 20, 0.16);
}

.hub-page[data-hub-state="committed"][data-path="wake"] .hub-title,
.hub-page[data-hub-state="committed"][data-path="wake"] .hub-titlebar-links a {
  color: rgba(24, 24, 28, 0.9);
  border-color: rgba(24, 24, 28, 0.28);
}

.hub-page[data-hub-state="committed"][data-path="fold"] {
  --bg-primary: #000000;
  color: #eeeeee;
}

.hub-page[data-hub-state="committed"][data-path="spire"] {
  --bg-primary: #0c121b;
  color: #dce4f8;
}

.hub-page[data-hub-state="committed"][data-path="fold"] .mobius-loop,
.hub-page[data-hub-state="committed"][data-path="fold"] .mobius-knot,
.hub-page[data-hub-state="committed"][data-path="spire"] .mobius-loop,
.hub-page[data-hub-state="committed"][data-path="spire"] .mobius-knot {
  border-color: rgba(240, 191, 88, 0.58);
  opacity: 0.5;
}

.hub-page[data-hub-state="committed"][data-path="fold"] .mobius-loop-a {
  animation: mobius-settle-cw 1400ms ease-out 1 forwards;
}

.hub-page[data-hub-state="committed"][data-path="fold"] .mobius-loop-b {
  animation: mobius-settle-ccw 1400ms ease-out 1 forwards;
}

.hub-page[data-hub-state="committed"][data-path="fold"] .hub-a,
.hub-page[data-hub-state="committed"][data-path="fold"] .hub-b {
  color: #eeeeee;
}

.hub-page[data-hub-state="committed"][data-path="spire"] .hub-a,
.hub-page[data-hub-state="committed"][data-path="spire"] .hub-b,
.hub-page[data-hub-state="committed"][data-path="spire"] .hub-c {
  color: #dce4f8;
}

.hub-page[data-hub-state="committed"][data-path="wake"] .hub-a .hub-ring,
.hub-page[data-hub-state="committed"][data-path="wake"] .hub-a .hub-core {
  border-color: rgba(17, 17, 17, 0.72);
  color: #111111;
}

.hub-page[data-hub-state="committed"][data-path="fold"] .hub-b .hub-ring,
.hub-page[data-hub-state="committed"][data-path="fold"] .hub-b .hub-core {
  border-color: rgba(238, 238, 238, 0.74);
  color: #eeeeee;
}

.hub-page[data-hub-state="committed"][data-path="fold"] .hub-b .hub-core {
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.hub-page[data-hub-state="committed"][data-path="spire"] .hub-c .hub-ring,
.hub-page[data-hub-state="committed"][data-path="spire"] .hub-c .hub-core {
  border-color: rgba(220, 232, 255, 0.86);
  color: #dce4f8;
}

.hub-label {
  position: absolute;
  top: calc(50% + min(27vw, 190px));
  width: 50%;
  text-align: center;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: none;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.58);
}

#hub-label-a {
  left: 0;
}

#hub-label-b {
  right: 0;
}

#hub-label-c {
  right: 8%;
  top: calc(50% + min(14vw, 96px));
  width: auto;
}

.hub-page[data-path="wake"] #hub-label-a,
.hub-page[data-path="fold"] #hub-label-b,
.hub-page[data-path="spire"] #hub-label-c {
  display: block;
  opacity: 1;
}

.hub-page[data-path="wake"] #hub-label-a {
  color: #111111;
}

.hub-page[data-path="fold"] #hub-label-b {
  color: #eeeeee;
}

.hub-page[data-path="spire"] #hub-label-c {
  color: #dce4f8;
}

.hub-continue {
  margin: 2.2rem auto 0;
  display: none;
  opacity: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: inherit;
  pointer-events: none;
  background: rgba(255, 221, 158, 0.14);
  border: 1px solid rgba(255, 227, 173, 0.52);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  animation: continue-breathe 2000ms ease-in-out infinite;
}

.hub-page[data-hub-state="committed"] .hub-continue[data-visible="true"] {
  display: inline-block;
  opacity: 1;
  pointer-events: auto;
}

.post-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: none;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 280ms ease;
}

.hub-page[data-hub-state="committed"] .post-nav {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.post-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid rgba(250, 226, 176, 0.34);
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  text-decoration: none;
  background: rgba(10, 10, 14, 0.56);
}

.post-nav a:hover,
.post-nav a:focus-visible {
  color: #111217;
  background: rgba(255, 228, 171, 0.96);
  border-color: rgba(255, 236, 190, 1);
  outline: none;
}

.hub-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
}

.glyph-layer {
  position: fixed;
  inset: 0;
  z-index: 9100;
  pointer-events: none;
}

.spawn-glyph {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.7;
  font-size: 1.2rem;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.hub-page[data-hub-state="locked"] .hub-a,
.hub-page[data-hub-state="locked"] .hub-b,
.hub-page[data-hub-state="locked"] .hub-c {
  z-index: 9200;
}

@keyframes hub-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hub-core-pulse {
  0% { opacity: 0.42; }
  50% { opacity: 0.9; }
  100% { opacity: 0.42; }
}

@keyframes continue-breathe {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes diamond-spin-cw {
  from { transform: translate(-50%, -50%) rotate(45deg); }
  to { transform: translate(-50%, -50%) rotate(405deg); }
}

@keyframes diamond-spin-ccw {
  from { transform: translate(-50%, -50%) rotate(45deg); }
  to { transform: translate(-50%, -50%) rotate(-315deg); }
}

@keyframes mobius-flow-cw {
  from { transform: rotate(18deg) scaleX(1.02); }
  to { transform: rotate(378deg) scaleX(1.02); }
}

@keyframes strand-breathe {
  0% { filter: drop-shadow(0 0 6px rgba(255, 214, 128, 0.28)) brightness(0.88); }
  50% { filter: drop-shadow(0 0 12px rgba(255, 224, 164, 0.55)) brightness(1.24); }
  100% { filter: drop-shadow(0 0 6px rgba(255, 214, 128, 0.28)) brightness(0.88); }
}

@keyframes sky-drift {
  0% { opacity: 0.22; transform: translateY(0); }
  100% { opacity: 0.34; transform: translateY(-0.8%); }
}

@keyframes mobius-flow-ccw {
  from { transform: rotate(-18deg) scaleX(1.02); }
  to { transform: rotate(-378deg) scaleX(1.02); }
}

@keyframes mobius-settle-cw {
  from { transform: rotate(18deg) scaleX(1.02); }
  to { transform: rotate(70deg) scaleX(1.02); }
}

@keyframes mobius-settle-ccw {
  from { transform: rotate(-18deg) scaleX(1.02); }
  to { transform: rotate(-70deg) scaleX(1.02); }
}

@media (max-width: 860px) {
  .mobius-frame {
    width: min(92vw, 760px);
    height: min(56vw, 420px);
  }

  .hub-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hub-titlebar-links {
    justify-content: flex-start;
  }

  .engine-telemetry {
    width: min(92vw, 420px);
    right: 50%;
    transform: translateX(50%);
    top: 1rem;
  }

  .engine-calibration {
    width: min(92vw, 420px);
    left: 50%;
    transform: translateX(-50%);
    top: 15.5rem;
  }

  .hub-split {
    height: min(110vw, 760px);
  }

  .sunflower-core {
    width: min(16vw, 94px);
  }

  .hub-logo-mark {
    width: min(10.8vw, 55px);
  }

  .diamond-field {
    width: min(96vw, 700px);
    height: min(96vw, 700px);
  }

  .diamond-glyph-band {
    width: 94%;
    letter-spacing: 0.2em;
  }

  .hub-strand {
    height: 1px;
  }

  .hub-seed-logo {
    width: clamp(30px, 6.5vw, 52px);
  }

  .hub-strand-wake,
  .hub-strand-fold,
  .hub-strand-spire {
    width: clamp(180px, 38vw, 360px);
  }

  .hub-logo-top-left,
  .hub-logo-top-right {
    top: 10px;
  }

  .hub-logo-bottom-left {
    left: 10px;
    bottom: 10px;
  }

  .hub-label {
    top: calc(50% + min(30vw, 170px));
    letter-spacing: 0.22em;
    font-size: 0.85rem;
  }

  #hub-label-c {
    top: calc(50% + min(20vw, 140px));
    right: 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobius-loop,
  .mobius-knot,
  .hub-sky,
  .diamond-outer,
  .diamond-inner,
  .hub-strand,
  .hub,
  .hub-ring,
  .hub-core,
  .hub-continue,
  .spawn-glyph {
    animation: none !important;
    transition-duration: 40ms !important;
  }

  .space-particle {
    transition-duration: 60ms !important;
  }
}
