/*
Theme Name: OrionPulse Resources
Theme URI: https://orionpulse.in/resources
Author: Orion Pulse AI
Author URI: https://orionpulse.in
Description: A custom OrionPulse Knowledge Vault theme for premium resource data modules, playbooks, templates, guides and business intelligence.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orionpulse-resources
Tags: custom-theme, resources, dark, editorial, one-column
*/

:root {
  --bg: #010205;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.72);
  --muted-strong: rgba(226, 232, 240, 0.86);
  --purple: #8b5cf6;
  --blue: #61a8ff;
  --gold: #f7c85f;
  --teal: #3adcbe;
  --font-heading: "Outfit", "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 74% 12%, rgba(139, 92, 246, 0.18), transparent 35rem),
    radial-gradient(circle at 18% 42%, rgba(58, 220, 190, 0.1), transparent 34rem),
    radial-gradient(circle at 58% 78%, rgba(247, 200, 95, 0.12), transparent 38rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.container { width: min(1280px, calc(100% - 44px)); margin: 0 auto; }
.screen-reader-text, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  color: #050508;
}

.vault-universe {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
}

.vault-aurora {
  position: absolute;
  width: 56vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite;
}

.vault-aurora-a { left: -16vw; top: 12vh; background: rgba(139, 92, 246, 0.34); }
.vault-aurora-b { right: -18vw; top: 4vh; background: rgba(97, 168, 255, 0.24); animation-delay: -7s; }
.vault-noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
}

.vault-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
  animation: starPulse 5s ease-in-out infinite;
}
.vault-star-1 { left: 7%; top: 18%; }
.vault-star-2 { left: 18%; top: 42%; animation-delay: .4s; }
.vault-star-3 { left: 32%; top: 22%; animation-delay: .8s; }
.vault-star-4 { left: 46%; top: 68%; animation-delay: 1.2s; }
.vault-star-5 { left: 61%; top: 34%; animation-delay: 1.6s; }
.vault-star-6 { left: 76%; top: 58%; animation-delay: 2s; }
.vault-star-7 { left: 88%; top: 24%; animation-delay: 2.4s; }
.vault-star-8 { left: 94%; top: 72%; animation-delay: 2.8s; }
.vault-star-9 { left: 12%; top: 76%; animation-delay: 3.2s; }
.vault-star-10 { left: 51%; top: 12%; animation-delay: 3.6s; }
.vault-star-11 { left: 69%; top: 82%; animation-delay: 4s; }
.vault-star-12 { left: 83%; top: 9%; animation-delay: 4.4s; }

.site-nav {
  position: fixed;
  z-index: 1000;
  top: 1.35rem;
  left: 50%;
  width: min(1120px, calc(100% - 44px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    rgba(3, 4, 9, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px) saturate(130%);
  transform: translateX(-50%);
  transition: padding 240ms ease, background 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}
.site-nav.scrolled {
  padding: 0.58rem 0.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(3, 4, 9, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 24px 90px rgba(0, 0, 0, 0.38),
    0 0 36px rgba(139, 92, 246, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #fff;
  font: 950 1.04rem/1 var(--font-heading);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-orb {
  width: 20px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.logo-pulse {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.logo-os {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(247, 200, 95, 0.32);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.58rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
}
.nav-link,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.78);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  line-height: 1;
  padding: 0.55rem 0;
  text-transform: uppercase;
}
.nav-link::after,
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.18rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.75);
  transition: width 180ms ease;
}
.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover .nav-dropdown-toggle { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after,
.nav-dropdown:hover .nav-dropdown-toggle::after { width: 100%; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  display: grid;
  min-width: 330px;
  gap: 0.35rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(5, 5, 8, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.98);
  transition: all 180ms ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.nav-dropdown-menu a {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.nav-dropdown-menu a:hover { background: rgba(139, 92, 246, 0.12); }
.nav-dropdown-menu strong { font-size: 0.88rem; }
.nav-dropdown-menu small { color: var(--muted); }
.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #100b02;
  font-weight: 950;
  padding: 0 1.15rem;
  box-shadow: 0 0 42px rgba(247, 200, 95, 0.32);
}

.vault-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 8rem 0 5rem;
}
.compact-vault-hero {
  min-height: 62vh;
}
.vault-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.vault-hero h1 {
  display: grid;
  margin: 0.8rem 0 1rem;
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 0.82;
}
.hero-copy {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.55vw, 1.3rem);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 950;
  padding: 0 1.18rem;
}
.button.primary {
  background: var(--gold);
  color: #120d02;
  box-shadow: 0 0 44px rgba(247, 200, 95, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
}

.vault-core {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}
.core-halo {
  position: absolute;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 200, 95, 0.12), transparent 50%);
  filter: blur(18px);
  animation: pulseGlow 4s ease-in-out infinite;
}
.human-core-sphere,
.core-sphere {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(28vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(247, 200, 95, 0.3)) drop-shadow(0 0 10px rgba(247, 200, 95, 0.5));
}
.core-logo-obj {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.core-ring {
  position: absolute;
  width: min(40vw, 480px);
  height: 34%;
  border: 1px solid rgba(247, 200, 95, 0.28);
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(247, 200, 95, 0.22));
}
.core-ring-a { transform: rotate(18deg); animation: orbit 14s linear infinite; }
.core-ring-b { transform: rotate(92deg); animation: orbit 18s linear infinite reverse; }
.core-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(247, 200, 95, 0.88);
}
.core-node-a { left: 16%; top: 44%; }
.core-node-b { right: 18%; top: 32%; }
.core-node-c { right: 28%; bottom: 18%; }

.vault-search-section,
.featured-module-section,
.vault-modules,
.latest-modules,
.vault-final,
.section {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.vault-search-section { padding-top: 1rem; }
.vault-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: min(900px, 100%);
  margin: 0 auto 1.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
    rgba(5, 5, 8, 0.68);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.vault-search:focus-within {
  border-color: rgba(247, 200, 95, 0.55);
  box-shadow: 0 0 0 4px rgba(247, 200, 95, 0.08), 0 24px 80px rgba(0, 0, 0, 0.45);
}
.vault-search span { color: var(--gold); font-size: 1.25rem; }
.vault-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}
.vault-search input::placeholder { color: rgba(226, 232, 240, 0.38); }
.vault-search button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 0.68rem 0.95rem;
}
.vault-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.vault-filter {
  position: relative;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.72);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  padding: 0 0.4rem;
  text-transform: uppercase;
}
.vault-filter::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.vault-filter:hover,
.vault-filter.active { color: #fff; text-shadow: 0 0 20px rgba(247, 200, 95, 0.45); }
.vault-filter.active::after { transform: scaleX(1); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  align-items: end;
  gap: clamp(1.5rem, 4.5vw, 3.5rem);
  margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem);
}
.section-heading.compact { display: block; }
.section-heading h2 {
  margin-top: 0.65rem;
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  line-height: 0.9;
}
.section-heading p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.resource-groups {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
}
.resource-group[hidden],
.resource-card[hidden],
.empty-resources[hidden],
.load-more-wrap [hidden] { display: none !important; }
.group-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.4fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.group-heading h3 {
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  line-height: 0.9;
}
.group-heading p {
  margin: 0;
  color: var(--muted);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.featured-module-section .resource-card {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 0.44fr);
  min-height: 560px;
}

.resource-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  isolation: isolate;
}
.resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(247, 200, 95, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  opacity: 0;
  transition: opacity 220ms ease;
}
.resource-card:hover::before { opacity: 1; }
.module-image {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
}
.module-image img,
.single-resource-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}
.resource-card:hover .module-image img { transform: scale(1.04); filter: saturate(1.1); }
.module-cover {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 1rem;
  padding: 1.2rem;
  background:
    linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(247, 200, 95, 0.25), transparent 18rem),
    linear-gradient(135deg, #13082f, #070816);
  background-size: 24px 24px, 24px 24px, auto, auto;
}
.module-cover.blue { background-color: #071126; }
.module-cover.cyan { background-color: #05242c; }
.module-cover.violet { background-color: #180a37; }
.module-cover i {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold);
  font-style: normal;
  font-weight: 950;
  padding: 0.35rem 0.65rem;
}
.module-cover strong {
  max-width: 88%;
  color: #fff;
  font: 950 clamp(1.5rem, 3.4vw, 3.8rem)/0.9 var(--font-heading);
  text-transform: uppercase;
}
.module-body {
  display: grid;
  align-content: start;
  gap: 0.95rem;
  padding: clamp(1.15rem, 2.2vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(3, 5, 10, 0.72);
}
.module-eyebrow,
.module-meta,
.module-tags,
.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.module-eyebrow span,
.module-meta span,
.module-tags span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.48rem 0.58rem;
}
.module-eyebrow span:first-child {
  color: var(--gold);
}
.module-body h3 {
  font-size: clamp(1.45rem, 2.8vw, 3.1rem);
  line-height: 0.93;
}
.module-body p {
  margin: 0;
  color: var(--muted);
}
.module-actions {
  margin-top: 0.4rem;
}
.module-actions .button {
  min-height: 44px;
  font-size: 0.88rem;
}

.latest-list {
  display: grid;
}
.latest-row {
  display: grid;
  grid-template-columns: 0.2fr minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 92px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.latest-row span,
.latest-row em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.latest-row strong {
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}
.latest-row:hover strong { color: var(--gold); }
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.4rem;
}
.empty-resources {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
}
.empty-resources h2 {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.9;
}
.empty-resources p:last-child {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
}

.single-resource-hero {
  padding: 9rem 0 5rem;
}
.single-resource-grid,
.single-resource-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: center;
}
.single-resource-copy h1 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.86;
}
.single-resource-copy > p,
.single-resource-description,
.module-console {
  color: var(--muted);
}
.resource-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0;
}
.resource-meta-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.78);
  padding: 0.55rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 900;
}
.single-resource-cover {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}
.single-resource-cover .module-cover { position: absolute; }
.single-resource-body {
  padding-top: 2rem;
}
.single-resource-content {
  align-items: start;
}
.single-resource-description {
  font-size: 1.05rem;
}
.single-resource-description :first-child {
  margin-top: 0;
}
.module-console {
  position: sticky;
  top: 120px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}
.module-console h2 {
  margin: 0.6rem 0 1.2rem;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 0.95;
}
.module-console dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}
.module-console div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.module-console dt {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.module-console dd {
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.vault-final {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}
.vault-final h2 {
  max-width: 950px;
  margin: 0.9rem auto 1.5rem;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
}

/* src/components/Footer.css */
.footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(247, 200, 95, 0.08), transparent 28rem),
    radial-gradient(circle at 86% 30%, rgba(139, 92, 246, 0.08), transparent 30rem),
    var(--bg-dark-secondary);
  border-top: 1px solid var(--border-color);
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-logo {
  margin-bottom: var(--spacing-xs);
  font-size: 1.8rem;
}

.footer-tagline {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.footer-desc {
  color: var(--text-secondary);
  max-width: 100%;
  margin-bottom: var(--spacing-sm);
}

.brand-mantra {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Links Sections */
.footer-heading {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: inline-block;
  min-height: 32px;
}

.footer-list a:hover {
  color: var(--text-accent);
  transform: translateX(5px);
}

/* Contact Section */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.contact-info p {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-text {
  font-size: 1rem;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.footer-btn {
  align-self: flex-start;
  margin-top: var(--spacing-sm);
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-links a {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.social-links a:hover {
  color: var(--text-accent);
  transform: translateY(-3px) scale(1.1);
}

.footer-authority {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

/* Media Queries */
@media screen and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.2rem, 4.5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
  }
}

@media screen and (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 8vw, 3.5rem);
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    text-align: left;
  }
}
/* Launch responsive parity polish: mirrors React device behavior for Knowledge Vault. */
:root { --tap-target: 48px; --reading-width: 72ch; }
p, li { max-width: var(--reading-width); }
button, [role="button"], .nav-link, .nav-cta, .mobile-toggle, .hero-actions a, .vault-search button, .vault-final a { min-height: var(--tap-target); }
img, video, svg { max-width: 100%; height: auto; }
.mobile-toggle {
  display: none;
  place-items: center;
  width: var(--tap-target);
  height: var(--tap-target);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  color: #fff;
}
.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}
.mobile-toggle span::before { transform: translateY(-6px); }
.mobile-toggle span::after { transform: translateY(4px); }
.mobile-toggle.open span { background: transparent; }
.mobile-toggle.open span::before { background: #fff; transform: translateY(2px) rotate(45deg); }
.mobile-toggle.open span::after { background: #fff; transform: translateY(0) rotate(-45deg); }
body.mobile-menu-open { overflow: hidden; }

@media (min-width: 1920px) {
  .container { width: min(calc(100% - 6rem), 1640px); }
  .site-nav { width: min(1380px, calc(100% - 4rem)); }
  .vault-hero h1, .single-resource-copy h1, .vault-final h2 { max-width: 14ch; font-size: clamp(3.5rem, 6.4vw, 6rem); }
  .hero-copy, .resource-content { --reading-width: 76ch; }
}

@media (max-width: 1280px) {
  .site-nav { width: calc(100% - 1.5rem); }
  .vault-hero h1, .single-resource-copy h1, .vault-final h2 { font-size: clamp(3rem, 6vw, 5.5rem); }
  .section-heading h2, .group-heading h3, .latest-row h3 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
}

@media (max-width: 900px) {
  .site-nav { top: max(.75rem, env(safe-area-inset-top)); }
  .mobile-toggle { display: inline-grid; }
  .primary-nav.open {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: max(6rem, calc(4.8rem + env(safe-area-inset-top))) 1.2rem max(2rem, calc(1rem + env(safe-area-inset-bottom)));
    overflow-y: auto;
    background:
      radial-gradient(circle at 78% 16%, rgba(139,92,246,.22), transparent 26rem),
      radial-gradient(circle at 18% 82%, rgba(247,200,95,.15), transparent 28rem),
      rgba(1,2,5,.94);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
  }
  .primary-nav.open .nav-link {
    display: inline-flex !important;
    width: fit-content;
    color: rgba(255,255,255,.88);
    font: 950 clamp(2.2rem, 5vw, 4.5rem)/.92 var(--font-heading);
    letter-spacing: 0;
  }
  .primary-nav.open .nav-dropdown { display: none; }
  .primary-nav.open .nav-cta { display: inline-flex; width: fit-content; margin-top: .5rem; }
}

@media (hover: none), (pointer: coarse) {
  .resource-card, .nav-link, .hero-actions a { transform: none !important; }
  .nav-dropdown-menu { pointer-events: none; }
}

@media (max-width: 640px) {
  .container { width: min(100%, calc(100% - 24px)); }
  .site-nav { width: calc(100% - 1rem); }
  .nav-cta { display: none; }
  .vault-hero, .single-resource-hero { padding-top: max(7.4rem, calc(6rem + env(safe-area-inset-top))); }
  .vault-hero h1, .single-resource-copy h1, .vault-final h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
  .hero-actions { align-items: stretch; }
  .hero-actions a { width: 100%; justify-content: center; }
  .vault-core, .module-image, .single-resource-cover { min-height: clamp(280px, 78vw, 360px); }
  .core-sphere { width: min(56vw, 220px); }
  .core-ring { width: min(86vw, 340px); }
  .latest-row { min-height: auto; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .primary-nav.open { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 4.5rem; }
  .primary-nav.open .nav-link { font-size: clamp(1.7rem, 7vw, 3.2rem); }
  .vault-hero, .single-resource-hero { padding-top: 5.8rem; }
}
.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-links a {
  color: var(--muted);
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.social-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.1);
}



.orion-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Gold lighting & inner glow but no filters on the logo itself! */
  background: transparent;
}

.orion-logo-wrapper.size-nav {
  height: 24px;
  width: 24px;
  display: block;
}

.orion-logo-wrapper.size-footer {
  height: 24px;
  width: 24px;
  display: block;
}

.orion-logo-wrapper.size-core {
  /* occupy approximately 55-60% of the glowing sphere */
  width: 58%;
  height: 58%;
  display: block;
  margin: auto;
}

.orion-logo-img {
  background: transparent;
  display: block;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  image-rendering: auto;
  position: relative;
  z-index: 2;
  /* DO NOT APPLY filters that introduce artifacts. */
  border: none;
  box-shadow: none;
  outline: none;
}

.orion-logo-bloom {
  /* Removed to avoid artifacts */
  display: none;
}



.orion-logo-wrapper.size-nav {
  height: 24px;
  width: 24px;
}

.orion-logo-wrapper.size-footer {
  height: 28px;
  width: 28px;
}

.orion-logo-wrapper.size-core {
  /* occupy approximately 60-70% of the current core diameter */
  width: 65%;
  height: 65%;
  margin: auto;
}

.orion-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  position: relative;
  z-index: 2;
  /* Slight reflection/inner light */
  filter: brightness(1.1) contrast(1.05);
}

.orion-logo-bloom {
  position: absolute;
  inset: 0px;
  background: radial-gradient(circle at center, rgba(247, 200, 95, 0.8) 0%, rgba(247, 200, 95, 0) 70%);
  z-index: 1;
  opacity: 0.6;
  mix-blend-mode: color-dodge;
  animation: logo-pulse 4s ease-in-out infinite alternate;
}

@keyframes logo-pulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 0.8; transform: scale(1.1); }
}



.core-energy-sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(247,200,95, 0.8) 25%, rgba(247,200,95, 0.4) 60%, rgba(247,200,95, 0.1) 100%);
  box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.5), inset 10px 10px 30px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.core-engraved-logo {
  width: 48%;
  height: 48%;
  background: radial-gradient(circle at center, rgba(255,255,255,1) 0%, rgba(247,200,95,0.7) 100%);
  -webkit-mask-image: url(orion-logo.png);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url(orion-logo.png);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mix-blend-mode: overlay;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  animation: logo-engrave-pulse 4s ease-in-out infinite alternate;
}
/* src/components/os/OrionCore.css */
.os-orion-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  perspective: 1200px;
  z-index: 2;
  --core-rgb: 247, 200, 95;
  --glow-intensity: 1;
}

/* Base sizes for different contexts. 
   Constrained to ~70-75vw explicitly to guarantee 15-20% breathing room, no cropping.
   Glow intensities are reduced by ~40% for a cleaner, premium UI. */
.os-orion-core.is-hero { width: clamp(24rem, 74vw, 54rem); --glow-intensity: 0.7; }
.os-orion-core.is-cta { width: clamp(22rem, 65vw, 46rem); --glow-intensity: 0.75; }
.os-orion-core.is-team { width: clamp(24rem, 70vw, 48rem); --glow-intensity: 0.5; }
.os-orion-core.is-resources { width: clamp(20rem, 60vw, 38rem); --glow-intensity: 0.6; }
.os-orion-core.is-blog { width: clamp(18rem, 50vw, 34rem); --glow-intensity: 0.55; }
.os-orion-core.is-service { width: clamp(22rem, 65vw, 44rem); --glow-intensity: 0.65; }
.os-orion-core.is-compact { width: clamp(14rem, 40vw, 24rem); --glow-intensity: 0.4; }
.os-orion-core.is-card { width: clamp(12rem, 30vw, 20rem); --glow-intensity: 0.45; }

/* 1. Large Atmospheric Glow (Deepest Background) */
.core-atmosphere {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--core-rgb), calc(0.18 * var(--glow-intensity))), transparent 65%);
  filter: blur(48px);
  z-index: 0;
  animation: core-breathe 8s ease-in-out infinite;
}

/* 2. Floating Dust (Parallax/Slow Move) */
.core-dust-field {
  position: absolute;
  inset: -15%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.core-dust-particle {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 1px rgba(var(--core-rgb), 0.9);
  opacity: 0;
  animation: dust-float var(--dust-dur) linear infinite;
  animation-delay: var(--dust-delay);
}
@keyframes dust-float {
  0% { transform: translateY(30px) scale(0.6); opacity: 0; }
  25% { opacity: var(--dust-op); }
  75% { opacity: var(--dust-op); }
  100% { transform: translateY(-30px) scale(1); opacity: 0; }
}

/* Layered Energy Rings */
.core-energy-aura {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(var(--core-rgb), calc(0.15 * var(--glow-intensity)));
  animation: core-spin 24s linear infinite reverse;
}

/* Core Container (3D Rotated) */
.core-body-layer {
  position: relative;
  width: 60%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  z-index: 2;
  animation: core-float-body 12s ease-in-out infinite;
}

/* 3. Orbit Rings System */
.core-orbit-ring {
  position: absolute;
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}
.core-ring-1 { /* Solid outer */
  inset: -14%;
  border: 1px solid rgba(255,255,255,0.06);
  border-left-color: rgba(var(--core-rgb), 0.5);
  border-right-color: rgba(var(--core-rgb), 0.2);
  filter: drop-shadow(0 0 16px rgba(var(--core-rgb), 0.3));
  animation: core-spin 26s linear infinite;
}
.core-ring-2 { /* Dotted mid */
  inset: -2%;
  border: 1px dashed rgba(var(--core-rgb), 0.35);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: core-spin 18s linear infinite reverse;
}
.core-ring-3 { /* Sharp inner */
  inset: 14%;
  border: 1px solid rgba(var(--core-rgb), 0.2);
  border-top-color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(var(--core-rgb), 0.4);
  filter: drop-shadow(0 0 10px rgba(var(--core-rgb), 0.65));
  animation: core-spin 14s linear infinite;
}
.core-ring-4 { /* Faint expansive wrapper */
  inset: -34%;
  border: 1px solid rgba(var(--core-rgb), 0.08);
  border-bottom-color: rgba(var(--core-rgb), 0.4);
  filter: drop-shadow(0 0 8px rgba(var(--core-rgb), 0.15));
  animation: core-spin 36s linear infinite;
}

/* Orbit Planets / Intersections */
.core-planet {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 20px 4px rgba(var(--core-rgb), 0.95);
}
.core-ring-1 .core-planet { top: -3px; left: 50%; translate: -50% 0; }
.core-ring-3 .core-planet { bottom: 12%; right: 12%; width: 4px; height: 4px; box-shadow: 0 0 14px 2px rgba(var(--core-rgb), 1); }
.core-ring-4 .core-planet { top: 40%; left: -3px; width: 5px; height: 5px; box-shadow: 0 0 16px 3px rgba(var(--core-rgb), 0.9); }

/* Orbital Particles Map */
.core-orbit-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orb-size, 4px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 2px rgba(var(--core-rgb), 0.8);
  opacity: var(--orb-op, 0.9);
  translate: none;
  rotate: none;
  transform: rotate(var(--orb-start, 0deg)) translateX(var(--orb-radius, 40%));
  transform-origin: 0 0;
  animation: human-dot-orbit var(--orb-dur, 16s) linear infinite;
  animation-delay: var(--orb-delay, 0s);
  will-change: transform;
}

/* 4. the Center Sphere / Artifact */
.core-artifact {
  position: relative;
  z-index: 10;
  width: 68%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  /* Intense, multi-layer centered glow, no visual boundaries */
  box-shadow: 
    inset 0 0 60px rgba(var(--core-rgb), 0.12),
    0 0 50px rgba(var(--core-rgb), calc(0.45 * var(--glow-intensity))),
    0 0 24px rgba(var(--core-rgb), calc(0.85 * var(--glow-intensity))),
    0 0 110px rgba(var(--core-rgb), calc(0.25 * var(--glow-intensity)));
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.06), transparent 60%);
  animation: core-shimmer 4.6s ease-in-out infinite;
}

/* Sharp, centered, stable logo */
.core-artifact-logo {
  position: relative;
  z-index: 11;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* NO borders, NO container backgrounds on the logo itself! */
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.45));
}

/* Foreground Bloom overlay */
.core-volumetric-bloom {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 45%);
  filter: blur(14px);
  z-index: 15;
  mix-blend-mode: screen;
  animation: core-flicker 7.5s infinite;
}

/* Interaction Effects */
.os-orion-core.is-charging .core-artifact {
  box-shadow: 
    inset 0 0 80px rgba(var(--core-rgb), 0.3),
    0 0 90px rgba(var(--core-rgb), calc(0.8 * var(--glow-intensity))),
    0 0 40px #fff,
    0 0 140px rgba(var(--core-rgb), calc(0.5 * var(--glow-intensity)));
  transition: box-shadow 0.4s ease-out;
}
.os-orion-core { cursor: pointer; transition: transform 0.2s cubic-bezier(0.16,1,0.3,1); }
.os-orion-core:active { transform: scale(0.96); }

/* Animations */
@keyframes core-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes core-spin {
  100% { transform: rotate(360deg); }
}

@keyframes core-float-body {
  0%, 100% { transform: translateY(0) rotateX(var(--tilt-x, 0)) rotateY(var(--tilt-y, 0)); }
  50% { transform: translateY(-2.5%) rotateX(var(--tilt-x, 0)) rotateY(var(--tilt-y, 0)); }
}

@keyframes core-shimmer {
  0%, 100% { box-shadow: inset 0 0 60px rgba(var(--core-rgb), 0.12), 0 0 50px rgba(var(--core-rgb), calc(0.45 * var(--glow-intensity))), 0 0 24px rgba(var(--core-rgb), calc(0.85 * var(--glow-intensity))), 0 0 110px rgba(var(--core-rgb), calc(0.25 * var(--glow-intensity))); }
  50% { box-shadow: inset 0 0 75px rgba(var(--core-rgb), 0.18), 0 0 65px rgba(var(--core-rgb), calc(0.6 * var(--glow-intensity))), 0 0 32px rgba(var(--core-rgb), calc(1.05 * var(--glow-intensity))), 0 0 140px rgba(var(--core-rgb), calc(0.35 * var(--glow-intensity))); }
}

@keyframes core-flicker {
  0%, 3%, 12%, 100% { opacity: 0.8; }
  5% { opacity: 0.3; }
  9% { opacity: 0.95; }
}

/* Fix Footer list styles */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Hide Mobile Toggle on Desktop */
@media (min-width: 900px) {
  .mobile-toggle {
    display: none !important;
  }
}

/* Orion Logo Wrapper Styles */
.orion-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.orion-logo-wrapper.size-nav {
  height: 24px;
  width: 24px;
}
.orion-logo-wrapper.size-footer {
  height: 28px;
  width: 28px;
}
.orion-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  position: relative;
  z-index: 2;
  border: none;
  box-shadow: none;
  outline: none;
}

/* Mobile Responsiveness & Grid Stacking */
@media (max-width: 900px) {
  .site-nav { top: max(0.75rem, env(safe-area-inset-top)); }
  .primary-nav {
    display: none;
  }
  .primary-nav.open {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: max(6rem, calc(4.8rem + env(safe-area-inset-top))) 1.2rem max(2rem, calc(1rem + env(safe-area-inset-bottom)));
    overflow-y: auto;
    background:
      radial-gradient(circle at 78% 16%, rgba(139,92,246,0.22), transparent 26rem),
      radial-gradient(circle at 18% 82%, rgba(247,200,95,0.15), transparent 28rem),
      rgba(1,2,5,0.94);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
  }
  .primary-nav.open .nav-link {
    display: inline-flex !important;
    width: fit-content;
    color: rgba(255,255,255,0.88);
    font: 950 clamp(2.2rem, 5vw, 4.5rem)/0.92 var(--font-heading);
    letter-spacing: 0;
  }
  .primary-nav.open .nav-dropdown { display: none; }
  
  /* Grid Stacking for layouts */
  .vault-hero-inner, .section-heading, .group-heading, .single-resource-grid, .single-resource-content, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .featured-module-section .resource-card {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Hamburger Icon */
  .mobile-toggle {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    width: 48px;
    height: 48px;
  }
  .mobile-toggle span { display: block; transition: transform 260ms ease; }
  .mobile-toggle span::before, .mobile-toggle span::after {
    content: ""; display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; transition: transform 260ms ease, opacity 260ms ease;
  }
  .mobile-toggle.open span { background: transparent; }
  .mobile-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
  .mobile-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }
  
  body.mobile-menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .container { width: min(100%, calc(100% - 24px)); }
  .site-nav { width: calc(100% - 1rem); }
  .nav-cta { display: none; }
}

@media (max-width: 900px) {
  body.mobile-menu-open .site-header,
  body.mobile-menu-open .site-nav {
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important;
    padding: max(1rem, env(safe-area-inset-top)) 1.2rem !important;
  }
}

