/*
Theme Name: Orion
Theme URI: https://example.local/orion
Author: Orion
Description: Polished consulting firm theme for Orion, an AI strategy and implementation advisor to GCC institutions.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: orion
*/

:root {
  --ink: #111827;
  --muted: #56616f;
  --line: #d4dbe3;
  --panel: #f2f5f4;
  --wash: #eaf3ef;
  --paper: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --accent-2: #b45309;
  --gold: #d89b2b;
  --blue: #243d63;
  --deep: #151d2b;
  --night: #0b1220;
  --steel: #6b7c93;
  --copper: #9a5a31;
  --max: 1180px;
  --measure: 760px;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.orion-mobile-menu-lock { overflow: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -10%, rgba(15,118,110,0.11), transparent 28rem),
    linear-gradient(180deg, #ffffff 0, #ffffff 420px, #f6f8f7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html.orion-mobile-menu-lock,
body.orion-mobile-menu-lock {
  overflow: hidden;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent), transparent 45%); text-underline-offset: 4px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(212, 219, 227, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
}
.topbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: var(--night);
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
}
.topbar a { color: white; text-decoration: none; }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.menu-toggle { display: none; }
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
body.orion-mobile-menu-open .menu-toggle-bars { background: transparent; }
body.orion-mobile-menu-open .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.orion-mobile-menu-open .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0; text-decoration: none; min-width: max-content; }
.brand span:last-child { display: grid; gap: 2px; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 24, 39, 0.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 18px;
  background:
    linear-gradient(145deg, rgba(216,155,43,0.52), transparent 46%),
    var(--night);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.menu { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }
.menu > li { position: relative; }
.menu a { text-decoration: none; color: var(--muted); }
.menu > li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 6px; }
.menu a:hover, .menu a:focus { color: var(--ink); background: #edf3f0; }
.has-mega > a::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 8px; }
.mega-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(900px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 22px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15,118,110,0.07), transparent 35%),
    rgba(255,255,255,0.985);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-intro p { color: var(--ink); font-size: 18px; line-height: 1.35; margin: 8px 0 18px; }
.text-link { color: var(--accent) !important; font-weight: 800; }
.mega-col { display: grid; align-content: start; gap: 10px; }
.mega-col strong { font-size: 12px; text-transform: uppercase; color: var(--accent-2); }
.mega-col a { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 0; }
.mega-col small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.hero {
  background:
    linear-gradient(90deg, rgba(7, 13, 24, 0.98) 0%, rgba(11, 18, 32, 0.9) 38%, rgba(36, 61, 99, 0.46) 62%, rgba(15, 118, 110, 0.32) 100%),
    linear-gradient(0deg, rgba(8, 12, 20, 0.58), rgba(8, 12, 20, 0.03) 45%),
    url("assets/orion-ai-gcc-hero.png") center right/cover no-repeat;
  color: white;
  min-height: 700px;
  display: grid;
  align-items: end;
  padding: 118px 0 84px;
  isolation: isolate;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr); gap: 56px; align-items: end; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 800; }
.hero .eyebrow { color: #f6bd54; }
h1, h2, h3 { line-height: 1.08; letter-spacing: 0; margin: 0 0 18px; font-weight: 820; }
h1 { font-size: clamp(42px, 7vw, 86px); max-width: 900px; }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: 22px; line-height: 1.18; }
.lead { font-size: clamp(18px, 2vw, 23px); max-width: var(--measure); color: color-mix(in srgb, currentColor, transparent 12%); line-height: 1.45; }
.hero-stat-grid { display: grid; gap: 12px; }
.hero-stat {
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(11,18,32,0.34);
  padding: 21px;
  border-radius: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.15);
}
.hero-stat strong { display: block; font-size: 28px; line-height: 1; }
.hero-stat span { color: rgba(255,255,255,0.78); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button:hover, .button:focus { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12); }
.hero .button.primary { background: var(--gold); border-color: var(--gold); color: #111827; }
.button.inverse { color: white; margin-top: 20px; }
.signal-strip { background: #111a28; color: white; border-top: 1px solid rgba(255,255,255,0.1); }
.signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
.signal-grid div { padding: 22px 24px 24px 0; border-right: 1px solid rgba(255,255,255,0.14); }
.signal-grid div:last-child { border-right: 0; }
.signal-grid strong { display: block; margin-bottom: 6px; }
.signal-grid span { color: rgba(255,255,255,0.72); font-size: 14px; }
.section { padding: 96px 0; }
.section.alt {
  background:
    linear-gradient(90deg, rgba(36,61,99,0.08), transparent 42%),
    #f0f4f2;
  border-block: 1px solid var(--line);
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.section-head p { max-width: 680px; color: var(--muted); margin: 0; }
.section-with-image .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 26px;
  align-items: stretch;
}
.section-with-image .section-head,
.section-with-image .grid { grid-column: 1; }
.section-image {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 100%;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.03), rgba(11, 18, 32, 0.62)),
    url("assets/orion-ai-gcc-hero.png") center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32), var(--shadow);
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15,118,110,0.055), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  min-height: 246px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--blue));
  opacity: 0.75;
}
.card-kicker { display: flex; min-height: 24px; align-items: center; justify-content: space-between; gap: 10px; color: var(--accent-dark); font-size: 11px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card a.title { font-size: 20px; font-weight: 820; line-height: 1.16; text-decoration: none; }
.card:hover { border-color: color-mix(in srgb, var(--accent), var(--line) 52%); box-shadow: 0 22px 48px rgba(17, 24, 39, 0.1); transform: translateY(-2px); }
.tagline { color: var(--muted); max-width: 760px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pill,
.status-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
}
.status-badge { color: var(--accent-dark); border-color: color-mix(in srgb, var(--accent), var(--line) 55%); background: color-mix(in srgb, var(--wash), white 25%); }
.status-badge.compact { min-height: 22px; padding: 3px 8px; font-size: 10px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.band {
  background:
    linear-gradient(135deg, rgba(15,118,110,0.26), transparent 42%),
    linear-gradient(90deg, rgba(154,90,49,0.18), transparent 58%),
    var(--deep);
  color: white;
  padding: 70px 0;
}
.band-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.list-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.list-links a { display: block; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, currentColor, transparent 75%); text-decoration: none; font-weight: 700; }
.featured-articles-section {
  background:
    linear-gradient(120deg, rgba(15,118,110,0.09), transparent 34%),
    linear-gradient(270deg, rgba(36,61,99,0.08), transparent 46%),
    #f7f9f8;
  border-block: 1px solid var(--line);
}
.featured-articles { display: grid; gap: 30px; }
.featured-articles-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: end;
}
.featured-articles-head h2 { margin-bottom: 0; }
.featured-articles-head p { margin: 0; color: var(--muted); }
.featured-articles-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 18px;
  align-items: stretch;
}
.featured-article-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--night), var(--line) 36%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15,118,110,0.32), transparent 38%),
    linear-gradient(90deg, rgba(154,90,49,0.2), transparent 62%),
    var(--night);
  color: white;
  box-shadow: var(--shadow);
}
.featured-article-panel {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 30px;
  align-items: end;
  padding: clamp(28px, 5vw, 56px);
}
.featured-article-panel[hidden] { display: none; }
.featured-article-copy { max-width: 720px; }
.featured-article-kicker {
  color: #f6bd54;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.featured-article-panel h3 {
  margin: 14px 0 18px;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.03;
}
.featured-article-panel h3 a { text-decoration: none; }
.featured-article-panel p {
  max-width: 660px;
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: 18px;
  line-height: 1.55;
}
.featured-article-link {
  display: inline-flex;
  margin-top: 24px;
  color: #f6bd54;
  font-weight: 820;
  text-decoration: none;
}
.featured-article-link:hover,
.featured-article-link:focus { text-decoration: underline; }
.featured-article-number {
  align-self: start;
  justify-self: end;
  color: rgba(255,255,255,0.16);
  font-size: clamp(68px, 10vw, 124px);
  font-weight: 850;
  line-height: 0.85;
}
.featured-article-controls {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.featured-article-controls button {
  min-width: 74px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}
.featured-article-controls button:hover,
.featured-article-controls button:focus { background: rgba(255,255,255,0.16); }
.featured-article-controls span {
  margin-left: auto;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 800;
}
.featured-article-tabs {
  display: grid;
  gap: 8px;
  align-content: stretch;
}
.featured-article-tab {
  min-height: 96px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.74);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.featured-article-tab span {
  grid-row: 1 / span 2;
  color: var(--copper);
  font-size: 12px;
  font-weight: 850;
}
.featured-article-tab strong {
  display: block;
  min-width: 0;
  font-size: 16px;
  line-height: 1.22;
}
.featured-article-tab em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.featured-article-tab.is-active {
  border-color: color-mix(in srgb, var(--accent), var(--line) 35%);
  background: white;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}
.site-main { min-height: 65vh; }
.page-hero {
  padding: 96px 0 62px;
  background:
    linear-gradient(120deg, rgba(15,118,110,0.12), transparent 42%),
    linear-gradient(270deg, rgba(36,61,99,0.08), transparent 48%),
    linear-gradient(180deg, #ffffff, var(--panel));
  border-bottom: 1px solid var(--line);
}
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 44px; align-items: end; }
.page-hero-grid > div:first-child:last-child { grid-column: 1 / -1; }
.page-hero-media {
  min-height: 300px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.03), rgba(11, 18, 32, 0.42)),
    url("assets/orion-ai-gcc-hero.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}
.article-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 860px);
  gap: 54px;
  align-items: start;
}
.article-rail {
  position: sticky;
  top: 118px;
  margin-top: 68px;
  padding: 18px 0 18px 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.article-rail span {
  display: block;
  margin-bottom: 10px;
  color: var(--copper);
  font-weight: 840;
  text-transform: uppercase;
}
.article-rail strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.28;
}
.content { width: 100%; max-width: 860px; margin: 0 auto; padding: 66px 0 78px; font-size: 18px; line-height: 1.78; }
.content > p:first-child { font-size: 21px; line-height: 1.55; color: #2d3748; }
.content p { margin: 0 0 20px; }
.content h2 { font-size: 32px; margin-top: 52px; margin-bottom: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.content h3 { margin-top: 30px; }
.content ul, .content ol { padding-left: 1.35em; margin: 0 0 24px; }
.content li + li { margin-top: 8px; }
.content blockquote {
  margin: 34px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--wash);
  color: #263342;
}
.content figure { margin: 36px 0; }
.offering-status {
  border-left: 4px solid var(--accent);
  background: var(--panel);
  padding: 16px 18px;
  margin: 0 0 30px;
}
.offering-status strong {
  display: block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offering-status p { margin: 6px 0 0; color: var(--muted); }
.offering-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 32px;
}
.offering-module {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: var(--paper);
}
.offering-module h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 9px;
}
.offering-module p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.content th,
.content td { padding: 13px 14px; border: 1px solid var(--line); vertical-align: top; }
.content th { background: var(--night); color: white; text-align: left; font-weight: 780; }
.content tr:nth-child(even) td { background: #f8fafc; }
.wp-block-table { overflow-x: auto; }
.single-offering .content > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-left: 0;
  list-style: none;
}
.single-offering .content > ul li {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  color: #293548;
  font-size: 15px;
  line-height: 1.5;
}
.single-offering .content > ul.offering-list {
  display: block;
  padding-left: 1.35em;
  list-style: disc;
}
.single-offering .content > ul.offering-list li {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.single-offering .content > ul.offering-list li + li { margin-top: 8px; }
.orion-related { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.orion-related h2 { font-size: 24px; }
.orion-related ul { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.orion-related li { margin: 0; }
.orion-related a { display: block; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 720; background: #fbfcfd; }
.orion-related a:hover, .orion-related a:focus { border-color: color-mix(in srgb, var(--accent), var(--line) 50%); }
.orion-recommendations {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.orion-recommendations-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.orion-recommendations-head h2 {
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(26px, 3vw, 36px);
}
.orion-recommendations-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.orion-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.orion-recommendation-card {
  position: relative;
  min-height: 244px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.orion-recommendation-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--blue));
  opacity: 0.72;
}
.orion-recommendation-card a.title {
  font-size: 19px;
  font-weight: 820;
  line-height: 1.18;
  text-decoration: none;
}
.orion-recommendation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.orion-recommendation-link {
  margin-top: auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.orion-recommendation-link:hover,
.orion-recommendation-link:focus { text-decoration: underline; }
.orion-recommendation-card:hover {
  border-color: color-mix(in srgb, var(--accent), var(--line) 52%);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.09);
  transform: translateY(-2px);
}
.archive-section-heading { margin: 0 0 22px; padding-top: 34px; border-top: 1px solid var(--line); }
.archive-section-heading:first-child { padding-top: 0; border-top: 0; }
.archive-section-heading + .grid { margin-bottom: 48px; }
.archive-section-heading h2 { margin: 5px 0 8px; font-size: clamp(28px, 4vw, 44px); letter-spacing: 0; }
.archive-section-heading p { max-width: 760px; color: var(--muted); font-size: 18px; margin: 0; }
.series-note { border-left: 3px solid var(--accent); color: var(--muted); font-size: 18px; margin: 0 0 30px; padding: 4px 0 4px 18px; }
.credentials-lede {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 26px;
}
.credentials-lede h2 { font-size: clamp(30px, 4vw, 50px); margin: 8px 0 12px; }
.credentials-lede p { margin: 0; max-width: 760px; color: var(--muted); font-size: 18px; }
.credential-principles {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.credential-principles span {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 780;
}
.credential-principles span:last-child { border-bottom: 0; }
.credential-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 46px;
}
.credential-proof-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(15,118,110,0.18), transparent 45%),
    var(--night);
  color: white;
}
.credential-proof-grid strong { display: block; font-size: 20px; line-height: 1.18; margin-bottom: 12px; }
.credential-proof-grid p { margin: 0; color: rgba(255,255,255,0.74); font-size: 15px; line-height: 1.58; }
.credential-evidence-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 34px;
  margin-top: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}
.credential-evidence-band h2 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 42px); }
.credential-evidence-band ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.credential-evidence-band li + li { margin-top: 10px; }
.credential-evidence-band strong { color: var(--ink); }
.site-footer { background: #101722; color: white; padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; }
.footer-grid p { color: rgba(255,255,255,0.72); margin: 0; }
.orion-mobile-backdrop,
.orion-mobile-drawer { display: none; }

@media (max-width: 900px) {
  .hero-grid, .band-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid, .grid.four, .list-links, .signal-grid { grid-template-columns: 1fr 1fr; }
  .section-head { display: block; }
  .section-with-image .wrap { display: block; }
  .section-image { min-height: 260px; margin-top: 22px; }
  .featured-articles-head,
  .featured-articles-shell { grid-template-columns: 1fr; }
  .featured-article-stage,
  .featured-article-panel { min-height: 460px; }
  .featured-article-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-article-tab { min-height: 116px; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .site-header { z-index: 100; }
  .nav { align-items: center; padding: 14px 0; gap: 12px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
  }
  .desktop-menu {
    display: none;
  }
  .orion-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(11,18,32,0.42);
    backdrop-filter: blur(3px);
  }
  .orion-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 910;
    display: block;
    width: min(88vw, 390px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
    border: 1px solid var(--line);
    border-width: 0 0 0 1px;
    background:
      linear-gradient(135deg, rgba(15,118,110,0.08), transparent 38%),
      rgba(255,255,255,0.99);
    box-shadow: -22px 0 72px rgba(17, 24, 39, 0.3);
    font-size: 15px;
    transform: translateX(100%);
    transition: transform 180ms ease;
  }
  .orion-mobile-backdrop:not([hidden]) {
    display: block;
  }
  .orion-mobile-drawer:not([hidden]) {
    display: block;
  }
  body.orion-mobile-menu-open .orion-mobile-drawer {
    transform: translateX(0);
  }
  .orion-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 800;
  }
  .orion-mobile-drawer-close {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }
  .orion-mobile-drawer .menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mega-menu {
    position: static;
    width: 100%;
    display: none;
    box-shadow: none;
    margin: 0 0 10px;
    grid-template-columns: 1fr;
    max-height: min(68vh, calc(100dvh - 128px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .has-mega:hover .mega-menu,
  .has-mega:focus-within .mega-menu { display: none; }
  .has-mega.is-open .mega-menu { display: grid; }
  .menu > li > a { width: 100%; min-height: 46px; padding: 0 2px; }
  .article-shell { grid-template-columns: 1fr; gap: 0; }
  .article-rail {
    position: static;
    margin-top: 34px;
    padding: 14px 0 14px 16px;
  }
  .single-offering .content > ul { grid-template-columns: 1fr 1fr; }
  .orion-recommendations-head { grid-template-columns: 1fr; align-items: start; }
  .offering-modules { grid-template-columns: 1fr; }
  .credentials-lede,
  .credential-evidence-band { grid-template-columns: 1fr; }
  .credential-proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .topbar { display: none; }
  .nav { min-height: 72px; }
  .menu { left: 14px; right: 14px; font-size: 14px; }
  .mega-menu { padding: 16px; }
  .hero { min-height: 620px; padding: 72px 0 44px; background-position: 62% center; }
  .grid, .grid.four, .list-links, .signal-grid { grid-template-columns: 1fr; }
  .signal-grid div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); padding-right: 0; }
  .section { padding: 56px 0; }
  .featured-articles-head { gap: 14px; }
  .featured-article-stage,
  .featured-article-panel { min-height: 520px; }
  .featured-article-panel {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 28px 22px 88px;
  }
  .featured-article-panel h3 { font-size: 31px; }
  .featured-article-panel p { font-size: 16px; }
  .featured-article-number {
    position: absolute;
    top: 24px;
    right: 22px;
    font-size: 64px;
  }
  .featured-article-controls {
    left: 22px;
    right: 22px;
    bottom: 20px;
  }
  .featured-article-controls button {
    min-width: 64px;
    padding-inline: 10px;
  }
  .featured-article-tabs { grid-template-columns: 1fr; }
  .featured-article-tab { min-height: 96px; }
  .section-image, .page-hero-media { min-height: 220px; }
  .content { width: min(100% - 28px, 860px); padding: 46px 0; font-size: 16px; line-height: 1.68; }
  .content > p:first-child { font-size: 18px; }
  .content h2 { font-size: 24px; }
  .orion-recommendation-grid { grid-template-columns: 1fr; }
  .single-offering .content > ul { grid-template-columns: 1fr; }
}
