/*
Theme Name: OrionPulse Blog
Theme URI: https://orionpulse.in/blog
Author: Orion Pulse AI
Author URI: https://orionpulse.in
Description: A custom OrionPulse Insights publication theme with premium editorial layouts, Orion OS navigation, live filtering and immersive article experiences.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: orionpulse
*/

:root {
  --bg: #010205;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.72);
  --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(97, 168, 255, 0.12), transparent 38rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  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; }

.insights-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;
}
.insights-aurora { position: absolute; width: 56vw; aspect-ratio: 1; border-radius: 50%; filter: blur(72px); opacity: 0.35; animation: drift 18s ease-in-out infinite; }
.insights-aurora-a { left: -16vw; top: 12vh; background: rgba(139, 92, 246, 0.34); }
.insights-aurora-b { right: -18vw; top: 4vh; background: rgba(97, 168, 255, 0.24); animation-delay: -7s; }
.insights-noise { position: absolute; inset: 0; opacity: 0.18; background-image: radial-gradient(rgba(255,255,255,.65) 1px, transparent 1px); background-size: 4px 4px; mix-blend-mode: screen; }
.insight-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.76); box-shadow: 0 0 16px rgba(255,255,255,.55); animation: starPulse 5s ease-in-out infinite; }
.insight-star-1 { left: 7%; top: 18%; }
.insight-star-2 { left: 18%; top: 42%; animation-delay: .4s; }
.insight-star-3 { left: 32%; top: 22%; animation-delay: .8s; }
.insight-star-4 { left: 46%; top: 68%; animation-delay: 1.2s; }
.insight-star-5 { left: 61%; top: 34%; animation-delay: 1.6s; }
.insight-star-6 { left: 76%; top: 58%; animation-delay: 2s; }
.insight-star-7 { left: 88%; top: 24%; animation-delay: 2.4s; }
.insight-star-8 { left: 94%; top: 72%; animation-delay: 2.8s; }
.insight-star-9 { left: 12%; top: 76%; animation-delay: 3.2s; }
.insight-star-10 { left: 51%; top: 12%; animation-delay: 3.6s; }
.insight-star-11 { left: 69%; top: 82%; animation-delay: 4s; }
.insight-star-12 { left: 83%; top: 9%; animation-delay: 4.4s; }

.site-header {
  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;
}
.site-header.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: .42rem; color: #fff; font: 950 1.04rem/1 var(--font-heading); letter-spacing: .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; }
.logo-os { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(247,200,95,.32); border-radius: 50%; color: var(--gold); font-size: .58rem; }
.main-nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.5vw, 1.15rem); }
.nav-link, .services-ghost-btn {
  position: relative; display: inline-flex; align-items: center; gap: .32rem; border: 0; background: transparent; color: rgba(226,232,240,.78); cursor: pointer;
  font-size: .7rem; font-weight: 950; letter-spacing: .13em; line-height: 1; padding: .55rem 0; text-transform: uppercase;
}
.nav-link::after, .services-ghost-btn::after { content: ""; position: absolute; left: 0; bottom: .18rem; width: 0; height: 1px; background: linear-gradient(90deg, var(--purple), var(--gold)); box-shadow: 0 0 12px rgba(139,92,246,.75); transition: width 180ms ease; }
.nav-link:hover, .nav-link.active, .nav-dropdown:hover .services-ghost-btn { color: #fff; }
.nav-link:hover::after, .nav-link.active::after, .nav-dropdown:hover .services-ghost-btn::after { width: 100%; }
.nav-dropdown { position: relative; }
.services-dropdown { position: absolute; top: calc(100% + .85rem); left: 50%; display: grid; min-width: 330px; gap: .35rem; padding: .65rem; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(5,5,8,.92); box-shadow: 0 24px 80px rgba(0,0,0,.52); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 10px) scale(.98); transition: all 180ms ease; }
.nav-dropdown:hover .services-dropdown, .nav-dropdown:focus-within .services-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.services-dropdown a { display: grid; gap: .25rem; padding: .95rem 1rem; border-radius: 16px; background: rgba(255,255,255,.025); }
.services-dropdown a:hover { background: rgba(139,92,246,.12); }
.services-dropdown small { color: var(--muted); }
.nav-cta, .cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: 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,.32); }
.mobile-toggle { display: none; }

.insights-hero { min-height: 85vh; display: grid; align-items: center; padding: clamp(7rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; }
.insights-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.kicker { margin: 0; color: var(--gold); font-size: .75rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); letter-spacing: -0.015em; text-transform: uppercase; }
.insights-hero h1 { display: grid; margin: .8rem 0 2rem; font-size: clamp(3rem, 6vw, 5.1rem); line-height: .82; word-break: keep-all; text-wrap: balance; }
.editorial-hero h1 { font-size: clamp(2.4rem, 6vw, 5.1rem); line-height: 0.9; margin-bottom: 2rem; word-break: keep-all; text-wrap: balance; }

.hero-copy { max-width: 65ch; margin: 0 0 2.5rem; 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; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border: 0; border-radius: 999px; cursor: pointer; font-weight: 950; padding: 0 1.18rem; }
.button.primary { background: var(--gold); color: #120d02; box-shadow: 0 0 44px rgba(247,200,95,.34), inset 0 1px 0 rgba(255,255,255,.55); }
.button.secondary { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: rgba(255,255,255,.84); }

.insights-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(139,92,246,.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(139,92,246,.3)) drop-shadow(0 0 10px rgba(139,92,246,.5)); text-transform: uppercase; }
.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(139,92,246,.28); border-radius: 50%; filter: drop-shadow(0 0 14px rgba(139,92,246,.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,.88); }
.core-node-a { left: 16%; top: 44%; }
.core-node-b { right: 18%; top: 32%; }
.core-node-c { right: 28%; bottom: 18%; }

.insight-search-section, .featured-insight-section, .latest-insights, .featured-categories, .insights-newsletter, .related-insights, .comments-shell { position: relative; z-index: 2; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.insight-search-section { padding-top: 1rem; }
.insight-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; width: min(900px, 100%); margin: 0 auto 1.4rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.025)), rgba(5,5,8,.68); box-shadow: 0 24px 80px rgba(0,0,0,.38); backdrop-filter: blur(18px); transition: border-color 180ms ease, box-shadow 180ms ease; }
.insight-search:focus-within { border-color: rgba(247,200,95,.55); box-shadow: 0 0 0 4px rgba(247,200,95,.08), 0 24px 80px rgba(0,0,0,.45); }
.insight-search span { color: var(--gold); font-size: 1.25rem; }
.insight-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: white; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.insight-search input::placeholder { color: rgba(226,232,240,.38); }
.insight-search button { border: 0; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); cursor: pointer; padding: .68rem .95rem; }
.insight-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; }
.insight-filter { position: relative; min-height: 42px; border: 0; background: transparent; color: rgba(226,232,240,.72); cursor: pointer; font-size: .76rem; font-weight: 950; letter-spacing: .12em; padding: 0 .4rem; text-transform: uppercase; }
.insight-filter::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 180ms ease; }
.insight-filter:hover, .insight-filter.active { color: #fff; text-shadow: 0 0 20px rgba(247,200,95,.45); }
.insight-filter.active::after { transform: scaleX(1); }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .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: .65rem; font-size: clamp(2.5rem, 5.5vw, 5.5rem); line-height: .9; }
.section-heading p:not(.kicker) { margin: 0; color: var(--muted); }

.featured-insight { display: grid; grid-template-columns: minmax(0, .56fr) minmax(0, .44fr); min-height: 580px; overflow: hidden; }
.featured-insight-media { display: block; min-height: 580px; overflow: hidden; background: rgba(255,255,255,.045); }
.featured-insight-media img, .single-insight-media img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform 420ms ease, filter 420ms ease; }
.featured-insight:hover img { transform: scale(1.04); filter: saturate(1.1); }
.insight-cover-fallback { display: grid; align-content: end; min-height: inherit; height: 100%; padding: 1.4rem; background: radial-gradient(circle at 72% 18%, rgba(247,200,95,.24), transparent 18rem), linear-gradient(135deg, #13082f, #070816); }
.insight-cover-fallback strong { max-width: 88%; color: #fff; font: 950 clamp(1.5rem, 3.4vw, 3.8rem)/.9 var(--font-heading); text-transform: uppercase; }
.featured-insight-copy { display: grid; align-content: center; gap: 1rem; padding: clamp(1.4rem, 3vw, 3rem); background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.02)), rgba(3,5,10,.72); }
.featured-insight-copy h3 { font-size: clamp(2rem, 4.8vw, 4.5rem); line-height: .9; }
.featured-insight-copy p, .insight-row-main p { margin: 0; color: var(--muted); }
.insight-meta { display: flex; flex-wrap: wrap; gap: .55rem; }
.insight-meta span { border-radius: 999px; background: rgba(255,255,255,.055); color: rgba(226,232,240,.78); font-size: .76rem; font-weight: 900; padding: .5rem .62rem; }

.insight-feed.premium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.insight-card[hidden], .featured-insight[hidden], .empty-insights[hidden], .load-more-wrap [hidden] { display: none !important; }
.insight-card.premium-card {
  display: grid; align-content: start; border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.01)), rgba(5,5,8,.6);
  box-shadow: 0 14px 40px rgba(0,0,0,.25); backdrop-filter: blur(14px); overflow: hidden;
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1), box-shadow 400ms ease, border-color 400ms ease;
}
.insight-card.premium-card:hover {
  transform: translateY(-8px); border-color: rgba(247,200,95,.28);
  box-shadow: 0 34px 80px rgba(0,0,0,.45), 0 0 54px rgba(247,200,95,.12);
}
.insight-card-media { display: block; min-height: 230px; overflow: hidden; background: rgba(255,255,255,.04); }
.insight-card-media img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform 600ms cubic-bezier(0.16,1,0.3,1), filter 600ms ease; }
.insight-card.premium-card:hover .insight-card-media img { transform: scale(1.06); filter: saturate(1.15) brightness(1.1); }
.insight-card-copy { display: grid; gap: .85rem; padding: 1.5rem; }
.insight-meta-top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.insight-time { color: var(--muted); }
.insight-card-copy h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.1; max-width: 900px; }
.insight-excerpt { font-size: .95rem; line-height: 1.5; color: var(--muted); margin: 0; }
.insight-meta-bottom { margin-top: .6rem; border-top: 1px solid rgba(255,255,255,.06); padding-top: 1rem; font-size: .8rem; color: var(--muted); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 2.4rem; }
.empty-insights { padding: clamp(2.5rem, 5vw, 4.5rem); text-align: center; background: radial-gradient(circle, rgba(139,92,246,.12), transparent 70%); }
.empty-insights h2 { margin: .5rem 0 .8rem; font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: .9; }
.empty-insights p:last-child { margin: 0 auto; max-width: 560px; color: var(--muted); }

.category-editorial { display: grid; gap: .6rem; margin-top: 1.4rem; }
.category-editorial span { display: block; color: rgba(255,255,255,.84); font: 950 clamp(2rem, 5.5vw, 5.5rem)/.9 var(--font-heading); text-transform: uppercase; text-shadow: 0 0 26px rgba(139,92,246,.22); }
.insights-newsletter h2 { display: grid; margin: .7rem 0 1rem; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; }
.newsletter-panel { display: grid; grid-template-columns: 1fr minmax(280px, 460px); align-items: center; gap: clamp(1.5rem, 4.5vw, 3.5rem); }
.newsletter-panel p { color: var(--muted); }
.newsletter-panel form { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: .6rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); backdrop-filter: blur(16px); }
.newsletter-panel input { min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 0 .9rem; }
.newsletter-panel button { border: 0; border-radius: 999px; background: var(--gold); color: #120d02; cursor: pointer; font-weight: 950; padding: .9rem 1rem; }

.reading-progress { position: fixed; z-index: 1200; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--purple), var(--gold)); transform: scaleX(0); transform-origin: left center; transition: transform 100ms ease; }

/* PHASE 2: Editorial Article Hero */
.editorial-article-hero { position: relative; min-height: clamp(560px, 75vh, 800px); display: grid; align-items: end; padding: 12rem 0 5rem; overflow: hidden; }
.hero-cover-image { position: absolute; inset: 0; z-index: -1; }
.hero-cover-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,5,8,0.3) 0%, rgba(5,5,8,0.9) 70%, rgba(5,5,8,1) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1060px; margin: 0 auto; text-align: center; }
.category-tag { display: inline-block; font-size: .85rem; font-weight: 950; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); border: 1px solid rgba(247,200,95,.2); border-radius: 999px; padding: .6rem 1.2rem; margin-bottom: 2rem; background: rgba(247,200,95,.05); backdrop-filter: blur(10px); }
.editorial-article-hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; margin-bottom: 2.5rem; max-width: 960px; margin-left: auto; margin-right: auto; text-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.article-meta-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2rem); font-size: .95rem; font-weight: 600; color: var(--muted); }
.author-info { display: flex; align-items: center; gap: 1rem; color: #fff; }
.author-info img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 20px rgba(139,92,246,.4); border: 2px solid rgba(255,255,255,.1); }
.meta-divider { opacity: 0.3; }

/* PHASE 2: Post Content Engine */
.single-insight-body { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.editorial-content-grid { display: grid; grid-template-columns: minmax(280px, .24fr) minmax(0, 1fr) .24fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 1200px) { .editorial-content-grid { grid-template-columns: auto minmax(0, 1fr); } }
@media (max-width: 860px) { .editorial-content-grid { grid-template-columns: 1fr; } }
.article-toc-sidebar { position: sticky; top: 100px; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 1.5rem; }
.sticky-toc { display: grid; gap: 1.5rem; }
.sticky-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; border-left: 1px solid rgba(255,255,255,.08); padding-left: 1rem; }
.sticky-toc a { display: block; font-size: .9rem; color: rgba(255,255,255,.5); transition: color 200ms, transform 200ms; }
.sticky-toc a:hover { color: #fff; transform: translateX(4px); }
.sticky-toc a.active { color: var(--gold); font-weight: 700; transform: translateX(4px); }
.toc-level-h3 { padding-left: 1rem; }

/* PHASE 2: Typography Formatting */
.op-editorial-formatting { color: rgba(226,232,240,.9); font-size: clamp(1.1rem, 1.4vw, 1.28rem); max-width: 780px; margin: 0 auto; line-height: 1.85; letter-spacing: -0.01em; }
.op-editorial-formatting h2 { margin: 4.5rem 0 1.8rem; font-size: clamp(2.2rem, 3.5vw, 3rem); line-height: 1.1; color: #fff; }
.op-editorial-formatting h3 { margin: 3rem 0 1.5rem; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.2; color: #fff; }
.op-editorial-formatting p { margin-bottom: 2.2rem; }
.op-editorial-formatting a { color: var(--blue); border-bottom: 1px solid rgba(97, 168, 255, 0.4); font-weight: 500; transition: color 200ms, border-color 200ms; }
.op-editorial-formatting a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.op-editorial-formatting img { width: 100%; height: auto; border-radius: 12px; margin: 2rem 0; box-shadow: 0 24px 60px rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.05); }
.op-editorial-formatting ul, .op-editorial-formatting ol { margin: 0 0 2.5rem 2rem; padding: 0; }
.op-editorial-formatting li { margin-bottom: 0.8rem; padding-left: 0.5rem; }
.op-editorial-formatting blockquote { margin: 4rem -2rem; padding: 2.5rem; border-left: 4px solid var(--purple); background: linear-gradient(90deg, rgba(139,92,246,.08), transparent); font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-style: italic; color: #fff; line-height: 1.5; border-radius: 0 12px 12px 0; }
.op-editorial-formatting pre { margin: 2.5rem 0; padding: 1.6rem; border-radius: 12px; background: #080a12; border: 1px solid rgba(255,255,255,.1); overflow-x: auto; font-size: .95rem; }
.op-editorial-formatting code { padding: .2rem .4rem; background: rgba(255,255,255,.06); border-radius: 4px; font-size: .9em; }
.op-editorial-formatting pre code { padding: 0; background: transparent; }

/* PHASE 3: Author Box & Additions */
.editorial-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.author-avatar-large { border-radius: 50%; box-shadow: 0 0 40px rgba(139,92,246,.25); border: 2px solid rgba(255,255,255,.12); }
@media(max-width: 600px) { .author-card { flex-direction: column; text-align: center; } .vault-promo-box { grid-template-columns: 1fr !important; text-align: center; } }

/* 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 Insights. */
: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, .insight-search button, .newsletter-panel button { min-height: var(--tap-target); }
img, video, svg { max-width: 100%; height: auto; }

@media (min-width: 1920px) {
  .container { width: min(calc(100% - 6rem), 1640px); }
  .site-header { width: min(1380px, calc(100% - 4rem)); }
  .insights-hero h1, .single-insight-copy h1, .insights-newsletter h2 { max-width: 14ch; font-size: clamp(3.5rem, 6.4vw, 6rem); }
  .hero-copy, .post-content { --reading-width: 76ch; }
}

@media (max-width: 1280px) {
  .site-header { width: calc(100% - 1.5rem); }
  .insights-hero h1, .single-insight-copy h1, .insights-newsletter h2 { font-size: clamp(3rem, 6vw, 5.5rem); }
  .section-heading h2, .insight-row-main h3 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
}

@media (max-width: 900px) {
  .site-header { top: max(.75rem, env(safe-area-inset-top)); }
  .main-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%);
  }
  .main-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;
  }
  .main-nav.open .nav-dropdown { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .read-transmission, .nav-link, .hero-actions a { transform: none !important; }
  .services-dropdown { pointer-events: none; }
}

@media (max-width: 640px) {
  .container { width: min(100%, calc(100% - 24px)); }
  .site-header { width: calc(100% - 1rem); }
  .nav-cta { display: none; }
  .insights-hero, .single-insight-hero { padding-top: max(7.4rem, calc(6rem + env(safe-area-inset-top))); }
  .insights-hero h1, .single-insight-copy h1, .insights-newsletter h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
  .hero-actions, .newsletter-panel form { align-items: stretch; }
  .hero-actions a, .newsletter-panel button { width: 100%; justify-content: center; }
  .insights-core, .featured-insight-media, .single-insight-media { min-height: clamp(380px, 95vw, 440px); }
  .human-core-sphere, .core-sphere { width: min(86vw, 360px); filter: drop-shadow(0 0 60px rgba(139,92,246,.8)); }
  .core-ring { width: min(98vw, 460px); }
  .insight-row { min-height: auto; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .main-nav.open { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 4.5rem; }
  .main-nav.open .nav-link { font-size: clamp(1.7rem, 7vw, 3.2rem); }
  .insights-hero, .single-insight-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; }
}


/* ==========================================================================
   ADVANCED RESPONSIVE IMPROVEMENTS (v3)
   ========================================================================== */

/* 1. Typography & Global */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    width: 100%;
}

/* Use clamp for fluid typography */
h1, .hero-title {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem) !important;
    line-height: 1.1 !important;
    word-wrap: break-word;
}
h2 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem) !important;
}
h3 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem) !important;
}
p.hero-subtitle, .insight-header-excerpt {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem) !important;
    line-height: 1.6;
}

/* 2. Navbar fixes */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 912px) {
    .site-nav {
        padding: 10px 15px;
    }
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    .site-nav-menu {
        display: none; /* Add JS toggle for real layout or managed by existing JS */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-surface, #0f1115);
        padding: 20px;
    }
    .site-nav-menu.active {
        display: flex;
    }
    .nav-actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* 3. Hero Section */
.hero-section, .insight-hero {
    display: flex;
    flex-direction: column;
    padding: clamp(60px, 10vw, 120px) 20px;
    position: relative;
    z-index: 1;
}
.hero-content {
    max-width: 100%;
    z-index: 2;
    position: relative;
}
.core-logo-obj {
    z-index: 0 !important;
    max-width: 100%;
    opacity: 0.6; /* Ensure text never obstructed */
}

/* Ensure buttons stack nicely on mobile */
.hero-actions, .cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
@media (max-width: 600px) {
    .hero-actions, .cta-group {
        flex-direction: column;
        width: 100%;
    }
    .cta-button, .btn, .button {
        width: 100%;
        text-align: center;
    }
}

/* 4. Cards & Grids */
/* Default to a responsive Grid rather than floats or inline blocks */
.insights-grid, .resources-grid, .posts-grid, .grid {
    display: grid !important;
    gap: 20px;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 1024px) {
    .insights-grid, .resources-grid, .posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (min-width: 1440px) {
    .insights-grid, .resources-grid, .posts-grid {
        grid-template-columns: repeat(4, 1fr) !important; /* 4 columns on large desktop */
    }
}
@media (max-width: 1023px) and (min-width: 768px) {
    .insights-grid, .resources-grid, .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on tablet */
    }
}
@media (max-width: 767px) {
    .insights-grid, .resources-grid, .posts-grid {
        grid-template-columns: 1fr !important; /* 1 column on mobile */
    }
}

.insight-card, .resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.insight-card:hover, .resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.insight-cover-image, .resource-featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 5. Footer Improvements */
.footer-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand {
        align-items: center;
    }
    .footer-list {
        align-items: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* 6. Accessibility & Utility */
:focus-visible {
    outline: 2px solid var(--accent-color, #0fb);
    outline-offset: 2px;
}
img {
    max-width: 100%;
    height: auto;
}

/* Production responsive hardening: desktop visual system remains unchanged above 1200px. */
.mobile-services-link { display: none; }
.site-header { position: fixed; top: 1.35rem; width: min(1120px, calc(100% - 44px)); flex-wrap: nowrap; }
.site-header.scrolled { top: 1.35rem; }
.single-insight .hero-content { max-width: 1060px; }
.single-insight .container { min-width: 0; }
.single-insight-body .container { width: min(1280px, calc(100% - 44px)); }
.single-insight-body { overflow: clip; }
.editorial-content-grid { min-width: 0; }
.post-content { min-width: 0; width: 100%; }
.op-editorial-formatting { max-width: 780px; overflow-wrap: break-word; word-break: normal; }
.op-editorial-formatting > * { max-width: 100%; }
.op-editorial-formatting h1,
.op-editorial-formatting h2,
.op-editorial-formatting h3,
.op-editorial-formatting h4,
.op-editorial-formatting h5,
.op-editorial-formatting h6 { overflow-wrap: anywhere; text-wrap: balance; }
.op-editorial-formatting h2 { font-size: clamp(2.2rem, 3.5vw, 3rem) !important; line-height: 1.1 !important; }
.op-editorial-formatting h3 { font-size: clamp(1.6rem, 2.4vw, 2rem) !important; line-height: 1.2 !important; }
.op-editorial-formatting h4 { margin: 2.4rem 0 1rem; font-size: clamp(1.25rem, 1.8vw, 1.55rem) !important; line-height: 1.25 !important; color: #fff; }
.op-editorial-formatting p,
.op-editorial-formatting li,
.op-editorial-formatting figcaption,
.op-editorial-formatting .wp-caption-text { overflow-wrap: break-word; }
.op-editorial-formatting a { overflow-wrap: anywhere; word-break: break-word; }
.insight-feed.premium-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.core-logo-obj { opacity: 1; }
.op-table-scroll,
.op-editorial-formatting .wp-block-table,
.op-editorial-formatting .wp-block-table.is-style-stripes {
  display: block;
  max-width: 100%;
  margin: 2.5rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.op-table-scroll table,
.op-editorial-formatting .wp-block-table table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-collapse: collapse;
  white-space: nowrap;
}
.op-editorial-formatting table th,
.op-editorial-formatting table td {
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  vertical-align: top;
  white-space: normal;
  min-width: 9rem;
}
.op-editorial-formatting table th { color: #fff; background: rgba(255,255,255,.055); font-weight: 900; }
.op-editorial-formatting figure { max-width: 100%; margin: 2.5rem 0; }
.op-editorial-formatting img,
.op-editorial-formatting video,
.op-editorial-formatting svg,
.op-editorial-formatting canvas { max-width: 100%; height: auto; }
.op-editorial-formatting video,
.op-editorial-formatting iframe,
.op-editorial-formatting embed,
.op-editorial-formatting object { display: block; width: 100%; }
.op-editorial-formatting iframe,
.op-editorial-formatting embed,
.op-editorial-formatting object { max-width: 100%; border: 0; }
.op-editorial-formatting iframe[src*="youtube"],
.op-editorial-formatting iframe[src*="vimeo"],
.op-editorial-formatting .wp-block-embed iframe { aspect-ratio: 16 / 9; height: auto; }
.op-editorial-formatting .twitter-tweet,
.op-editorial-formatting .wp-block-embed,
.op-editorial-formatting .wp-block-embed__wrapper,
.op-editorial-formatting .wp-block-video,
.op-editorial-formatting .wp-block-audio,
.op-editorial-formatting .wp-block-file,
.op-editorial-formatting .wp-block-buttons,
.op-editorial-formatting .wp-block-gallery,
.op-editorial-formatting .gallery { max-width: 100%; min-width: 0; }
.op-editorial-formatting .wp-block-gallery,
.op-editorial-formatting .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1rem; }
.op-editorial-formatting .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}
.op-editorial-formatting .wp-block-file a:not(.wp-block-file__button) { min-width: 0; overflow-wrap: anywhere; }
.op-editorial-formatting .wp-block-file__button,
.op-editorial-formatting .wp-block-button__link,
.op-editorial-formatting .button {
  display: inline-flex;
  max-width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}
.op-editorial-formatting pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.op-editorial-formatting pre code { white-space: inherit; word-break: normal; overflow-wrap: normal; }
.op-editorial-formatting code { overflow-wrap: anywhere; }
.op-editorial-formatting blockquote,
.op-editorial-formatting .wp-block-quote,
.op-editorial-formatting .wp-block-pullquote {
  max-width: min(100%, 840px);
}
.op-editorial-formatting .alignwide,
.op-editorial-formatting .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 1201px) {
  .insights-hero h1 { font-size: clamp(3rem, 6vw, 5.1rem) !important; line-height: .82 !important; }
  .editorial-hero h1 { font-size: clamp(2.4rem, 6vw, 5.1rem) !important; line-height: .9 !important; }
  .editorial-article-hero h1 { font-size: clamp(3rem, 6vw, 5.5rem) !important; line-height: 1 !important; }
  .section-heading h2, .insights-newsletter h2 { font-size: clamp(2.5rem, 5.5vw, 5.5rem) !important; line-height: .9 !important; }
  .featured-insight-copy h3 { font-size: clamp(2rem, 4.8vw, 4.5rem) !important; line-height: .9 !important; }
  .insight-card-copy h3 { font-size: clamp(1.4rem, 2vw, 1.8rem) !important; line-height: 1.1 !important; }
  .op-editorial-formatting { font-size: clamp(1.1rem, 1.4vw, 1.28rem); max-width: 780px; line-height: 1.85; }
  .op-editorial-formatting blockquote { margin-left: -2rem; margin-right: -2rem; }
}

@media (max-width: 1200px) {
  .site-header { width: calc(100% - 1.5rem); gap: 1rem; }
  .brand { font-size: .95rem; }
  .brand-orb { width: 18px; }
  .main-nav { gap: .7rem; }
  .nav-link, .services-ghost-btn { font-size: .64rem; letter-spacing: .1em; }
  .nav-cta { min-height: 42px; padding: 0 .9rem; font-size: .78rem; }
  .insights-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem) !important; line-height: .86 !important; }
  .editorial-hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem) !important; line-height: .92 !important; }
  .section-heading h2, .insights-newsletter h2 { font-size: clamp(2.3rem, 5vw, 4.6rem) !important; line-height: .92 !important; }
  .featured-insight-copy h3 { font-size: clamp(1.9rem, 4vw, 3.6rem) !important; line-height: .92 !important; }
  .single-insight-body .container { width: min(100%, calc(100% - 36px)); }
  .editorial-content-grid { grid-template-columns: minmax(220px, .28fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
  .op-editorial-formatting { max-width: min(760px, 100%); font-size: clamp(1.04rem, 1.5vw, 1.16rem); line-height: 1.78; }
  .op-editorial-formatting h2 { font-size: clamp(1.95rem, 4vw, 2.7rem) !important; }
  .op-editorial-formatting h3 { font-size: clamp(1.45rem, 2.8vw, 1.9rem) !important; }
  .insights-hero { min-height: 78vh; }
  .insights-hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr); gap: clamp(1.6rem, 4vw, 3rem); }
  .insights-core { min-height: clamp(380px, 42vw, 500px); }
  .human-core-sphere, .core-sphere { width: min(30vw, 280px); }
  .core-ring { width: min(42vw, 420px); }
  .featured-insight, .featured-insight-media { min-height: 500px; }
  .section-heading { grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr); }
}

@media (max-width: 900px) {
  .site-header { top: max(.75rem, env(safe-area-inset-top)); width: calc(100% - 1.5rem); padding: .68rem .78rem; }
  .site-header.scrolled { top: max(.75rem, env(safe-area-inset-top)); }
  .mobile-toggle { display: inline-grid; 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); }
  .main-nav:not(.open) { display: none; }
  .main-nav.open .mobile-services-link { display: inline-flex !important; }
  .main-nav.open .nav-dropdown { display: none; }
  .insights-hero { min-height: auto; padding: max(7.4rem, calc(6rem + env(safe-area-inset-top))) 0 4rem; }
  .insights-hero-inner { grid-template-columns: 1fr; text-align: left; }
  .insights-core { min-height: clamp(300px, 58vw, 430px); order: -1; }
  .human-core-sphere, .core-sphere { width: min(48vw, 260px); }
  .core-ring { width: min(70vw, 380px); }
  .section-heading, .newsletter-panel, .featured-insight { grid-template-columns: 1fr; }
  .featured-insight, .featured-insight-media { min-height: auto; }
  .featured-insight-media, .insight-card-media { aspect-ratio: 16 / 10; min-height: 0; }
  .insight-feed.premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .editorial-article-hero { min-height: 560px; padding: 9rem 0 4rem; }
  .editorial-article-hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem) !important; line-height: 1 !important; }
  .article-meta-row { justify-content: center; }
  .editorial-content-grid { grid-template-columns: 1fr; }
  .article-toc-sidebar { position: static; max-height: none; padding-right: 0; }
  .sticky-toc { padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.035); }
  .sticky-toc ul { max-height: 260px; overflow-y: auto; }
  .op-editorial-formatting { margin: 0; max-width: 100%; }
  .op-editorial-formatting blockquote { margin-left: 0; margin-right: 0; }
}

@media (max-width: 640px) {
  .container { width: min(100%, calc(100% - 24px)); }
  .site-header { width: calc(100% - 1rem); }
  .brand { font-size: .84rem; }
  .logo-os { display: none; }
  .main-nav.open { gap: .8rem; padding-inline: 1rem; }
  .main-nav.open .nav-link { font-size: clamp(1.85rem, 11vw, 3.2rem); width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .main-nav.open .nav-cta { display: inline-flex; width: 100%; max-width: 320px; min-height: 52px; }
  .insights-hero h1 { font-size: clamp(2.45rem, 14vw, 4.2rem) !important; line-height: .88 !important; }
  .editorial-hero h1 { font-size: clamp(2.35rem, 12vw, 3.9rem) !important; line-height: .9 !important; }
  .hero-copy { font-size: 1rem; line-height: 1.6; }
  .hero-actions a, .button { width: 100%; min-height: 52px; }
  .insights-core { min-height: clamp(260px, 72vw, 340px); }
  .human-core-sphere, .core-sphere { width: min(58vw, 220px); }
  .core-ring { width: min(86vw, 330px); }
  .insight-search { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .insight-search span { display: none; }
  .insight-search button { width: 100%; }
  .insight-feed.premium-grid { grid-template-columns: 1fr; }
  .featured-insight-copy, .insight-card-copy { padding: 1.2rem; }
  .newsletter-panel form { grid-template-columns: 1fr; border-radius: 24px; }
  .vault-promo-box, .author-card { padding: 1.3rem !important; }
  .vault-promo-box p { max-width: 100% !important; }
  .article-toc-sidebar { position: static; max-height: none; padding-right: 0; }
  .editorial-article-hero { min-height: 500px; padding: 8rem 0 3rem; }
  .article-meta-row { gap: .55rem; }
  .single-insight-body { padding: 2.6rem 0; }
  .single-insight-body .container { width: min(100%, calc(100% - 24px)); }
  .post-content { min-width: 0; }
  .op-editorial-formatting { font-size: clamp(1rem, 4.2vw, 1.08rem); line-height: 1.72; }
  .op-editorial-formatting h2 { margin: 3rem 0 1.2rem; font-size: clamp(1.75rem, 8vw, 2.35rem) !important; line-height: 1.08 !important; }
  .op-editorial-formatting h3 { margin: 2.3rem 0 1rem; font-size: clamp(1.35rem, 6vw, 1.8rem) !important; line-height: 1.16 !important; }
  .op-editorial-formatting h4 { font-size: clamp(1.15rem, 5vw, 1.4rem) !important; }
  .op-editorial-formatting p { margin-bottom: 1.45rem; }
  .op-editorial-formatting ul, .op-editorial-formatting ol { margin-left: 1.15rem; margin-bottom: 1.8rem; }
  .op-editorial-formatting li { padding-left: .2rem; }
  .op-editorial-formatting blockquote,
  .op-editorial-formatting .wp-block-quote,
  .op-editorial-formatting .wp-block-pullquote { padding: 1.3rem; font-size: clamp(1.05rem, 4.8vw, 1.28rem); }
  .op-editorial-formatting pre { margin: 1.8rem 0; padding: 1rem; font-size: .86rem; }
  .op-table-scroll,
  .op-editorial-formatting .wp-block-table { margin: 1.8rem 0; border-radius: 10px; }
  .op-editorial-formatting table th,
  .op-editorial-formatting table td { min-width: 8rem; padding: .72rem .8rem; font-size: .92rem; }
  .op-editorial-formatting .wp-block-file,
  .op-editorial-formatting .wp-block-buttons { align-items: stretch; }
  .op-editorial-formatting .wp-block-file__button,
  .op-editorial-formatting .wp-block-button__link,
  .op-editorial-formatting .button { width: 100%; }
  .op-editorial-formatting img { margin: 1.5rem 0; border-radius: 10px; }
}
