/* QuorumProof v6 Obsidian Dark + Liquid Glass + 3D Archivo Black Editorial Design System
   Palette: Obsidian Dark (#0B0F14) + Cobalt (#0EA5E9) + Azure (#38BDF8) + Royal Violet (#8B5CF6)
   + Verified Emerald (#10B981) + Signal Vermilion (#EC6842). Zero warm beige/orange bleed.
   Self-hosted SIL OFL fonts (Archivo Black + Nunito Sans + Caveat) with measured fallback metrics.
   Modern CSS: @view-transition, scroll-driven view(inline) logo swipe/dissolve, WCAG 2.2 AA. */

@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black Fallback";
  src: local("Arial Black"), local("ArialMT-Black"), local("Arial Bold");
  size-adjust: 100%;
  ascent-override: 88%;
  descent-override: 21%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 102.3%;
  ascent-override: 98.7%;
  descent-override: 34.2%;
  line-gap-override: 0%;
}

:root {
  --bg: #0B0F14;
  --bg-raised: #101722;
  --bg-elev: #162030;
  --bg-card: rgba(17, 25, 38, 0.72);
  --glass-bg: linear-gradient(155deg, rgba(24, 36, 54, 0.72) 0%, rgba(12, 17, 26, 0.58) 100%);
  --glass-bg-strong: linear-gradient(155deg, rgba(28, 42, 64, 0.84) 0%, rgba(12, 18, 28, 0.74) 100%);
  --glass-border: rgba(148, 182, 224, 0.22);
  --glass-spec: inset 0 1px 0 rgba(255, 255, 255, 0.19), inset 0 -1px 0 rgba(56, 189, 248, 0.12);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 182, 224, 0.34);
  --ink: #F8FAFC;
  --ink-muted: #B6C5D9;
  --ink-dim: #7F93AD;
  --azure: #38BDF8;
  --cobalt: #0EA5E9;
  --violet: #A78BFA;
  --indigo: #7C3AED;
  --emerald: #10B981;
  --emerald-fill: #0B6B48;
  --vermilion: #EC6842;
  --vermilion-fill: #B53816;
  --font-display: "Archivo Black", "Archivo Black Fallback", "Arial Black", sans-serif;
  --font-sans: "Nunito Sans", "Nunito Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max: 1240px;
  --radius: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.15, 1);
  --shadow-glass: var(--glass-spec), 0 22px 54px -26px rgba(0, 0, 0, 0.88);
  --shadow-lift: var(--glass-spec), 0 28px 64px -20px rgba(14, 165, 233, 0.34), 7px 7px 0 rgba(124, 58, 237, 0.52);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Cross-Document View Transitions (modern-web-guidance: cross-document-transitions) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.24s ease-in both qp-vt-out; }
  ::view-transition-new(root) { animation: 0.36s var(--ease) both qp-vt-in; }
  @keyframes qp-vt-out { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes qp-vt-in { from { opacity: 0; transform: translateY(16px); } }
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse 75% 45% at 15% 0%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(ellipse 65% 40% at 85% 10%, rgba(124, 58, 237, 0.12), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-size: 16.5px;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--azure); text-decoration: none; font-weight: 700; transition: color 0.18s var(--ease); }
a:hover { color: #BAE6FD; }
:focus-visible { outline: 2.5px solid var(--azure); outline-offset: 3px; }
code, pre { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-variant-ligatures: none; }
.mono { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.01em; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--azure); color: #0B0F14; padding: 10px 16px; border-radius: 999px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.section { position: relative; padding: clamp(56px, 6.5vw, 92px) 0; border-top: 1px solid var(--line); }
.section--compact { padding: 40px 0; border-top: 1px solid var(--line); }
.section--alt {
  background:
    radial-gradient(ellipse 65% 55% at 80% 15%, rgba(124, 58, 237, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(16, 23, 34, 0.92), rgba(11, 15, 20, 0.96));
}

/* Liquid Glass Sticky Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  view-transition-name: site-header;
  background: rgba(11, 15, 20, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 -1px 0 rgba(56, 189, 248, 0.12), 0 12px 32px -18px rgba(0, 0, 0, 0.85);
}
.header-inner {
  width: min(var(--max), calc(100% - 36px)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 70px;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 11px; color: var(--ink);
  font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; letter-spacing: -0.015em;
}
.brand-link img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line-strong); box-shadow: 0 6px 18px -6px rgba(14, 165, 233, 0.5); }
.brand-accent { background: linear-gradient(90deg, var(--azure), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav a { color: var(--ink-muted); font-size: 0.92rem; font-weight: 700; padding: 6px 2px; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--azure); }

.header-cta { display: inline-flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; background: var(--glass-bg); color: var(--ink); border: 1px solid var(--glass-border);
  padding: 8px 14px; border-radius: 999px; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; cursor: pointer;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 4px; padding: 14px 18px 18px;
  background: rgba(13, 20, 31, 0.96); border-top: 1px solid var(--glass-border);
}
.mobile-nav[data-open="true"] { display: flex; }
.mobile-nav a { padding: 10px 12px; color: var(--ink); border-radius: var(--radius); font-size: 0.98rem; }
.mobile-nav a:hover { background: var(--bg-elev); }

/* Tactile Pill Buttons with Physical Lift */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink); font-size: 0.9rem; font-weight: 700; cursor: pointer; min-height: 44px;
  box-shadow: var(--glass-spec), 0 10px 26px -14px rgba(0, 0, 0, 0.8);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.btn:hover { transform: translateY(-3px); border-color: var(--azure); box-shadow: var(--glass-spec), 0 16px 32px -12px rgba(14, 165, 233, 0.42); color: var(--ink); }
.btn-primary {
  background: linear-gradient(135deg, var(--cobalt), #2563EB 52%, var(--indigo));
  border-color: rgba(186, 230, 253, 0.35); color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 14px 34px -10px rgba(14, 165, 233, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 20px 42px -10px rgba(124, 58, 237, 0.65); color: #FFFFFF; }
.btn-emerald { background: linear-gradient(135deg, #0D8056, var(--emerald-fill)); border-color: rgba(52, 211, 153, 0.45); color: #FFFFFF; }
.btn-danger { background: linear-gradient(135deg, var(--vermilion-fill), #991B1B); border-color: rgba(236, 104, 66, 0.5); color: #FFFFFF; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; min-height: 36px; }

/* AMA-Grade Display Typography (Archivo Black 3D Pop + Nunito Sans + Caveat) in Obsidian Palette */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--azure); margin-bottom: 12px;
}
.kicker-sq { width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--azure), var(--violet)); display: inline-block; flex-shrink: 0; }
.script-note {
  display: block; width: fit-content; font-family: var(--font-script); font-size: 1.45rem; font-weight: 700;
  color: var(--azure); transform: rotate(-2deg); margin-bottom: 6px; line-height: 1.1;
}
h1 {
  margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.35rem, 4.7vw, 4.15rem); line-height: 0.99;
  letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
  text-shadow:
    0 0.016em 0 #CBD5E1,
    0 0.032em 0 #64748B,
    0 0.048em 0 #1E3A5F,
    0 0.064em 0 #1E1B4B,
    0 0.18em 0.26em rgba(0, 0, 0, 0.68);
}
h2 {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.65rem, 3.1vw, 2.65rem); line-height: 1.05;
  letter-spacing: -0.018em; color: var(--ink); text-wrap: balance;
  text-shadow: 0.03em 0.03em 0 rgba(14, 165, 233, 0.42), 0.06em 0.06em 0 rgba(124, 58, 237, 0.36);
}
h3 {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.1rem, 1.55vw, 1.38rem); line-height: 1.16; letter-spacing: -0.012em; color: var(--ink);
}
.lead { margin: 0; color: var(--ink-muted); font-size: clamp(1.04rem, 1.25vw, 1.2rem); line-height: 1.58; max-width: 58ch; }
.muted { color: var(--ink-muted); }

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  [data-tilt-text] {
    transform: perspective(900px) rotateX(calc(var(--ty, 0) * -4deg)) rotateY(calc(var(--tx, 0) * 6deg));
    transition: transform 0.22s ease-out;
  }
  [data-tilt] {
    transform: perspective(950px) rotateX(calc(var(--ty, 0) * -3.5deg)) rotateY(calc(var(--tx, 0) * 4.5deg)) translateY(var(--lift, 0px));
    transition: transform 0.24s var(--ease), box-shadow 0.28s var(--ease), border-color 0.22s var(--ease);
  }
  [data-tilt]:hover { --lift: -7px; }
}

/* Hero Section */
.hero {
  position: relative; padding: clamp(36px, 4.5vw, 60px) 0 clamp(44px, 5vw, 68px);
  background:
    radial-gradient(ellipse 70% 55% at 72% 24%, rgba(56, 189, 248, 0.16), transparent 64%),
    radial-gradient(ellipse 55% 45% at 24% 80%, rgba(124, 58, 237, 0.14), transparent 66%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.12fr); gap: clamp(24px, 3.6vw, 44px); align-items: center; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.kpi-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-glass); margin-top: 26px; overflow: hidden;
}
.kpi-cell { padding: 14px 16px; border-right: 1px solid var(--line); }
.kpi-cell:last-child { border-right: 0; }
.kpi-val { font-family: var(--font-display); font-size: 1.32rem; font-weight: 400; color: var(--ink); letter-spacing: -0.02em; }
.kpi-val--em { color: var(--emerald); }
.kpi-val--az { color: var(--azure); }
.kpi-lbl { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.72rem; color: var(--ink-muted); margin-top: 3px; }

/* Liquid Glass Hero Foundry Chassis (Continuous Auto-Loop, Zero Replay/Pause Buttons) */
.chassis-shell { position: relative; }
.chassis {
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--glass-spec), 0 34px 80px -26px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(56, 189, 248, 0.14);
  overflow: hidden;
}
.chassis-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(12, 18, 28, 0.78);
}
.chassis-title { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.74rem; color: var(--ink-muted); display: flex; align-items: center; gap: 9px; min-width: 0; }
.chassis-title span.cmd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); flex-shrink: 0; }

.tablist { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tab-btn {
  padding: 6px 12px; border: 1px solid var(--glass-border); border-radius: 999px;
  background: rgba(11, 15, 20, 0.72); color: var(--ink-muted); font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.74rem;
  font-weight: 700; cursor: pointer; min-height: 34px; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.tab-btn:hover { border-color: var(--azure); color: var(--ink); }
.tab-btn[aria-selected="true"] { background: linear-gradient(135deg, var(--azure), var(--indigo)); color: #FFFFFF; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(14, 165, 233, 0.7); }
.tab-btn--danger[aria-selected="true"] { background: var(--vermilion-fill); color: #FFFFFF; border-color: var(--vermilion); }

.stage-wrap { position: relative; width: 100%; height: 404px; cursor: pointer; background: radial-gradient(circle at 50% 45%, #111C2D 0%, #0B0F14 78%); }
.stage-wrap canvas { width: 100%; height: 100%; display: block; }
.chassis-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; border-top: 1px solid var(--line); background: rgba(12, 18, 28, 0.82);
  font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.75rem;
}

/* Floating Liquid Glass Pills beside Hero / Art */
.v6-float-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.v6-float {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--glass-spec), 0 12px 26px -14px rgba(0, 0, 0, 0.85);
  font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.74rem; color: var(--ink); font-weight: 700;
}
.v6-float-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }

/* =========================================================================
   INNOVATIVE SWIPING & DISAPPEARING PARTNER LOGO SYSTEM (modern-web-guidance)
   1) Auto-gliding refractive glass aperture ribbon (mask-image fade edges + WCAG 2.2.2 Pause/Play)
   2) Interactive CSS Scroll-Driven Swipe Deck (animation-timeline: view(inline) + WAAPI fallback)
   ========================================================================= */
.partner-band {
  position: relative; padding: 34px 0 42px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 21, 33, 0.88), rgba(11, 15, 20, 0.96));
}
.partner-bar-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.partner-aperture-wrap {
  /* Unmasked wrapper holds focus indicator cleanly per modern-web-guidance `motion` rule */
  border-radius: var(--radius-md); padding: 4px;
}
.partner-aperture {
  position: relative; overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
}
.partner-ribbon-track {
  display: flex; width: max-content; gap: 14px;
}
@media (prefers-reduced-motion: no-preference) {
  .partner-ribbon-track { animation: qp-ribbon-glide 42s linear infinite; }
  .partner-aperture:hover .partner-ribbon-track,
  .partner-aperture[data-paused="true"] .partner-ribbon-track { animation-play-state: paused; }
  @keyframes qp-ribbon-glide {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
  }
}
.partner-chip {
  flex: none; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--glass-spec), 0 12px 28px -16px rgba(0, 0, 0, 0.85);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}
.partner-chip:hover { transform: translateY(-4px) scale(1.03); border-color: var(--azure); }
.partner-chip__icon {
  width: 34px; height: 34px; border-radius: 9px; padding: 5px;
  background: rgba(248, 250, 252, 0.94); display: grid; place-items: center; flex-shrink: 0;
}
.partner-chip__icon--dark { background: rgba(11, 15, 20, 0.85); border: 1px solid var(--line-strong); }
.partner-chip__icon img { width: 100%; height: 100%; object-fit: contain; }
.partner-chip__name { font-family: var(--font-display); font-size: 0.88rem; color: var(--ink); line-height: 1.1; }
.partner-chip__sub { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.68rem; color: var(--azure); margin-top: 2px; }

/* Interactive Swiping-and-Disappearing Scroll-Driven Deck (view(inline) + entry/exit ranges) */
.logo-swipe-shell {
  margin-top: 16px; border-radius: var(--radius-md); padding: 4px;
}
.logo-swipe-shell:focus-within { outline: 2.5px solid var(--azure); outline-offset: 3px; }
.logo-swipe-rail {
  list-style: none; margin: 0; padding: 14px 10vw;
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.logo-swipe-rail:focus { outline: none; }
.logo-swipe-item {
  flex: 0 0 216px; scroll-snap-align: center;
  padding: 14px 16px; border-radius: 16px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  display: flex; align-items: center; gap: 12px;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: no-preference) {
  /* Per modern-web-guidance carousel-slide-effects & scroll-entry-exit-effects: include (animation-range: entry) */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes qp-logo-swipe-disappear {
      entry 0% { opacity: 0.08; transform: translateX(34px) scale(0.68) rotate(5deg); }
      entry 100%, exit 0% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); }
      exit 100% { opacity: 0.08; transform: translateX(-34px) scale(0.68) rotate(-5deg); }
    }
    .logo-swipe-item {
      animation: qp-logo-swipe-disappear auto linear both;
      animation-timeline: view(inline);
    }
  }
}

/* Editorial Artwork Frames with Liquid Glass Rim + Tactile Lift */
.art-plate {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #0D1420;
  box-shadow: var(--glass-spec), 0 30px 70px -28px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(56, 189, 248, 0.14);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s var(--ease);
}
.art-plate:hover { transform: translateY(-6px); border-color: var(--azure); box-shadow: var(--shadow-lift); }
.art-plate--tilt-r { transform: rotate(1deg); }
.art-plate--tilt-l { transform: rotate(-1deg); }
.art-plate--tilt-r:hover, .art-plate--tilt-l:hover { transform: translateY(-6px) rotate(0deg); }
.art-plate img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.art-plate:hover img { transform: scale(1.045); }
.art-plate figcaption {
  padding: 10px 14px; font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.74rem; color: var(--ink-muted);
  background: rgba(11, 15, 20, 0.84); border-top: 1px solid var(--line);
}

/* Lab Panel inside Hero */
.lab-panel { padding: 14px; min-height: 404px; display: flex; flex-direction: column; gap: 10px; }
.verdict-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--glass-border);
  background: var(--glass-bg); box-shadow: var(--glass-spec);
}
.badge {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 8px; white-space: nowrap; line-height: 1.15;
  font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.02em;
}
.badge-pass { background: var(--emerald-fill); color: #FFFFFF; border: 1px solid rgba(52, 211, 153, 0.45); }
.badge-fail { background: var(--vermilion-fill); color: #FFFFFF; border: 1px solid rgba(236, 104, 66, 0.5); }
.badge-info { background: rgba(14, 165, 233, 0.22); color: #E0F2FE; border: 1px solid rgba(56, 189, 248, 0.42); }

.table-wrap {
  max-width: 100%; width: 100%; overflow-x: auto; container-type: inline-size;
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
}
@container (width >= 600px) {
  .table-wrap td.mono { white-space: nowrap; }
}
@container (width < 600px) {
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td {
    display: block; width: 100%;
  }
  .table-wrap thead { display: none; }
  .table-wrap tbody { display: grid; gap: 14px; padding: 12px; }
  .table-wrap tr {
    border: 1px solid var(--glass-border); border-radius: 16px;
    background: linear-gradient(160deg, rgba(20, 30, 46, 0.92), rgba(11, 16, 25, 0.92));
    padding: 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 26px -18px rgba(0, 0, 0, 0.9);
  }
  .table-wrap td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12); padding: 8px 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    text-align: left !important; font-size: 0.92rem; line-height: 1.45;
  }
  .table-wrap td:first-child { padding-top: 2px; font-size: 1.06rem; font-weight: 800; color: var(--ink); }
  .table-wrap td:last-child { border-bottom: 0; padding-bottom: 2px; }
  .table-wrap td::before {
    font-family: var(--font-sans); font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--azure);
  }
  .table-wrap td:nth-child(1)::before { content: var(--label-1, ""); }
  .table-wrap td:nth-child(2)::before { content: var(--label-2, ""); }
  .table-wrap td:nth-child(3)::before { content: var(--label-3, ""); }
  .table-wrap td:nth-child(4)::before { content: var(--label-4, ""); }
  .table-wrap td:nth-child(5)::before { content: var(--label-5, ""); }
  .table-wrap td:nth-child(6)::before { content: var(--label-6, ""); }
}
.hero-grid > *, .split-band > *, .split-band--rev > *, .pipeline-step > *,
.grid-2 > *, .grid-3 > *, .grid-4 > *, .journal-grid > *, .leader-card > *,
.prose { min-width: 0; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-family: var(--font-sans); font-size: 0.76rem; font-weight: 800; color: var(--azure); background: rgba(11, 15, 20, 0.78); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(56, 189, 248, 0.05); }
.num { text-align: right; font-family: var(--font-sans); font-variant-numeric: tabular-nums; }

/* Section Head with Animated Mini-Bot Caricature */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 28px;
}
.sec-head-left { display: flex; align-items: center; gap: 18px; max-width: 820px; }
.bot-vignette {
  width: 82px; height: 82px; flex-shrink: 0; border-radius: var(--radius-md);
  border: 1px solid var(--glass-border); background: radial-gradient(circle at 50% 45%, #162235, #0B0F14);
  box-shadow: var(--glass-spec), 0 12px 28px -12px rgba(14, 165, 233, 0.4); overflow: hidden;
}
.bot-vignette canvas { width: 100%; height: 100%; }

/* Liquid Glass Cards & 21-Service Visual Grid */
.seal-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-glass); margin-bottom: 16px; font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.82rem;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.split-band { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.split-band--rev { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }

.card {
  position: relative; border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-glass);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.28s var(--ease), border-color 0.24s var(--ease), box-shadow 0.28s var(--ease), background 0.24s var(--ease);
}
.card:hover { transform: translateY(-7px); border-color: var(--azure); box-shadow: var(--shadow-lift); }
.card--locked { border-color: var(--emerald); background: linear-gradient(155deg, rgba(16, 48, 42, 0.78), rgba(11, 18, 24, 0.72)); }
.card--media { padding: 0; overflow: hidden; }
.card__media { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #0C131E; }
.card__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.55s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.72rem; color: var(--azure); }

/* 4-Step Editorial Pipeline */
.pipeline-step {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(20px, 3.6vw, 44px);
  align-items: center; padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-glass); margin-bottom: 22px;
}
.pipeline-num {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 0.9;
  background: linear-gradient(135deg, var(--azure), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Leadership & Real Founder Portraits */
.leader-card {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center;
  padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(22px) saturate(165%); backdrop-filter: blur(22px) saturate(165%);
  box-shadow: var(--shadow-glass); transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.24s var(--ease);
}
.leader-card:hover { transform: translateY(-6px); border-color: var(--azure); box-shadow: var(--shadow-lift); }
.leader-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--glass-border);
  background: radial-gradient(circle at 50% 28%, rgba(56, 189, 248, 0.28), rgba(124, 58, 237, 0.22) 55%, #0D1420 95%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  display: grid; place-items: end center;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader-monogram {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    radial-gradient(circle at 30% 25%, rgba(56, 189, 248, 0.26), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.26), transparent 60%),
    #0C131F;
}
.leader-monogram__letters {
  font-family: var(--font-display); font-size: 3.4rem; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #F8FAFC, var(--azure), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.leader-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Verified Credentials & Programs Cards */
.cert-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-md);
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-glass);
  transition: transform 0.26s var(--ease), border-color 0.22s var(--ease), box-shadow 0.26s var(--ease);
}
.cert-card:hover { transform: translateY(-5px); border-color: var(--emerald); box-shadow: var(--shadow-lift); }
.cert-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; padding: 7px;
  background: rgba(11, 15, 20, 0.85); border: 1px solid var(--glass-border); display: grid; place-items: center;
}

/* Blog / Journal Rail */
.journal-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr); gap: 18px; align-items: stretch; }
.code-block {
  background: rgba(7, 11, 17, 0.92); border: 1px solid var(--glass-border); border-left: 4px solid var(--azure);
  border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.81rem; line-height: 1.55; color: #E2E8F0;
}
.journal-list {
  display: flex; flex-direction: column; border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-glass); overflow: hidden;
}
.journal-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background 0.18s ease;
}
.journal-row:last-child { border-bottom: 0; }
.journal-row:hover { background: rgba(56, 189, 248, 0.08); }

/* Tools Strip */
.tools-bar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.tool-pill {
  padding: 12px; border: 1px solid var(--glass-border); border-radius: var(--radius);
  background: var(--glass-bg); color: var(--ink); display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--glass-spec); transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.tool-pill:hover { transform: translateY(-4px); border-color: var(--azure); color: var(--ink); }
.tool-pill small { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.68rem; color: var(--emerald); }
.tool-pill strong { font-size: 0.82rem; line-height: 1.25; }

/* Article Prose & GEO Answer Capsule */
.capsule {
  border: 1px solid var(--glass-border); border-left: 4px solid var(--azure);
  background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-glass);
  padding: 18px 20px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0 28px; font-size: 1.04rem; color: var(--ink);
}
.capsule-tag { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.72rem; color: var(--azure); font-weight: 700; margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.08em; }
.prose { max-width: 82ch; }
.prose h2 { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose p { margin: 0 0 15px; color: #D4DFEE; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: #D4DFEE; display: grid; gap: 8px; }

/* FAQ Accordion */
details.faq {
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  margin-bottom: 10px; box-shadow: var(--glass-spec);
}
details.faq summary {
  padding: 15px 18px; cursor: pointer; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.faq summary::after { content: "+"; font-family: var(--font-sans); font-variant-numeric: tabular-nums; color: var(--azure); font-size: 1.2rem; }
details.faq[open] summary::after { content: "-"; }
details.faq .faq-body { padding: 0 18px 16px; color: var(--ink-muted); font-size: 0.96rem; }

/* Inputs & Interactive Tools */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.74rem; color: var(--ink-muted); text-transform: uppercase; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--glass-border); border-radius: var(--radius);
  background: rgba(8, 12, 18, 0.9); color: var(--ink); font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.86rem; min-height: 42px;
}
textarea.input { min-height: 116px; resize: vertical; }

/* Scroll-Driven Reveal (modern-web-guidance: opt-in under prefers-reduced-motion: no-preference) */
@media (prefers-reduced-motion: no-preference) {
  .qp-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .qp-js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--glass-border); background: #070A0F; padding: 52px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 30px; }
.footer-head { font-family: var(--font-display); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.9rem; }
.footer-list a { color: var(--ink-muted); font-weight: 600; }
.footer-list a:hover { color: var(--azure); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--ink-muted);
}

@media (max-width: 1020px) {
  .hero-grid, .journal-grid, .grid-2, .split-band, .split-band--rev, .pipeline-step { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leader-card { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .primary-nav, .header-cta .btn-primary { display: none; }
  .menu-btn { display: inline-flex; }
  .grid-3, .grid-4, .footer-grid, .leader-card { grid-template-columns: minmax(0, 1fr); }
  .art-plate--tilt-r, .art-plate--tilt-l { transform: none; }
  .section { overflow-x: clip; }
  .leader-photo { max-width: 240px; }
  .stage-wrap { height: 320px; }
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-cell { padding: 10px 8px; }
  .kpi-val { font-size: 1.05rem; }
  .sec-head-left { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}