/* ============================================================
   HOUSE OF GRANT — SWARM CONSTELLATION (DARK MINIMAL)
   ============================================================ */

:root {
  --bg-obsidian: #070709;
  --bg-surface: #0d0d12;
  --bg-elevated: #13131b;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.68);
  --text-muted: rgba(245, 245, 247, 0.42);
  --active-accent: #e5e7eb;
  --active-accent-soft: rgba(229, 231, 235, 0.12);
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --nucleus-size: 192px;
  --node-size: 122px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-obsidian);
  position: relative;
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Ambient Background & Micro-grid */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 44%, var(--active-accent-soft) 0%, rgba(7, 7, 9, 0) 52%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
  transition: background 0.65s var(--ease-out);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 45%, black 15%, transparent 78%);
}

/* Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 7, 9, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-monogram {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.94;
}

.topbar-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.topbar-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.topbar-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

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

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.nav-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

/* ============================================================
   CONSTELLATION HERO SECTION
   ============================================================ */

.constellation-section {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 22px;
}

.section-intro {
  text-align: center;
  z-index: 4;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-headline {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-headline .muted {
  color: var(--text-muted);
}

/* Stage Container */
.constellation-stage {
  position: relative;
  width: min(1040px, 100%);
  height: min(690px, 72vh);
  min-height: 540px;
  margin: 6px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.orbit-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
}

.orbit-ring-dashed {
  fill: none;
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.synapse-line {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.25;
  transition: stroke 0.35s ease, stroke-width 0.35s ease, opacity 0.35s ease;
}

.synapse-line.is-active {
  stroke-width: 2;
  opacity: 1;
}

.synapse-line.is-dimmed {
  opacity: 0.22;
}

.synapse-pulse-tail {
  stroke-linecap: round;
  transition: stroke-width 0.3s ease;
}

.synapse-pulse-halo {
  pointer-events: none;
}

.synapse-pulse-core {
  filter: drop-shadow(0 0 6px currentColor);
  pointer-events: none;
}

/* Central Nucleus */
.nucleus-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  outline: none;
}

.nucleus-core {
  position: relative;
  width: var(--nucleus-size);
  height: var(--nucleus-size);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #20202d 0%, #0d0d14 62%, #060608 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 42px var(--active-accent-soft),
    0 24px 64px rgba(0, 0, 0, 0.82),
    inset 0 1px 22px rgba(255, 255, 255, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease, box-shadow 0.55s ease;
}

.nucleus-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.nucleus-halo {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--nucleus-size) + 26px);
  height: calc(var(--nucleus-size) + 26px);
  transform: translate(-50%, -13px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  animation: nucleusPulse 4.8s ease-in-out infinite;
}

.nucleus-ring {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--nucleus-size) + 64px);
  height: calc(var(--nucleus-size) + 64px);
  transform: translate(-50%, -32px);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.065);
  pointer-events: none;
  animation: slowSpin 52s linear infinite;
}

/* Engraved rotating circular seal */
.nucleus-seal {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--nucleus-size) + 46px);
  height: calc(var(--nucleus-size) + 46px);
  transform: translate(-50%, -23px);
  pointer-events: none;
  z-index: 2;
  animation: sealSpin 36s linear infinite;
}

.seal-text {
  fill: rgba(245, 245, 247, 0.34);
  font-family: var(--font-mono);
  font-size: 9.2px;
  font-weight: 500;
  letter-spacing: 3.1px;
  text-transform: uppercase;
  transition: fill 0.35s ease;
}

.nucleus-node.is-targeting .seal-text {
  fill: rgba(245, 245, 247, 0.56);
}

/* Reactive Swarm Compass / Radar Arc */
.nucleus-compass {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--nucleus-size) + 12px);
  height: calc(var(--nucleus-size) + 12px);
  margin-left: calc((var(--nucleus-size) + 12px) / -2);
  margin-top: -6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: conic-gradient(
    from -28deg,
    transparent 0deg,
    var(--active-accent) 28deg,
    transparent 56deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  opacity: 0.45;
  transform: rotate(0deg);
  transition: transform 0.65s var(--ease-out), opacity 0.35s ease, filter 0.35s ease;
}

.nucleus-node.is-targeting .nucleus-compass {
  opacity: 1;
  filter: drop-shadow(0 0 10px var(--active-accent));
}

.nucleus-node.is-targeting .nucleus-core {
  border-color: var(--active-accent);
}

.nucleus-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.nucleus-logo-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.18));
}

.nucleus-divider {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 245, 247, 0.38), transparent);
}

.nucleus-brand-title {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(245, 245, 247, 0.92);
  text-transform: uppercase;
  white-space: nowrap;
}

.nucleus-node:hover .nucleus-core,
.nucleus-node:focus-visible .nucleus-core {
  transform: scale(1.045);
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow:
    0 0 42px rgba(255, 255, 255, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.82),
    inset 0 1px 22px rgba(255, 255, 255, 0.14);
}

.nucleus-caption {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--text-secondary);
  background: rgba(7, 7, 9, 0.85);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

/* Orbital Division Nodes */
.nodes-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.division-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  outline: none;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.division-circle {
  position: relative;
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #16161f 0%, #0b0b10 72%, #070709 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.72),
    inset 0 1px 14px rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}

.division-circle::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, var(--node-accent-soft, rgba(255, 255, 255, 0.12)), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.division-logo {
  position: relative;
  z-index: 2;
  width: var(--logo-scale, 70%);
  height: var(--logo-scale, 70%);
  object-fit: contain;
  transform: translateY(var(--logo-offset-y, 0px));
  transition: transform 0.4s var(--ease-out), filter 0.35s ease;
}

.division-logo.is-round {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.division-logo.is-cover {
  object-fit: cover;
}

.division-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  pointer-events: none;
}

.division-label {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-shadow: 0 2px 12px rgba(7, 7, 9, 0.95);
  transition: color 0.3s ease;
}

.division-cat {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* Hover & Active States — Vivid signature color per division */
.division-node:hover .division-circle,
.division-node:focus-visible .division-circle,
.division-node.is-active .division-circle {
  transform: scale(1.075);
  border-color: var(--node-accent, rgba(255, 255, 255, 0.5));
  box-shadow:
    0 0 42px var(--node-accent-soft, rgba(255, 255, 255, 0.22)),
    0 0 14px var(--node-accent-soft, rgba(255, 255, 255, 0.16)),
    0 20px 52px rgba(0, 0, 0, 0.82),
    inset 0 0 24px var(--node-accent-soft, rgba(255, 255, 255, 0.14));
}

.division-node:hover .division-circle::after,
.division-node:focus-visible .division-circle::after,
.division-node.is-active .division-circle::after {
  opacity: 1;
}

.division-node:hover .division-logo,
.division-node.is-active .division-logo {
  transform: translateY(var(--logo-offset-y, 0px)) scale(1.05);
}

.division-node:hover .division-label,
.division-node.is-active .division-label {
  color: var(--node-accent, var(--text-primary));
}

.division-node:hover .division-cat,
.division-node.is-active .division-cat {
  color: var(--text-secondary);
}

.constellation-stage.has-hover .division-node:not(.is-hovered):not(.is-active) {
  opacity: 0.46;
}

/* Stage Footer Hint */
.stage-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(13, 13, 18, 0.75);
  z-index: 4;
}

.hint-sep {
  opacity: 0.4;
}

#activeNodeReadout {
  color: var(--text-secondary);
}

/* ============================================================
   MANIFESTO & COMPANY SECTIONS
   ============================================================ */

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.manifesto-section {
  position: relative;
  z-index: 2;
  padding: 96px 0 72px;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 100%);
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out);
}

.pillar-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.pillar-code {
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Company & Meta API Card */
.company-section {
  position: relative;
  z-index: 2;
  padding: 24px 0 92px;
}

.company-card {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(19, 19, 27, 0.85) 0%, rgba(11, 11, 16, 0.92) 100%);
}

.company-info h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.company-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.company-meta {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.company-meta strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.legal-links-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-left: 28px;
  border-left: 1px solid var(--border-subtle);
}

.legal-box-title {
  color: var(--text-muted);
  margin-bottom: 6px;
}

.legal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.legal-link:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.footer-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.75;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.footer-right a:hover {
  color: var(--text-primary);
}

/* ============================================================
   DIVISION DOSSIER DRAWER
   ============================================================ */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 4, 6, 0.68);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dossier-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  z-index: 50;
  background: rgba(11, 11, 16, 0.96);
  border-left: 1px solid var(--border-subtle);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-out);
}

.dossier-drawer.is-open {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-code {
  color: var(--text-muted);
}

.drawer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.drawer-body {
  padding: 28px 26px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}

.drawer-emblem {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #191924 0%, #09090d 100%);
  border: 1.5px solid var(--drawer-accent, rgba(255, 255, 255, 0.25));
  box-shadow: 0 0 28px var(--drawer-accent-soft, rgba(255, 255, 255, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.drawer-emblem img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.drawer-emblem img.is-round {
  width: 86%;
  height: 86%;
  border-radius: 50%;
}

.drawer-title-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--drawer-accent, var(--text-primary));
}

.drawer-title {
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.drawer-category {
  color: var(--text-muted);
}

.drawer-tagline {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.5;
  padding-left: 14px;
  border-left: 2px solid var(--drawer-accent, rgba(255, 255, 255, 0.3));
}

.drawer-desc {
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.drawer-block-title {
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.drawer-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.drawer-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--drawer-accent, #f5f5f7);
}

.subdomain-box {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subdomain-url {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.drawer-link-btn:hover {
  border-color: var(--drawer-accent, var(--border-strong));
  background: rgba(255, 255, 255, 0.06);
}

.drawer-link-btn.is-pending {
  color: var(--text-secondary);
}

.pending-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 3px 7px;
  border-radius: 999px;
}

/* ============================================================
   ANIMATIONS & RESPONSIVE
   ============================================================ */

@keyframes nucleusPulse {
  0%, 100% {
    transform: translate(-50%, -13px) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(-50%, -13px) scale(1.06);
    opacity: 0.9;
  }
}

@keyframes slowSpin {
  from {
    transform: translate(-50%, -32px) rotate(0deg);
  }
  to {
    transform: translate(-50%, -32px) rotate(360deg);
  }
}

@keyframes sealSpin {
  from {
    transform: translate(-50%, -23px) rotate(0deg);
  }
  to {
    transform: translate(-50%, -23px) rotate(360deg);
  }
}

.drawer-emblem img.is-cover {
  object-fit: cover;
}

@media (max-width: 900px) {
  :root {
    --nucleus-size: 156px;
    --node-size: 104px;
  }

  .nucleus-logo-img {
    width: 44px;
    height: 54px;
  }

  .nucleus-brand-title {
    font-size: 0.54rem;
    letter-spacing: 0.18em;
  }

  .topbar-nav a {
    display: none;
  }

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

  .company-card {
    grid-template-columns: 1fr;
  }

  .legal-links-box {
    padding-left: 0;
    padding-top: 24px;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

/* Mobile Layout: Clean vertical constellation with crisp topbar & zero overflow */
@media (max-width: 680px) {
  :root {
    --nucleus-size: 152px;
    --node-size: 108px;
  }

  .topbar {
    height: 62px;
    padding: 0 16px;
  }

  .topbar-brand {
    gap: 10px;
  }

  .topbar-monogram {
    width: 24px;
    height: 24px;
  }

  .topbar-title {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .topbar-sub {
    font-size: 0.54rem;
    letter-spacing: 0.14em;
  }

  .topbar-nav {
    gap: 7px;
  }

  .lang-btn {
    font-size: 0.56rem;
    padding: 4px 7px;
  }

  .nav-pill {
    padding: 6px 10px;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    gap: 5px;
    white-space: nowrap;
  }

  .section-intro {
    padding: 4px 8px 0;
  }

  .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
  }

  .hero-headline {
    font-size: 1.48rem;
  }

  .constellation-section {
    min-height: auto;
    gap: 20px;
    padding: 18px 16px 32px;
  }

  .constellation-stage {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 12px 0;
  }

  .constellation-svg {
    display: none;
  }

  .nucleus-node {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }

  .nucleus-logo-img {
    width: 58px;
    height: 58px;
  }

  .nodes-layer {
    position: relative;
    inset: auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
    justify-items: center;
  }

  .division-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

  .division-node:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .division-label {
    font-size: 0.8rem;
  }

  .division-cat {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }

  .stage-hint {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    border-radius: 14px;
    padding: 10px 14px;
    width: 100%;
  }

  .hint-sep {
    display: none;
  }

  .site-footer {
    padding: 18px 0 24px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
}
