@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400..800;1,400..800&display=swap");

:root {
  --bg: #0a0812;
  --bg-2: #0e0a1a;
  --card: rgba(236, 72, 153, 0.075);
  --card-2: rgba(34, 211, 238, 0.085);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.38);
  --border: rgba(236, 72, 153, 0.22);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

  --accent: #ec4899;
  --accent-2: #22d3ee;
  --danger: #ef4444;
  --warn: #f59e0b;

  --radius: 14px;
  --radius-sm: 10px;

  --container: 1240px;
  --gutter: 20px;

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-heading: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --timing-fast: 150ms;
  --timing-normal: 300ms;
  --timing-slow: 500ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --focus-ring: rgba(236, 72, 153, 0.45);
}

@media (prefers-color-scheme: light) {
  :root {
    /* Keep a consistent “Foundry” look regardless of system theme. */
    --bg: #0a0812;
    --bg-2: #0e0a1a;
    --card: rgba(255, 255, 255, 0.07);
    --card-2: rgba(255, 255, 255, 0.09);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.68);
    --border: rgba(255, 255, 255, 0.14);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  position: relative;
  isolation: isolate;
  line-height: 1.5;
}

/* All pages share the Foundry palette. */

/* Highlight current page in the top nav without layout shift. */
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--card-2);
  outline: 1px solid var(--border);
}

/* Background image + overlay “theme” */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at 50% 30%, rgba(236,72,153,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(34,211,238,0.06) 0%, transparent 50%),
              var(--bg);
  transform: scale(1.02);
}

/* Team page UI bits */
.team-hero {
  padding-top: 72px;
}
.team-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 700px) {
  .team-hero-head {
    flex-direction: column;
    align-items: stretch;
  }
}
.team-hero-badge {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 14px 14px 16px;
  min-width: 120px;
  text-align: right;
}
.team-hero-badge-k {
  color: var(--muted);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.team-hero-badge-v {
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
}
.team-grid {
  margin-top: 10px;
}
.team-grid.cards {
  /* Force: Co-Founder 1 + 2 on one row, Agents on next row. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-card-agents {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .team-grid.cards {
    grid-template-columns: 1fr;
  }
  .team-card-agents {
    grid-column: auto;
  }
}
.team-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.team-name {
  font-weight: 900;
  letter-spacing: -0.01em;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(
      20px 20px at 35% 30%,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.18)
    ),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.65);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      900px 600px at 18% 12%,
      rgba(255, 77, 141, 0.22),
      transparent 65%
    ),
    radial-gradient(
      900px 650px at 80% 8%,
      rgba(71, 215, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(7, 10, 18, 0.75) 0%, rgba(11, 18, 32, 0.88) 100%);
}

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

code {
  font-family: var(--mono);
  font-size: 0.95em;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.15em 0.35em;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  transform: translateY(-120%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  z-index: 1000;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(255, 77, 141, 0.35);
}

.site-dev-badge {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: calc(10px + env(safe-area-inset-left));
  z-index: 980;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 8, 18, 0.72);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.site-dev-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

@media (max-width: 640px) {
  .site-dev-badge {
    top: calc(8px + env(safe-area-inset-top));
    left: calc(8px + env(safe-area-inset-left));
    padding: 4px 8px;
    font-size: 0.62rem;
  }
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.fine {
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 141, 0.6);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 650;
  box-shadow: 0 12px 30px rgba(255, 77, 141, 0.22);
  transition: transform var(--timing-fast) ease, filter var(--timing-fast) ease, box-shadow var(--timing-fast) ease;
}
.btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0px);
}
.btn:focus-visible {
  outline: 3px solid rgba(255, 77, 141, 0.35);
  outline-offset: 2px;
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(11, 18, 32, 0.4);
  backdrop-filter: blur(14px);
}

@media (prefers-color-scheme: light) {
  .site-header {
    background: rgba(7, 10, 18, 0.35);
  }
}

.site-header[data-elevate="true"] {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--text);
  -webkit-mask: url("/assets/synesthesia-symbol.svg") center / contain no-repeat;
  mask: url("/assets/synesthesia-symbol.svg") center / contain no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 650;
  transition: background var(--timing-fast) ease, color var(--timing-fast) ease;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--card);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 10px;
}
.nav-toggle:focus-visible {
  outline: 3px solid rgba(255, 77, 141, 0.35);
  outline-offset: 2px;
}
.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 14px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}
.nav-toggle-bars::before {
  top: 2px;
}
.nav-toggle-bars::after {
  bottom: 2px;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: rgba(11, 18, 32, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  @media (prefers-color-scheme: light) {
    .site-nav {
      background: rgba(247, 248, 252, 0.75);
    }
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
  }
}

.hero {
  padding: 72px 0 34px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  color: var(--muted);
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.hero-card-title {
  margin-left: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.dot-red {
  background: var(--danger);
}
.dot-yellow {
  background: var(--warn);
}
.dot-green {
  background: var(--accent-2);
}

.hero-card-body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 12px;
}

.stat {
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.stat-k {
  font-size: 1.15rem;
  font-weight: 850;
}
.stat-l {
  color: var(--muted);
  font-size: 0.92rem;
}
.mini-note {
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  padding: 58px 0;
}
.section-alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  gap: 14px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 16px 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
}

.work {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .work {
    grid-template-columns: 1fr;
  }
}

.work-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform var(--timing-fast) ease, background var(--timing-fast) ease;
}
.work-item:hover {
  transform: translateY(-2px);
  background: var(--card-2);
}
.work-thumb {
  height: 130px;
  background:
    radial-gradient(
      300px 200px at 30% 20%,
      rgba(255, 77, 141, 0.28),
      transparent 60%
    ),
    radial-gradient(
      260px 200px at 70% 40%,
      rgba(71, 215, 255, 0.22),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.02));
}
.work-body {
  padding: 14px 14px 16px;
}
.work-title {
  font-weight: 850;
  letter-spacing: -0.01em;
}
.work-desc {
  color: var(--muted);
  margin-top: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.checklist {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.checklist li {
  margin: 8px 0;
}

.callout {
  border: 1px solid rgba(255, 77, 141, 0.35);
  background:
    radial-gradient(
      500px 300px at 20% 0%,
      rgba(255, 77, 141, 0.18),
      transparent 60%
    ),
    var(--card);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
}
.callout h3 {
  margin: 0 0 8px;
}
.callout ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.callout li {
  margin: 8px 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 520px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px 14px 16px;
}
.contact-card:hover {
  background: var(--card-2);
}
.contact-k {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-v {
  margin-top: 6px;
  font-weight: 800;
}

.form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
}

.form span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

@media (prefers-color-scheme: light) {
  input,
  textarea {
    background: rgba(255, 255, 255, 0.7);
  }
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(255, 77, 141, 0.35);
  outline-offset: 1px;
  border-color: rgba(255, 77, 141, 0.45);
}

.site-footer {
  padding: 26px 0 34px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.brand-footer .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 9px;
}
.brand-footer .brand-mark::before {
  inset: 3px;
}
.footer-left {
  display: grid;
  gap: 6px;
}
.footer-right a {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}
.footer-right a:hover {
  background: var(--card-2);
}

/* --------------------------------------------
 * Orchestrated Synesthesia Cognition OS page
 * -------------------------------------------- */
body.page-orchestrated-synesthesia-cognition-os .oscHero {
  align-items: center;
}

body.page-orchestrated-synesthesia-cognition-os .oscHeroCopy {
  margin-bottom: 0;
}

body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia a {
  display: block;
}

body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia img {
  display: block;
  width: 100%;
  height: auto;
}

body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure figcaption {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------
 * Foundry page styles (scoped to /foundry/)
 * Pure black background + white text
 * -------------------------------------------- */
body.page-foundry {
  --bg: #000000;
  --bg-2: #050505;
  --accent: #ffffff;
  --accent-2: rgba(255, 255, 255, 0.85);
  --card: rgba(255, 255, 255, 0.04);
  --card-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);

  --container: 1240px;

  background: #000000;
  color: #ffffff;
}

body.page-foundry::before {
  background: none;
  transform: none;
  filter: none;
}

body.page-foundry::after {
  background: none;
}

body.page-foundry .foundryHero {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

body.page-foundry .foundryHero::before {
  display: none;
}

body.page-foundry .foundryHero::after {
  display: none;
}

body.page-foundry .foundryHeroGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

/* Make “Democratizing Software” stronger on the Foundry hero. */
body.page-foundry .foundryHeroCopy .eyebrow {
  font-size: 0.98rem;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

body.page-foundry .foundryHeroVisual {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  body.page-foundry .foundryHeroVisual {
    justify-content: center;
  }
}

body.page-foundry .foundryMark {
  width: 100%;
  max-width: 760px;
  margin: 0;
}

body.page-foundry .foundryHeroFigure {
  margin-top: 18px;
  margin-bottom: 10px;
}

body.page-foundry .foundrySubnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.page-foundry .foundrySubnav a {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background var(--timing-fast) ease, color var(--timing-fast) ease, border-color var(--timing-fast) ease;
}

body.page-foundry .foundrySubnav a:hover {
  color: var(--text);
  background: var(--card-2);
  border-color: rgba(255, 255, 255, 0.25);
}

body.page-foundry .foundryHeroCards {
  margin-top: 18px;
}

body.page-foundry .foundryCardAccent {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.1);
}
body.page-foundry .foundryCardAccent:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

body.page-foundry .foundrySplit {
  display: grid;
  /* Website-like reading: text first, media beneath. */
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

body.page-foundry .foundrySplit + .foundrySplit {
  margin-top: 18px;
}

body.page-foundry .foundryProse p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 82ch;
  font-weight: 450;
}

body.page-foundry .foundryProse p:last-child {
  margin-bottom: 0;
}

body.page-foundry .foundryInlineCode {
  font-family: var(--mono);
  font-size: 0.95em;
  padding: 2px 7px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  white-space: nowrap;
}

body.page-foundry .foundryDetNote {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.25);
  padding: 12px 12px 13px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 95ch;
}

body.page-foundry .foundryDetLabel {
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-right: 8px;
  color: #ffffff;
}

body.page-foundry .foundryFigure {
  margin: 0 auto;
  max-width: min(1240px, 100%);
}

body.page-foundry .foundryMedia {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

body.page-foundry .foundryMedia a {
  display: block;
}

body.page-foundry .foundryMedia img {
  display: block;
  width: 100%;
  height: auto;
}

body.page-foundry .foundryMedia--hero {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body.page-foundry .foundryMedia--hero img {
  /* Keep the hero mark crisp inside the frame. */
  filter: saturate(1.03) contrast(1.02);
}

body.page-foundry .foundryFigure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

body.page-foundry .foundryZoomLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

body.page-foundry .foundryZoomLink:hover {
  color: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

body.page-foundry .foundryWindow {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
}

body.page-foundry .foundryWindowBar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-foundry .foundryWindowTitle {
  margin-left: 6px;
  font-weight: 900;
  color: #000000;
  letter-spacing: -0.01em;
}

body.page-foundry .foundryWindowBody {
  padding: 12px 12px 14px;
}

body.page-foundry .foundryWindowCols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  body.page-foundry .foundryWindowCols {
    grid-template-columns: 1fr;
  }
}

body.page-foundry .foundryWindowList {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.88);
}

body.page-foundry .foundryWindowList li {
  margin: 8px 0;
}

body.page-foundry .foundryList {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

body.page-foundry .foundryList li {
  margin: 8px 0;
}

body.page-foundry .foundryFigureGrid {
  display: grid;
  gap: 16px;
  /* Clear reading: one figure per row (each includes explanation + zoom link). */
  grid-template-columns: 1fr;
}

/* ============================================================
 * Aesthetic polish layer
 * (no theme or content changes — only visual refinement)
 * ============================================================ */

/* --- Font rendering --------------------------------------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Smoother header elevation transition ----------------- */
.site-header {
  transition: border-color var(--timing-normal) ease, box-shadow var(--timing-normal) ease,
              background var(--timing-normal) ease;
}

/* --- Nav link subtle underline on hover ------------------- */
.site-nav a {
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* --- Card hover lift + glow ------------------------------- */
.card {
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 220ms ease,
              background 220ms ease,
              border-color 220ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25),
              0 0 18px rgba(255, 77, 141, 0.08);
  background: var(--card-2);
  border-color: rgba(255, 255, 255, 0.18);
}

/* --- Glassmorphism on cards ------------------------------- */
.card,
.hero-card,
.stat {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Hero card subtle float ------------------------------- */
.hero-card {
  transition: transform var(--timing-normal) cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow var(--timing-normal) ease;
}
.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

/* --- Image hover scale ----------------------------------- */
.foundryMedia img,
.oscHeroMedia img {
  transition: transform var(--timing-slow) cubic-bezier(0.4, 0, 0.2, 1);
}
.foundryMedia:hover img,
.oscHeroMedia:hover img {
  transform: scale(1.015);
}

/* --- Avatar subtle animated glow ------------------------- */
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24); }
  50%      { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22),
                         0 0 16px rgba(255, 77, 141, 0.18),
                         0 0 28px rgba(71, 215, 255, 0.12); }
}
.avatar {
  animation: avatarPulse 4s ease-in-out infinite;
}

/* --- Brand mark ambient glow ----------------------------- */
@keyframes brandGlow {
  0%, 100% { box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35); }
  50%      { box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3),
                         0 0 10px rgba(255, 77, 141, 0.12),
                         0 0 18px rgba(71, 215, 255, 0.08); }
}

/* --- Team card polish ------------------------------------ */
.team-card {
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 220ms ease,
              border-color 260ms ease;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28),
              0 0 20px rgba(255, 77, 141, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Pill hover effect ----------------------------------- */
.pill {
  transition: background 180ms ease, border-color 180ms ease,
              transform 180ms ease;
}
.pill:hover {
  background: var(--card-2);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* --- Section spacing bump -------------------------------- */
.section {
  padding: 64px 0;
}
.hero {
  padding: 80px 0 40px;
}
.team-hero {
  padding-top: 80px;
}

/* --- Footer more breathing room -------------------------- */
.site-footer {
  padding: 32px 0 42px;
}
.footer-inner {
  padding-top: 24px;
}

/* --- Footer link hover ----------------------------------- */
.footer-right a {
  transition: background 180ms ease, border-color 180ms ease,
              transform 180ms ease;
}
.footer-right a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Eyebrow styling boost ------------------------------- */
.eyebrow {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Lead text refinement -------------------------------- */
.lead {
  line-height: 1.65;
}

/* --- h1 gradient accent line ----------------------------- */
h1 {
  position: relative;
  display: inline-block;
}
h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* --- Scroll-reveal animation ----------------------------- */
.reveal {
  opacity: 0;
}

/* --- Foundry window hover -------------------------------- */
.foundryWindow {
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.foundryWindow:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

/* --- Foundry callout subtle glow ------------------------- */
.foundryCallout,
.callout {
  transition: border-color 260ms ease, box-shadow 260ms ease;
}
.foundryCallout:hover,
.callout:hover {
  border-color: rgba(255, 77, 141, 0.45);
  box-shadow: 0 0 20px rgba(255, 77, 141, 0.08);
}

/* --- Contact card hover boost ---------------------------- */
.contact-card {
  transition: transform 200ms ease, background 200ms ease,
              border-color 200ms ease, box-shadow 200ms ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Stat card hover ------------------------------------- */
.stat {
  transition: background 200ms ease, border-color 200ms ease;
}
.stat:hover {
  background: var(--card-2);
  border-color: rgba(255, 255, 255, 0.18);
}

/* --- Foundry det-note hover ------------------------------ */
.foundryDetNote {
  transition: border-color 260ms ease, box-shadow 260ms ease;
}
.foundryDetNote:hover {
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.06);
}

/* --- Smooth scrollbar (webkit) --------------------------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Selection color ------------------------------------- */
::selection {
  background: rgba(255, 77, 141, 0.3);
  color: #fff;
}

/* ============================================================
 * Black & white pages (OS, Mission, Master Foundry)
 * Pure black background, white text, no colour accents.
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os,
body.page-mission,
body.page-overview,
body.page-pricing,
body.page-legal {
  --bg: #000000;
  --bg-2: #050505;
  --accent: #ffffff;
  --accent-2: #ffffff;
  --card: rgba(255, 255, 255, 0.05);
  --card-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.58);
}

body.page-orchestrated-synesthesia-cognition-os::before,
body.page-mission::before,
body.page-overview::before,
body.page-pricing::before,
body.page-legal::before {
  background: #000000;
  filter: none;
  transform: none;
}

body.page-orchestrated-synesthesia-cognition-os::after,
body.page-mission::after,
body.page-overview::after,
body.page-pricing::after,
body.page-legal::after {
  background: none;
}

/* OS page: pure black background, white writing */
body.page-orchestrated-synesthesia-cognition-os {
  background: #000000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --accent: #ffffff;
  --accent-2: rgba(255, 255, 255, 0.85);
  --border: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 450;
}
body.page-orchestrated-synesthesia-cognition-os .lead,
body.page-orchestrated-synesthesia-cognition-os h1,
body.page-orchestrated-synesthesia-cognition-os h2,
body.page-orchestrated-synesthesia-cognition-os h3,
body.page-orchestrated-synesthesia-cognition-os .card,
body.page-orchestrated-synesthesia-cognition-os .card p,
body.page-orchestrated-synesthesia-cognition-os .section-head .lead,
body.page-orchestrated-synesthesia-cognition-os .muted,
body.page-orchestrated-synesthesia-cognition-os figcaption,
body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure figcaption {
  color: #ffffff;
}
body.page-orchestrated-synesthesia-cognition-os .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
}
body.page-orchestrated-synesthesia-cognition-os .card p,
body.page-orchestrated-synesthesia-cognition-os .section-head .lead {
  font-size: 1.0625rem;
  line-height: 1.72;
}
body.page-orchestrated-synesthesia-cognition-os h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
body.page-orchestrated-synesthesia-cognition-os h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  font-weight: 750;
}
body.page-orchestrated-synesthesia-cognition-os h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
}
body.page-orchestrated-synesthesia-cognition-os .muted,
body.page-orchestrated-synesthesia-cognition-os figcaption {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  line-height: 1.6;
}
body.page-orchestrated-synesthesia-cognition-os::before {
  background: rgba(0, 0, 0, 0.48);
  transform: none;
  filter: none;
}
body.page-orchestrated-synesthesia-cognition-os::after {
  background: none;
}

body.page-orchestrated-synesthesia-cognition-os .eyebrow {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: rgba(255, 255, 255, 0.7);
}
body.page-mission .eyebrow,
body.page-overview .eyebrow,
body.page-pricing .eyebrow,
body.page-legal .eyebrow {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: rgba(255, 255, 255, 0.58);
}

body.page-orchestrated-synesthesia-cognition-os h1::after {
  background: rgba(255, 255, 255, 0.25);
}
body.page-mission h1::after,
body.page-overview h1::after,
body.page-pricing h1::after,
body.page-legal h1::after {
  background: rgba(255, 255, 255, 0.25);
}
body.page-foundry h1::after {
  background: rgba(255, 255, 255, 0.25);
}

body.page-orchestrated-synesthesia-cognition-os .site-nav a::after {
  background: rgba(255, 255, 255, 0.6);
}
body.page-mission .site-nav a::after,
body.page-overview .site-nav a::after,
body.page-pricing .site-nav a::after,
body.page-legal .site-nav a::after {
  background: rgba(255, 255, 255, 0.5);
}
body.page-foundry .site-nav a::after {
  background: rgba(255, 255, 255, 0.5);
}

body.page-orchestrated-synesthesia-cognition-os .card:hover,
body.page-mission .card:hover,
body.page-overview .card:hover,
body.page-pricing .card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

body.page-orchestrated-synesthesia-cognition-os .avatar,
body.page-mission .avatar,
body.page-overview .avatar,
body.page-pricing .avatar {
  background: linear-gradient(135deg, #ffffff, #cccccc);
  animation: none;
}

body.page-orchestrated-synesthesia-cognition-os .brand-mark,
body.page-mission .brand-mark,
body.page-overview .brand-mark,
body.page-pricing .brand-mark {
  animation: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}
body.page-foundry .brand-mark {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

body.page-orchestrated-synesthesia-cognition-os .btn {
  background: #ffffff;
  color: #000000;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
body.page-mission .btn,
body.page-overview .btn,
body.page-pricing .btn {
  background: #ffffff;
  color: #000000;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

body.page-orchestrated-synesthesia-cognition-os .callout {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}
body.page-mission .callout,
body.page-overview .callout,
body.page-pricing .callout {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

body.page-orchestrated-synesthesia-cognition-os ::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
body.page-mission ::selection,
body.page-overview ::selection,
body.page-pricing ::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
body.page-foundry ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.page-orchestrated-synesthesia-cognition-os .site-header,
body.page-mission .site-header,
body.page-overview .site-header,
body.page-pricing .site-header {
  background: rgba(0, 0, 0, 0.6);
}
body.page-foundry .site-header {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.page-orchestrated-synesthesia-cognition-os .hero-card,
body.page-mission .hero-card,
body.page-overview .hero-card,
body.page-pricing .hero-card {
  background: rgba(255, 255, 255, 0.03);
}

body.page-orchestrated-synesthesia-cognition-os .hero-card-top,
body.page-mission .hero-card-top,
body.page-overview .hero-card-top,
body.page-pricing .hero-card-top {
  background: rgba(255, 255, 255, 0.04);
}

body.page-orchestrated-synesthesia-cognition-os .dot-red,
body.page-mission .dot-red,
body.page-overview .dot-red,
body.page-pricing .dot-red {
  background: #888;
}

body.page-orchestrated-synesthesia-cognition-os .dot-yellow,
body.page-mission .dot-yellow,
body.page-overview .dot-yellow,
body.page-pricing .dot-yellow {
  background: #aaa;
}

body.page-orchestrated-synesthesia-cognition-os .dot-green,
body.page-mission .dot-green,
body.page-overview .dot-green,
body.page-pricing .dot-green {
  background: #ccc;
}

body.page-orchestrated-synesthesia-cognition-os .work-thumb,
body.page-mission .work-thumb,
body.page-overview .work-thumb,
body.page-pricing .work-thumb {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.02));
}

/* Page load fade-in: defined in premium section at end of file */

/* ============================================================
 * Section gradient dividers (replace flat borders)
 * ============================================================ */
.section-alt {
  border-top: none;
  border-bottom: none;
  position: relative;
}
.section-alt::before,
.section-alt::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
}
.section-alt::before {
  top: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.section-alt::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============================================================
 * Foundry loop stack (missing styles)
 * ============================================================ */
.foundryLoopStack {
  display: grid;
  gap: 28px;
}

.foundryLoop {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px 22px 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 260ms ease;
}
.foundryLoop:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}
.foundryLoop h3 {
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: #000000;
}
.foundryLoop p {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.85);
}
.foundryLoop p:last-child { margin-bottom: 0; }
.foundryLoop .foundryDetNote { margin-top: 14px; }
.foundryLoop .foundryFigure { margin-top: 16px; }

/* ============================================================
 * Foundry callout left accent bar
 * ============================================================ */
.foundryCallout,
.callout {
  position: relative;
  overflow: hidden;
}
.foundryCallout::before,
.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

/* ============================================================
 * Expert review blockquote styling
 * ============================================================ */
.expertQuote {
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  padding-left: 20px;
  margin: 18px 0;
  font-style: italic;
}

/* ============================================================
 * Stat number emphasis
 * ============================================================ */
.stat-k {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-big {
  font-size: 2rem;
  line-height: 1.2;
}

/* ============================================================
 * OS page grid helpers (move inline styles to classes)
 * ============================================================ */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-1 { grid-template-columns: 1fr; }
.text-center { text-align: center; }
.mt-sm { margin-top: 18px; }
.span-full { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }
}

/* ============================================================
 * B&W pages subtle depth
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .section-alt,
body.page-mission .section-alt,
body.page-overview .section-alt,
body.page-pricing .section-alt {
  background: rgba(255, 255, 255, 0.015);
}

body.page-orchestrated-synesthesia-cognition-os .section-alt::before,
body.page-orchestrated-synesthesia-cognition-os .section-alt::after,
body.page-mission .section-alt::before,
body.page-mission .section-alt::after,
body.page-overview .section-alt::before,
body.page-overview .section-alt::after,
body.page-pricing .section-alt::before,
body.page-pricing .section-alt::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

body.page-orchestrated-synesthesia-cognition-os .card,
body.page-mission .card,
body.page-overview .card,
body.page-pricing .card {
  border-color: rgba(255, 255, 255, 0.08);
}

body.page-orchestrated-synesthesia-cognition-os .card:hover,
body.page-mission .card:hover,
body.page-overview .card:hover,
body.page-pricing .card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

body.page-orchestrated-synesthesia-cognition-os .callout::before,
body.page-mission .callout::before,
body.page-overview .callout::before,
body.page-pricing .callout::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15));
}

/* ============================================================
 * Footer polish
 * ============================================================ */
.footer-inner {
  border-top: none;
  position: relative;
}
.footer-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============================================================
 * Smooth scroll globally
 * ============================================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================================
 * Landing page hero refinements
 * ============================================================ */
.landing-hero {
  padding: 100px 0 60px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.landing-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.08;
  display: block;
}
.landing-hero h1::after {
  margin: 16px auto 0;
}
.landing-hero .lead {
  margin: 0 auto 24px;
  max-width: 62ch;
  font-size: 1.18rem;
}
.landing-hero .eyebrow {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.landing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
.landing-nav a {
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 750;
  font-size: 1rem;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.landing-nav a:hover {
  transform: translateY(-3px);
  background: var(--card-2);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.landing-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
@media (max-width: 720px) {
  .landing-values {
    grid-template-columns: 1fr;
  }
}
.landing-value {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 260ms ease;
}
.landing-value:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}
.landing-value h3 {
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.landing-value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
 * Mission page hero refinement
 * ============================================================ */
.mission-hero .split {
  align-items: center;
}
.mission-hero .checklist {
  margin-top: 24px;
}
.mission-hero .checklist li {
  position: relative;
  padding-left: 6px;
}

/* ============================================================
 * Comparison row styling for OS page
 * ============================================================ */
.comparison-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.comparison-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.comparison-label {
  font-weight: 850;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.comparison-label.highlight {
  color: var(--text);
}
.comparison-content {
  color: var(--muted);
}
@media (max-width: 640px) {
  .comparison-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
 * Foundry page: let the background image show through
 * (must come after the B&W block to override)
 * ============================================================ */
body.page-foundry .section-alt {
  background: rgba(255, 255, 255, 0.015);
}
body.page-foundry .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.page-foundry .card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
body.page-foundry .foundryWindow {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}
body.page-foundry .foundryDetNote {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.page-foundry .callout {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.page-foundry .callout::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}
body.page-foundry .foundryLoop {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.page-foundry .foundrySubnav a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}
body.page-foundry .foundrySubnav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}
body.page-foundry .eyebrow {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: rgba(255, 255, 255, 0.6);
}
body.page-foundry .btn {
  background: #ffffff;
  color: #000000;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================================
 * Foundry hero: black AAGC Foundry, white/red code flows through; black background visible
 * ============================================================ */
.foundry-gradient-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  display: inline-block;
  position: relative;
  text-transform: uppercase;
}
.foundry-title-code {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  text-transform: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)) 0% 50% / 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: codeStreamFlow 14s linear infinite;
  filter: brightness(1.3) contrast(1.2) saturate(1.35);
  pointer-events: none;
}
.foundry-title-black {
  position: relative;
  z-index: 1;
  color: #ffffff;
  opacity: 0.85;
  font-family: inherit;
  text-transform: inherit;
}
.foundry-gradient-title::after {
  display: none;
}

@keyframes codeStreamFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

.foundry-hero-subtitle {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: #000000;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
}

.foundry-hero-lead {
  font-size: 1.18rem;
  color: rgba(0, 0, 0, 0.82);
  margin: 0 0 28px;
  max-width: 55ch;
  line-height: 1.6;
  font-weight: 500;
}

body.page-foundry .foundryHero {
  padding-top: 90px;
  padding-bottom: 50px;
}

body.page-foundry .foundrySubnav {
  margin-top: 30px;
}

body.page-foundry .foundryHeroFigure {
  margin-top: 40px;
  margin-bottom: 20px;
}

body.page-foundry .foundryHeroCards {
  margin-top: 30px;
}

/* Foundry image frames: frosted glass treatment */
body.page-foundry .foundryMedia {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.25);
  transition: transform var(--timing-normal) ease, box-shadow var(--timing-normal) ease;
}
body.page-foundry .foundryMedia:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.25),
    0 24px 56px rgba(0, 0, 0, 0.3);
}

body.page-foundry .foundryFigure figcaption {
  color: rgba(255, 255, 255, 0.45);
}

/* Section headings on Foundry: slight gradient accent on h2 */
body.page-foundry h2 {
  color: rgba(255, 255, 255, 0.9);
}
body.page-foundry h3 {
  color: rgba(255, 255, 255, 0.85);
}

body.page-foundry .section-head .lead {
  color: rgba(255, 255, 255, 0.55);
}

/* Foundry dot colors: pink theme */
body.page-foundry .dot-red { background: #ec4899; }
body.page-foundry .dot-yellow { background: #f59e0b; }
body.page-foundry .dot-green { background: #22d3ee; }

body.page-foundry .foundryWindowBar {
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.page-foundry .foundryCallout,
body.page-foundry .callout {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Foundry footer */
body.page-foundry .site-footer {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.page-foundry .footer-inner::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ============================================================
 * Foundry: Launch-ready premium polish
 * ============================================================ */

body.page-foundry .foundryHero {
  padding-top: 140px;
  padding-bottom: 80px;
}

body.page-foundry .foundry-hero-lead {
  margin-bottom: 40px;
}

body.page-foundry .foundry-hero-subtitle {
  margin-bottom: 18px;
}

body.page-foundry .section {
  padding: 88px 0;
}

body.page-foundry .section-head {
  margin-bottom: 40px;
}

body.page-foundry .section-head .lead {
  font-size: 1.18rem;
  line-height: 1.72;
  max-width: 64ch;
}

body.page-foundry h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

body.page-foundry .foundryMedia {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.15),
    0 24px 56px rgba(0, 0, 0, 0.2),
    0 48px 80px rgba(0, 0, 0, 0.1);
  transition: transform var(--timing-slow) var(--ease-out-expo),
              box-shadow var(--timing-slow) ease;
}

body.page-foundry .foundryMedia::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.25), rgba(255,255,255,0.12));
  z-index: 2;
}

body.page-foundry .foundryMedia:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 16px 32px rgba(0, 0, 0, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.25),
    0 56px 100px rgba(0, 0, 0, 0.12);
}

body.page-foundry .foundryMedia:hover img {
  transform: scale(1.008);
}

body.page-foundry .foundryFigure {
  margin-top: 20px;
  margin-bottom: 12px;
}

body.page-foundry .foundryFigure figcaption {
  margin-top: 16px;
  font-size: 0.86rem;
  font-style: italic;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.4);
}

body.page-foundry .foundryZoomLink {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: none;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  transition: all 200ms ease;
}

body.page-foundry .foundryZoomLink:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border-bottom: none;
}

body.page-foundry .card {
  padding: 26px 26px 28px;
  border-radius: 18px;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 350ms ease,
              background 350ms ease;
}

body.page-foundry .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

body.page-foundry .grid.cards {
  gap: 20px;
}

body.page-foundry .foundrySubnav {
  gap: 10px;
}

body.page-foundry .foundrySubnav a {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--timing-normal) var(--ease-out-expo);
}

body.page-foundry .foundrySubnav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.15);
}

body.page-foundry .foundryWindow {
  border-radius: 20px;
  border: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.15);
}

body.page-foundry .foundryWindowBar {
  padding: 14px 18px;
  border-radius: 20px 20px 0 0;
}

body.page-foundry .foundryWindowBody {
  padding: 18px 20px 22px;
}

body.page-foundry .foundryLoop {
  border-radius: 20px;
  padding: 30px 30px 34px;
}

body.page-foundry .foundryCallout {
  border-radius: 18px;
  padding: 22px 24px;
}

body.page-foundry .foundryDetNote {
  border-radius: 16px;
  padding: 18px 20px;
}

body.page-foundry .foundrySplit + .foundrySplit {
  margin-top: 36px;
}

body.page-foundry .foundryLoopStack {
  gap: 24px;
}

body.page-foundry .foundryHeroCards {
  gap: 20px;
}

/* ============================================================
 * SITE-WIDE: Launch-ready premium treatment
 * ============================================================ */

body {
  letter-spacing: -0.011em;
  font-optical-sizing: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-feature-settings: 'cv01', 'cv02', 'cv03';
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  font-weight: 750;
}

.lead {
  font-size: 1.16rem;
  line-height: 1.72;
  letter-spacing: -0.008em;
}

.eyebrow {
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.section {
  padding: 84px 0;
}

.section-head {
  margin-bottom: 32px;
}

.hero {
  padding: 100px 0 50px;
}

.site-header {
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.site-header[data-elevate="true"] {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 8px 14px;
  border-radius: 12px;
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.06)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.reveal.is-visible {
  animation: revealUp 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal.is-visible .card,
.reveal.is-visible .landing-value {
  animation: revealUp 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal.is-visible .card:nth-child(1),
.reveal.is-visible .landing-value:nth-child(1) { animation-delay: 0ms; }
.reveal.is-visible .card:nth-child(2),
.reveal.is-visible .landing-value:nth-child(2) { animation-delay: 70ms; }
.reveal.is-visible .card:nth-child(3),
.reveal.is-visible .landing-value:nth-child(3) { animation-delay: 140ms; }
.reveal.is-visible .card:nth-child(4),
.reveal.is-visible .landing-value:nth-child(4) { animation-delay: 210ms; }
.reveal.is-visible .card:nth-child(5),
.reveal.is-visible .landing-value:nth-child(5) { animation-delay: 280ms; }
.reveal.is-visible .card:nth-child(6),
.reveal.is-visible .landing-value:nth-child(6) { animation-delay: 350ms; }
.reveal.is-visible .card:nth-child(7) { animation-delay: 420ms; }
.reveal.is-visible .card:nth-child(8) { animation-delay: 490ms; }
.reveal.is-visible .card:nth-child(9) { animation-delay: 560ms; }
.reveal.is-visible .card:nth-child(10) { animation-delay: 630ms; }

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

body {
  animation: pageIn 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-alt {
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(255, 77, 141, 0.025), transparent 50%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(71, 215, 255, 0.02), transparent 50%),
    rgba(255, 255, 255, 0.025);
}

.btn {
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  transition: all 250ms var(--ease-out-expo);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 77, 141, 0.28);
}

.site-footer {
  padding: 42px 0 54px;
}

.footer-inner {
  padding-top: 28px;
}

.landing-hero {
  padding: 120px 0 70px;
}

.landing-hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.landing-hero .lead {
  font-size: 1.22rem;
  line-height: 1.72;
  max-width: 58ch;
}

.landing-nav a {
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 1.02rem;
  font-weight: 700;
}

.landing-value h3 {
  font-size: 1.1rem;
  font-weight: 750;
}

.landing-value p {
  line-height: 1.65;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ============================================================
 * B&W pages (OS, Mission, Master Foundry): premium refinements
 * ============================================================ */

body.page-orchestrated-synesthesia-cognition-os .section,
body.page-mission .section,
body.page-overview .section,
body.page-pricing .section {
  padding: 88px 0;
}

body.page-orchestrated-synesthesia-cognition-os .section-alt,
body.page-mission .section-alt,
body.page-overview .section-alt,
body.page-pricing .section-alt {
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(255, 255, 255, 0.02), transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(255, 255, 255, 0.015), transparent 50%),
    rgba(255, 255, 255, 0.015);
}

body.page-orchestrated-synesthesia-cognition-os .card::before,
body.page-mission .card::before,
body.page-overview .card::before,
body.page-pricing .card::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.05)
  );
}

/* ============================================================
 * Foundry page: deeper premium polish
 * ============================================================ */

body.page-foundry {
  font-weight: 420;
}

body.page-foundry .section-alt {
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(255, 255, 255, 0.02), transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(255, 255, 255, 0.015), transparent 50%),
    rgba(255, 255, 255, 0.015);
}

body.page-foundry .foundry-gradient-title {
  font-size: clamp(3.5rem, 7.5vw, 6rem);
}

body.page-foundry .foundry-hero-subtitle {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.page-foundry .foundry-hero-lead {
  font-size: 1.22rem;
  line-height: 1.68;
  letter-spacing: -0.008em;
}

body.page-foundry .card::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.04)
  );
}

body.page-foundry .card h3 {
  font-weight: 750;
  color: rgba(255, 255, 255, 0.9);
}

body.page-foundry .card p {
  line-height: 1.65;
  font-weight: 430;
}

body.page-foundry .foundryProse p {
  font-size: 1.02rem;
  line-height: 1.7;
}

body.page-foundry .foundryList li {
  font-size: 1.01rem;
  line-height: 1.65;
  margin: 10px 0;
}

body.page-foundry .foundryWindowList li {
  line-height: 1.6;
  font-weight: 440;
}

body.page-foundry .foundryLoop h3 {
  font-size: 1.1rem;
  font-weight: 750;
  color: #ffffff;
}

body.page-foundry .foundryLoop p {
  font-size: 1.01rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
 * Premium hero shimmer effect (landing page)
 * ============================================================ */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

body.page-overview .landing-hero h1 {
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.88) 35%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.88) 65%,
    rgba(255, 255, 255, 0.88) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s ease-in-out infinite;
}

body.page-overview .landing-hero h1::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
  -webkit-text-fill-color: initial;
}

/* Hero badge / pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  transition: all var(--timing-normal) ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
  50%      { opacity: 0.6; box-shadow: 0 0 14px rgba(34, 197, 94, 0.7); }
}

/* ============================================================
 * Landing nav premium treatment
 * ============================================================ */
.landing-nav a {
  position: relative;
  overflow: hidden;
}

.landing-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.08)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.landing-nav a:hover::before {
  opacity: 1;
}

.landing-nav-desc {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  letter-spacing: 0;
}

/* ============================================================
 * Stat numbers premium glow (OS page)
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .stat-big {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

body.page-orchestrated-synesthesia-cognition-os .grid-5 .card {
  padding: 24px 16px;
  transition: all var(--timing-normal) var(--ease-out-expo);
}

body.page-orchestrated-synesthesia-cognition-os .grid-5 .card:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 255, 255, 0.03);
}

/* OS page card hover with white accent glow */
body.page-orchestrated-synesthesia-cognition-os .card:hover {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
}

/* OS page callout enhanced */
body.page-orchestrated-synesthesia-cognition-os .callout:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.05);
}

/* ============================================================
 * Checklist premium styling
 * ============================================================ */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 24px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(0.55em + 2px);
  width: 6px;
  height: 4px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
  transform: rotate(-45deg);
}

/* ============================================================
 * Landing values enhanced spacing
 * ============================================================ */
.landing-values {
  gap: 18px;
  margin-top: 28px;
}

.landing-value {
  padding: 26px 24px;
  transition: all var(--timing-normal) var(--ease-out-expo);
}

.landing-value:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.landing-value h3 {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.landing-value p {
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ============================================================
 * Expert review enhanced quote styling
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os #expert-review .callout {
  padding: 28px 28px 30px;
}

body.page-orchestrated-synesthesia-cognition-os #expert-review .callout p {
  font-size: 1.05rem;
  line-height: 1.72;
  font-style: italic;
  font-weight: 450;
}

body.page-orchestrated-synesthesia-cognition-os #expert-review .callout p + p {
  margin-top: 18px;
}

/* OS Vision trinity: consolidated in VISUAL DEPTH section below */

/* ============================================================
 * Ambient animated gradient for landing page background
 * ============================================================ */
@keyframes ambientGlow {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33%  { transform: translate(20px, -10px) scale(1.05); opacity: 0.6; }
  66%  { transform: translate(-10px, 15px) scale(0.98); opacity: 0.45; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
}

body.page-overview::after {
  background:
    radial-gradient(
      900px 600px at 18% 12%,
      rgba(255, 255, 255, 0.06),
      transparent 65%
    ),
    radial-gradient(
      900px 650px at 80% 8%,
      rgba(255, 255, 255, 0.04),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.88) 100%);
  animation: ambientGlow 12s ease-in-out infinite;
}

/* ============================================================
 * Focus ring refinement (accessibility + aesthetics)
 * ============================================================ */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
  border-radius: 4px;
}

body.page-foundry :focus-visible {
  outline-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
 * Selection color per page
 * ============================================================ */
body.page-overview ::selection {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ============================================================
 * Mobile refinements
 * ============================================================ */
@media (max-width: 840px) {
  .landing-hero {
    padding: 80px 0 50px;
  }
  .landing-hero h1 {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }
  .landing-nav {
    gap: 10px;
  }
  .landing-nav a {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .hero-badge {
    font-size: 0.78rem;
  }
  .site-nav {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }
  h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
}

/* ============================================================
 * OS page: white-themed checklist overrides
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .checklist li::before {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

body.page-orchestrated-synesthesia-cognition-os .checklist li::after {
  border-left-color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
 * Landing values: parent-level reveal for true stagger
 * ============================================================ */
.landing-values {
  perspective: 800px;
}

.landing-value {
  opacity: 0;
}

.landing-values.is-staggered .landing-value {
  animation: revealUp 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-values.is-staggered .landing-value:nth-child(1) { animation-delay: 0ms; }
.landing-values.is-staggered .landing-value:nth-child(2) { animation-delay: 80ms; }
.landing-values.is-staggered .landing-value:nth-child(3) { animation-delay: 160ms; }
.landing-values.is-staggered .landing-value:nth-child(4) { animation-delay: 240ms; }
.landing-values.is-staggered .landing-value:nth-child(5) { animation-delay: 320ms; }
.landing-values.is-staggered .landing-value:nth-child(6) { animation-delay: 400ms; }

/* ============================================================
 * Subtle grain texture overlay for premium depth
 * ============================================================ */
body::before {
  mix-blend-mode: overlay;
}

/* ============================================================
 * Better product cards on landing page
 * ============================================================ */
body.page-overview .grid[style*="grid-template-columns: 1fr 1fr"] {
  gap: 22px;
}

body.page-overview .grid[style*="grid-template-columns: 1fr 1fr"] .card {
  padding: 32px 28px 34px;
}

/* ============================================================
 * Foundry nav pill - active state for smooth indicator
 * ============================================================ */
body.page-foundry .foundrySubnav a {
  position: relative;
}

body.page-foundry .foundrySubnav a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 250ms var(--ease-out-expo);
}

body.page-foundry .foundrySubnav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================================
 * Smooth image loading fade-in
 * ============================================================ */
img {
  transition: opacity 400ms ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
  opacity: 1;
}

/* ============================================================
 * Better text selection per page
 * ============================================================ */
body.page-foundry ::selection {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

/* ============================================================
 * Foundry callout hover per page theme
 * ============================================================ */
body.page-foundry .callout:hover,
body.page-foundry .foundryCallout:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.page-foundry .foundryDetNote:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================================
 * Better Foundry loop hover
 * ============================================================ */
body.page-foundry .foundryLoop:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

/* ============================================================
 * Better Foundry window hover
 * ============================================================ */
body.page-foundry .foundryWindow:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 6px 16px rgba(0, 0, 0, 0.15),
    0 22px 50px rgba(0, 0, 0, 0.2);
}

/* ============================================================
 * OS page: section heads text alignment
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .section-head {
  margin-bottom: 36px;
}

body.page-orchestrated-synesthesia-cognition-os .section-head .lead {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ============================================================
 * OS page: better callout typography
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .callout p {
  font-size: 1.02rem;
  line-height: 1.68;
}

/* ============================================================
 * Mission page: better hero and principle layout
 * ============================================================ */
body.page-mission h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
}

body.page-mission .checklist li {
  font-size: 1.02rem;
  line-height: 1.6;
}

body.page-mission .callout {
  padding: 24px 24px 26px;
}

body.page-mission .callout ol li {
  font-size: 1.02rem;
  line-height: 1.6;
}

body.page-mission .section-head .lead {
  font-size: 1.12rem;
  line-height: 1.72;
}

/* ============================================================
 * OS page: expert review enhanced with quotation marks
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os #expert-review .callout p:first-child::before {
  content: "\201C";
  position: absolute;
  left: -6px;
  top: -14px;
  font-size: 3rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  font-family: Georgia, serif;
}

body.page-orchestrated-synesthesia-cognition-os #expert-review .callout {
  position: relative;
  padding-left: 32px;
}

/* ============================================================
 * Better stat-big on all pages
 * ============================================================ */
.stat-big {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
}

/* ============================================================
 * VISUAL DEPTH: Landing hero gradient orb
 * ============================================================ */
body.page-overview #overview {
  position: relative;
  overflow: hidden;
}

body.page-overview #overview::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 1200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(236, 72, 153, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 30% 60%, rgba(34, 211, 238, 0.04) 0%, transparent 40%);
  filter: blur(80px);
  animation: heroOrbDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

body.page-overview #overview::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 0%, transparent 70%);
}

@keyframes heroOrbDrift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.7; }
  50%  { transform: translateX(-48%) translateY(-15px) scale(1.04); opacity: 1; }
  100% { transform: translateX(-52%) translateY(5px) scale(0.98); opacity: 0.8; }
}

body.page-overview .landing-hero {
  position: relative;
  z-index: 1;
}

/* ============================================================
 * VISUAL DEPTH: Landing hero title — richer gradient
 * ============================================================ */
body.page-overview .landing-hero h1 {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.88) 30%,
    rgba(210, 190, 255, 0.95) 55%,
    rgba(255, 255, 255, 0.88) 75%,
    rgba(255, 200, 220, 0.92) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroTextDrift 8s ease-in-out infinite alternate;
}

body.page-overview .landing-hero h1::after {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.4), rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.3));
  -webkit-text-fill-color: initial;
  height: 3px;
  width: 56px;
}

@keyframes heroTextDrift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ============================================================
 * VISUAL DEPTH: Card accent bar on hover
 * ============================================================ */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 350ms ease;
  z-index: 1;
}

.card:hover::after {
  opacity: 0.7;
}

/* Product cards: permanent colored accent bars */
body.page-overview .section-alt .card::after {
  opacity: 0.5;
  left: 16px;
  right: 16px;
}

body.page-overview .section-alt .card:first-child::after {
  background: linear-gradient(90deg, #ec4899, #a855f7);
}

body.page-overview .section-alt .card:last-child::after {
  background: linear-gradient(90deg, #22d3ee, #6366f1);
}

body.page-overview .section-alt .card:hover::after {
  opacity: 1;
}

/* B&W pages: white accent bar */
body.page-orchestrated-synesthesia-cognition-os .card::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
}

body.page-mission .card::after,
body.page-overview .card::after,
body.page-pricing .card::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
}

/* Foundry page: dark accent bar */
body.page-foundry .card::after {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.2));
}

/* ============================================================
 * VISUAL DEPTH: Value card numbering (CSS counter)
 * ============================================================ */
.landing-values {
  counter-reset: val;
}

.landing-value {
  counter-increment: val;
  position: relative;
  padding-top: 32px;
}

.landing-value::after {
  content: counter(val, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
  transition: color 300ms ease;
}

.landing-value:hover::after {
  color: rgba(255, 255, 255, 0.16);
}

/* ============================================================
 * VISUAL DEPTH: Hero badge gradient border
 * ============================================================ */
.hero-badge {
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.04) 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.08)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
 * VISUAL DEPTH: Landing nav card glow
 * ============================================================ */
.landing-nav a {
  text-align: left;
}

.landing-nav a:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(236, 72, 153, 0.04);
}

/* ============================================================
 * VISUAL DEPTH: Landing section h2 bigger
 * ============================================================ */
body.page-overview h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* ============================================================
 * VISUAL DEPTH: OS hero mark ambient glow
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure {
  position: relative;
}

body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: osMarkPulse 6s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes osMarkPulse {
  0%   { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* OS hero section: dot grid */
body.page-orchestrated-synesthesia-cognition-os #osc-os {
  position: relative;
}

body.page-orchestrated-synesthesia-cognition-os #osc-os::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 70%);
}

body.page-orchestrated-synesthesia-cognition-os .oscHero {
  position: relative;
  z-index: 1;
}

/* ============================================================
 * VISUAL DEPTH: OS stat numbers — dramatic glow
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .stat-big {
  font-size: 2.6rem;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(255, 255, 255, 0.05);
}

/* ============================================================
 * VISUAL DEPTH: OS competitive landscape styling
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os #competitive .grid-1 .card:first-child {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

body.page-orchestrated-synesthesia-cognition-os #competitive .grid-1 .card:first-child::after {
  opacity: 0.8;
}

/* ============================================================
 * VISUAL DEPTH: Mission page — better hero
 * ============================================================ */
body.page-mission .mission-hero {
  position: relative;
  overflow: hidden;
}

body.page-mission .mission-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

body.page-mission .mission-hero > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
 * VISUAL DEPTH: Foundry page — richer section-alt
 * ============================================================ */
body.page-foundry .section-alt {
  position: relative;
}

body.page-foundry .section:nth-of-type(even) .section-head {
  position: relative;
}

/* Foundry sections: alternating subtle gradient accent */
body.page-foundry .section:nth-of-type(4n+1) .section-alt {
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(99, 102, 241, 0.025), transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(168, 85, 247, 0.015), transparent 50%),
    rgba(255, 255, 255, 0.015);
}

body.page-foundry .section:nth-of-type(4n+3) .section-alt {
  background:
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(59, 130, 246, 0.02), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(236, 72, 153, 0.015), transparent 50%),
    rgba(255, 255, 255, 0.015);
}

/* Foundry hero: code stream more vibrant */
body.page-foundry .foundry-title-code {
  filter: brightness(1.5) contrast(1.3) saturate(1.5);
}

/* ============================================================
 * VISUAL DEPTH: Better footer across all pages
 * ============================================================ */
.brand-footer .brand-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0.7;
}

.footer-right a {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 16px;
  border-radius: 10px;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-right a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================================
 * VISUAL DEPTH: Landing value card hover — soft perspective
 * ============================================================ */
.landing-value {
  transition:
    transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 350ms ease,
    border-color 350ms ease;
}

.landing-value:hover {
  transform: translateY(-6px) perspective(600px) rotateX(1deg);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ============================================================
 * VISUAL DEPTH: OS page hero title gradient
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os h1 {
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

body.page-orchestrated-synesthesia-cognition-os h1::after {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

/* ============================================================
 * VISUAL DEPTH: Better callout left accent bar animation
 * ============================================================ */
.callout::before {
  transition: height 400ms ease, opacity 400ms ease;
}

.callout:hover::before {
  top: 4px;
  bottom: 4px;
}

/* ============================================================
 * VISUAL DEPTH: Better section-alt gradient dividers
 * ============================================================ */
.section-alt::before {
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03) 15%,
    var(--border) 50%,
    rgba(255, 255, 255, 0.03) 85%,
    transparent
  );
}

.section-alt::after {
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03) 15%,
    var(--border) 50%,
    rgba(255, 255, 255, 0.03) 85%,
    transparent
  );
}

/* ============================================================
 * VISUAL DEPTH: Product card enhanced treatment
 * ============================================================ */
body.page-overview .section-alt .card {
  padding: 34px 30px 36px;
  transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-overview .section-alt .card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

body.page-overview .section-alt .card p {
  font-size: 1.02rem;
  line-height: 1.7;
}

body.page-overview .section-alt .card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.page-overview .section-alt .btn-ghost {
  margin-top: 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  letter-spacing: 0.01em;
  border-color: rgba(255, 255, 255, 0.15);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-overview .section-alt .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================================
 * VISUAL DEPTH: Landing page — better hero lead text
 * ============================================================ */
body.page-overview .landing-hero .lead {
  font-size: 1.24rem;
  line-height: 1.72;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.55);
}

body.page-overview .landing-hero .eyebrow {
  margin-bottom: 16px;
}

/* ============================================================
 * VISUAL DEPTH: OS page — vision trinity status badges
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os #vision .card p:last-child strong {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-top: 8px;
}

body.page-orchestrated-synesthesia-cognition-os #vision .card:first-child p:last-child strong {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

body.page-orchestrated-synesthesia-cognition-os #vision .card:nth-child(2) p:last-child strong {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
}

body.page-orchestrated-synesthesia-cognition-os #vision .card:nth-child(3) p:last-child strong {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
 * VISUAL DEPTH: OS page — progress checklist refinement
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .checklist li {
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 10px 0;
}

/* ============================================================
 * VISUAL DEPTH: Global — better micro-interactions
 * ============================================================ */
a {
  transition: color 200ms ease;
}

.brand {
  transition: opacity 200ms ease;
}

.brand:hover {
  opacity: 0.8;
}

/* ============================================================
 * VISUAL DEPTH: Better mobile responsive refinements
 * ============================================================ */
@media (max-width: 840px) {
  body.page-overview #overview::before {
    top: -20%;
    width: 140%;
    filter: blur(60px);
  }

  body.page-overview #overview::after {
    background-size: 20px 20px;
  }

  .landing-value::after {
    font-size: 0.65rem;
    top: 16px;
    right: 16px;
  }

  .landing-value {
    padding-top: 26px;
  }

  body.page-orchestrated-synesthesia-cognition-os .stat-big {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  body.page-overview .landing-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  body.page-overview .landing-hero .lead {
    font-size: 1.08rem;
  }

  body.page-overview .section-alt .card {
    padding: 24px 20px 26px;
  }
}

/* ============================================================
 * HERO STAT BAR
 * ============================================================ */
.hero-stats {
  display: flex;
  gap: 0;
  margin: 32px auto 36px;
  justify-content: center;
  max-width: 560px;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.hero-stat + .hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.hero-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.85);
}

.hero-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .hero-stats {
    gap: 0;
    max-width: 100%;
    margin: 24px auto 28px;
  }
  .hero-stat {
    padding: 0 8px;
  }
  .hero-stat-num {
    font-size: 1.3rem;
  }
  .hero-stat-label {
    font-size: 0.64rem;
  }
}

/* ============================================================
 * MULTI-COLUMN FOOTER
 * ============================================================ */
.site-footer {
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.75fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 56px 0 40px;
  position: relative;
}

.footer-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 50%,
    transparent
  );
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.3);
  max-width: 26ch;
  line-height: 1.45;
  font-weight: 500;
}

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

.footer-col-title {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links-col a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 200ms ease;
  line-height: 1.3;
}

.footer-links-col a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 32px;
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.footer-copy {
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-top-link {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-top-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 28px;
  }
  .footer-links-col {
    gap: 8px;
  }
}

/* Foundry page footer overrides */
body.page-foundry .footer-tagline {
  color: rgba(255, 255, 255, 0.3);
}

body.page-foundry .footer-col-title {
  color: rgba(255, 255, 255, 0.35);
}

body.page-foundry .footer-links-col a {
  color: rgba(255, 255, 255, 0.45);
}

body.page-foundry .footer-links-col a:hover {
  color: rgba(255, 255, 255, 0.8);
}

body.page-foundry .footer-grid::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

body.page-foundry .footer-bottom::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
}

body.page-foundry .footer-top-link {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

body.page-foundry .footer-top-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

body.page-foundry .footer-copy {
  color: rgba(255, 255, 255, 0.35);
}

/* OS page footer overrides */
body.page-orchestrated-synesthesia-cognition-os .footer-tagline {
  color: rgba(255, 255, 255, 0.2);
}

body.page-orchestrated-synesthesia-cognition-os .footer-col-title {
  color: rgba(255, 255, 255, 0.35);
}

body.page-orchestrated-synesthesia-cognition-os .footer-links-col a {
  color: rgba(255, 255, 255, 0.4);
}

body.page-orchestrated-synesthesia-cognition-os .footer-links-col a:hover {
  color: rgba(255, 255, 255, 0.8);
}

body.page-orchestrated-synesthesia-cognition-os .footer-grid::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

body.page-orchestrated-synesthesia-cognition-os .footer-top-link {
  border-color: rgba(255, 255, 255, 0.1);
}

body.page-orchestrated-synesthesia-cognition-os .footer-top-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
 * CRT SCANLINE OVERLAY — OS PAGE
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.02) 0px,
      rgba(0, 0, 0, 0.02) 1px,
      transparent 1px,
      transparent 3px
    ),
    rgba(0, 0, 0, 0.48);
  filter: none;
  transform: none;
}

/* ============================================================
 * BRAND MARK — GRADIENT GLOW
 * ============================================================ */
@keyframes brandMarkGlow {
  0%, 100% {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.25),
      0 0 16px rgba(255, 255, 255, 0.04),
      0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

.brand-mark {
  animation: brandMarkGlow 6s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

/* ============================================================
 * LANDING NAV — ARROW INDICATOR + INNER GLOW
 * ============================================================ */
.landing-nav a {
  display: flex;
  flex-direction: column;
  position: relative;
}

.landing-nav a::after {
  content: "\2192";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.15);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-nav a:hover::after {
  color: rgba(255, 255, 255, 0.45);
  transform: translateX(3px);
}

/* ============================================================
 * CARD INNER GLOW ON HOVER
 * ============================================================ */
.card {
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 0 rgba(255, 255, 255, 0);
  transition:
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 280ms ease,
    background 280ms ease,
    border-color 280ms ease;
}

.card:hover {
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.page-foundry .card:hover {
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.page-orchestrated-synesthesia-cognition-os .card:hover {
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ============================================================
 * SECTION COLOR BLEED — smooth transitions between sections
 * ============================================================ */
.section + .section-alt::before,
.section-alt + .section::before {
  height: 2px;
}

.section-alt {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255, 255, 255, 0.025), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(255, 255, 255, 0.015), transparent 50%),
    rgba(255, 255, 255, 0.025);
}

/* ============================================================
 * LANDING NAV — BETTER VISUAL HIERARCHY
 * ============================================================ */
.landing-nav {
  gap: 14px;
}

.landing-nav a {
  padding: 18px 24px 18px 22px;
  border-radius: 16px;
  font-weight: 750;
  min-height: 80px;
  justify-content: center;
}

.landing-nav-desc {
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 3px;
  opacity: 0.5;
  transition: opacity 250ms ease;
}

.landing-nav a:hover .landing-nav-desc {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .landing-nav {
    flex-direction: column;
    gap: 10px;
  }
  .landing-nav a {
    min-height: auto;
    padding: 14px 20px;
  }
  .landing-nav a::after {
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
  }
  .landing-nav a:hover::after {
    transform: translateY(-50%) translateX(3px);
  }
}

/* ══════════════════════════════════════════════════════════
   FOUNDRY SUB-PAGES: audience selector, vision, stats,
   breadcrumb, compact hero, CTA block
   ══════════════════════════════════════════════════════════ */

/* ---------- Audience selector ---------- */
.foundry-audience-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.foundry-audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 40px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  color: inherit;
  text-decoration: none;
  transition: border-color .3s, background .3s, transform .25s, box-shadow .3s;
}
.foundry-audience-card:hover {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
}
.foundry-audience-icon {
  color: rgba(255,255,255,.4);
  transition: color .3s;
}
.foundry-audience-card:hover .foundry-audience-icon {
  color: rgba(255,255,255,.7);
}
.foundry-audience-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.foundry-audience-desc {
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
  flex: 1;
}
.foundry-audience-arrow {
  display: inline-block;
  font-size: 1.3rem;
  color: rgba(255,255,255,.3);
  transition: transform .3s, color .3s;
  align-self: flex-end;
}
.foundry-audience-card:hover .foundry-audience-arrow {
  transform: translateX(6px);
  color: rgba(255,255,255,.7);
}

/* ---------- Vision statement ---------- */
.foundry-vision {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.foundry-vision p {
  font-size: 1.25rem;
  line-height: 1.75;
  color: rgba(255,255,255,.65);
  letter-spacing: -.01em;
}
.foundry-vision strong {
  color: rgba(255,255,255,.92);
}

/* ---------- Stats row ---------- */
.foundry-stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 24px 0;
}
.foundry-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.foundry-stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  font-feature-settings: "tnum";
}
.foundry-stat-label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* ---------- Breadcrumb ---------- */
.foundry-breadcrumb {
  display: inline-block;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .2s;
  letter-spacing: .01em;
}
.foundry-breadcrumb:hover {
  color: rgba(255,255,255,.7);
}

/* ---------- Compact hero (sub-pages) ---------- */
.foundryHero--compact {
  padding-bottom: 32px;
}
.foundryHero--compact .foundryHeroCopy {
  max-width: 780px;
}
.foundryHero--compact .foundry-hero-lead {
  font-size: 1.05rem;
}

/* ---------- CTA block (getting-started) ---------- */
.foundry-cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 0;
}
.foundry-cta-block h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.foundry-cta-block .lead {
  color: rgba(255,255,255,.55);
  margin-bottom: 32px;
}
.foundry-cta-link {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
  transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.foundry-cta-link:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

/* ---------- Foundry page: white text overrides ---------- */
body.page-foundry .foundry-audience-card {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.page-foundry .foundry-audience-card:hover {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: 0 12px 40px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.04);
}
body.page-foundry .foundry-audience-icon {
  color: rgba(255,255,255,.35);
}
body.page-foundry .foundry-audience-card:hover .foundry-audience-icon {
  color: rgba(255,255,255,.65);
}
body.page-foundry .foundry-audience-title {
  color: rgba(255,255,255,.88);
}
body.page-foundry .foundry-audience-desc {
  color: rgba(255,255,255,.55);
}
body.page-foundry .foundry-audience-arrow {
  color: rgba(255,255,255,.25);
}
body.page-foundry .foundry-audience-card:hover .foundry-audience-arrow {
  color: rgba(255,255,255,.6);
}
body.page-foundry .foundry-vision p {
  color: rgba(255,255,255,.6);
}
body.page-foundry .foundry-vision strong {
  color: rgba(255,255,255,.88);
}
body.page-foundry .foundry-stat-num {
  color: rgba(255,255,255,.9);
}
body.page-foundry .foundry-stat-label {
  color: rgba(255,255,255,.45);
}
body.page-foundry .foundry-breadcrumb {
  color: rgba(255,255,255,.4);
}
body.page-foundry .foundry-breadcrumb:hover {
  color: rgba(255,255,255,.7);
}
body.page-foundry .foundry-cta-block h2 {
  color: rgba(255,255,255,.88);
}
body.page-foundry .foundry-cta-block .lead {
  color: rgba(255,255,255,.55);
}
body.page-foundry .foundry-cta-link {
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
}
body.page-foundry .foundry-cta-link:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
body.page-foundry .foundry-hero-subtitle {
  color: rgba(255,255,255,.7);
}
body.page-foundry .foundry-hero-lead {
  color: rgba(255,255,255,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .foundry-audience-selector {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .foundry-audience-card {
    padding: 32px 28px;
  }
  .foundry-stats-row {
    flex-wrap: wrap;
    gap: 32px 48px;
  }
  .foundry-stat-num {
    font-size: 2.2rem;
  }
  .foundry-vision p {
    font-size: 1.08rem;
  }
}

/* ============================================================
 * DARK TECH STARTUP VIBES — shared by Foundry + OS pages
 * Deep dark backgrounds, subtle gradient orbs, premium glass
 * cards, refined typography, elegant hover states.
 * ============================================================ */

body.page-foundry,
body.page-orchestrated-synesthesia-cognition-os {
  background-color: #0a0a0f;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-foundry .site-header,
body.page-orchestrated-synesthesia-cognition-os .site-header {
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-foundry .site-nav a,
body.page-orchestrated-synesthesia-cognition-os .site-nav a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 250ms ease;
}

body.page-foundry .site-nav a:hover,
body.page-orchestrated-synesthesia-cognition-os .site-nav a:hover {
  color: #ffffff;
}

body.page-foundry .brand-text,
body.page-orchestrated-synesthesia-cognition-os .brand-text {
  color: #ffffff;
}

body.page-foundry h1,
body.page-orchestrated-synesthesia-cognition-os h1 {
  color: #ffffff;
  letter-spacing: -0.02em;
}

body.page-foundry h2,
body.page-orchestrated-synesthesia-cognition-os h2 {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.015em;
}

body.page-foundry h3,
body.page-orchestrated-synesthesia-cognition-os h3 {
  color: rgba(255, 255, 255, 0.88);
}

body.page-foundry p,
body.page-orchestrated-synesthesia-cognition-os p {
  color: rgba(255, 255, 255, 0.6);
}

body.page-foundry .lead,
body.page-orchestrated-synesthesia-cognition-os .lead {
  color: rgba(255, 255, 255, 0.55);
}

body.page-foundry .eyebrow,
body.page-orchestrated-synesthesia-cognition-os .eyebrow {
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
}

body.page-foundry .card,
body.page-orchestrated-synesthesia-cognition-os .card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

body.page-foundry .card::before,
body.page-orchestrated-synesthesia-cognition-os .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 350ms ease;
}

body.page-foundry .card:hover,
body.page-orchestrated-synesthesia-cognition-os .card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.page-foundry .card:hover::before,
body.page-orchestrated-synesthesia-cognition-os .card:hover::before {
  opacity: 1;
}

body.page-foundry .card::after,
body.page-orchestrated-synesthesia-cognition-os .card::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
}

body.page-foundry .section-alt,
body.page-orchestrated-synesthesia-cognition-os .section-alt {
  background: rgba(255, 255, 255, 0.012);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.page-foundry .callout,
body.page-orchestrated-synesthesia-cognition-os .callout {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

body.page-foundry .callout:hover,
body.page-orchestrated-synesthesia-cognition-os .callout:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.page-foundry .callout::before,
body.page-orchestrated-synesthesia-cognition-os .callout::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
}

body.page-foundry .btn,
body.page-orchestrated-synesthesia-cognition-os .btn {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  transition: all 250ms ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.page-foundry .btn:hover,
body.page-orchestrated-synesthesia-cognition-os .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.page-foundry .stat-big,
body.page-orchestrated-synesthesia-cognition-os .stat-big {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

body.page-foundry .foundry-stat-num {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

body.page-foundry .foundry-stat-label {
  color: rgba(255, 255, 255, 0.4);
}

body.page-foundry .foundry-audience-card,
body.page-orchestrated-synesthesia-cognition-os .os-audience-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-foundry .foundry-audience-card:hover,
body.page-orchestrated-synesthesia-cognition-os .os-audience-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

body.page-foundry .foundry-audience-icon {
  color: rgba(255, 255, 255, 0.3);
}

body.page-foundry .foundry-audience-card:hover .foundry-audience-icon {
  color: rgba(255, 255, 255, 0.7);
}

body.page-foundry .foundry-audience-title {
  color: #ffffff;
}

body.page-foundry .foundry-audience-desc {
  color: rgba(255, 255, 255, 0.5);
}

body.page-foundry .foundry-audience-arrow {
  color: rgba(255, 255, 255, 0.2);
}

body.page-foundry .foundry-audience-card:hover .foundry-audience-arrow {
  color: rgba(255, 255, 255, 0.7);
}

body.page-foundry .foundry-vision p {
  color: rgba(255, 255, 255, 0.55);
}

body.page-foundry .foundry-vision strong {
  color: #ffffff;
}

body.page-foundry .foundry-hero-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

body.page-foundry .foundry-hero-lead {
  color: rgba(255, 255, 255, 0.5);
}

body.page-foundry .foundryMedia,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--timing-slow) var(--ease-out-expo);
}

body.page-foundry .foundryMedia:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

body.page-foundry .foundryFigure figcaption {
  color: rgba(255, 255, 255, 0.4);
}

body.page-foundry .foundrySubnav a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  transition: all 250ms ease;
}

body.page-foundry .foundrySubnav a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.page-foundry .foundryWindow {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

body.page-foundry .foundryWindowBar {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-foundry .foundryDetNote {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

body.page-foundry .foundryLoop {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

body.page-foundry .foundryLoop:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

body.page-foundry .foundryCallout,
body.page-foundry .callout {
  border-color: rgba(255, 255, 255, 0.08);
}

body.page-foundry ::selection,
body.page-orchestrated-synesthesia-cognition-os ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.page-foundry .site-footer,
body.page-orchestrated-synesthesia-cognition-os .site-footer {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.page-foundry .footer-tagline,
body.page-orchestrated-synesthesia-cognition-os .footer-tagline {
  color: rgba(255, 255, 255, 0.2);
}

body.page-foundry .footer-col-title,
body.page-orchestrated-synesthesia-cognition-os .footer-col-title {
  color: rgba(255, 255, 255, 0.35);
}

body.page-foundry .footer-links-col a,
body.page-orchestrated-synesthesia-cognition-os .footer-links-col a {
  color: rgba(255, 255, 255, 0.35);
}

body.page-foundry .footer-links-col a:hover,
body.page-orchestrated-synesthesia-cognition-os .footer-links-col a:hover {
  color: rgba(255, 255, 255, 0.75);
}

body.page-foundry .footer-copy,
body.page-orchestrated-synesthesia-cognition-os .footer-copy {
  color: rgba(255, 255, 255, 0.25);
}

body.page-foundry .footer-grid::before,
body.page-orchestrated-synesthesia-cognition-os .footer-grid::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

body.page-foundry .footer-top-link,
body.page-orchestrated-synesthesia-cognition-os .footer-top-link {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
}

body.page-foundry .footer-top-link:hover,
body.page-orchestrated-synesthesia-cognition-os .footer-top-link:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

body.page-foundry .foundry-breadcrumb {
  color: rgba(255, 255, 255, 0.35);
  transition: color 250ms ease;
}

body.page-foundry .foundry-breadcrumb:hover {
  color: rgba(255, 255, 255, 0.7);
}

body.page-foundry .foundry-cta-block h2 {
  color: #ffffff;
}

body.page-foundry .foundry-cta-block .lead {
  color: rgba(255, 255, 255, 0.5);
}

body.page-foundry .foundry-cta-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 10px;
  padding: 14px 28px;
  display: inline-block;
  transition: all 250ms ease;
}

body.page-foundry .foundry-cta-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.page-foundry .checklist li::before {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

body.page-foundry .checklist li::after {
  border-left-color: rgba(255, 255, 255, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

body.page-foundry :focus-visible {
  outline-color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
 * PREMIUM DARK SaaS VIBES — Final polish layer
 * Deep dark backgrounds with subtle gradient mesh, ambient
 * glow orbs, refined glass cards, premium typography, generous
 * spacing, and polished micro-interactions.
 * ============================================================ */

body.page-foundry,
body.page-orchestrated-synesthesia-cognition-os {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255, 255, 255, 0.015) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 255, 255, 0.01) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 255, 255, 0.005) 0%, transparent 50%),
    #080810;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.005em;
}

body.page-foundry *,
body.page-orchestrated-synesthesia-cognition-os * {
  border-color: rgba(255, 255, 255, 0.06);
}

body.page-foundry .site-header,
body.page-orchestrated-synesthesia-cognition-os .site-header {
  background: rgba(8, 8, 16, 0.82);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0;
}

body.page-foundry .brand-text,
body.page-orchestrated-synesthesia-cognition-os .brand-text {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.page-foundry .site-nav a,
body.page-orchestrated-synesthesia-cognition-os .site-nav a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 200ms ease;
}

body.page-foundry .site-nav a:hover,
body.page-orchestrated-synesthesia-cognition-os .site-nav a:hover {
  color: #ffffff;
}

body.page-foundry h1,
body.page-orchestrated-synesthesia-cognition-os h1 {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

body.page-foundry h2,
body.page-orchestrated-synesthesia-cognition-os h2 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.page-foundry h3,
body.page-orchestrated-synesthesia-cognition-os h3 {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  letter-spacing: -0.01em;
}

body.page-foundry p,
body.page-orchestrated-synesthesia-cognition-os p {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

body.page-foundry .lead,
body.page-orchestrated-synesthesia-cognition-os .lead {
  color: rgba(255, 255, 255, 0.52);
  font-size: 1.15rem;
  line-height: 1.65;
  font-weight: 400;
}

body.page-foundry .eyebrow,
body.page-orchestrated-synesthesia-cognition-os .eyebrow {
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

body.page-foundry .muted,
body.page-orchestrated-synesthesia-cognition-os .muted {
  color: rgba(255, 255, 255, 0.42);
}

body.page-foundry .card,
body.page-orchestrated-synesthesia-cognition-os .card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 28px 30px;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

body.page-foundry .card::before,
body.page-orchestrated-synesthesia-cognition-os .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 400ms ease;
}

body.page-foundry .card:hover,
body.page-orchestrated-synesthesia-cognition-os .card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.page-foundry .card:hover::before,
body.page-orchestrated-synesthesia-cognition-os .card:hover::before {
  opacity: 1;
}

body.page-foundry .card h3,
body.page-orchestrated-synesthesia-cognition-os .card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

body.page-foundry .card p,
body.page-orchestrated-synesthesia-cognition-os .card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

body.page-foundry .section,
body.page-orchestrated-synesthesia-cognition-os .section {
  padding: 96px 0;
}

body.page-foundry .section-alt,
body.page-orchestrated-synesthesia-cognition-os .section-alt {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.page-foundry .section-head,
body.page-orchestrated-synesthesia-cognition-os .section-head {
  margin-bottom: 48px;
}

body.page-foundry .grid.cards,
body.page-orchestrated-synesthesia-cognition-os .grid.cards {
  gap: 20px;
}

body.page-foundry .callout,
body.page-orchestrated-synesthesia-cognition-os .callout {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}

body.page-foundry .callout::before,
body.page-orchestrated-synesthesia-cognition-os .callout::before {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
}

body.page-foundry .callout p,
body.page-orchestrated-synesthesia-cognition-os .callout p {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.72;
}

body.page-foundry .callout:hover,
body.page-orchestrated-synesthesia-cognition-os .callout:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

body.page-foundry .btn,
body.page-orchestrated-synesthesia-cognition-os .btn {
  background: #ffffff;
  color: #0a0a0f;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  padding: 13px 30px;
  letter-spacing: 0.01em;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

body.page-foundry .btn:hover,
body.page-orchestrated-synesthesia-cognition-os .btn:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.page-foundry .stat-big,
body.page-orchestrated-synesthesia-cognition-os .stat-big {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

body.page-foundry .foundry-stat-num,
body.page-orchestrated-synesthesia-cognition-os .os-stat-num {
  color: #ffffff;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
}

body.page-foundry .foundry-stat-label,
body.page-orchestrated-synesthesia-cognition-os .os-stat-label {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

body.page-foundry .foundry-audience-card,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px 36px;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-foundry .foundry-audience-card:hover,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.page-foundry .foundry-audience-icon,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-icon {
  color: rgba(255, 255, 255, 0.25);
  transition: color 300ms ease;
}

body.page-foundry .foundry-audience-card:hover .foundry-audience-icon,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card:hover .foundry-audience-icon {
  color: rgba(255, 255, 255, 0.65);
}

body.page-foundry .foundry-audience-title,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

body.page-foundry .foundry-audience-desc,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-desc {
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

body.page-foundry .foundry-audience-arrow,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-arrow {
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.4rem;
  transition: all 300ms ease;
}

body.page-foundry .foundry-audience-card:hover .foundry-audience-arrow,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card:hover .foundry-audience-arrow {
  color: rgba(255, 255, 255, 0.6);
  transform: translateX(4px);
}

body.page-foundry .foundry-vision p,
body.page-orchestrated-synesthesia-cognition-os .os-vision p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

body.page-foundry .foundry-vision strong,
body.page-orchestrated-synesthesia-cognition-os .os-vision strong {
  color: #ffffff;
  font-weight: 700;
}

body.page-foundry .oscHeroMedia,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia,
body.page-foundry .foundryMedia {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-foundry .oscHeroMedia:hover,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia:hover,
body.page-foundry .foundryMedia:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

body.page-foundry .foundryFigure figcaption,
body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure figcaption {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
}

body.page-foundry .foundrySubnav a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 18px;
  transition: all 250ms ease;
}

body.page-foundry .foundrySubnav a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.page-foundry .foundryWindow,
body.page-foundry .foundryDetNote,
body.page-foundry .foundryLoop {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

body.page-foundry .foundryWindowBar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.page-foundry .site-footer,
body.page-orchestrated-synesthesia-cognition-os .site-footer {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.page-foundry .footer-tagline,
body.page-orchestrated-synesthesia-cognition-os .footer-tagline {
  color: rgba(255, 255, 255, 0.18);
}

body.page-foundry .footer-col-title,
body.page-orchestrated-synesthesia-cognition-os .footer-col-title {
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

body.page-foundry .footer-links-col a,
body.page-orchestrated-synesthesia-cognition-os .footer-links-col a {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.88rem;
}

body.page-foundry .footer-links-col a:hover,
body.page-orchestrated-synesthesia-cognition-os .footer-links-col a:hover {
  color: rgba(255, 255, 255, 0.7);
}

body.page-foundry .footer-copy,
body.page-orchestrated-synesthesia-cognition-os .footer-copy {
  color: rgba(255, 255, 255, 0.2);
}

body.page-foundry .footer-top-link,
body.page-orchestrated-synesthesia-cognition-os .footer-top-link {
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  transition: all 250ms ease;
}

body.page-foundry .footer-top-link:hover,
body.page-orchestrated-synesthesia-cognition-os .footer-top-link:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

body.page-foundry .foundry-breadcrumb,
body.page-orchestrated-synesthesia-cognition-os .foundry-breadcrumb {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 200ms ease;
}

body.page-foundry .foundry-breadcrumb:hover,
body.page-orchestrated-synesthesia-cognition-os .foundry-breadcrumb:hover {
  color: rgba(255, 255, 255, 0.65);
}

body.page-foundry .foundry-cta-block h2,
body.page-orchestrated-synesthesia-cognition-os .foundry-cta-block h2 {
  color: #ffffff;
}

body.page-foundry .foundry-cta-block .lead,
body.page-orchestrated-synesthesia-cognition-os .foundry-cta-block .lead {
  color: rgba(255, 255, 255, 0.45);
}

body.page-foundry .foundry-cta-link,
body.page-orchestrated-synesthesia-cognition-os .foundry-cta-link {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-foundry .foundry-cta-link:hover,
body.page-orchestrated-synesthesia-cognition-os .foundry-cta-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

body.page-foundry .foundry-hero-subtitle,
body.page-orchestrated-synesthesia-cognition-os .foundry-hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

body.page-foundry .foundry-hero-lead,
body.page-orchestrated-synesthesia-cognition-os .foundry-hero-lead {
  color: rgba(255, 255, 255, 0.48);
}

body.page-foundry .checklist li,
body.page-orchestrated-synesthesia-cognition-os .checklist li {
  color: rgba(255, 255, 255, 0.55);
}

body.page-foundry .checklist li::before,
body.page-orchestrated-synesthesia-cognition-os .checklist li::before {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

body.page-foundry .checklist li::after,
body.page-orchestrated-synesthesia-cognition-os .checklist li::after {
  border-left-color: rgba(255, 255, 255, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

body.page-foundry ::selection,
body.page-orchestrated-synesthesia-cognition-os ::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.page-foundry .oscHeroFigure,
body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure {
  position: relative;
}

body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure img {
  border-radius: 12px;
}

body.page-foundry .foundry-gradient-title {
  color: #ffffff;
}

body.page-foundry .foundry-gradient-title .foundry-title-black {
  color: #ffffff;
}

body.page-foundry .foundryInlineCode {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

body.page-foundry .foundryProse p,
body.page-orchestrated-synesthesia-cognition-os .callout p {
  color: rgba(255, 255, 255, 0.52);
}

body.page-foundry .foundryDetLabel {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

body.page-foundry .dot-red { background: #666; }
body.page-foundry .dot-yellow { background: #888; }
body.page-foundry .dot-green { background: #aaa; }

body.page-foundry .foundryWindowTitle {
  color: rgba(255, 255, 255, 0.35);
}

body.page-foundry .foundryZoomLink {
  color: rgba(255, 255, 255, 0.35);
  transition: color 200ms ease;
}

body.page-foundry .foundryZoomLink:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

body.page-foundry .card::after,
body.page-orchestrated-synesthesia-cognition-os .card::after {
  display: none;
}

body.page-foundry .foundryLoop h3,
body.page-foundry .foundryLoop p {
  color: rgba(255, 255, 255, 0.55);
}

body.page-foundry .foundryLoop:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

body.page-foundry .foundryCallout {
  border-color: rgba(255, 255, 255, 0.06);
}

/* ============================================================
 * PREMIUM DARK TECH — v2 vibes upgrade
 * Ambient gradient orbs, refined glass, dot grid, depth layers,
 * polished typography, premium section transitions.
 * ============================================================ */

body.page-foundry,
body.page-orchestrated-synesthesia-cognition-os {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255,255,255,0.015) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255,255,255,0.01) 0%, transparent 50%),
    #08090d;
  color: rgba(255,255,255,0.7);
}

body.page-foundry::before,
body.page-orchestrated-synesthesia-cognition-os::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 0%, transparent 70%);
}

body.page-foundry::after,
body.page-orchestrated-synesthesia-cognition-os::after {
  content: "";
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.018) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body.page-foundry .site-header,
body.page-orchestrated-synesthesia-cognition-os .site-header {
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  z-index: 100;
}

body.page-foundry .site-nav a,
body.page-orchestrated-synesthesia-cognition-os .site-nav a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 200ms ease;
}

body.page-foundry .site-nav a:hover,
body.page-orchestrated-synesthesia-cognition-os .site-nav a:hover {
  color: #ffffff;
}

body.page-foundry h1,
body.page-orchestrated-synesthesia-cognition-os h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

body.page-foundry h2,
body.page-orchestrated-synesthesia-cognition-os h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body.page-foundry .section,
body.page-orchestrated-synesthesia-cognition-os .section {
  position: relative;
  z-index: 1;
}

body.page-foundry .section-alt,
body.page-orchestrated-synesthesia-cognition-os .section-alt {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.008) 0%, rgba(255,255,255,0.015) 50%, rgba(255,255,255,0.008) 100%);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

body.page-foundry .card,
body.page-orchestrated-synesthesia-cognition-os .card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 28px 26px 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.page-foundry .card:hover,
body.page-orchestrated-synesthesia-cognition-os .card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

body.page-foundry .card::before,
body.page-orchestrated-synesthesia-cognition-os .card::before {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.035) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.015) 100%
  );
}

body.page-foundry .card::after,
body.page-orchestrated-synesthesia-cognition-os .card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
  border-radius: 0 0 14px 14px;
  opacity: 0;
  transition: opacity 350ms ease;
}

body.page-foundry .card:hover::after,
body.page-orchestrated-synesthesia-cognition-os .card:hover::after {
  opacity: 1;
}

body.page-foundry .callout,
body.page-orchestrated-synesthesia-cognition-os .callout {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.page-foundry .foundry-audience-card,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

body.page-foundry .foundry-audience-card::before,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 50%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity 400ms ease;
  opacity: 0;
}

body.page-foundry .foundry-audience-card:hover::before,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card:hover::before {
  opacity: 1;
}

body.page-foundry .foundry-audience-card:hover,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

body.page-foundry .foundry-audience-title,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

body.page-foundry .foundry-audience-desc,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-desc {
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem;
  line-height: 1.65;
}

body.page-foundry .foundry-audience-icon,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-icon {
  color: rgba(255,255,255,0.25);
  transition: color 300ms ease, transform 300ms ease;
}

body.page-foundry .foundry-audience-card:hover .foundry-audience-icon,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card:hover .foundry-audience-icon {
  color: rgba(255,255,255,0.65);
  transform: scale(1.05);
}

body.page-foundry .foundry-audience-arrow,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-arrow {
  color: rgba(255,255,255,0.15);
  font-size: 1.6rem;
  transition: all 300ms ease;
}

body.page-foundry .foundry-audience-card:hover .foundry-audience-arrow,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card:hover .foundry-audience-arrow {
  color: rgba(255,255,255,0.6);
  transform: translateX(4px);
}

body.page-foundry .foundry-stats-row,
body.page-orchestrated-synesthesia-cognition-os .foundry-stats-row {
  display: flex;
  justify-content: center;
  gap: 48px 64px;
  flex-wrap: wrap;
  padding: 24px 0;
}

body.page-foundry .foundry-stat-num,
body.page-orchestrated-synesthesia-cognition-os .foundry-stat-num {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(255,255,255,0.08);
  line-height: 1;
}

body.page-foundry .foundry-stat-label,
body.page-orchestrated-synesthesia-cognition-os .foundry-stat-label {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
}

body.page-foundry .foundry-stat,
body.page-orchestrated-synesthesia-cognition-os .foundry-stat {
  text-align: center;
}

body.page-foundry .foundry-vision,
body.page-orchestrated-synesthesia-cognition-os .foundry-vision {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

body.page-foundry .foundry-vision p,
body.page-orchestrated-synesthesia-cognition-os .foundry-vision p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
}

body.page-foundry .foundry-vision strong,
body.page-orchestrated-synesthesia-cognition-os .foundry-vision strong {
  color: #ffffff;
  font-weight: 700;
}

body.page-foundry .oscHeroMedia,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia,
body.page-foundry .foundryMedia {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

body.page-foundry .oscHeroMedia::after,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia::after,
body.page-foundry .foundryMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  pointer-events: none;
}

body.page-foundry .oscHeroMedia img,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia img,
body.page-foundry .foundryMedia img {
  display: block;
  width: 100%;
  height: auto;
}

body.page-foundry .oscHeroFigure figcaption,
body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure figcaption,
body.page-foundry .foundryFigure figcaption {
  color: rgba(255,255,255,0.35);
  font-size: 0.88rem;
  margin-top: 14px;
  text-align: center;
}

body.page-foundry .foundrySubnav,
body.page-orchestrated-synesthesia-cognition-os .foundrySubnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

body.page-foundry .foundrySubnav a,
body.page-orchestrated-synesthesia-cognition-os .foundrySubnav a {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.45);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 200ms ease;
  text-decoration: none;
}

body.page-foundry .foundrySubnav a:hover,
body.page-orchestrated-synesthesia-cognition-os .foundrySubnav a:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #ffffff;
}

body.page-foundry .foundry-breadcrumb,
body.page-orchestrated-synesthesia-cognition-os .foundry-breadcrumb {
  color: rgba(255,255,255,0.3);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  transition: color 200ms ease;
}

body.page-foundry .foundry-breadcrumb:hover,
body.page-orchestrated-synesthesia-cognition-os .foundry-breadcrumb:hover {
  color: rgba(255,255,255,0.7);
}

body.page-foundry .foundry-cta-block,
body.page-orchestrated-synesthesia-cognition-os .foundry-cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

body.page-foundry .foundry-cta-link,
body.page-orchestrated-synesthesia-cognition-os .foundry-cta-link {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 250ms ease;
}

body.page-foundry .foundry-cta-link:hover,
body.page-orchestrated-synesthesia-cognition-os .foundry-cta-link:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

body.page-foundry .site-footer,
body.page-orchestrated-synesthesia-cognition-os .site-footer {
  background: rgba(8,9,13,0.95);
  border-top: 1px solid rgba(255,255,255,0.03);
  position: relative;
  z-index: 1;
}

body.page-foundry .eyebrow,
body.page-orchestrated-synesthesia-cognition-os .eyebrow {
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

body.page-foundry .lead,
body.page-orchestrated-synesthesia-cognition-os .lead {
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  line-height: 1.7;
}

body.page-foundry .muted,
body.page-orchestrated-synesthesia-cognition-os .muted {
  color: rgba(255,255,255,0.4);
}

body.page-foundry .grid-5 .card,
body.page-orchestrated-synesthesia-cognition-os .grid-5 .card {
  text-align: center;
  padding: 24px 16px;
}

body.page-foundry .stat-big,
body.page-orchestrated-synesthesia-cognition-os .stat-big {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255,255,255,0.08);
}

body.page-foundry .btn,
body.page-orchestrated-synesthesia-cognition-os .btn {
  background: #ffffff;
  color: #08090d;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.page-foundry .btn:hover,
body.page-orchestrated-synesthesia-cognition-os .btn:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

body.page-foundry .checklist li,
body.page-orchestrated-synesthesia-cognition-os .checklist li {
  color: rgba(255,255,255,0.6);
}

body.page-foundry .checklist li::before,
body.page-orchestrated-synesthesia-cognition-os .checklist li::before {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
}

body.page-foundry .checklist li::after,
body.page-orchestrated-synesthesia-cognition-os .checklist li::after {
  border-left-color: rgba(255,255,255,0.35);
  border-bottom-color: rgba(255,255,255,0.35);
}

body.page-foundry .foundryWindow,
body.page-orchestrated-synesthesia-cognition-os .foundryWindow {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
}

body.page-foundry .foundryWindowBar,
body.page-orchestrated-synesthesia-cognition-os .foundryWindowBar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 12px 16px;
}

body.page-foundry .foundryLoop,
body.page-orchestrated-synesthesia-cognition-os .foundryLoop {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
}

body.page-foundry .foundryDetNote,
body.page-orchestrated-synesthesia-cognition-os .foundryDetNote {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}

body.page-foundry .foundry-hero-subtitle,
body.page-orchestrated-synesthesia-cognition-os .foundry-hero-subtitle {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

body.page-foundry .foundry-hero-lead,
body.page-orchestrated-synesthesia-cognition-os .foundry-hero-lead {
  color: rgba(255,255,255,0.45);
  max-width: 640px;
}

body.page-foundry .brand-mark,
body.page-orchestrated-synesthesia-cognition-os .brand-mark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  animation: none;
}

body.page-foundry .footer-tagline,
body.page-orchestrated-synesthesia-cognition-os .footer-tagline {
  color: rgba(255,255,255,0.18);
}

body.page-foundry .footer-col-title,
body.page-orchestrated-synesthesia-cognition-os .footer-col-title {
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

body.page-foundry .footer-links-col a,
body.page-orchestrated-synesthesia-cognition-os .footer-links-col a {
  color: rgba(255,255,255,0.3);
  font-size: 0.88rem;
}

body.page-foundry .footer-links-col a:hover,
body.page-orchestrated-synesthesia-cognition-os .footer-links-col a:hover {
  color: rgba(255,255,255,0.7);
}

body.page-foundry .footer-copy,
body.page-orchestrated-synesthesia-cognition-os .footer-copy {
  color: rgba(255,255,255,0.2);
}

body.page-foundry .footer-top-link,
body.page-orchestrated-synesthesia-cognition-os .footer-top-link {
  border-color: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
}

body.page-foundry .footer-top-link:hover,
body.page-orchestrated-synesthesia-cognition-os .footer-top-link:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

body.page-foundry ::selection,
body.page-orchestrated-synesthesia-cognition-os ::selection {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

body.page-foundry :focus-visible,
body.page-orchestrated-synesthesia-cognition-os :focus-visible {
  outline: 2px solid rgba(255,255,255,0.3);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  body.page-foundry .foundry-stats-row,
  body.page-orchestrated-synesthesia-cognition-os .foundry-stats-row {
    gap: 28px 40px;
  }
  body.page-foundry .foundry-stat-num,
  body.page-orchestrated-synesthesia-cognition-os .foundry-stat-num {
    font-size: 2.4rem;
  }
  body.page-foundry .foundry-audience-card,
  body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card {
    padding: 30px 24px;
  }
  body.page-foundry .foundrySubnav a,
  body.page-orchestrated-synesthesia-cognition-os .foundrySubnav a {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

/* ============================================================
 * OS PAGE SCOPING FIX — foundry-* classes used on OS sub-pages
 * The OS engineers & getting-started pages reuse foundry-*
 * component classes inside body.page-orchestrated-synesthesia-
 * cognition-os. This block ensures they inherit premium styling.
 * ============================================================ */

body.page-orchestrated-synesthesia-cognition-os .foundryHero {
  padding: 100px 0 60px;
}

body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact {
  padding: 90px 0 40px;
}

body.page-orchestrated-synesthesia-cognition-os .foundryHeroGrid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.page-orchestrated-synesthesia-cognition-os .foundryHeroCopy {
  max-width: 760px;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-gradient-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
  position: relative;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-gradient-title .foundry-title-black {
  color: #ffffff;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-gradient-title .foundry-title-code {
  color: rgba(255, 255, 255, 0.06);
}

body.page-orchestrated-synesthesia-cognition-os .foundry-hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-hero-lead {
  color: rgba(255, 255, 255, 0.45);
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
}

body.page-orchestrated-synesthesia-cognition-os .foundryCardAccent {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
}

body.page-orchestrated-synesthesia-cognition-os .foundryCardAccent:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

body.page-orchestrated-synesthesia-cognition-os .foundryMedia {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
}

body.page-orchestrated-synesthesia-cognition-os .foundryMedia:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

body.page-orchestrated-synesthesia-cognition-os .foundryMedia img {
  display: block;
  width: 100%;
  height: auto;
}

body.page-orchestrated-synesthesia-cognition-os .foundryFigure figcaption {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
  margin-top: 12px;
  text-align: center;
}

body.page-orchestrated-synesthesia-cognition-os .foundryZoomLink {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  transition: color 200ms ease;
}

body.page-orchestrated-synesthesia-cognition-os .foundryZoomLink:hover {
  color: rgba(255, 255, 255, 0.7);
}

body.page-orchestrated-synesthesia-cognition-os .foundryWindow {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
}

body.page-orchestrated-synesthesia-cognition-os .foundryWindowBar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
}

body.page-orchestrated-synesthesia-cognition-os .foundryDetNote {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

body.page-orchestrated-synesthesia-cognition-os .foundryLoop {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
}

body.page-orchestrated-synesthesia-cognition-os .foundryLoop:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

body.page-orchestrated-synesthesia-cognition-os .foundryCallout {
  border-color: rgba(255, 255, 255, 0.06);
}

body.page-orchestrated-synesthesia-cognition-os .foundryHeroFigure {
  margin-top: 32px;
}

body.page-orchestrated-synesthesia-cognition-os .section-head {
  margin-bottom: 40px;
}

body.page-orchestrated-synesthesia-cognition-os .section-head h2 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

body.page-orchestrated-synesthesia-cognition-os .section-head .lead {
  max-width: 680px;
}

body.page-orchestrated-synesthesia-cognition-os .grid.cards {
  gap: 20px;
}

body.page-orchestrated-synesthesia-cognition-os .card h3 {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

body.page-orchestrated-synesthesia-cognition-os .card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  line-height: 1.65;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-breadcrumb {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  transition: color 200ms ease;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-breadcrumb:hover {
  color: rgba(255, 255, 255, 0.7);
}

body.page-orchestrated-synesthesia-cognition-os .foundrySubnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

body.page-orchestrated-synesthesia-cognition-os .foundrySubnav a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 200ms ease;
  text-decoration: none;
}

body.page-orchestrated-synesthesia-cognition-os .foundrySubnav a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-cta-block h2 {
  color: #ffffff;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-cta-block .lead {
  color: rgba(255, 255, 255, 0.5);
}

body.page-orchestrated-synesthesia-cognition-os .foundry-cta-link {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 250ms ease;
}

body.page-orchestrated-synesthesia-cognition-os .foundry-cta-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

body.page-orchestrated-synesthesia-cognition-os .checklist li {
  color: rgba(255, 255, 255, 0.6);
}

body.page-orchestrated-synesthesia-cognition-os .checklist li::before {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

body.page-orchestrated-synesthesia-cognition-os .checklist li::after {
  border-left-color: rgba(255, 255, 255, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

body.page-orchestrated-synesthesia-cognition-os :focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

/* Also scope foundryCardAccent for Foundry sub-pages */
body.page-foundry .foundryCardAccent {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
}

body.page-foundry .foundryCardAccent:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* ============================================================
 * SMOOTH SCROLL + SCROLL MARGIN for anchor navigation
 * ============================================================ */
html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 80px;
}

/* ============================================================
 * AMBIENT GLOW — second orb for visual depth (bottom-right)
 * ============================================================ */
body.page-foundry > main::after,
body.page-orchestrated-synesthesia-cognition-os > main::after {
  content: "";
  position: fixed;
  bottom: -15%;
  right: -15%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.012) 0%, transparent 55%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
 * SECTION DIVIDERS — subtle gradient lines between sections
 * ============================================================ */
body.page-foundry .section + .section,
body.page-orchestrated-synesthesia-cognition-os .section + .section {
  border-top: 1px solid rgba(255,255,255,0.025);
}

body.page-foundry .section,
body.page-orchestrated-synesthesia-cognition-os .section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* ============================================================
 * CARD GRID REFINEMENTS
 * ============================================================ */
body.page-foundry .grid,
body.page-orchestrated-synesthesia-cognition-os .grid {
  gap: 20px;
}

/* ============================================================
 * LINK STYLE OVERRIDES
 * ============================================================ */
body.page-foundry a,
body.page-orchestrated-synesthesia-cognition-os a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 200ms ease;
}

body.page-foundry a:hover,
body.page-orchestrated-synesthesia-cognition-os a:hover {
  color: #ffffff;
}

body.page-foundry .card a,
body.page-orchestrated-synesthesia-cognition-os .card a {
  color: rgba(255,255,255,0.5);
}

body.page-foundry .card a:hover,
body.page-orchestrated-synesthesia-cognition-os .card a:hover {
  color: #ffffff;
}

/* ============================================================
 * IMAGE CONTRAST BOOST — subtle brightness on diagram images
 * within the dark background for better legibility
 * ============================================================ */
body.page-foundry .foundryMedia img,
body.page-orchestrated-synesthesia-cognition-os .foundryMedia img,
body.page-foundry .oscHeroMedia img,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia img {
  border-radius: 12px;
}

/* ============================================================
 * RESPONSIVE POLISH
 * ============================================================ */
@media (max-width: 720px) {
  body.page-foundry .section,
  body.page-orchestrated-synesthesia-cognition-os .section {
    padding: 56px 0;
  }

  body.page-foundry .foundryHero,
  body.page-orchestrated-synesthesia-cognition-os .foundryHero {
    padding: 80px 0 40px;
  }

  body.page-foundry .foundryHero--compact,
  body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact {
    padding: 70px 0 30px;
  }

  body.page-foundry .foundry-gradient-title,
  body.page-orchestrated-synesthesia-cognition-os .foundry-gradient-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  body.page-foundry .foundry-hero-subtitle,
  body.page-orchestrated-synesthesia-cognition-os .foundry-hero-subtitle {
    font-size: 1rem;
  }

  body.page-foundry .foundry-hero-lead,
  body.page-orchestrated-synesthesia-cognition-os .foundry-hero-lead {
    font-size: 0.95rem;
  }

  body.page-foundry .section-head h2,
  body.page-orchestrated-synesthesia-cognition-os .section-head h2 {
    font-size: 1.6rem;
  }

  body.page-foundry .card,
  body.page-orchestrated-synesthesia-cognition-os .card {
    padding: 20px 18px;
  }

  body.page-foundry .foundrySubnav,
  body.page-orchestrated-synesthesia-cognition-os .foundrySubnav {
    gap: 6px;
  }

  body.page-foundry .foundrySubnav a,
  body.page-orchestrated-synesthesia-cognition-os .foundrySubnav a {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  body.page-foundry .foundry-audience-card,
  body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card {
    padding: 28px 22px;
  }
}

/* ============================================================
 * OS PAGE: foundrySplit / foundryProse / foundryList coverage
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .foundrySplit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

body.page-orchestrated-synesthesia-cognition-os .foundrySplit + .foundrySplit {
  margin-top: 36px;
}

body.page-orchestrated-synesthesia-cognition-os .foundryProse p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.52);
  max-width: 82ch;
  font-weight: 450;
  font-size: 1.02rem;
  line-height: 1.7;
}

body.page-orchestrated-synesthesia-cognition-os .foundryProse p:last-child {
  margin-bottom: 0;
}

body.page-orchestrated-synesthesia-cognition-os .foundryList {
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.5);
}

body.page-orchestrated-synesthesia-cognition-os .foundryList li {
  font-size: 1.01rem;
  line-height: 1.65;
  margin: 10px 0;
}

body.page-orchestrated-synesthesia-cognition-os .foundryList li strong {
  color: rgba(255, 255, 255, 0.9);
}

body.page-orchestrated-synesthesia-cognition-os .foundryInlineCode {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
}

body.page-orchestrated-synesthesia-cognition-os .foundryLoopStack {
  gap: 24px;
}

body.page-orchestrated-synesthesia-cognition-os .foundryFigureGrid {
  display: grid;
  gap: 20px;
}

/* ============================================================
 * CALLOUT REFINEMENT for both pages
 * ============================================================ */
body.page-foundry .callout h3,
body.page-orchestrated-synesthesia-cognition-os .callout h3 {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

body.page-foundry .callout p,
body.page-orchestrated-synesthesia-cognition-os .callout p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============================================================
 * HERO SYMBOL IMAGE sizing refinement
 * ============================================================ */
body.page-foundry .oscHeroFigure,
body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure {
  max-width: 520px;
  margin: 0 auto;
}

body.page-foundry .split.oscHero,
body.page-orchestrated-synesthesia-cognition-os .split.oscHero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 820px) {
  body.page-foundry .split.oscHero,
  body.page-orchestrated-synesthesia-cognition-os .split.oscHero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
 * STRONG TAGS inside cards & callouts
 * ============================================================ */
body.page-foundry .card strong,
body.page-orchestrated-synesthesia-cognition-os .card strong {
  color: rgba(255, 255, 255, 0.92);
}

body.page-foundry .callout strong,
body.page-orchestrated-synesthesia-cognition-os .callout strong {
  color: rgba(255, 255, 255, 0.92);
}

/* ============================================================
 * LIST ITEMS inside cards
 * ============================================================ */
body.page-foundry .card ul,
body.page-orchestrated-synesthesia-cognition-os .card ul {
  padding-left: 18px;
  margin-top: 8px;
}

body.page-foundry .card ul li,
body.page-orchestrated-synesthesia-cognition-os .card ul li {
  color: rgba(255, 255, 255, 0.5);
  margin: 4px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
 * CODE BLOCKS inside cards/callouts
 * ============================================================ */
body.page-foundry code,
body.page-orchestrated-synesthesia-cognition-os code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.86em;
}

/* ============================================================
 * RESPONSIVE: cards grid column break
 * ============================================================ */
@media (max-width: 980px) {
  body.page-foundry .cards,
  body.page-orchestrated-synesthesia-cognition-os .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.page-foundry .cards,
  body.page-orchestrated-synesthesia-cognition-os .cards {
    grid-template-columns: 1fr;
  }

  body.page-foundry .grid-2,
  body.page-orchestrated-synesthesia-cognition-os .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
 * OS PAGE: foundryWindow component coverage
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .foundryWindowTitle {
  margin-left: 6px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: -0.01em;
}

body.page-orchestrated-synesthesia-cognition-os .foundryWindowBody {
  padding: 18px 20px 22px;
}

body.page-orchestrated-synesthesia-cognition-os .foundryWindowCols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  body.page-orchestrated-synesthesia-cognition-os .foundryWindowCols {
    grid-template-columns: 1fr;
  }
}

body.page-orchestrated-synesthesia-cognition-os .foundryWindowList {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.page-orchestrated-synesthesia-cognition-os .foundryWindowList li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0;
  line-height: 1.55;
}

body.page-orchestrated-synesthesia-cognition-os .foundryDetLabel {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: inline-block;
}

body.page-orchestrated-synesthesia-cognition-os .dot-red { background: #555; }
body.page-orchestrated-synesthesia-cognition-os .dot-yellow { background: #777; }
body.page-orchestrated-synesthesia-cognition-os .dot-green { background: #999; }

/* ============================================================
 * CALLOUT LIST STYLING — both pages
 * ============================================================ */
body.page-foundry .callout ul,
body.page-orchestrated-synesthesia-cognition-os .callout ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

body.page-foundry .callout ul li,
body.page-orchestrated-synesthesia-cognition-os .callout ul li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 6px 0;
}

body.page-foundry .callout ul li::before,
body.page-orchestrated-synesthesia-cognition-os .callout ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
 * SUBTLE ANIMATION — section fade-in on scroll
 * ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-foundry .section,
body.page-orchestrated-synesthesia-cognition-os .section {
  animation: fadeInUp 0.5s ease-out both;
}

/* ============================================================
 * CONTAINER width for premium wide look
 * ============================================================ */
body.page-foundry .container,
body.page-orchestrated-synesthesia-cognition-os .container {
  max-width: 1140px;
}

/* ============================================================
 * STAT-K label styling for both pages
 * ============================================================ */
body.page-foundry .stat-k,
body.page-orchestrated-synesthesia-cognition-os .stat-k {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ============================================================
 * BLOCKQUOTE styling for expert review
 * ============================================================ */
body.page-foundry blockquote,
body.page-orchestrated-synesthesia-cognition-os blockquote {
  border: none;
  margin: 0;
  padding: 0;
  font-style: italic;
}

body.page-foundry blockquote p,
body.page-orchestrated-synesthesia-cognition-os blockquote p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ============================================================
 * H3 outside cards — section sub-headings
 * ============================================================ */
body.page-foundry .section h3,
body.page-orchestrated-synesthesia-cognition-os .section h3 {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

/* ============================================================
 * CHECKLIST for OS page — coverage
 * ============================================================ */
body.page-orchestrated-synesthesia-cognition-os .checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 24px;
}

body.page-orchestrated-synesthesia-cognition-os .checklist li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 6px 0;
}

body.page-orchestrated-synesthesia-cognition-os .checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
}

body.page-orchestrated-synesthesia-cognition-os .checklist li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  transform: rotate(-45deg);
}

/* ============================================================
 * STORY-FLOW — narrative page layout system
 * ============================================================ */
.story-block {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.story-text {
  color: rgba(255,255,255,0.55);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0 0 20px;
  max-width: 72ch;
}

.story-block .story-text {
  margin-left: auto;
  margin-right: auto;
}

.story-text--emphasis {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-style: italic;
  border-left: 2px solid rgba(255,255,255,0.12);
  padding-left: 20px;
  text-align: left;
  margin-top: 28px;
}

.story-text em {
  color: #ffffff;
  font-style: italic;
}

.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-split--reverse {
  direction: rtl;
}

.story-split--reverse > * {
  direction: ltr;
}

.story-copy {
  text-align: left;
}

.story-copy .eyebrow {
  text-align: left;
}

.story-copy h2 {
  text-align: left;
}

.story-figure {
  max-width: 100%;
}

.story-figure .foundryMedia {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
}

.story-figure .foundryMedia img {
  display: block;
  width: 100%;
  height: auto;
}

.story-figure figcaption {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
  font-style: italic;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.story-step {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 28px 20px;
  position: relative;
  transition: all var(--timing-normal) ease;
}

.story-step:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.story-step-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  line-height: 1;
}

.story-step:hover .story-step-num {
  color: rgba(255,255,255,0.15);
}

.story-step h3 {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.story-step p {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .story-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .story-split--reverse {
    direction: ltr;
  }
  .story-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .story-steps {
    grid-template-columns: 1fr 1fr;
  }
  .story-text {
    font-size: 1rem;
  }
  .story-step {
    padding: 22px 16px;
  }
}

@media (max-width: 420px) {
  .story-steps {
    grid-template-columns: 1fr;
  }
}

body.page-foundry .foundryHero .foundryHeroCopy h1,
body.page-orchestrated-synesthesia-cognition-os .foundryHero .foundryHeroCopy h1 {
  white-space: normal;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.08;
}

body.page-foundry .foundryHero--compact .foundryHeroCopy h1,
body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .foundryHeroCopy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #ffffff;
}

body.page-foundry .foundryHero--compact .oscHeroFigure,
body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .oscHeroFigure {
  width: clamp(140px, 18vw, 240px);
  max-width: none;
  margin: 0 auto;
}

body.page-foundry .foundryHero--compact .oscHeroMedia,
body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .oscHeroMedia {
  border-radius: 16px;
  overflow: hidden;
}

body.page-foundry .foundryHero--compact .foundryHeroGrid,
body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .foundryHeroGrid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

body.page-foundry .foundryHero--compact .foundryHeroGrid .product-symbol-figure,
body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .foundryHeroGrid .product-symbol-figure {
  width: clamp(140px, 18vw, 240px);
  flex-shrink: 0;
}

body.page-foundry .foundryHero--compact .foundryHeroCopy,
body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .foundryHeroCopy {
  max-width: none;
}

@media (max-width: 720px) {
  body.page-foundry .foundryHero--compact .foundryHeroGrid,
  body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .foundryHeroGrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body.page-foundry .foundryHero--compact .foundryHeroGrid .product-symbol-figure,
  body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .foundryHeroGrid .product-symbol-figure {
    width: min(180px, 50%);
    justify-self: center;
  }
}

/* ============================================================
 * LANDING PAGE HERO — h1 direct styling (non-gradient-title)
 * ============================================================ */
body.page-foundry .foundryHero h1,
body.page-orchestrated-synesthesia-cognition-os .oscHeroSection h1,
body.page-orchestrated-synesthesia-cognition-os .foundryHero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
  margin-bottom: 24px;
}

body.page-foundry .foundryHero .eyebrow,
body.page-orchestrated-synesthesia-cognition-os .foundryHero .eyebrow {
  margin-bottom: 8px;
}

/* ============================================================
 * SPLIT HERO — symbol + copy side by side on landing pages
 * ============================================================ */
body.page-foundry .foundryHero .split.oscHero,
body.page-orchestrated-synesthesia-cognition-os .oscHeroSection .split.oscHero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

body.page-foundry .foundryHero .oscHeroFigure,
body.page-orchestrated-synesthesia-cognition-os .oscHeroSection .oscHeroFigure {
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  body.page-foundry .foundryHero .split.oscHero,
  body.page-orchestrated-synesthesia-cognition-os .oscHeroSection .split.oscHero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body.page-foundry .foundryHero .oscHeroFigure,
  body.page-orchestrated-synesthesia-cognition-os .oscHeroSection .oscHeroFigure {
    max-width: 260px;
  }
}

/* ============================================================
 * SECTION-HEAD typography refinement
 * ============================================================ */
body.page-foundry .section-head,
body.page-orchestrated-synesthesia-cognition-os .section-head {
  margin-bottom: 44px;
}

body.page-foundry .section-head h2,
body.page-orchestrated-synesthesia-cognition-os .section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
}

body.page-foundry .section-head .lead,
body.page-orchestrated-synesthesia-cognition-os .section-head .lead {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.48);
}

/* ============================================================
 * CARD hover — subtle bottom edge glow
 * ============================================================ */
body.page-foundry .card::after,
body.page-orchestrated-synesthesia-cognition-os .card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 350ms ease;
}

body.page-foundry .card:hover::after,
body.page-orchestrated-synesthesia-cognition-os .card:hover::after {
  opacity: 1;
}

/* ============================================================
 * FIGCAPTION global refinement
 * ============================================================ */
body.page-foundry figcaption,
body.page-orchestrated-synesthesia-cognition-os figcaption {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  margin-top: 14px;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* ============================================================
 * VISION BLOCK — centered, wider on landing pages
 * ============================================================ */
body.page-foundry .foundry-vision,
body.page-orchestrated-synesthesia-cognition-os .foundry-vision,
body.page-orchestrated-synesthesia-cognition-os .os-vision {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

body.page-foundry .foundry-vision p,
body.page-orchestrated-synesthesia-cognition-os .foundry-vision p,
body.page-orchestrated-synesthesia-cognition-os .os-vision p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.52);
}

body.page-foundry .foundry-vision strong,
body.page-orchestrated-synesthesia-cognition-os .foundry-vision strong,
body.page-orchestrated-synesthesia-cognition-os .os-vision strong {
  color: #ffffff;
  font-weight: 700;
}

/* ============================================================
 * STORY COLOR GRADE - dark background image alignment
 * Keeps drawings intact while shifting palette for black canvas.
 * ============================================================ */
body.page-foundry .oscHeroMedia,
body.page-foundry .foundryMedia,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia,
body.page-orchestrated-synesthesia-cognition-os .foundryMedia,
body.page-foundry .story-figure .foundryMedia,
body.page-orchestrated-synesthesia-cognition-os .story-figure .foundryMedia {
  position: relative;
  background:
    radial-gradient(120% 120% at 12% 10%, rgba(96, 164, 255, 0.22) 0%, rgba(5, 7, 12, 0) 52%),
    radial-gradient(140% 120% at 88% 0%, rgba(170, 112, 255, 0.16) 0%, rgba(4, 5, 9, 0) 55%),
    linear-gradient(180deg, rgba(8, 11, 19, 0.96), rgba(4, 5, 10, 0.98));
  border-color: rgba(149, 191, 255, 0.2);
}

body.page-foundry .oscHeroMedia::before,
body.page-foundry .foundryMedia::before,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia::before,
body.page-orchestrated-synesthesia-cognition-os .foundryMedia::before,
body.page-foundry .story-figure .foundryMedia::before,
body.page-orchestrated-synesthesia-cognition-os .story-figure .foundryMedia::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(124, 202, 255, 0.22),
    rgba(148, 94, 255, 0.18) 48%,
    rgba(6, 8, 16, 0.45)
  );
  mix-blend-mode: screen;
  opacity: 0.55;
  z-index: 1;
}

body.page-foundry .oscHeroMedia img,
body.page-foundry .foundryMedia img,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia img,
body.page-orchestrated-synesthesia-cognition-os .foundryMedia img,
body.page-foundry .story-figure .foundryMedia img,
body.page-orchestrated-synesthesia-cognition-os .story-figure .foundryMedia img {
  position: relative;
  z-index: 0;
  filter: sepia(0.26) hue-rotate(152deg) saturate(1.35) brightness(0.72) contrast(1.16);
  transition: filter var(--timing-normal) ease, transform var(--timing-normal) ease;
}

body.page-foundry .oscHeroMedia:hover img,
body.page-foundry .foundryMedia:hover img,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia:hover img,
body.page-orchestrated-synesthesia-cognition-os .foundryMedia:hover img,
body.page-foundry .story-figure .foundryMedia:hover img,
body.page-orchestrated-synesthesia-cognition-os .story-figure .foundryMedia:hover img {
  filter: sepia(0.2) hue-rotate(160deg) saturate(1.45) brightness(0.78) contrast(1.2);
}

body.page-foundry figcaption,
body.page-orchestrated-synesthesia-cognition-os figcaption {
  color: rgba(198, 220, 255, 0.5);
}

/* ============================================================
 * SYMBOL LOCK - aligned size, strict monochrome
 * AAGC + Synesthesia OS symbols render in pure black/white.
 * ============================================================ */
body.page-foundry .foundryHero--compact .product-symbol-figure,
body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .product-symbol-figure {
  width: min(100%, 280px);
  max-width: 280px;
  margin: 0 auto;
}

body.page-foundry .foundryHero > .container > .split .product-symbol-figure,
body.page-orchestrated-synesthesia-cognition-os .oscHeroSection .product-symbol-figure {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

body.page-foundry .product-symbol-media,
body.page-orchestrated-synesthesia-cognition-os .product-symbol-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #000000;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: none;
}
body.page-foundry .product-symbol-media {
  border-top: 2px solid rgba(255,255,255,0.22);
  border-right: 2px solid rgba(255,255,255,0.22);
}
body.page-orchestrated-synesthesia-cognition-os .product-symbol-media {
  border-left: 2px solid rgba(255,255,255,0.22);
  border-bottom: 2px solid rgba(255,255,255,0.22);
}

body.page-foundry .product-symbol-media::before,
body.page-foundry .product-symbol-media::after,
body.page-orchestrated-synesthesia-cognition-os .product-symbol-media::before,
body.page-orchestrated-synesthesia-cognition-os .product-symbol-media::after {
  content: none !important;
}

body.page-foundry .product-symbol-media > a,
body.page-orchestrated-synesthesia-cognition-os .product-symbol-media > a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-foundry .product-symbol-image,
body.page-orchestrated-synesthesia-cognition-os .product-symbol-image {
  display: block;
  object-fit: contain;
  filter: grayscale(1) saturate(0) contrast(1.18) brightness(1.03) !important;
  mix-blend-mode: normal;
}

body.page-foundry .product-symbol-image--foundry,
body.page-orchestrated-synesthesia-cognition-os .product-symbol-image--foundry {
  width: 94%;
  height: 94%;
}

body.page-foundry .product-symbol-image--os,
body.page-orchestrated-synesthesia-cognition-os .product-symbol-image--os {
  width: 74%;
  height: 74%;
}

@media (max-width: 720px) {
  body.page-foundry .product-symbol-figure,
  body.page-orchestrated-synesthesia-cognition-os .product-symbol-figure,
  body.page-foundry .foundryHero--compact .product-symbol-figure,
  body.page-orchestrated-synesthesia-cognition-os .foundryHero--compact .product-symbol-figure {
    width: min(100%, 220px);
    max-width: 220px;
  }
}

/* ═══════════════ Orchestration Strategy Blocks ═══════════════ */

.strategyBlock {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 2.4rem 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.005) 100%);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.04) inset,
    0 16px 48px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: border-color var(--timing-slow) ease, box-shadow var(--timing-slow) ease;
}

.strategyBlock:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.35);
}

.strategyBlock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.08) 70%, transparent 100%);
}

.strategyBlock + .strategyBlock { margin-top: 2rem; }

.strategyHeader {
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.strategyHeader h3 {
  margin: 0 0 0.6rem;
  color: #f1f5f9;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.strategyHeader h3::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1.1em;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.strategyHeader p {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 64ch;
}

.strategyDiagram {
  margin: 0 -0.6rem 1.6rem;
  padding: 1.8rem 1.2rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.strategySvg {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  min-width: 580px;
}

.strategyDetail {
  margin-top: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.strategyDetail p {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.6;
}

.strategyDetail strong {
  color: #e2e8f0;
}

@media (max-width: 640px) {
  .strategyBlock { padding: 1.4rem 1.2rem; border-radius: 14px; }
  .strategyDiagram { padding: 1rem 0.6rem; margin: 0 0 1.2rem; }
  .strategySvg { min-width: 480px; }
}

/* ═══════════════ Enhanced Image Presentation ═══════════════ */

body.page-foundry .foundryMedia,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

body.page-foundry .foundryMedia img,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--timing-slow) var(--ease-out-expo);
}

body.page-foundry .foundryMedia:hover img,
body.page-orchestrated-synesthesia-cognition-os .oscHeroMedia:hover img {
  transform: scale(1.02);
}

body.page-foundry .foundryFigure figcaption,
body.page-orchestrated-synesthesia-cognition-os .oscHeroFigure figcaption {
  font-style: italic;
  letter-spacing: 0.01em;
}

body.page-foundry .foundryZoomLink,
body.page-orchestrated-synesthesia-cognition-os .foundryZoomLink {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 200ms ease;
}

body.page-foundry .foundryZoomLink:hover,
body.page-orchestrated-synesthesia-cognition-os .foundryZoomLink:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════ Next Chapter Story Connector ═══════════════ */

.nextChapter {
  position: relative;
  border-top: none;
}

.nextChapter::before {
  content: "";
  display: block;
  margin: 0 auto;
  width: min(260px, 60%);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.12) 70%, transparent 100%);
}

.nextChapter-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.nextChapter-inner .eyebrow {
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.nextChapter-inner h2 {
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.nextChapter-inner .lead {
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.8rem;
  line-height: 1.65;
}

.nextChapter-inner .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.6em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--timing-normal) var(--ease-out-expo);
}

.nextChapter-inner .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* ═══════════════════════════════════════════════════════════════
 * VISUAL APPEAL — global uplift (added 2026-03-03)
 * ═══════════════════════════════════════════════════════════════ */

/* ── Smoother page background gradient ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.018) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(255,255,255,0.01) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 60%, rgba(255,255,255,0.008) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Section spacing & visual rhythm ── */
.section {
  position: relative;
}

.section-head h2 {
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.06));
}

.section-head.text-center h2::after,
.text-center .section-head h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* ── Card depth & glow upgrade ── */
.card {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.045) 0%,
    rgba(255,255,255,0.015) 100%
  );
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 16px 40px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.08);
}

.card:hover {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.025) 100%
  );
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.1) inset,
    0 24px 56px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.16);
}

.card h3 {
  color: rgba(255,255,255,0.95);
}

.card p {
  color: rgba(255,255,255,0.52);
  line-height: 1.7;
}

/* ── Stats row: add subtle separator pips ── */
.foundry-stat {
  position: relative;
}

.foundry-stat + .foundry-stat::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.foundry-stat-num {
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Eyebrow: subtle tracking line ── */
.eyebrow {
  position: relative;
  display: inline-block;
}

/* ── Hero title subtle text-shadow for depth ── */
h1 {
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}

/* ── Audience cards: richer hover state ── */
.foundry-audience-card,
.os-audience-card {
  transition: transform var(--timing-slow) var(--ease-out-expo),
              box-shadow var(--timing-slow) ease,
              border-color var(--timing-slow) ease;
}
.foundry-audience-card:hover,
.os-audience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.18);
}

/* ── Callout blocks: improved contrast ── */
.callout {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.008) 100%
  );
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.callout:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ── Strategy blocks: smoother pill badges ── */
.strategyHeader h3 {
  font-size: 1.15rem;
}

.strategyDetail {
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Domain knowledge grid: stagger animation ── */
.grid.grid-4 .card {
  opacity: 0;
  animation: domainFadeIn 500ms ease forwards;
}

@keyframes domainFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.grid.grid-4 .card:nth-child(1)  { animation-delay: 0ms; }
.grid.grid-4 .card:nth-child(2)  { animation-delay: 40ms; }
.grid.grid-4 .card:nth-child(3)  { animation-delay: 80ms; }
.grid.grid-4 .card:nth-child(4)  { animation-delay: 120ms; }
.grid.grid-4 .card:nth-child(5)  { animation-delay: 160ms; }
.grid.grid-4 .card:nth-child(6)  { animation-delay: 200ms; }
.grid.grid-4 .card:nth-child(7)  { animation-delay: 240ms; }
.grid.grid-4 .card:nth-child(8)  { animation-delay: 280ms; }
.grid.grid-4 .card:nth-child(9)  { animation-delay: 320ms; }
.grid.grid-4 .card:nth-child(10) { animation-delay: 360ms; }
.grid.grid-4 .card:nth-child(11) { animation-delay: 400ms; }
.grid.grid-4 .card:nth-child(12) { animation-delay: 440ms; }
.grid.grid-4 .card:nth-child(13) { animation-delay: 480ms; }
.grid.grid-4 .card:nth-child(14) { animation-delay: 520ms; }
.grid.grid-4 .card:nth-child(15) { animation-delay: 560ms; }
.grid.grid-4 .card:nth-child(16) { animation-delay: 600ms; }
.grid.grid-4 .card:nth-child(n+17) { animation-delay: 640ms; }

/* ── CTA blocks: stronger visual treatment ── */
.foundry-cta-block {
  position: relative;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.005) 100%
  );
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.foundry-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.75em 2em;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.foundry-cta-link:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Smoother section-alt gradient dividers ── */
.section-alt::before,
.section-alt::after {
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 20%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.06) 80%,
    transparent 100%
  );
}

/* ── Breadcrumb: refined ── */
.foundry-breadcrumb {
  transition: color 200ms ease, transform 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.foundry-breadcrumb:hover {
  color: rgba(255,255,255,0.7);
  transform: translateX(-3px);
}

/* ── Subnav pills: refined borders ── */
.foundrySubnav a {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 250ms ease;
}

.foundrySubnav a:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

/* ── Story elements (getting-started pages) ── */
.story-step {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
}

.story-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.story-step-num {
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-text--emphasis {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid rgba(255,255,255,0.1);
}


/* ═══════════════════════════════════════════════════════════════
 * VISUAL UPLIFT v2 — novel, beautiful, immersive (2026-03-03)
 * ═══════════════════════════════════════════════════════════════ */

/* ── Audience card catchy tagline ── */
.foundry-audience-tagline {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.6);
  margin: -4px 0 8px;
  line-height: 1.4;
}

body.page-foundry .foundry-audience-card:hover .foundry-audience-tagline,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card:hover .foundry-audience-tagline {
  color: rgba(255,255,255,0.8);
}

/* ── Hero: ambient halo behind the title ── */
body.page-foundry .foundryHero,
body.page-orchestrated-synesthesia-cognition-os .foundryHero {
  position: relative;
  overflow: hidden;
}

body.page-foundry .foundryHero::before,
body.page-orchestrated-synesthesia-cognition-os .foundryHero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.015) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* ── Section transitions: elegant reveal on scroll ── */
.section {
  animation: sectionIn 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sectionIn {
  from {
    opacity: 0.6;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Card: inner glow line at top ── */
body.page-foundry .card::after,
body.page-orchestrated-synesthesia-cognition-os .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 30%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.08) 70%,
    transparent 100%
  );
  border-radius: 1px;
}

body.page-foundry .card:hover::after,
body.page-orchestrated-synesthesia-cognition-os .card:hover::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.12) 30%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.12) 70%,
    transparent 100%
  );
}

/* ── Audience selector: heading ── */
.foundry-audience-selector,
.os-audience-selector {
  position: relative;
}

.foundry-audience-selector::before,
.os-audience-selector::before {
  content: none;
}

/* ── Hero lead: refined readability ── */
body.page-foundry .foundry-hero-lead,
body.page-orchestrated-synesthesia-cognition-os .lead {
  max-width: 58ch;
}

/* ── Section-alt: layered depth with noise ── */
body.page-foundry .section-alt,
body.page-orchestrated-synesthesia-cognition-os .section-alt {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.012) 0%,
      rgba(255,255,255,0.004) 50%,
      rgba(255,255,255,0.012) 100%
    );
}

/* ── Stat numbers: pulse on hover ── */
.foundry-stat:hover .foundry-stat-num {
  transform: scale(1.06);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.foundry-stat-num {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Callout: left accent bar ── */
.callout {
  position: relative;
  padding-left: 28px;
}

.callout::after {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.04) 100%
  );
}

/* ── Figure captions: italic + separator ── */
figcaption {
  position: relative;
  padding-top: 12px;
}

figcaption::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 10px;
}

/* ── Section heading eyebrow: dot separator ── */
.section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  margin-right: 8px;
  vertical-align: middle;
}

/* ── Grid cards: micro gap refinement ── */
body.page-foundry .grid.cards,
body.page-orchestrated-synesthesia-cognition-os .grid.cards {
  gap: 20px;
}

/* ── Vision statement: quote styling ── */
body.page-foundry .foundry-vision,
body.page-orchestrated-synesthesia-cognition-os .os-vision {
  position: relative;
  padding: 48px 40px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.02) 0%,
    rgba(255,255,255,0.005) 100%
  );
  border: 1px solid rgba(255,255,255,0.05);
}

body.page-foundry .foundry-vision::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.06);
  line-height: 1;
}

/* ── Navigation: active page subtle underline ── */
.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
  transform: scaleX(0);
  transition: transform 300ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* ── Footer refinement ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── Smooth scroll for the whole page ── */
html {
  scroll-behavior: smooth;
}

/* ── Global text rendering ── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Hero eyebrow beneath h1 ── */
.hero-eyebrow-sub {
  display: block;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 28px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  clear: both;
}

body.page-foundry .foundryHero > .container > h1,
body.page-orchestrated-synesthesia-cognition-os .oscHeroSection > .container > h1 {
  display: block !important;
  width: 100%;
  margin-bottom: 0;
}

body.page-foundry .foundryHero > .container > .hero-eyebrow-sub,
body.page-orchestrated-synesthesia-cognition-os .oscHeroSection > .container > .hero-eyebrow-sub {
  display: block !important;
  width: 100%;
}

/* ── Audience cards: equal height on same level ── */
.foundry-audience-selector,
.os-audience-selector {
  align-items: stretch;
}

.foundry-audience-card,
.os-audience-card {
  display: flex;
  flex-direction: column;
}

.foundry-audience-desc,
.os-audience-desc {
  flex: 1;
}

.foundry-audience-arrow,
.os-audience-arrow {
  margin-top: auto;
}

/* ── Mobile refinement ── */
@media (max-width: 720px) {
  body.page-foundry .foundryHero h1,
  body.page-orchestrated-synesthesia-cognition-os .foundryHero h1,
  body.page-orchestrated-synesthesia-cognition-os h1 {
    white-space: normal;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .foundry-audience-tagline {
    font-size: 0.84rem;
  }
  .hero-eyebrow-sub {
    margin-top: -8px;
    margin-bottom: 20px;
  }
}

/* ============================================================
 * HERO EYEBROW ABOVE H1 (sup position)
 * ============================================================ */
.hero-eyebrow-sup {
  margin-bottom: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
body.page-foundry .hero-eyebrow-sup,
body.page-orchestrated-synesthesia-cognition-os .hero-eyebrow-sup {
  color: rgba(255,255,255,0.5);
}

/* ============================================================
 * "CHOOSE YOUR PATH" HEADING
 * ============================================================ */
.audience-path-heading {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px;
}

/* ============================================================
 * EQUAL-WEIGHT AUDIENCE CARDS
 * ============================================================ */
.foundry-audience-selector--equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.foundry-audience-card--equal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 36px 36px;
  min-height: 300px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.foundry-audience-card--equal .foundry-audience-icon,
.foundry-audience-card--equal .os-audience-icon {
  margin-bottom: 20px;
}

.foundry-audience-card--equal .foundry-audience-title,
.foundry-audience-card--equal .os-audience-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.foundry-audience-card--equal .foundry-audience-tagline {
  margin-bottom: 14px;
}

.foundry-audience-card--equal .foundry-audience-desc,
.foundry-audience-card--equal .os-audience-desc {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* CTA label at card bottom */
.foundry-audience-cta {
  display: inline-block;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  transition: color 300ms ease, transform 300ms ease;
}

body.page-foundry .foundry-audience-card:hover .foundry-audience-cta,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-card:hover .foundry-audience-cta {
  color: rgba(255,255,255,0.75);
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .foundry-audience-selector--equal {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .foundry-audience-card--equal {
    padding: 32px 26px 28px;
    min-height: auto;
  }
  .hero-eyebrow-sup {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }
}

/* ============================================================
 * MAIN UI AUDIENCE CARDS (CANONICAL OVERRIDES)
 * Keep these as the single source of truth for main-page card
 * leveling and CTA baseline alignment across Foundry + OS.
 * ============================================================ */
body.page-foundry .foundry-audience-selector.foundry-audience-selector--equal,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-selector.foundry-audience-selector--equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

body.page-foundry .foundry-audience-selector--equal .foundry-audience-card--equal,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-selector--equal .foundry-audience-card--equal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 320px;
  padding: 42px 36px 36px;
}

body.page-foundry .foundry-audience-selector--equal .foundry-audience-title,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-selector--equal .foundry-audience-title {
  margin-bottom: 12px;
  line-height: 1.3;
}

body.page-foundry .foundry-audience-selector--equal .foundry-audience-tagline,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-selector--equal .foundry-audience-tagline {
  margin-bottom: 14px;
}

body.page-foundry .foundry-audience-selector--equal .foundry-audience-desc,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-selector--equal .foundry-audience-desc {
  flex: 1;
  margin-bottom: 20px;
}

body.page-foundry .foundry-audience-selector--equal .foundry-audience-cta,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-selector--equal .foundry-audience-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* Legacy arrow indicator is not used in equal-layout cards. */
body.page-foundry .foundry-audience-selector--equal .foundry-audience-arrow,
body.page-orchestrated-synesthesia-cognition-os .foundry-audience-selector--equal .foundry-audience-arrow {
  display: none;
}

@media (max-width: 720px) {
  body.page-foundry .foundry-audience-selector.foundry-audience-selector--equal,
  body.page-orchestrated-synesthesia-cognition-os .foundry-audience-selector.foundry-audience-selector--equal {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.page-foundry .foundry-audience-selector--equal .foundry-audience-card--equal,
  body.page-orchestrated-synesthesia-cognition-os .foundry-audience-selector--equal .foundry-audience-card--equal {
    min-height: auto;
    padding: 32px 26px 28px;
  }
}

/* ============================================================
 * DARK-THEMED DIAGRAM IMAGES
 * Original PNG diagrams with CSS filter to match dark website.
 * ============================================================ */

.diagram-figure {
  margin: 36px auto;
  max-width: min(1240px, 100%);
  text-align: center;
}

.diagram-figure img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: invert(1) grayscale(1) brightness(0.98) contrast(1.05);
  mix-blend-mode: lighten;
}

.diagram-figure figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  text-align: center;
}

/* ============================================================
 * INTERACTIVE SVG DIAGRAMS — Foundry
 * Uses the same site palette and accent system.
 * ============================================================ */
body.page-foundry .foundry-diagram--session-lifecycle {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-stage-backdrop {
  fill: rgba(255, 255, 255, 0.012);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-stage-frame {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.2;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-arrow-head {
  fill: rgba(255, 255, 255, 0.45);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-flow line,
body.page-foundry .foundry-diagram--session-lifecycle .diagram-loop {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 2.2;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-loop {
  stroke-dasharray: 6 6;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-loop-label {
  fill: rgba(255, 255, 255, 0.45);
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.01em;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-node {
  cursor: pointer;
  outline: none;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-node-shape {
  fill: var(--card);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
  transition:
    transform var(--timing-fast) ease,
    filter var(--timing-fast) ease,
    stroke var(--timing-fast) ease,
    fill var(--timing-fast) ease;
  transform-box: fill-box;
  transform-origin: center;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-node-label {
  fill: var(--text);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-node--input .diagram-node-shape {
  fill: rgba(236, 72, 153, 0.12);
  stroke: rgba(236, 72, 153, 0.65);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-node--orchestration .diagram-node-shape {
  fill: rgba(34, 211, 238, 0.12);
  stroke: rgba(34, 211, 238, 0.65);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-node--governance .diagram-node-shape {
  fill: rgba(245, 158, 11, 0.12);
  stroke: rgba(245, 158, 11, 0.65);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-node--execution .diagram-node-shape {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.34);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-node:hover .diagram-node-shape,
body.page-foundry .foundry-diagram--session-lifecycle .diagram-node:focus .diagram-node-shape,
body.page-foundry .foundry-diagram--session-lifecycle .diagram-node:focus-visible .diagram-node-shape,
body.page-foundry .foundry-diagram--session-lifecycle .diagram-node.is-active .diagram-node-shape {
  stroke: rgba(255, 255, 255, 0.92);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-node:hover .diagram-node-label,
body.page-foundry .foundry-diagram--session-lifecycle .diagram-node:focus .diagram-node-label,
body.page-foundry .foundry-diagram--session-lifecycle .diagram-node:focus-visible .diagram-node-label,
body.page-foundry .foundry-diagram--session-lifecycle .diagram-node.is-active .diagram-node-label {
  fill: #ffffff;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-legend-title,
body.page-foundry .foundry-diagram--session-lifecycle .diagram-legend-label {
  fill: rgba(255, 255, 255, 0.65);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.01em;
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-legend-chip--input {
  fill: var(--accent);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-legend-chip--orchestration {
  fill: var(--accent-2);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-legend-chip--governance {
  fill: var(--warn);
}

body.page-foundry .foundry-diagram--session-lifecycle .diagram-legend-chip--execution {
  fill: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1200px) {
  body.page-foundry .foundry-diagram--session-lifecycle .diagram-node-label {
    font-size: 13px;
  }
}

@media (max-width: 920px) {
  body.page-foundry .foundry-diagram--session-lifecycle .diagram-legend {
    display: none;
  }
  body.page-foundry .foundry-diagram--session-lifecycle .diagram-loop-label {
    font-size: 13px;
  }
}

/* ============================================================
 * LEGAL/AUTH NOTICE SURFACES
 * ============================================================ */
body.page-auth .notice-shell,
body.page-legal .notice-shell {
  padding-top: clamp(48px, 8vw, 88px);
}

body.page-auth .notice-container,
body.page-legal .notice-container {
  max-width: 900px;
}

body.page-auth .notice-dev-notice,
body.page-legal .notice-dev-notice {
  margin: 20px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 14px;
  padding: 14px 16px;
}

body.page-auth .notice-dev-notice p,
body.page-legal .notice-dev-notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

/* ============================================================
 * FORCE EQUAL-HEIGHT AUDIENCE CARDS (final override)
 * ============================================================ */
#choose-your-path .foundry-audience-selector {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: stretch !important;
  gap: 28px;
}

#choose-your-path .foundry-audience-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

#choose-your-path .foundry-audience-desc {
  flex: 1 !important;
}

#choose-your-path .foundry-audience-cta {
  margin-top: auto !important;
}

@media (max-width: 720px) {
  #choose-your-path .foundry-audience-selector {
    grid-template-columns: 1fr !important;
  }
}

.foundry-path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.foundry-path-grid .foundry-audience-card--main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 320px;
  padding: 0;
}
.foundry-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 42px 36px 28px;
  text-decoration: none;
  color: inherit;
}
.foundry-card-body .foundry-audience-desc {
  flex: 1;
}
.foundry-card-body .foundry-audience-cta {
  margin-top: auto;
}
.foundry-card-pricing-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.68);
  background: rgba(255,255,255,0.02);
  border-radius: 0 0 var(--radius-md, 12px) var(--radius-md, 12px);
  text-decoration: none;
  overflow: hidden;
  transition: color 260ms ease, background 260ms ease;
}
.foundry-card-pricing-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(236,72,153,0.35) 30%, rgba(34,211,238,0.35) 70%, transparent 100%);
}
.foundry-card-pricing-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236,72,153,0.04) 0%, rgba(34,211,238,0.04) 100%);
  opacity: 0;
  transition: opacity 260ms ease;
}
.foundry-card-pricing-link:hover {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.035);
}
.foundry-card-pricing-link:hover::after {
  opacity: 1;
}
.foundry-card-pricing-link svg {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  color: var(--accent-2);
  opacity: .5;
  transition: opacity 260ms ease, transform 260ms ease;
}
.foundry-card-pricing-link:hover svg {
  opacity: .9;
  transform: scale(1.1);
}
.foundry-pricing-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.foundry-pricing-text strong {
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  transition: color 260ms ease;
}
.foundry-card-pricing-link:hover .foundry-pricing-text strong {
  background: linear-gradient(90deg, #ec4899, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.foundry-pricing-cta {
  position: relative;
  z-index: 1;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity 260ms ease, transform 260ms ease;
}
.foundry-card-pricing-link:hover .foundry-pricing-cta {
  opacity: 1;
  transform: translateX(3px);
}

.foundry-card-pricing-link--aagc:hover {
  background: #000;
  color: #fff;
}
.foundry-card-pricing-link--aagc:hover::before {
  opacity: 0;
}
.foundry-card-pricing-link--aagc:hover::after {
  background: #000;
  opacity: 1;
}
.foundry-card-pricing-link--aagc:hover svg {
  color: #fff;
  opacity: 1;
}
.foundry-card-pricing-link--aagc:hover .foundry-pricing-text {
  color: #fff;
}
.foundry-card-pricing-link--aagc:hover .foundry-pricing-text strong {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.foundry-card-pricing-link--aagc:hover .foundry-pricing-cta {
  color: #fff;
}

.os-pricing-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px auto 0;
  max-width: 960px;
  padding: 20px 32px;
  border-radius: var(--radius-md, 12px);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow: hidden;
  transition: border-color 280ms ease, background 280ms ease, color 280ms ease, transform 280ms ease;
}
.os-pricing-banner__accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ec4899, #22d3ee);
  opacity: .45;
  transition: opacity 280ms ease, height 280ms ease;
}
.os-pricing-banner:hover {
  border-color: rgba(255,255,255,0.18);
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}
.os-pricing-banner:hover .os-pricing-banner__accent {
  opacity: 0;
}
.os-pricing-banner__icon {
  flex-shrink: 0;
  color: var(--accent-2);
  opacity: .6;
  transition: opacity 280ms ease, color 280ms ease, transform 280ms ease;
}
.os-pricing-banner:hover .os-pricing-banner__icon {
  color: #fff;
  opacity: 1;
  transform: scale(1.12);
}
.os-pricing-banner__body {
  flex: 1;
  min-width: 0;
}
.os-pricing-banner__body strong {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  transition: color 280ms ease;
}
.os-pricing-banner:hover .os-pricing-banner__body strong {
  color: #fff;
}
.os-pricing-banner__cta {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--accent-2);
  opacity: .7;
  transition: opacity 280ms ease, color 280ms ease, transform 280ms ease;
}
.os-pricing-banner:hover .os-pricing-banner__cta {
  color: #fff;
  opacity: 1;
  transform: translateX(3px);
}
@media (max-width: 720px) {
  .os-pricing-banner {
    flex-wrap: wrap;
    padding: 16px 22px;
    font-size: 0.82rem;
    gap: 10px;
  }
  .os-pricing-banner__cta {
    width: 100%;
    text-align: right;
  }
}

@media (max-width: 720px) {
  .foundry-path-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .foundry-path-grid .foundry-audience-card--main {
    min-height: auto;
  }
  .foundry-card-body {
    padding: 32px 26px 22px;
  }
  .foundry-card-pricing-link {
    padding: 14px 26px;
    font-size: 0.78rem;
  }
}

/* ============================================================
 * OVERVIEW / MISSION PAGE — ELEVATED VISUAL TREATMENT
 * ============================================================ */

body.page-overview .mission-hero {
  padding: 110px 0 80px;
}

body.page-overview .mission-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.page-overview .section {
  padding: 96px 0;
}

body.page-overview .section-head h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

body.page-overview .card {
  padding: 32px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
body.page-overview .card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 400ms ease;
}
body.page-overview .card:hover::before {
  opacity: 1;
}

body.page-overview .card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.95);
}

body.page-overview .card p,
body.page-overview .card li {
  font-size: 0.98rem;
  line-height: 1.78;
}

body.page-overview .landing-value {
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.06);
}
body.page-overview .landing-value:hover {
  background: rgba(255,255,255,0.04);
}

body.page-overview .landing-value h3 {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
}

body.page-overview .landing-value p {
  font-size: 0.94rem;
  line-height: 1.78;
  color: rgba(255,255,255,0.52);
}

body.page-overview .section-alt {
  background: rgba(255,255,255,0.012);
}

body.page-overview .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 12px;
}

body.page-overview #vision h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

body.page-overview #cta {
  padding: 72px 0;
}
body.page-overview #cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 12px;
}

body.page-overview .grid-2 {
  gap: 28px;
}
@media (max-width: 720px) {
  body.page-overview .mission-hero {
    padding: 80px 0 56px;
  }
  body.page-overview .section {
    padding: 64px 0;
  }
}

/* ============================================================
 * OVERVIEW PAGE — ELEVATED VISUAL SYSTEM
 * ============================================================ */

.ov-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.96);
}

.ov-hero-lead {
  max-width: 720px;
  margin: 0 auto 0;
  font-size: 1.12rem;
  line-height: 1.82;
  color: rgba(255,255,255,0.52);
  letter-spacing: -0.005em;
}

.ov-hero-divider {
  width: 48px;
  height: 1px;
  margin: 32px auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

body.page-overview .mission-hero {
  padding: 110px 0 80px;
  position: relative;
}
body.page-overview .mission-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* Scenario cards — the "teacher" and "developer" examples */
.ov-scenario-card {
  position: relative;
  padding-top: 20px;
}
.ov-scenario-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px !important;
}

/* Product cards — slightly more visual presence */
.ov-product-card {
  border-color: rgba(255,255,255,0.1);
}
.ov-product-card:hover {
  border-color: rgba(255,255,255,0.22);
}

/* Checklist styling */
.ov-checklist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
}
.ov-checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 0.96rem;
}
.ov-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

/* Principles grid — 5 items, asymmetric layout */
.ov-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
@media (max-width: 900px) {
  .ov-principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .ov-principles-grid {
    grid-template-columns: 1fr;
  }
}

.ov-principle {
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.018);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms ease,
              border-color 300ms ease;
}
.ov-principle:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.16);
}
.ov-principle h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
}
.ov-principle p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.78;
  color: rgba(255,255,255,0.48);
}

/* Vision section — centered, spacious, typographic emphasis */
.ov-vision-container {
  max-width: 780px;
  text-align: center;
}
.ov-vision-heading {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
}
.ov-vision-body {
  font-size: 1.06rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.48);
  margin-bottom: 28px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.ov-vision-close {
  font-size: 1.02rem;
  font-weight: 650;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.005em;
}

/* Subtle section breathing — more vertical space on overview */
body.page-overview .section {
  padding: 88px 0;
}
body.page-overview .section-head {
  margin-bottom: 0;
}
body.page-overview .section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: rgba(255,255,255,0.92);
  margin-bottom: 16px;
}
body.page-overview .section-head .lead {
  color: rgba(255,255,255,0.48);
  line-height: 1.8;
  font-size: 1.04rem;
}

@media (max-width: 720px) {
  body.page-overview .section {
    padding: 64px 0;
  }
  body.page-overview .mission-hero {
    padding: 80px 0 56px;
  }
  .ov-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    margin-bottom: 28px;
  }
}

/* ============================================================
 * OVERVIEW PAGE — SIMPLIFIED MISSION LAYOUT
 * ============================================================ */

.ov-hero-container {
  max-width: 780px;
  text-align: center;
}

.ov-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}
.ov-demo-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-inline: auto;
  align-items: stretch;
}
@media (max-width: 900px) {
  .ov-demo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.ov-demo-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.018);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--timing-normal, 300ms) cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow var(--timing-normal, 300ms) ease,
              border-color var(--timing-normal, 300ms) ease;
}
.ov-demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.16);
}
.ov-demo-card__symbol {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-demo-card__symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15) brightness(1.05);
}
.ov-demo-card__symbol--foundry {
  border-top: 2px solid rgba(255,255,255,0.22);
  border-right: 2px solid rgba(255,255,255,0.22);
}
.ov-demo-card__symbol--oc {
  border-left: 2px solid rgba(255,255,255,0.22);
  border-bottom: 2px solid rgba(255,255,255,0.22);
}
.ov-demo-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
}
.ov-demo-card p {
  margin: 0 0 16px;
  font-size: 0.96rem;
  line-height: 1.78;
  color: rgba(255,255,255,0.48);
  flex-shrink: 0;
}
.ov-demo-card .btn,
body.page-overview .section-alt .ov-demo-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Scenario label styling for product pages */
.ov-scenario-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px !important;
}

/* ============================================================
 * TYPOGRAPHIC SCALE
 * ============================================================ */

h3 { font-size: 1.15rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.85rem; }

/* ============================================================
 * GLOBAL INTERACTION POLISH
 * ============================================================ */

html { scroll-behavior: smooth; }

::selection {
  background: rgba(236, 72, 153, 0.3);
  color: #fff;
}

/* Button ghost states */
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.btn-ghost:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}
.btn-ghost {
  transition: all var(--timing-fast, 150ms) cubic-bezier(0.16, 1, 0.3, 1);
}

/* Focus-visible fixes */
.skip-link:focus-visible {
  outline: 3px solid rgba(255, 77, 141, 0.35);
  outline-offset: 2px;
}
.site-nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Animated inline link underline */
main a:not(.btn):not(.foundry-audience-card):not(.brand) {
  text-decoration: none;
  background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--timing-normal, 300ms) cubic-bezier(0.16, 1, 0.3, 1);
}
main a:not(.btn):not(.foundry-audience-card):not(.brand):hover {
  background-size: 100% 1px;
}

/* ============================================================
 * HERO AMBIENT GLOW
 * ============================================================ */

body.page-overview .mission-hero::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlowPulse 10s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.15); }
}

/* ============================================================
 * SECTION DIVIDERS
 * ============================================================ */

body.page-overview .section-alt::before,
body.page-overview .section-alt::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 70%, transparent 100%);
}
body.page-overview .section-alt::before {
  left: 5%;
  right: 5%;
}
body.page-overview .section-alt::after {
  left: 5%;
  right: 5%;
}

/* ============================================================
 * CARD INNER GLOW ON HOVER
 * ============================================================ */

body.page-overview .card::before,
body.page-overview .landing-value::before,
body.page-overview .ov-principle::before,
body.page-overview .ov-demo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity var(--timing-normal, 300ms) ease;
}
body.page-overview .card:hover::before,
body.page-overview .landing-value:hover::before,
body.page-overview .ov-principle:hover::before,
body.page-overview .ov-demo-card:hover::before {
  opacity: 1;
}

/* ============================================================
 * FOOTER POLISH
 * ============================================================ */

.site-footer {
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* ============================================================
 * MOBILE NAV ANIMATION
 * ============================================================ */

@media (max-width: 840px) {
  .site-nav {
    display: flex !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height var(--timing-slow, 500ms) cubic-bezier(0.16, 1, 0.3, 1),
                opacity var(--timing-normal, 300ms) ease;
    pointer-events: none;
  }
  .site-nav.is-open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle-bars {
    height: 16px;
  }
  .nav-toggle-bars::before {
    top: 0;
    transition: transform var(--timing-fast, 150ms) ease, top var(--timing-fast, 150ms) ease;
  }
  .nav-toggle-bars::after {
    bottom: 0;
    transition: transform var(--timing-fast, 150ms) ease, bottom var(--timing-fast, 150ms) ease;
  }
  .nav-toggle-bars .nav-toggle-mid {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: opacity var(--timing-fast, 150ms) ease;
  }
  [aria-expanded="true"] .nav-toggle-bars::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  [aria-expanded="true"] .nav-toggle-bars::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }
  [aria-expanded="true"] .nav-toggle-bars .nav-toggle-mid {
    opacity: 0;
  }
}

/* ============================================================
 * TABLET BREAKPOINTS
 * ============================================================ */

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
  .grid-2 {
    gap: 20px;
  }
  .landing-values {
    grid-template-columns: repeat(2, 1fr);
  }
  .ov-principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ov-demo-grid {
    grid-template-columns: 1fr;
  }
  .foundry-stats-row,
  .os-stats-row {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ============================================================
 * PRINT STYLESHEET
 * ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .skip-link,
  .btn,
  .hero-badge {
    display: none !important;
  }
  body, body::before {
    background: white !important;
    color: black !important;
  }
  body::before {
    display: none !important;
  }
  .section, .section-alt {
    background: transparent !important;
    border: none !important;
    padding: 24px 0 !important;
  }
  .section-alt::before,
  .section-alt::after {
    display: none !important;
  }
  .card, .landing-value, .ov-principle, .ov-demo-card {
    border: 1px solid #ccc !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }
  h1, h2, h3, h4, p, li {
    color: black !important;
  }
  .eyebrow {
    color: #666 !important;
  }
  a { color: #333 !important; }
}

/* ============================================================
 * PRODUCT PAGE — INTEGRATED "WHY LLMs FAIL" NARRATIVE
 * ============================================================ */

.llm-narrative {
  max-width: 900px;
  margin: 0 auto;
}

.llm-narrative__bridge {
  text-align: center;
  margin: 56px 0 0;
}
.llm-narrative__bridge-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

.llm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 680px) {
  .llm-grid {
    grid-template-columns: 1fr;
  }
}

.llm-card {
  position: relative;
  padding: 24px 26px;
  background: var(--bg);
  transition: background var(--timing-fast, 150ms) ease;
}
.llm-card:hover {
  background: rgba(255,255,255,0.02);
}

.llm-card__num {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.12);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.llm-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.82);
  line-height: 1.3;
}

.llm-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.42);
}

.llm-closing {
  text-align: center;
  margin-top: 44px;
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0.03) 100%);
}
.llm-closing p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.005em;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 680px) {
  .scenario-grid {
    grid-template-columns: 1fr;
  }
}
.scenario-card {
  padding: 28px 26px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  transition: border-color var(--timing-normal, 300ms) ease,
              transform var(--timing-normal, 300ms) var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1));
}
.scenario-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.scenario-card .ov-scenario-label {
  margin-bottom: 12px !important;
}
.scenario-card p:last-child {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.48);
}

/* ============================================================
 * UTILITY CLASSES
 * ============================================================ */
.text-center { text-align: center; }
.container-narrow { max-width: 740px; margin-left: auto; margin-right: auto; }
.container-narrow-spaced { max-width: 600px; margin: 0 auto 28px; }
.mt-section { margin-top: 44px; }
.mt-sm { margin-top: 18px; }
.quality-note {
  max-width: 680px;
  margin-inline: auto;
  font-size: .85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}
.quality-note strong {
  color: rgba(255, 255, 255, .8);
}
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============================================================
 * MISSION PILLARS — 3-section layout with illustrations
 * ============================================================ */

.pillar-section {
  padding: 90px 0;
}

.pillar-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.pillar-row-reverse {
  grid-template-columns: 1fr 340px;
}
.pillar-row-reverse .pillar-visual {
  order: 2;
}
.pillar-row-reverse .pillar-copy {
  order: 1;
}

.pillar-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-illustration {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.35));
  transition: transform 600ms var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.pillar-section:hover .pillar-illustration {
  transform: scale(1.04);
}

.pillar-copy .eyebrow {
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 12px;
}

.pillar-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 22px;
}

.pillar-body {
  font-size: 1.05rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.52);
  margin: 0 0 20px;
  max-width: 600px;
}

.pillar-kicker {
  font-size: 1rem;
  font-weight: 680;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: -0.01em;
  margin: 0;
}

@media (max-width: 900px) {
  .pillar-row,
  .pillar-row-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .pillar-row-reverse .pillar-visual,
  .pillar-row-reverse .pillar-copy {
    order: unset;
  }
  .pillar-body {
    margin-left: auto;
    margin-right: auto;
  }
  .pillar-illustration {
    max-width: 220px;
  }
  .pillar-section {
    padding: 64px 0;
  }
}

@media print {
  .pillar-illustration {
    filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text: #fff;
    --muted: rgba(255, 255, 255, 0.85);
    --border: rgba(255, 255, 255, 0.4);
  }
  .ov-demo-card,
  .pillar-section {
    border-color: rgba(255, 255, 255, 0.3);
  }
}

/* ============================================================
 * FOOTER LAYOUT (LEGAL + ACCESS COLUMNS)
 * ============================================================ */
.footer-grid.footer-grid--has-access {
  grid-template-columns: minmax(320px, 2fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 1100px) {
  .footer-grid,
  .footer-grid.footer-grid--has-access {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
